/* Variables de couleurs Vendoprone */
:root {
    --orange-vendoprone: #F07E3D;
    --violet-vendoprone: #8E387F;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Gestion des phases */
.phase {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.phase.active {
    display: block;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--violet-vendoprone);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.5;
}

/* Barre de progression */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-gray);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--violet-vendoprone), var(--orange-vendoprone));
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Formulaires */
.form-container {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--orange-vendoprone);
}

/* Boutons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: var(--orange-vendoprone);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #e06d2d;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 18px;
    font-size: 16px;
    line-height: 1.4;
}

/* Phase Quiz */
.quiz-header {
    margin-bottom: 30px;
}

.question-counter {
    text-align: center;
    color: var(--violet-vendoprone);
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

.quiz-container {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.question-title {
    color: var(--violet-vendoprone);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
}

.option:hover {
    border-color: var(--orange-vendoprone);
    background-color: #fff5f0;
}

.option.selected {
    border-color: var(--orange-vendoprone);
    background-color: #fff5f0;
    font-weight: 600;
}

/* Phase Aperçu */
.score-container {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.score-container h2 {
    color: var(--violet-vendoprone);
    font-size: 24px;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-vendoprone), var(--orange-vendoprone));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(142, 56, 127, 0.3);
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.score-label {
    font-size: 14px;
    color: var(--white);
    opacity: 0.9;
}

.tier-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--violet-vendoprone);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.score-description {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-container {
    margin-top: 30px;
}

/* Phase Formulaire */
.form-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Phase Rapport */
.rapport-container {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rapport-title {
    color: var(--violet-vendoprone);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

.highlight-orange {
    color: var(--orange-vendoprone);
    font-size: 28px;
    font-weight: 700;
}

.rapport-summary {
    margin-top: 30px;
}

.rapport-summary h3 {
    color: var(--violet-vendoprone);
    font-size: 20px;
    margin-bottom: 20px;
}

.points-faibles-container {
    margin-bottom: 30px;
}

.point-faible {
    background: #fff5f0;
    border-left: 4px solid var(--orange-vendoprone);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.point-faible h4 {
    color: var(--dark-gray);
    font-size: 16px;
    margin-bottom: 5px;
}

.point-faible p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive - Tablette et Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 40px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .question-title {
        font-size: 26px;
    }
    
    .score-circle {
        width: 180px;
        height: 180px;
    }
    
    .score-value {
        font-size: 48px;
    }
    
    .rapport-title {
        font-size: 28px;
    }
    
    .highlight-orange {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }
}

/* Tooltips */
.tooltip-trigger {
    display: inline-block;
    cursor: pointer;
    color: var(--orange-vendoprone);
    font-weight: 600;
    font-size: 18px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tooltip-trigger:hover {
    color: #e06d2d;
}

.inline-tooltip {
    font-size: inherit;
    margin-left: 3px;
}

.tooltip {
    position: fixed;
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease;
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    border: 8px solid transparent;
    border-right-color: var(--dark-gray);
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Tooltip à gauche (quand il dépasse à droite) */
.tooltip.tooltip-left::before {
    border-right-color: transparent;
    border-left-color: var(--dark-gray);
    left: auto;
    right: -16px;
}

/* Sur mobile, la flèche est en haut */
@media (max-width: 767px) {
    .tooltip::before {
        border-right-color: transparent;
        border-bottom-color: var(--dark-gray);
        left: 50%;
        top: -16px;
        transform: translateX(-50%);
    }
    
    .tooltip.tooltip-left::before {
        border-left-color: transparent;
        border-bottom-color: var(--dark-gray);
        left: 50%;
        right: auto;
        top: -16px;
    }
}

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

/* Responsive tooltips */
@media (max-width: 767px) {
    .tooltip {
        max-width: calc(100vw - 40px);
        font-size: 13px;
        padding: 10px 14px;
    }
}

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

.phase.active {
    animation: fadeIn 0.4s ease;
}

