/**
 */

:root {
    --bosquet-primary: #276346;
    --bosquet-primary-dark: #1e4d36;
    --bosquet-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   CONTENEUR PRINCIPAL
   ========================================================================= */

.narrative-choice-container {
    margin: 3rem 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14pt;
    line-height: 1.6;
}

/* ============================================================================
   ZONE DES BOUTONS
   ========================================================================= */

.narrative-choice-buttons {
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ============================================================================
   BOUTONS - Hover sophistiqué du hero + ombres amplifiées
   ========================================================================= */

.choice-button {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    background: white;
    border: 1px solid rgba(39, 99, 70, 0.1);
    border-radius: 12px;
    color: #27272a;
    font-size: 15pt;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.4s var(--bosquet-transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ombres AMPLIFIÉES au repos pour marquer les boutons */
    box-shadow: 
        0 8px 20px rgba(39, 99, 70, 0.18),
        0 4px 10px rgba(39, 99, 70, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Effet de fond avec gradient + patterns (comme le hero) */
.choice-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bosquet-primary) 0%, var(--bosquet-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--bosquet-transition);
    z-index: -1;
}

/* Pattern subtil (comme le hero) */
.choice-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    opacity: 0;
    transition: opacity 0.4s var(--bosquet-transition);
    z-index: -1;
}

/* Hover sophistiqué identique au hero */
.choice-button:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.01);
    /* Ombres ULTRA amplifiées au hover */
    box-shadow: 
        0 20px 50px rgba(39, 99, 70, 0.35),
        0 10px 25px rgba(39, 99, 70, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.choice-button:hover::before,
.choice-button:hover::after {
    opacity: 1;
}

.choice-button:active {
    transform: translateY(-2px) scale(1);
    transition: all 0.15s var(--bosquet-transition);
}

/* Mode sombre : boutons */
.masterstudy-course-player-content_dark-mode .choice-button {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(58, 122, 90, 0.2);
    color: #e2e8f0;
    /* Ombres amplifiées mode sombre */
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.masterstudy-course-player-content_dark-mode .choice-button::before {
    background: linear-gradient(135deg, #2d7a4f 0%, #1e5a38 100%);
}

.masterstudy-course-player-content_dark-mode .choice-button:hover {
    box-shadow: 
        0 20px 50px rgba(45, 122, 79, 0.4),
        0 10px 25px rgba(45, 122, 79, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   ZONE DE RÉVÉLATION
   ========================================================================= */

.narrative-choice-reveal {
    animation: fadeInUp 0.6s ease-out;
    max-width: 650px;
    margin: 2rem auto 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rappel du choix - Badge moderne */
.choice-reminder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(39, 99, 70, 0.08);
    border: none;
    border-radius: 50px;
    margin: 0 auto 1.5rem;
    font-style: italic;
    color: var(--bosquet-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13pt;
    font-weight: 500;
    text-align: center;
    width: fit-content;
    display: block;
}

.masterstudy-course-player-content_dark-mode .choice-reminder {
    background: rgba(58, 122, 90, 0.15);
    color: #86efac;
}

.choice-reminder small {
    font-size: 1em;
}

/* Réponse - Style hero avec ombres amplifiées */
.choice-response {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--bosquet-primary) 0%, var(--bosquet-primary-dark) 100%);
    border: none;
    border-radius: 16px;
    margin-bottom: 2rem;
    /* Ombres amplifiées comme les boutons */
    box-shadow: 
        0 20px 50px rgba(39, 99, 70, 0.3),
        0 10px 25px rgba(39, 99, 70, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Pattern identique au hero */
.choice-response::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0.1;
}

.choice-response::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

.choice-response p {
    margin: 0;
    line-height: 1.7;
    color: white;
    font-size: 15pt;
    position: relative;
    z-index: 1;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Mode sombre : réponse */
.masterstudy-course-player-content_dark-mode .choice-response {
    background: linear-gradient(135deg, #1e5a38 0%, #15442a 100%);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   RESPONSIVE MOBILE
   ========================================================================= */

@media (max-width: 768px) {
    .narrative-choice-container {
        margin: 2rem 0;
        font-size: 13pt;
    }
    
    .narrative-choice-buttons {
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .choice-button {
        padding: 1rem 1.5rem;
        font-size: 14pt;
        border-radius: 10px;
        /* Ombres réduites sur mobile pour performances */
        box-shadow: 
            0 3px 8px rgba(39, 99, 70, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    .choice-button:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 12px 30px rgba(39, 99, 70, 0.25),
            0 6px 15px rgba(0, 0, 0, 0.12);
    }
    
    .choice-response {
        padding: 2rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        box-shadow: 
            0 12px 30px rgba(39, 99, 70, 0.25),
            0 6px 15px rgba(0, 0, 0, 0.1);
    }
    
    .choice-response p {
        font-size: 14pt;
    }
    
    .choice-reminder {
        padding: 0.6rem 1.2rem;
        font-size: 12pt;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .choice-button {
        padding: 0.9rem 1.2rem;
        font-size: 13pt;
    }
    
    .choice-response {
        padding: 1.75rem 1.25rem;
    }
    
    .choice-response p {
        font-size: 13pt;
    }
}

/* ============================================================================
   ANIMATIONS D'ENTRÉE
   ========================================================================= */

.choice-button {
    animation: fadeInButton 0.5s ease-out backwards;
}

.choice-button:nth-child(1) { animation-delay: 0.1s; }
.choice-button:nth-child(2) { animation-delay: 0.2s; }
.choice-button:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}