/* ============================================================================
   SEDECOUVRIR.CSS - Page diagnostic de découverte des modes
   ============================================================================ */

.decouverte-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    padding-top: 1rem; /* Compenser le menu sticky */
}

/* Progress container - ajuster position pour visibilité sous menu sticky */
.progress-container {
    position: sticky;
    top: var(--header-height); /* Utilise la hauteur dynamique du header */
    z-index: 100;
    margin-bottom: 2rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.decouverte-hero {
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f1e8 50%, #fffcf5 100%);
    padding: 4rem 2rem;
    text-align: center;
    margin: -2rem -2rem 3rem -2rem;
}

.decouverte-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.decouverte-hero h1 strong {
    font-weight: 700;
    color: #B8941F;
}

.decouverte-hero p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================================
   INTRODUCTION NOTICE
   ============================================================================ */
.intro-notice {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    border: 2px solid #D4AF37;
}

.intro-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.intro-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.intro-content p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.intro-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #2c3e50;
    line-height: 1.6;
}

.intro-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: 700;
    font-size: 1.2rem;
}

.intro-content li strong {
    color: #B8941F;
}

.intro-privacy {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-badge {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.privacy-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.intro-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-start {
    background: linear-gradient(135deg, #B8941F 0%, #D4AF37 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */
.progress-container {
    margin: 2rem 0;
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B8941F 0%, #D4AF37 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================================================
   QUESTION CARD
   ============================================================================ */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    display: none;
}

.question-card.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.question-number {
    color: #B8941F;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.question-context {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-left: 3px solid #D4AF37;
    margin-bottom: 0;
    font-style: italic;
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.3;
    flex: 1;
    text-align: right;
}

/* ============================================================================
   ANSWER OPTIONS
   ============================================================================ */
.answers {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.answer-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.answer-option:hover {
    background: #ffffff;
    border-color: #D4AF37;
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
    border-color: #B8941F;
}

.answer-letter {
    background: #D4AF37;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.answer-option.selected .answer-letter {
    background: #B8941F;
}

.answer-text {
    flex: 1;
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.35;
}

/* ============================================================================
   NAVIGATION BUTTONS
   ============================================================================ */
.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #e0e0e0;
    color: #6c757d;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-primary {
    background: linear-gradient(135deg, #B8941F 0%, #D4AF37 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================================
   RESULTS SECTION
   ============================================================================ */
.results-section {
    display: none;
    text-align: center;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.result-icon {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 50%;
}

.result-icon.intimidateur { background: linear-gradient(135deg, #fee 0%, #fdd 100%); }
.result-icon.interrogateur { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.result-icon.plaintif { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }
.result-icon.indifferent { background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); }

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.result-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.result-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.score-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
}

.score-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.score-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.score-fill {
    height: 100%;
    transition: width 1s ease;
}

.score-fill.intimidateur { background: #e74c3c; }
.score-fill.interrogateur { background: #3498db; }
.score-fill.plaintif { background: #27ae60; }
.score-fill.indifferent { background: #95a5a6; }

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.result-description {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Badges Dominant/Secondaire */
.badge-dominant,
.badge-secondary {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dominant {
    background: #D4AF37;
    color: white;
}

.badge-secondary {
    background: #e9ecef;
    color: #6c757d;
}

.score-item.is-dominant {
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.score-item.is-secondary {
    border: 2px solid #e9ecef;
}

/* Mode secondaire */
.secondary-mode {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
}

.secondary-mode h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.secondary-mode h4 span {
    font-weight: 700;
}

.secondary-mode h4 span.intimidateur { color: #e74c3c; }
.secondary-mode h4 span.interrogateur { color: #3498db; }
.secondary-mode h4 span.plaintif { color: #27ae60; }
.secondary-mode h4 span.indifferent { color: #6b7c93; }

.secondary-mode p {
    color: #6c757d;
    margin: 0;
}

/* Curseur de conscience */
.consciousness-cursor {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.consciousness-cursor h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.cursor-explanation {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.cursor-track {
    max-width: 600px;
    margin: 0 auto;
}

.cursor-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cursor-labels span {
    text-align: center;
}

.cursor-labels span:first-child {
    color: #e74c3c;
}

.cursor-labels span:last-child {
    color: #27ae60;
}

.cursor-labels small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
    margin-top: 0.25rem;
}

.cursor-bar {
    position: relative;
    height: 40px;
    background: linear-gradient(90deg, #fee 0%, #fff9e6 50%, #efe 100%);
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    overflow: visible;
    margin-bottom: 1rem;
}

.cursor-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    border-radius: 18px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.cursor-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0%;
}

.cursor-value {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.cursor-interpretation {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.cursor-interpretation strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* ============================================================================
   RESPONSIVE - GRANDS ÉCRANS (17"+)
   ============================================================================ */
@media (min-width: 1400px) {
    .decouverte-container {
        max-width: 1100px;
    }
    
    .decouverte-hero h1 {
        font-size: 3.5rem;
    }
    
    .question-card {
        padding: 2.5rem 3rem;
    }
    
    .question-text {
        font-size: 1.6rem;
    }
    
    .answer-option {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================================================
   RESPONSIVE - TABLETTES (769px - 1024px)
   ============================================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .decouverte-container {
        max-width: 750px;
        padding: 0 1.5rem;
    }
    
    .decouverte-hero h1 {
        font-size: 2.5rem;
    }
    
    .question-card {
        padding: 2.5rem 2rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
}

/* ============================================================================
   RESPONSIVE - MOBILES (max 768px)
   ============================================================================ */
@media (max-width: 768px) {
    .decouverte-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .decouverte-hero {
        padding: 2.5rem 1.5rem;
        margin: -1rem -1rem 2rem -1rem;
    }
    
    .decouverte-hero h1 {
        font-size: 1.8rem;
    }
    
    .decouverte-hero p {
        font-size: 1rem;
    }
    
    .intro-notice {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
    
    .intro-icon {
        font-size: 2.5rem;
    }
    
    .intro-content li {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .intro-privacy {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .question-card {
        padding: 1.5rem 1rem;
    }
    
    .question-number {
        font-size: 0.8rem;
    }
    
    .question-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .question-context {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .answer-option {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .answer-letter {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .answer-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-buttons .btn {
        width: 100%;
    }
    
    .result-scores {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .progress-container {
        top: 60px;
    }
}

/* ============================================================================
   RESPONSIVE - TRÈS PETITS MOBILES (max 480px)
   ============================================================================ */
@media (max-width: 480px) {
    .decouverte-hero h1 {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .answer-text {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================================================
   ANIMATION POUR LE LOADER
   ============================================================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
