/* === RESET ET BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gold-gradient: linear-gradient(45deg, #ffd700, #ffed4e);
    --success-gradient: linear-gradient(45deg, #4caf50, #66bb6a);
    --danger-gradient: linear-gradient(45deg, #f44336, #e57373);
    --warning-gradient: linear-gradient(45deg, #ff9800, #ffb74d);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-accent: #ffd700;
    
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 12px 35px rgba(0, 0, 0, 0.3);
    
    --border-radius: 15px;
    --border-radius-small: 8px;
    --border-radius-large: 25px;
    
    --animation-speed: 0.3s;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--secondary-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === ÉCRANS PRINCIPAUX === */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen.active {
    display: flex;
}

/* === ÉCRAN D'ACCUEIL === */
#welcome-screen {
    background: var(--primary-gradient);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#welcome-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes backgroundMove {
    0% { transform: translate(-25%, -25%) rotate(0deg); }
    100% { transform: translate(-25%, -25%) rotate(360deg); }
}

.welcome-container {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}

.game-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 3s ease-in-out infinite;
    line-height: 1.1;
}

@keyframes titlePulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
        transform: scale(1.02);
    }
}

.game-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

.start-form {
    margin-bottom: 2rem;
}

.start-btn {
    padding: 15px 40px;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 700;
    background: var(--danger-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--animation-speed) var(--animation-bounce);
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    filter: brightness(1.1);
}

.start-btn:active {
    transform: translateY(0) scale(0.98);
}

.questions-count {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.questions-count p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.count-highlight {
    font-weight: 700;
    color: var(--text-accent);
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navigation-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--animation-speed) ease;
    box-shadow: var(--shadow-light);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
    text-decoration: none;
}

.specific-question-info {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--warning-gradient);
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-weight: 600;
    animation: specificInfoPulse 2s ease-in-out infinite alternate;
}

@keyframes specificInfoPulse {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.feature-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feature-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--text-accent);
}

.example-link {
    color: var(--text-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.example-link:hover {
    color: #fff;
}

.error-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.error-message {
    background: var(--danger-gradient);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(244, 67, 54, 0.3);
    text-align: center;
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    width: 100%;
    animation: errorPulse 2s ease-in-out infinite alternate;
    overflow: hidden; /* Empêcher le débordement */
    box-sizing: border-box;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    display: block;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    word-wrap: break-word;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    word-wrap: break-word;
}

.error-message .action-btn {
    margin-top: 0.5rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.error-back-btn .btn-text-short {
    display: none;
}

.error-back-btn .btn-text-full {
    display: inline;
}

@keyframes errorPulse {
    0% { 
        box-shadow: var(--shadow-medium), 0 0 10px rgba(244, 67, 54, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: var(--shadow-medium), 0 0 25px rgba(244, 67, 54, 0.6);
        transform: scale(1.02);
    }
}

/* === ÉCRAN DE JEU === */
#game-screen {
    background: var(--secondary-gradient);
    flex-direction: row;
    align-items: stretch;
}

.game-container {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: calc(100% - 300px);
}

.game-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
    text-align: center;
}

.info-text {
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 500;
}

.amount-value {
    font-weight: 900;
    color: var(--text-accent);
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.info-text.specific-question-mode {
    background: var(--warning-gradient);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-medium);
    text-align: center;
    animation: specificModeGlow 2s ease-in-out infinite alternate;
}

@keyframes specificModeGlow {
    0% { box-shadow: var(--shadow-medium), 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: var(--shadow-medium), 0 0 20px rgba(255, 215, 0, 0.6); }
}

.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 300px; /* Hauteur minimale pour éviter les variations */
}

.question-text {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
}

.question-submitter {
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.submitter-name {
    color: var(--text-accent);
    font-weight: 600;
}

.question-media {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.media-content {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
}

.answers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.answer {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(5px);
    min-height: 60px;
    /* Désactiver la détection automatique de téléphone sur iOS */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.answer:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.answer.selected {
    background: var(--warning-gradient);
    border-color: #ff9800;
    color: white;
    font-weight: 600;
    transform: scale(1.02);
}

.answer.correct {
    background: var(--success-gradient);
    border-color: #4caf50;
    animation: correctPulse 0.6s ease-in-out;
}

.answer.wrong {
    background: var(--danger-gradient);
    border-color: #f44336;
    animation: wrongShake 0.6s ease-in-out;
}

.answer.eliminated {
    opacity: 0.3;
    pointer-events: none;
    background: rgba(100, 100, 100, 0.3);
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.answer-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.answer-text {
    flex: 1;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.3;
    /* Protection supplémentaire contre la détection de téléphone */
    pointer-events: auto;
    -webkit-touch-callout: none;
}

.lifelines-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.lifeline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: white;
    backdrop-filter: blur(5px);
    min-width: 80px;
}

.lifeline:hover:not(.used):not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.lifeline.used,
.lifeline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.2);
}

.lifeline.waiting-for-answers {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.2);
}

.lifeline-icon {
    font-size: 1.5rem;
}

.lifeline-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.action-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:not(.secondary) {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    filter: brightness(1.1);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* === ÉCHELLE DES GAINS === */
.prize-ladder {
    width: 280px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.prize-ladder h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ladder-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.ladder-container::-webkit-scrollbar {
    width: 6px;
}

.ladder-container::-webkit-scrollbar-track {
    background: transparent;
}

.ladder-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.ladder-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    transition: all var(--animation-speed) ease;
}

.ladder-step.current {
    background: var(--warning-gradient);
    border-color: #ff9800;
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    animation: currentStepPulse 2s ease-in-out infinite;
}

.ladder-step.completed {
    background: var(--success-gradient);
    border-color: #4caf50;
}

.ladder-step.milestone {
    border-color: var(--text-accent);
    border-width: 2px;
    background: rgba(255, 215, 0, 0.1);
}

@keyframes currentStepPulse {
    0%, 100% { box-shadow: var(--shadow-medium); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.6); }
}

.step-number {
    font-weight: 700;
    font-size: 0.9rem;
}

.step-amount {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Éléments cachés */
.hidden-form,
#lifeline-modal,
#walk-away-modal {
    display: none;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--animation-speed) ease;
}

.close:hover {
    color: white;
}

#modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

#modal-body {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Centrer horizontalement le bouton Continuer dans les modales */
.modal-content .action-btn {
    display: block;
    margin: 0 auto;
}

/* Styles pour les boutons de la modale de confirmation */
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-buttons .action-btn {
    flex: 1;
    max-width: 200px;
    margin: 0;
}

/* === STYLES POUR L'AVIS DU PUBLIC === */
.audience-poll {
    margin: 1rem 0;
}

.poll-bar {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    gap: 1rem;
}

.poll-label {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
}

.poll-visual {
    flex: 1;
    height: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.poll-fill {
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    border-radius: 12px;
    transition: width 0.8s ease-out;
    animation: fillAnimation 1s ease-out;
}

@keyframes fillAnimation {
    from { width: 0 !important; }
}

.poll-percentage {
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    color: #ffd700;
}

/* Animation pour le vote en cours */
.voting-status {
    margin: 1.5rem 0;
    text-align: center;
}

.voting-status p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffd700;
    font-size: 1.1rem;
}

.voting-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px auto;
    max-width: 300px;
}

.voting-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease-out;
}

@keyframes pulseVoting {
    0%, 100% { 
        width: 20% !important;
        opacity: 0.6;
    }
    50% { 
        width: 60% !important;
        opacity: 1;
    }
}

.poll-fill.voting-progress {
    background: linear-gradient(45deg, #2196f3, #64b5f6);
    animation: pulseVoting 2s infinite ease-in-out;
    width: 20%;
}

#vote-timer {
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    #game-screen {
        flex-direction: column;
    }
    
    .game-container {
        max-width: 100%;
        order: 1;
    }
    
    .prize-ladder {
        width: 100%;
        order: 2;
        max-height: 200px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ladder-container {
        flex-direction: row-reverse;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.5rem 0;
        scroll-behavior: smooth;
    }
    
    .ladder-step {
        min-width: 120px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .question-container {
        padding: 1.5rem;
        min-height: 280px; /* Hauteur adaptée pour tablette */
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answers-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .answer {
        padding: 1rem;
        min-height: 50px;
    }
    
    .answer-text {
        font-size: 0.9rem;
    }
    
    .lifelines-container {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .lifeline {
        min-width: 70px;
        padding: 0.6rem 0.8rem;
    }
    
    .player-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .prize-ladder {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .recap-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    #recap-modal-title {
        font-size: 1.5rem;
    }
    
    .recap-content {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .recap-answers {
        grid-template-columns: 1fr;
    }
    
    .recap-question {
        padding: 1rem;
    }

    /* Styles pour le message d'erreur sur tablette */
    .error-container {
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .error-message {
        padding: 1.5rem;
        max-width: none;
        margin: 0;
    }

    .error-message i {
        font-size: 2.5rem;
    }

    .error-message h3 {
        font-size: 1.3rem;
    }

    .error-message p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .error-message .action-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }

    .error-back-btn .btn-text-short {
        display: inline;
    }

    .error-back-btn .btn-text-full {
        display: none;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .game-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .start-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .questions-count {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .question-container {
        padding: 1rem;
        min-height: 250px; /* Hauteur adaptée pour mobile */
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answer {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .answer-letter {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .lifeline {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .lifeline-icon {
        font-size: 1.2rem;
    }
    
    .lifeline-text {
        font-size: 0.7rem;
    }
    
    .ladder-step {
        min-width: 100px;
        padding: 0.6rem 0.8rem;
    }
    
    .step-number,
    .step-amount {
        font-size: 0.8rem;
    }
    
    .success-bubble {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
    
    .recap-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 0.8rem;
    }
    
    #recap-modal-title {
        font-size: 1.3rem;
    }
    
    .recap-content {
        padding: 0.8rem;
    }
    
    .recap-question {
        padding: 0.8rem;
    }
    
    .recap-status {
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    /* Styles pour le message d'erreur sur mobile */
    .error-container {
        margin: 0.5rem 0;
        padding: 0 0.5rem;
    }

    .error-message {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .error-message i {
        font-size: 2rem;
    }

    .error-message h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .error-message p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .error-message .action-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 250px;
        min-width: auto;
    }

    .error-back-btn .btn-text-short {
        display: inline;
    }

    .error-back-btn .btn-text-full {
        display: none;
    }
}

/* === ANIMATIONS ET EFFETS === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === MODES SOMBRES === */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 12px 35px rgba(0, 0, 0, 0.5);
    }
}

/* === BULLE DE SUCCÈS === */
.success-bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px 30px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    scale: 0.8;
    animation: bubbleAppear 0.5s ease-out forwards;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        scale: 0.8;
        transform: translate(-50%, -50%) translateY(20px);
    }
    100% {
        opacity: 1;
        scale: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.success-bubble.fade-out {
    animation: bubbleFadeOut 0.5s ease-in forwards;
}

@keyframes bubbleFadeOut {
    0% {
        opacity: 1;
        scale: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        scale: 0.8;
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* === ANIMATION RÉVÉLATION RÉPONSES === */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MODAL RÉCAPITULATIF === */
.recap-modal-content {
    max-width: 95%;
    width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#recap-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

.recap-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.recap-question {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.recap-question.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.recap-question.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.recap-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.recap-media {
    margin: 1rem 0;
    text-align: center;
}

.recap-media img, .recap-media video, .recap-media audio {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.recap-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.recap-answer {
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
}

.recap-answer.selected {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    font-weight: 600;
}

.recap-answer.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    font-weight: 600;
}

.recap-answer.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    font-weight: 600;
}

.recap-answer-letter {
    font-weight: 700;
    margin-right: 0.5rem;
}

.recap-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.recap-status.correct {
    color: #4caf50;
}

.recap-status.incorrect {
    color: #f44336;
}

.recap-status-icon {
    font-size: 1.2rem;
}

/* === FOCUS ET ACCESSIBILITÉ === */
.answer:focus-visible,
.lifeline:focus-visible,
.action-btn:focus-visible,
.start-btn:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

.answer:focus {
    outline: none;
}

/* === ORIENTATION PAYSAGE MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    #game-screen {
        flex-direction: row;
    }
    
    .game-container {
        max-width: calc(100% - 250px);
    }
    
    .prize-ladder {
        width: 250px;
        max-height: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
    }
    
    .ladder-container {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .question-container {
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .answers-container {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

/* === STYLES POUR L'INTERFACE TWITCH === */

/* Joker désactivé en mode Twitch */
.lifeline.disabled-twitch {
    background: linear-gradient(45deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.6;
}

.lifeline.disabled-twitch:hover {
    transform: none;
    box-shadow: var(--shadow-light);
}

/* Container principal du vote Twitch */
.twitch-vote-container {
    padding: 20px;
    background: linear-gradient(135deg, #9146ff 0%, #6441a5 100%);
    border-radius: var(--border-radius);
    color: white;
    max-height: 70vh;
    overflow-y: auto;
}

/* Status du vote avec timer */
.twitch-vote-status {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
}

.vote-timer {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.timer-value {
    color: #ffd700;
    font-size: 1.4em;
}

.vote-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4aa);
    transition: width 1s linear;
    border-radius: 4px;
}

/* Info zone dans la modal */
.vote-external-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius-small);
}

.vote-external-info p {
    margin: 8px 0;
    color: #ffd700;
    font-weight: 500;
}

.vote-modal-actions {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
}

/* Question du vote */
.vote-question {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
}

.vote-answers {
    margin-top: 15px;
}

.vote-answer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    border-left: 4px solid #ffd700;
}

.vote-letter {
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.vote-text {
    flex: 1;
    margin: 0 15px;
    font-weight: 500;
}

.vote-command {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #00ff88;
}

/* Instructions de vote */
.vote-instructions {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
}

.vote-commands {
    margin: 10px 0;
}

.vote-cmd {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    color: #00ff88;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #00ff88;
}

/* Feed en temps réel des votes */
.vote-live-feed {
    margin-top: 20px;
}

.vote-live-feed h4 {
    margin-bottom: 15px;
    color: #ffd700;
    text-align: center;
}

.live-votes-container {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
    padding: 10px;
}

.live-votes-container::-webkit-scrollbar {
    width: 6px;
}

.live-votes-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.live-votes-container::-webkit-scrollbar-thumb {
    background: #9146ff;
    border-radius: 3px;
}

.no-votes {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 20px 0;
}

.voter-notification {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #00ff88;
    animation: voterAppear 0.3s ease-out;
}

@keyframes voterAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zone externe de vote Twitch */
.external-vote-zone {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: 80vh;
    background: linear-gradient(135deg, #9146ff 0%, #6441a5 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(145, 70, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.external-vote-zone.show {
    opacity: 1;
    transform: translateX(0);
}

.external-vote-zone.hide {
    opacity: 0;
    transform: translateX(100%);
}

.external-vote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.external-vote-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.external-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.external-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.external-vote-timer {
    padding: 15px 20px;
    text-align: center;
}

.external-timer-display {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.external-timer-value {
    color: #ffd700;
    font-size: 1.3em;
}

.external-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.external-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4aa);
    transition: width 1s linear;
    border-radius: 4px;
}

.external-vote-commands {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.external-vote-commands p {
    margin: 0;
    font-size: 0.9em;
    text-align: center;
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.external-live-votes {
    padding: 15px 20px;
}

.external-live-votes h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #ffd700;
    text-align: center;
}

.external-votes-list {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.external-votes-list::-webkit-scrollbar {
    width: 4px;
}

.external-votes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.external-votes-list::-webkit-scrollbar-thumb {
    background: #9146ff;
    border-radius: 2px;
}

.external-no-votes {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 10px 0;
    font-size: 0.9em;
}

.external-voter-notification {
    padding: 6px 10px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #00ff88;
    animation: externalVoterAppear 0.3s ease-out;
    font-size: 0.9em;
}

@keyframes externalVoterAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive pour la zone externe */
@media (max-width: 768px) {
    .external-vote-zone {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .external-vote-zone {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .external-vote-header,
    .external-vote-timer,
    .external-vote-commands,
    .external-live-votes {
        padding: 10px 15px;
    }
    
    .external-timer-display {
        font-size: 1.1em;
    }
    
    .external-timer-value {
        font-size: 1.2em;
    }
}

/* Bulles de vote Twitch */
.vote-bubble {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: white;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 60px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vote-bubble.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.vote-bubble:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(145, 70, 255, 0.6);
}

.bubble-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bubble-votes {
    font-size: 1.1em;
    font-weight: 900;
    color: #ffffff;
}

.bubble-label {
    font-size: 0.65em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bubble-percentage {
    font-size: 0.85em;
    color: #ffd700;
    font-weight: bold;
}

/* Responsive pour les bulles */
@media (max-width: 768px) {
    .vote-bubble {
        top: -8px;
        right: -8px;
        padding: 6px 10px;
        min-width: 50px;
        font-size: 0.75rem;
    }
    
    .bubble-votes {
        font-size: 1em;
    }
    
    .bubble-label {
        font-size: 0.6em;
    }
    
    .bubble-percentage {
        font-size: 0.8em;
    }
}

/* Container des résultats Twitch */
.twitch-results-container {
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: var(--border-radius);
    color: white;
}

.vote-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
}

.vote-summary p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* Barres des résultats */
.results-poll {
    margin: 20px 0;
}

.result-bar {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
}

.result-label {
    background: #ffd700;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    margin-right: 15px;
}

.result-visual {
    flex: 1;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
    position: relative;
}

.result-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4aa);
    border-radius: 12px;
    transition: width 2s ease-out;
    animation: resultFillAnimation 2s ease-out;
}

@keyframes resultFillAnimation {
    from {
        width: 0% !important;
    }
}

.result-percentage {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    min-width: 50px;
    text-align: right;
    margin-right: 10px;
}

.result-votes {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    min-width: 80px;
    text-align: right;
}

.twitch-footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.twitch-footer p {
    font-size: 1.1em;
    font-weight: 500;
    color: #ffd700;
}

/* Responsivité pour l'interface Twitch */
@media (max-width: 768px) {
    .twitch-vote-container,
    .twitch-results-container {
        padding: 15px;
        max-height: 80vh;
    }
    
    .vote-answer-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .vote-text {
        margin: 8px 0;
    }
    
    .result-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .result-label {
        margin-right: 0;
        text-align: center;
    }
    
    .result-visual {
        margin-right: 0;
        margin: 5px 0;
    }
    
    .result-percentage,
    .result-votes {
        text-align: center;
        min-width: auto;
    }
    
    .vote-cmd {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vote-timer {
        font-size: 1em;
    }
    
    .timer-value {
        font-size: 1.2em;
    }
    
    .twitch-vote-status,
    .vote-question,
    .vote-instructions,
    .vote-summary,
    .twitch-footer {
        padding: 10px;
    }
    
    .live-votes-container {
        max-height: 100px;
    }
}

/* === ANIMATIONS POUR LES NOTIFICATIONS === */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Notifications de tokens */
#twitch-token-warning {
    animation: fadeInWarning 0.3s ease-out;
}

@keyframes fadeInWarning {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === STYLES POUR LE SONDAGE === */
.sondage-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-heavy), 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    color: #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sondage-container.show {
    display: block;
    animation: sondageAppear 0.3s ease;
}

@keyframes sondageAppear {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.sondage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    cursor: grab;
    user-select: none;
    position: relative;
}

.sondage-header:active {
    cursor: grabbing;
}

.sondage-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sondage-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sondage-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sondage-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.voted-badge {
    background: var(--success-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.active-badge {
    background: var(--warning-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.sondage-content {
    position: relative;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.sondage-content::-webkit-scrollbar {
    width: 6px;
}

.sondage-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sondage-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
}

.sondage-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #333;
}

.ranking-instructions {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius-small);
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #667eea;
}

.ranking-instructions i {
    font-size: 1rem;
}

.ranking-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ranking-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius-small);
    cursor: grab;
    transition: all var(--animation-speed) ease;
    user-select: none;
}

.ranking-option:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(3px);
}

.ranking-option.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    box-shadow: var(--shadow-medium);
}

.ranking-option.touch-dragging {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 1000;
}

.ranking-number {
    background: var(--primary-gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ranking-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.ranking-handle {
    color: #999;
    font-size: 1rem;
    cursor: grab;
    padding: 0.2rem;
    border-radius: 3px;
    transition: color 0.2s ease;
}

.ranking-handle:hover {
    color: #667eea;
}

.ranking-option:active .ranking-handle {
    cursor: grabbing;
}

/* Boutons de navigation pour mobile */
.ranking-nav-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
    color: #667eea;
    font-size: 0.7rem;
}

.ranking-nav-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.ranking-nav-btn:active {
    transform: scale(0.95);
}

.ranking-nav-btn.up-btn {
    margin-bottom: 2px;
}

.ranking-nav-btn.down-btn {
    margin-top: 2px;
}

/* Zone de drop */
.drop-zone {
    height: 4px;
    background: #4CAF50;
    margin: 8px 0;
    border-radius: 2px;
    transition: all 0.2s ease;
    animation: dropZonePulse 0.6s ease;
}

@keyframes dropZonePulse {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1.1); }
    100% { opacity: 1; transform: scaleX(1); }
}

.sondage-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sondage-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    border: 2px solid transparent;
}

.sondage-option:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(3px);
    border-color: rgba(102, 126, 234, 0.3);
}

.sondage-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.sondage-option input[type="radio"]:checked + .option-text {
    color: #667eea;
    font-weight: 700;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    color: #333;
}

.sondage-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vote-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--animation-speed) var(--animation-bounce);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #cccccc !important; /* Fond gris clair pour les boutons disabled */
    color: #666666 !important; /* Texte gris foncé pour les boutons disabled */
    border: 1px solid #999999 !important; /* Bordure grise pour les boutons disabled */
}

.sondage-voted {
    text-align: center;
    padding: 1rem 0;
}

.voted-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--success-gradient);
    border-radius: var(--border-radius-small);
    font-weight: 600;
    color: white;
}

.sondage-message {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: fadeInUp 0.3s ease;
    font-size: 0.85rem;
    box-shadow: var(--shadow-medium);
}

.sondage-message.success {
    background: var(--success-gradient);
    color: white;
}

.sondage-message.error {
    background: var(--danger-gradient);
    color: white;
}

/* Responsive pour le sondage */
@media (max-width: 768px) {
    .sondage-container {
        width: 350px;
        max-width: 95vw;
        right: 10px;
    }
    
    .sondage-header {
        padding: 0.8rem 1rem;
    }
    
    .sondage-header h3 {
        font-size: 1.1rem;
    }
    
    .sondage-content {
        padding: 1rem;
    }
    
    .sondage-question {
        font-size: 1rem;
    }
    
    .sondage-option {
        padding: 0.7rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .vote-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Améliorations pour le tactile */
    .ranking-option {
        padding: 12px 10px;
        margin-bottom: 6px;
        min-height: 50px;
        touch-action: pan-y;
    }
    
    .ranking-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .ranking-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .ranking-handle {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 4px;
    }
    
    .ranking-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin: 1px;
    }
    
    .ranking-instructions {
        font-size: 0.8rem;
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    .ranking-instructions i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sondage-container {
        width: 320px;
        max-width: 98vw;
        right: 5px;
    }
    
    .sondage-header {
        padding: 0.6rem 0.8rem;
    }
    
    .sondage-header h3 {
        font-size: 1rem;
    }
    
    .sondage-content {
        padding: 0.8rem;
    }
    
    .sondage-question {
        font-size: 0.95rem;
    }
    
    .sondage-option {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
    
    .vote-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Améliorations pour le tactile sur très petits écrans */
    .ranking-option {
        padding: 10px 8px;
        margin-bottom: 4px;
        min-height: 45px;
    }
    
    .ranking-number {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .ranking-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .ranking-handle {
        padding: 2px;
    }
    
    .ranking-nav-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        margin: 1px;
    }
    
    .ranking-instructions {
        font-size: 0.75rem;
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .ranking-instructions i {
        font-size: 0.8rem;
    }
}

/* Styles pour les boutons désactivés dans les modals */
#modal-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
    transform: none;
    box-shadow: none;
}

#modal-continue-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Styles pour masquer le bouton de fermeture */
#modal-close-btn[style*="display: none"] {
    display: none !important;
}

/* Styles pour empêcher les clics sur le modal pendant le vote */
#lifeline-modal[style*="pointer-events: none"] {
    pointer-events: none;
}

#lifeline-modal[style*="pointer-events: none"] .modal-content {
    pointer-events: auto;
}

/* === MESSAGE DÉFILANT === */
.scrolling-message {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    border-top: 2px solid var(--text-accent);
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.scrolling-content {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    animation: scrollLeft 20s linear infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scrolling-content a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.scrolling-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--text-accent);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .scrolling-content {
        font-size: 12px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .scrolling-content {
        font-size: 11px;
        padding: 8px 0;
    }
}

/* === SYSTÈME DE VOTE === */
.question-vote-section {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: flex-end;
    transition: opacity 0.5s ease;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    backdrop-filter: blur(10px);
    min-width: auto;
    width: auto;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vote-btn.vote-up.active {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    color: #28a745;
}

.vote-btn.vote-down.active {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    color: #dc3545;
}

.vote-btn svg {
    width: 16px;
    height: 16px;
}

.vote-count {
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    font-size: 11px;
}

/* Modale de commentaire */
.vote-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vote-modal.show {
    opacity: 1;
}

.vote-modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vote-modal.show .vote-modal-content {
    transform: scale(1);
}

.vote-modal-close {
    color: rgba(255, 255, 255, 0.8);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 20px;
}

.vote-modal-close:hover {
    color: #fff;
}

.vote-modal h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
}

.vote-modal-info {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 16px;
}

#voteTypeText {
    font-size: 20px;
    margin: 0 5px;
}

/* Section des motifs de vote */
.vote-reason-section {
    margin-bottom: 20px;
}

.vote-reason-section label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.vote-reason-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vote-reason-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.vote-reason-select option {
    background: #1e3c72;
    color: #fff;
    padding: 8px;
}

/* Section de commentaire conditionnelle */
.vote-comment-section {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.vote-comment-section label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

#voteComment {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

#voteComment:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

#voteComment::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.vote-modal-counter {
    text-align: right;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.vote-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.vote-modal-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Notification */
.vote-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.vote-notification.show {
    transform: translateX(0);
}

.vote-notification.success {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.vote-notification.error {
    background: linear-gradient(45deg, #f44336, #e57373);
}

/* Responsive */
@media (max-width: 768px) {
    .vote-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20% auto;
    }
    
    .vote-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .vote-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .vote-count {
        font-size: 10px;
        min-width: 14px;
    }
}

.ranking-instructions i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Styles pour le sondage de type single_choice */
.single-choice-instructions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-small);
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    color: #2c3e50; /* Couleur sombre pour le contraste */
}

.single-choice-instructions i {
    color: #667eea;
    margin-right: 0.5rem;
}

.single-choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.single-choice-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9); /* Fond blanc avec légère transparence */
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    border: 2px solid transparent;
    position: relative;
}

.single-choice-option:hover {
    background: rgba(255, 255, 255, 1); /* Fond blanc opaque au hover */
    transform: translateX(3px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-choice-option:has(input:checked) {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateX(5px);
}

.vote-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.vote-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    cursor: pointer;
    padding: 0.2rem 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    position: relative;
    background: transparent;
    transition: all var(--animation-speed) ease;
    flex-shrink: 0;
}

.vote-radio:checked + .vote-label .radio-custom {
    background: #667eea;
    border-color: #667eea;
    transform: scale(1.1);
}

.vote-radio:checked + .vote-label .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    color: #2c3e50; /* Couleur sombre pour le contraste */
    transition: color var(--animation-speed) ease;
}

.vote-radio:checked + .vote-label .option-text {
    color: #667eea;
    font-weight: 700;
}

.single-choice-option:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.ranking-instructions i {
    font-size: 0.9rem;
}



.ranking-instructions i {
    font-size: 0.8rem;
}



/* Styles responsives pour single_choice */
@media (max-width: 768px) {
    .single-choice-instructions {
        font-size: 0.8rem;
        padding: 8px 12px;
        margin-bottom: 12px;
        color: #2c3e50; /* Maintenir la couleur sombre */
    }
    
    .single-choice-instructions i {
        font-size: 0.9rem;
    }
    
    .single-choice-option {
        padding: 12px 10px;
        min-height: 50px;
        background: rgba(255, 255, 255, 0.95); /* Fond plus opaque sur mobile */
    }
    
    .single-choice-option:hover {
        background: rgba(255, 255, 255, 1);
    }
    
    .radio-custom {
        width: 18px;
        height: 18px;
    }
    
    .vote-radio:checked + .vote-label .radio-custom::after {
        width: 6px;
        height: 6px;
    }
    
    .option-text {
        font-size: 0.9rem;
        line-height: 1.3;
        color: #2c3e50; /* Maintenir la couleur sombre */
    }
}

@media (max-width: 480px) {
    /* Styles responsives pour single_choice sur mobile */
    .single-choice-instructions {
        font-size: 0.75rem;
        padding: 6px 10px;
        margin-bottom: 10px;
        color: #2c3e50; /* Maintenir la couleur sombre */
    }
    
    .single-choice-instructions i {
        font-size: 0.8rem;
    }
    
    .single-choice-option {
        padding: 10px 8px;
        min-height: 45px;
        background: rgba(255, 255, 255, 0.98); /* Fond très opaque sur petit mobile */
    }
    
    .single-choice-option:hover {
        background: rgba(255, 255, 255, 1);
    }
    
    .radio-custom {
        width: 16px;
        height: 16px;
    }
    
    .vote-radio:checked + .vote-label .radio-custom::after {
        width: 5px;
        height: 5px;
    }
    
    .option-text {
        font-size: 0.85rem;
        line-height: 1.2;
        color: #2c3e50; /* Maintenir la couleur sombre */
    }
}

/* S'assurer qu'aucun bouton de vote ne s'affiche quand l'utilisateur a voté */
.sondage-voted .vote-btn,
.sondage-voted .sondage-actions {
    display: none !important;
}