/* Quiz Métiers - Wainhouse CSS */
/* Préfixé pour éviter les conflits avec WordPress */

/* Variables de couleurs Wainhouse */
:root {
    --wh-primary: #234733;
    --wh-primary-light: #4e7c5a;
    --wh-primary-dark: #183222;
    --wh-secondary: #f6e96c;
    --wh-secondary-light: #fff9c4;
    --wh-text-dark: #333;
    --wh-text-light: #666;
    --wh-bg-light: #eaf5ee;
    --wh-bg-white: #ffffff;
    --wh-border: #d2e3d7;
    --wh-success: #28a745;
    --wh-warning: #ffc107;
    --wh-danger: #dc3545;
    --wh-shadow: 0 4px 6px rgba(35, 71, 51, 0.08);
    --wh-shadow-hover: 0 8px 15px rgba(35, 71, 51, 0.15);
}

/* Reset et base */
#wainhouse-quiz * {
    box-sizing: border-box;
}

.wh-quiz-header h2 {
    color: white;
}

#wainhouse-quiz {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--wh-text-dark);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Container principal */
.wh-quiz-container {
    background: var(--wh-bg-white);
    border-radius: 15px;
    box-shadow: var(--wh-shadow);
    overflow: hidden;
    border: 1px solid var(--wh-border);
}

/* Header */
.wh-quiz-header {
    background: linear-gradient(135deg, var(--wh-primary), var(--wh-primary-light));
    color: white;
    padding: 30px;
    text-align: center;
}

.wh-quiz-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.wh-quiz-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main content */
.wh-quiz-main {
    padding: 0;
}

/* Screens */
.wh-quiz-screen {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.wh-quiz-screen.wh-active {
    display: block;
}

/* Écran d'accueil */
.wh-welcome-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.wh-welcome-icon {
    font-size: 4em;
    color: var(--wh-primary);
    margin-bottom: 20px;
}

.wh-welcome-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--wh-text-dark);
}

.wh-welcome-content p {
    font-size: 1.1em;
    color: var(--wh-text-light);
    margin-bottom: 30px;
}

.wh-quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wh-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wh-text-light);
    font-size: 0.95em;
}

.wh-info-item i {
    color: var(--wh-primary);
    font-size: 1.2em;
}

/* Boutons */
.wh-start-btn, .wh-restart-btn, .wh-download-btn {
    background: linear-gradient(135deg, var(--wh-primary), var(--wh-primary-light));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin: 10px;
}

.wh-start-btn:hover, .wh-restart-btn:hover, .wh-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-hover);
    background: linear-gradient(135deg, var(--wh-primary-dark), var(--wh-primary));
}

.wh-download-btn {
    background: linear-gradient(135deg, var(--wh-success), #34ce57);
}

.wh-download-btn:hover {
    background: linear-gradient(135deg, #218838, var(--wh-success));
}

/* Barre de progression */
.wh-quiz-progress {
    margin-bottom: 30px;
}

.wh-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--wh-bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wh-primary), var(--wh-primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#wh-question-counter {
    font-size: 0.9em;
    color: var(--wh-text-light);
    font-weight: 500;
}

/* Questions */
.wh-question-container {
    margin-bottom: 40px;
}

#wh-question-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--wh-text-dark);
    line-height: 1.4;
}

.wh-answers-container {
    margin-bottom: 30px;
}

.wh-answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wh-answer-option {
    background: var(--wh-bg-white);
    border: 2px solid var(--wh-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wh-answer-option:hover {
    border-color: var(--wh-primary);
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow);
}

.wh-answer-option.wh-selected {
    border-color: var(--wh-primary);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1));
    box-shadow: var(--wh-shadow);
}

.wh-answer-option.wh-selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--wh-primary);
}

.wh-answer-text {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--wh-text-dark);
    margin: 0;
}

/* Navigation */
.wh-quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.wh-nav-btn {
    background: var(--wh-bg-white);
    border: 2px solid var(--wh-border);
    color: var(--wh-text-dark);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wh-nav-btn:hover:not(:disabled) {
    border-color: var(--wh-primary);
    color: var(--wh-primary);
    transform: translateY(-1px);
}

.wh-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wh-next-btn {
    background: var(--wh-primary);
    color: white;
    border-color: var(--wh-primary);
}

.wh-next-btn:hover:not(:disabled) {
    background: var(--wh-primary-dark);
    border-color: var(--wh-primary-dark);
    color: white;
}

/* Résultats */
.wh-results-content {
    text-align: center;
}

.wh-results-header {
    margin-bottom: 40px;
}

.wh-results-icon {
    font-size: 3em;
    color: var(--wh-secondary);
    margin-bottom: 20px;
}

.wh-results-header h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--wh-text-dark);
}

.wh-results-header p {
    font-size: 1.1em;
    color: var(--wh-text-light);
}

.wh-results-grid {
    margin-bottom: 40px;
}

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

.wh-result-card {
    background: var(--wh-bg-white);
    border: 2px solid var(--wh-border);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wh-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wh-shadow-hover);
    border-color: var(--wh-primary);
}

.wh-result-card.wh-top-match {
    border-color: var(--wh-primary);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1));
}

.wh-result-card.wh-top-match::before {
    content: '🥇';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
}

.wh-result-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--wh-primary);
    margin-bottom: 10px;
}

.wh-result-description {
    color: var(--wh-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.wh-result-score {
    display: inline-block;
    background: var(--wh-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.wh-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.wh-result-tag {
    background: var(--wh-bg-light);
    color: var(--wh-text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Actions des résultats */
.wh-results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    #wainhouse-quiz {
        padding: 10px;
    }
    
    .wh-quiz-header {
        padding: 20px;
    }
    
    .wh-quiz-header h2 {
        font-size: 1.8em;
    }
    
    .wh-quiz-screen {
        padding: 20px;
    }
    
    .wh-quiz-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .wh-quiz-navigation {
        flex-direction: column;
    }
    
    .wh-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wh-top-results {
        grid-template-columns: 1fr;
    }
    
    .wh-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .wh-start-btn, .wh-restart-btn, .wh-download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wh-quiz-header h2 {
        font-size: 1.5em;
    }
    
    .wh-welcome-content h3 {
        font-size: 1.5em;
    }
    
    #wh-question-text {
        font-size: 1.2em;
    }
    
    .wh-answer-option {
        padding: 15px;
    }
    
    .wh-answer-text {
        font-size: 1em;
    }
} 