@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Open+Sans:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a017;      /* Jaune doré foncé */
    --light: #fff9e6;        /* Beige très clair */
    --dark: #1a1a1a;         /* Noir profond */
    --accent: #8b6914;       /* Marron doré */
    --shadow: rgba(26, 26, 26, 0.4);
    --brown-dark: #4a3a1f;   /* Marron foncé */
    --yellow-bright: #f5d76e; /* Jaune clair */
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(95, 160, 4, 0.03) 2px, rgba(95, 160, 4, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Dofus-inspired Design System */
.dofus-btn {
    background: linear-gradient(180deg, #f5d76e 0%, #d4a017 50%, #8b6914 100%);
    color: #1a1a1a;
    border: 3px solid #8b6914;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 
        0 4px 0 #6b4f0f,
        0 8px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    letter-spacing: 0.5px;
}

.dofus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #6b4f0f,
        0 12px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dofus-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #6b4f0f,
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dofus-btn.secondary {
    background: linear-gradient(180deg, #fff9e6 0%, #f6f4f2 50%, #e8e4df 100%);
    color: var(--dark);
    border-color: #c8b568;
    box-shadow: 
        0 4px 0 #c8b568,
        0 8px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dofus-btn.secondary:hover {
    box-shadow: 
        0 6px 0 #c8b568,
        0 12px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dofus-btn.secondary:active {
    box-shadow: 
        0 2px 0 #c8b568,
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.dofus-input {
    background: var(--light);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dofus-input:focus {
    border-color: var(--primary);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(95, 160, 4, 0.3);
}

.dofus-card {
    background: linear-gradient(135deg, #f8f6f3 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.dofus-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('images/ily.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* 0.6 = 60% noir, ajuste entre 0 et 1 */
    z-index: 0;
}

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

.logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: 80px;
    text-transform: uppercase;
    
    /* Dégradé blanc-crème comme Dofus */
    background: linear-gradient(180deg, #ffffff 0%, #fffae6 50%, #f5e6c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Bordure dorée/bronze au lieu du vert */
    -webkit-text-stroke: 2px #8b6914;
    
    /* Ombre réduite et plus subtile */
    filter: 
        drop-shadow(3px 3px 0 #d4a017)
        drop-shadow(6px 6px 15px rgba(0, 0, 0, 0.5));
    
    margin: 60px 0 0px 0;
    position: relative;
}

.tagline {
    font-size: 18px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Home screen modern design */
.home-container {
    max-width: 500px;
    margin: 0 auto;
}

.home-card {
    background: rgba(255, 255, 255, 0.25); /* fond blanc transparent */
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    padding: 40px;
}

.home-input-group {
    margin-bottom: 40px;
}

.home-input {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-input:focus {
    border-color: var(--primary);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 4px rgba(95, 160, 4, 0.15);
    background: rgba(255, 255, 255, 1);
}

.home-input::placeholder {
    color: #999;
    font-weight: 500;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-btn-primary {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(95, 160, 4, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(95, 160, 4, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.home-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 24px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-divider::before,
.home-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.home-divider::before {
    margin-right: 16px;
}

.home-divider::after {
    margin-left: 16px;
}

.home-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #c8b568;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.home-btn-secondary:hover {
    background: rgba(200, 181, 104, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Home Screen */
.home-actions {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Lobby */
.lobby-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    width: 100%;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.player-card {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: var(--light);
    border: 2px solid #8b6914;
    border-radius: 8px;
    padding: 16px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
}

.player-card.host {
    background: linear-gradient(135deg, #f8d568 0%, #e8c558 100%);
    color: var(--dark);
    border-color: #c8b568;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(232, 197, 88, 0.4);
}

.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #f8f6f3 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.round-info {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Merriweather', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    background: rgba(95, 160, 4, 0.2);
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.timer.low {
    color: #e85d5d;
    border-color: #e85d5d;
    background: rgba(232, 93, 93, 0.2);
    animation: pulse 0.5s infinite;
}

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

.question-card {
    background: linear-gradient(135deg, #f8f6f3 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 16px 16px 0 0;
}

.question-type {
    display: inline-block;
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: var(--light);
    padding: 5px 12px;
    font-weight: 900;
    margin-bottom: 16px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

.question-points {
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Answers */
.answers-grid {
    display: grid;
    gap: 16px;
}

.answers-grid.mcq {
    grid-template-columns: repeat(2, 1fr);
}

.answer-option {
    background: linear-gradient(135deg, #fff9e6 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 160, 4, 0.2), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

.answer-option.selected {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: #1a1a1a;
    border-color: #8b6914;
    box-shadow: 
        0 6px 12px rgba(212, 160, 23, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animations supprimées - pas de feedback visuel pendant le jeu */

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

.answer-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Text Input */
.text-answer-container {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.text-answer-container .dofus-input {
    flex: 1;
}

/* Order Question */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    background: linear-gradient(135deg, #fff9e6 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.order-item:active {
    cursor: grabbing;
}

.order-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 8px 16px rgba(212, 160, 23, 0.3);
}

.order-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #d4a017;
}

.order-number {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: var(--light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 8px;
    border: 2px solid #8b6914;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Petit Bac */
.petit-bac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.petit-bac-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.petit-bac-label {
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.petit-bac-letter {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: var(--light);
    padding: 24px;
    font-size: 56px;
    font-weight: 900;
    text-align: center;
    border: 3px solid #8b6914;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    font-family: 'Merriweather', serif;
}

/* Image Question */
.image-container {
    margin: 20px 0;
    border: 4px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Scoreboard */
.scoreboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.score-item {
    background: linear-gradient(135deg, #f8f6f3 0%, #f6f4f2 100%);
    color: var(--dark);
    border: 3px solid #c8b568;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.score-item:hover {
    transform: translateX(8px);
}

.score-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-width: 4px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.score-item.rank-1:hover {
    transform: scale(1.02) translateX(8px);
}

.score-item.rank-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #e8e8e8 100%);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(192, 192, 192, 0.3);
}

.score-item.rank-3 {
    background: linear-gradient(135deg, #f4a460 0%, #cd7f32 50%, #f4a460 100%);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(205, 127, 50, 0.3);
}

.score-rank {
    font-size: 32px;
    margin-right: 20px;
    font-weight: 900;
    font-family: 'Merriweather', serif;
}

.score-name {
    flex: 1;
    font-size: 22px;
}

.score-points {
    font-size: 28px;
    color: var(--dark);
    font-weight: 900;
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin: 60px 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.podium-pedestal {
    background: linear-gradient(135deg, #f8f6f3 0%, #f6f4f2 100%);
    border: 3px solid #c8b568;
    border-radius: 12px 12px 0 0;
    padding: 24px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.podium-place.first .podium-pedestal {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    height: 320px;
    border-width: 4px;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.5);
    position: relative;
}

.podium-place.first .podium-pedestal::before {
    content: '👑';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.podium-place.second .podium-pedestal {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #e8e8e8 100%);
    height: 260px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(192, 192, 192, 0.4);
}

.podium-place.third .podium-pedestal {
    background: linear-gradient(135deg, #f4a460 0%, #cd7f32 50%, #f4a460 100%);
    height: 200px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(205, 127, 50, 0.3);
}

.podium-rank {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    font-family: 'Merriweather', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.podium-name {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podium-score {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Merriweather', serif;
}

/* Validation Screen */
.validation-screen {
    margin-top: 32px;
}

.validation-header {
    text-align: center;
    margin-bottom: 40px;
}

.validation-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
    font-family: 'Merriweather', serif;
}

.validation-subtitle {
    font-size: 18px;
    color: var(--light);
    opacity: 0.8;
}

.validation-card-single {
    background: linear-gradient(135deg, #2d2416 0%, #1a1a1a 100%);
    border: 3px solid #8b6914;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 0; /* Retiré car gap gère l'espacement */
    display: flex;
    flex-direction: column;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur dans la grille */
    min-width: 300px;
}

.validation-card-header {
    background: linear-gradient(135deg, #d4a017 0%, #8b6914 100%);
    padding: 16px 20px; /* Réduit de 20px 24px */
    color: #1a1a1a;
}

.validation-question-number {
    font-size: 16px; /* Réduit de 18px */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px; /* Réduit de 8px */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.validation-question-text {
    font-size: 14px; /* Réduit de 16px */
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.4;
    /* Limiter à 2 lignes pour éviter les cartes trop hautes */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* QCM Validation */
.validation-mcq {
    padding: 20px; /* Réduit de 24px */
}

.validation-list {
    padding: 20px; /* Ajout pour cohérence avec validation-mcq */
}

.validation-answer-display {
    margin-bottom: 20px;
}

.validation-answer-label {
    background: var(--primary);
    color: var(--dark);
    font-weight: 900;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.validation-mcq-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.validation-mcq-option {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2e3a;
    border: 3px solid #3a3e4a;
    transition: all 0.2s ease;
}

.validation-mcq-option.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.validation-mcq-option.is-correct {
    position: relative;
}

.validation-mcq-option.is-correct::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #d4a017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.validation-mcq-letter {
    font-size: 22px;
    font-weight: 900;
    color: var(--light);
}

.validation-mcq-option.selected .validation-mcq-letter {
    color: var(--dark);
}

.validation-correct-answer {
    color: var(--light);
    font-size: 14px; /* Réduit de 16px */
    font-weight: 600;
    padding: 10px 14px; /* Réduit de 12px 16px */
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #d4a017;
}

.validation-points-display {
    text-align: center;
    color: var(--primary);
    font-size: 20px; /* Réduit de 24px */
    font-weight: 900;
    margin: 16px 0; /* Réduit de 20px */
    padding: 12px; /* Réduit de 16px */
    background: rgba(95, 160, 4, 0.1);
    border-radius: 8px;
}

/* List/Text Validation */
.validation-list {
    padding: 20px; /* Réduit de 24px, déjà ajusté plus haut */
}

.validation-responses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

.validation-current-points {
    color: var(--light);
    font-size: 18px;
}

.validation-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.validation-list-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.validation-list-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.validation-list-item.valid {
    background: rgba(212, 160, 23, 0.2);
    border-color: #d4a017;
}

.validation-list-item.invalid {
    background: rgba(74, 58, 31, 0.3);
    border-color: #4a3a1f;
}

.validation-list-item-text {
    color: var(--light);
    font-size: 16px;
    font-weight: 600;
}

.validation-list-item-icon {
    font-size: 24px;
    font-weight: 900;
}

.validation-list-item.valid .validation-list-item-icon {
    color: #f5d76e;
}

.validation-list-item.invalid .validation-list-item-icon {
    color: #8b6914;
}

.validation-answer-text-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px; /* Réduit de 10px */
    color: var(--light);
    font-size: 14px; /* Réduit de 16px */
    font-weight: 600;
    border-left: 4px solid var(--primary);
    min-height: 28px; /* Réduit de 30px */
    margin-bottom: 8px; /* Réduit de 10px */
}

/* Toggle buttons */
.validation-toggle-compact {
    display: flex;
    gap: 10px; /* Réduit de 12px */
    justify-content: flex-end;
    margin-top: 12px; /* Ajout pour un peu d'espace */
}

.validation-btn-icon {
    width: 45px; /* Réduit de 50px */
    height: 45px; /* Réduit de 50px */
    border-radius: 8px;
    border: none;
    font-size: 22px; /* Réduit de 24px */
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-btn-icon.correct {
    background: rgba(92, 184, 92, 0.2);
    color: #5cb85c;
    border: 2px solid #5cb85c;
}

.validation-btn-icon.correct.active {
    background: linear-gradient(135deg, #90ee90 0%, #5cb85c 100%);
    color: white;
    border-color: #4caf50;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.4);
}

.validation-btn-icon.incorrect {
    background: rgba(217, 83, 79, 0.2);
    color: #d9534f;
    border: 2px solid #d9534f;
}

.validation-btn-icon.incorrect.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #d9534f 100%);
    color: white;
    border-color: #c9302c;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(217, 83, 79, 0.4);
}

.validation-btn-icon:hover {
    transform: scale(1.05);
}

.validation-btn-icon.active:hover {
    transform: scale(1.15);
}

/* Navigation */
.validation-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
}

.validation-nav-btn {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(95, 160, 4, 0.3);
}

.validation-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 160, 4, 0.4);
}

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

.validation-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.validation-progress {
    color: var(--light);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.validation-finish {
    text-align: center;
    padding: 40px 0;
}

.validation-finish-btn {
    background: linear-gradient(135deg, #f5d76e 0%, #d4a017 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 24px rgba(95, 160, 4, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.validation-finish-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(95, 160, 4, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

/* Utility */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.loading {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Merriweather', serif;
    text-shadow: 2px 2px 8px rgba(95, 160, 4, 0.5);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

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

/* Decorative elements */
.ornament {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 48px;
    }

    .home-card {
        padding: 32px 24px;
    }

    .home-input {
        font-size: 16px;
        padding: 16px;
    }

    .home-btn-primary,
    .home-btn-secondary {
        font-size: 16px;
        padding: 16px 24px;
        color: white;
    }

    .tagline {
        font-size: 14px;
    }

    .lobby-grid {
        grid-template-columns: 1fr;
    }

    .answers-grid.mcq {
        grid-template-columns: 1fr;
    }

    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-place.first .podium-pedestal,
    .podium-place.second .podium-pedestal,
    .podium-place.third .podium-pedestal {
        height: auto;
        min-height: 200px;
    }

    .home-actions {
        flex-direction: column;
        width: 100%;
    }

    .petit-bac-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 18px;
    }

    .players-list {
        grid-template-columns: 1fr;
    }

    .validation-player-answer {
        flex-direction: column;
    }

    .validation-points {
        align-self: flex-start;
    }
    
    .validation-answers-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Grille pour afficher les réponses côte à côte */
.validation-answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}



/* Label "Réponse:" */
.validation-answer-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.validation-answer-text-display::before {
    font-weight: 700;
    color: #d4a017;
}

.validation-list-items::before {
    display: block;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}