/* Quiz Container */
.quiz-container {
    width: 100%;
    height:  100dvh;
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
}

/* Progress Indicator */
.progress-indicator {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: 100;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--dark-surface);
    background: rgba(26, 22, 20, 0.85);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    border: 1px solid rgba(250, 247, 244, 0.2);
    animation: fadeInDown 0.5s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.progress-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.progress-indicator span {
    font-weight: 700;
}

/* Questions Wrapper */
.questions-wrapper {
    position: relative;
    width: 100%;
    height:  100dvh;
}

/* Question Slide */
.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:  100dvh;
    display: flex;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.question-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.question-slide.slide-out {
    opacity: 0;
    transform: translateY(-100%);
}

/* Desktop Layout */
@media (min-width: 769px) {
    .video-section {
        width: 50%;
        height:  100dvh;
        position: relative;
        overflow: hidden;
    }
    
    .answers-section {
        width: 50%;
        height:  100dvh;
        background: var(--dark-surface);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--spacing-2xl);
        position: relative;
    }
}

/* Video Section */
.question-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 22, 20, 0.3) 0%, rgba(26, 22, 20, 0) 50%, rgba(26, 22, 20, 0.3) 100%);
    pointer-events: none;
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    
}

.video-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-play-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    overflow:visible !important;
}

/* Premier cercle de pulsation */
.video-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-ring 3s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Deuxième cercle de pulsation avec délai */
.video-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-ring 3s ease-out infinite;
    animation-delay: 1.5s;
    z-index: -2;
    pointer-events: none;
}

/* Animation de pulsation */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Effet au survol */
.video-play-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* Animation accélérée au survol */
.video-play-btn:hover::before,
.video-play-btn:hover::after {
    animation-duration: 2s;
}

/* Effet au clic */
.video-play-btn:active {
    transform: scale(0.95);
}

/* Style pour l'icône SVG */
.video-play-btn svg {
    width: 45px;
    height: 45px;
    margin-left: 4px; /* Slight offset for visual centering */
    fill: currentColor;
}

/* Video Controls */
.video-controls {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10;
    background: rgba(26, 22, 20, 0.85);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 50px;
    border: 1px solid rgba(250, 247, 244, 0.2);
    animation: fadeInDown 0.5s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-controls.visible {
    opacity: 1;
    visibility: visible;
}

.video-controls.hidden {
    opacity: 0;
    visibility: hidden;
}

.video-time {
    font-size: var(--font-size-sm);
    color: var(--dark-surface);
    font-weight: 500;
    padding: 0 var(--spacing-xs);
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(250, 247, 244, 0.3);
    color: var(--dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-surface);
}

/* Subtitles Container */
.subtitles-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subtitles-container.active {
    opacity: 1;
}

.subtitle-text {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(5px);
}

/* Start Prompt */
.start-prompt {
    display: none;
    width: 50%;
    height:  100dvh;
    background: var(--dark-surface);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.start-prompt.active {
    display: flex;
}

.start-prompt-content {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.start-prompt-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Hide answers section initially for first question */
.answers-section.hidden {
    display: none;
}

/* Answers Content */
.answers-content {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.question-text {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-shadow: 0 2px 4px rgba(58, 40, 34, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.question-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.7;
}

/* Answers Grid */
.answers-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Text Input Styles */
.text-input-wrapper {
    width: 100%;
    margin-top: var(--spacing-xl);
}

.text-input {
    width: 100%;
    background: #FFF !important;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    transition: all 0.3s ease;
    outline: none;
}

.text-input:focus {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.text-input.multiline {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.text-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Email-SMS Input Styles */
.email-sms-wrapper {
    width: 100%;
    margin-top: var(--spacing-xl);
}

.email-sms-field {
    width: 100%;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.email-input,
.phone-input {
    width: 100%;
    background: #FFF !important;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    transition: all 0.3s ease;
    outline: none;
}

.email-input:focus,
.phone-input:focus {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.email-input.invalid,
.phone-input.invalid {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.05);
}

.email-input::placeholder,
.phone-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.005em;
}

.phone-input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.country-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFF !important;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    transition: all 0.3s ease;
    min-width: 100px;
}

.country-code-wrapper:focus-within {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.plus-prefix {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    margin-right: 2px;
}

.country-code-input {
    background: transparent !important;
    border: none;
    outline: none;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    width: 45px;
    padding: 0;
}

.phone-input {
    flex: 1;
}

/* Answer Button Base */
.answer-btn {
    background: var(--dark-surface-light);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Single Choice Grid */
.answers-grid.single-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Multiple Choice */
.answers-grid.multiple-choice {
    display: grid;
    gap: 0.5rem;
}

.answer-btn.multi-select {
    padding: 0.5rem;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.answer-btn.multi-select .check-mark {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    order: 2; /* Place check-mark at the end */
}

.answer-btn.multi-select.selected .check-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.answer-btn.multi-select .answer-text {
    flex: 1;
    order: 1; /* Place text at the beginning */
}

.answer-icon {
    font-size: var(--font-size-2xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    transition: width 0.3s ease-out;
    z-index: -1;
}

.answer-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.answer-btn:hover::before {
    width: 100%;
}

.answer-btn.selected {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.1);
}

.answer-btn.selected::before {
    width: 100%;
}

.answer-text {
    flex: 1;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Slider Styles */
.slider-wrapper {
    width: 100%;
    margin-top: var(--spacing-xl);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.slider-container {
    position: relative;
    padding: var(--spacing-lg) 0;
    cursor: pointer;
    touch-action: manipulation; /* Allow native slider touch behavior */
    z-index: 1;
}

.slider-container.dragging {
    cursor: grabbing;
}

.slider-container.dragging .slider-thumb {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.slider-container.dragging .slider-value {
    opacity: 1;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 40px; /* Larger touch area */
    opacity: 0;
    cursor: pointer;
    z-index: 10; /* Higher z-index to ensure it's on top */
    top: 50%;
    transform: translateY(-50%);
}

.slider-track {
    width: 100%;
    height: 8px;
    background: var(--dark-surface-light);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    pointer-events: none; /* Don't block touch events */
}

.slider-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 50%;
    transition: width 0.3s ease;
    pointer-events: none; /* Don't block touch events */
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none; /* Don't block touch events */
}

.slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.slider-value {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-surface);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-input:active ~ .slider-thumb .slider-value,
.slider-thumb:hover .slider-value,
.slider-container.dragging .slider-value {
    opacity: 1;
}

/* Dual Choice Styles */
.dual-choice {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.dual-btn {
    flex: 1;
    background: var(--dark-surface-light);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dual-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    transition: width 0.3s ease-out;
    z-index: -1;
}

.dual-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.dual-btn:hover::before {
    width: 100%;
}

.dual-btn.selected {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.1);
}

.dual-btn.selected::before {
    width: 100%;
}

.dual-icon {
    font-size: var(--font-size-4xl);
}

.dual-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
}

.dual-separator {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Next Button */
.next-btn {
    position: absolute;
    bottom: var(--spacing-2xl);
    right: var(--spacing-2xl);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-btn:not(:disabled):hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.next-btn:disabled {
    background: var(--dark-surface-light);
    opacity: 0.5;
}

.next-btn svg {
    width: 32px;
    height: 32px;
    transform: translateX(2px);
}

.next-btn:not(:disabled).pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Results Screen */
.results-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:  100dvh;
    background: linear-gradient(180deg, rgba(250, 247, 244, 1) 0%, rgba(245, 237, 230, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.results-screen.active {
    opacity: 1;
    pointer-events: all;
}

.results-content {
    text-align: center;
    max-width: 600px;
    padding: var(--spacing-2xl);
    animation: scaleIn 0.5s ease-out;
}

.results-content h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.results-message {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.restart-btn {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease-out;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .progress-indicator {
        top: var(--spacing-md);
        left: var(--spacing-md);
        font-size: var(--font-size-lg);
    }
    
    .video-controls {
        top: var(--spacing-md);
        right: var(--spacing-md);
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }
    
    .video-time {
        font-size: var(--font-size-xs);
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .subtitles-container {
        bottom: 20%;
        width: 95%;
    }
    
    .subtitle-text {
        font-size: 16px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .question-slide {
        flex-direction: column;
    }
    
    .video-section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .answers-section {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(250, 247, 244, 0.98) 0%, rgba(250, 247, 244, 0.9) 80%, transparent 100%);
        backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        padding-bottom: var(--spacing-2xl);
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 50vh;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Start Prompt Mobile */
    .start-prompt {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
        backdrop-filter: none;
        padding: 1rem;
        z-index: 10;
        min-height: 25vh;
        max-height: 40vh;
        justify-content: center;
        align-items: flex-end;
    }
    
    .start-prompt-content {
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .start-prompt-content h2 {
        color: white;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        font-weight: 700;
        font-size: 1.8rem;
        margin: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .answers-content {
        animation: slideInUp 0.6s ease-out;
    }
    
    @keyframes slideInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .question-text {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Mobile Grid Adjustments */
    .answers-grid.single-choice {
        grid-template-columns: 1fr;
    }
    
    .answers-grid {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .answer-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .answer-icon {
        font-size: var(--font-size-xl);
    }
    
    .answer-text {
        font-size: var(--font-size-sm);
    }
    
    /* Mobile Text Input */
    .text-input {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .text-input.multiline {
        min-height: 100px;
    }
    
    /* Mobile Dual Choice */
    .dual-choice {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .dual-btn {
        width: 100%;
        flex-direction: row;
        padding: var(--spacing-md);
    }
    
    .dual-icon {
        font-size: var(--font-size-2xl);
    }
    
    .dual-separator {
        display: none;
    }
    
    /* Mobile Slider */
    .slider-labels {
        font-size: var(--font-size-xs);
    }
    
    /* Mobile Next Button */
    .next-btn {
        width: 60px;
        height: 60px;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .next-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Mobile Results */
    .results-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .results-content {
        padding: var(--spacing-lg);
    }
}

/* Mobile Button Styles */
.mobile-text-btn {
    position: absolute;
    right: var(--spacing-xs);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.mobile-text-btn:not(:disabled):hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.mobile-text-btn:disabled {
    background: var(--dark-surface-light);
    opacity: 0.5;
}

.mobile-text-btn svg {
    width: 20px;
    height: 20px;
    transform: translateX(1px);
}

.mobile-text-btn:not(:disabled).pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mobile-fullwidth-btn {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--spacing-xl) * 2);
    max-width: 400px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    z-index: 20;
}

.mobile-fullwidth-btn:not(:disabled):hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.mobile-fullwidth-btn:disabled {
    background: var(--dark-surface-light);
    opacity: 0.5;
}

.mobile-fullwidth-btn svg {
    width: 24px;
    height: 24px;
    transform: translateX(2px);
}

.mobile-fullwidth-btn:not(:disabled).pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
        transform: scale(0.95);
    }
}

/* Subtitles Styles */
.subtitles-container {
    position: absolute;
    bottom: 80px; /* Au-dessus des contrôles vidéo */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subtitles-container.active {
    opacity: 1;
}

.subtitle-text {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
    word-wrap: break-word;
    hyphens: auto;
}

.subtitle-text:empty {
    display: none;
}

/* Subtitles toggle button active state */
.subtitles-toggle.active {
    background: var(--primary-color);
    color: white;
}

.subtitles-toggle.active svg {
    color: white;
}

/* Mobile adjustments for subtitles */
@media (max-width: 768px) {
    .subtitles-container {
        bottom: 60px;
        width: 95%;
    }
    
    .subtitle-text {
        font-size: 14px;
        padding: 10px 16px;
    }
}

