/* Variables de couleurs inspirées League of Legends */
:root {
    --gold: #ffd700;
    --purple: #8a2be2;
    --blue: #4169e1;
    --dark-bg: #1a1a2e;
    --light-text: #ffffff;
    --accent: #ff6b6b;
    --success: #4CAF50;
    --error: #f44336;
}

/* Animation RGB pour les icônes */
.rgb-animate {
    animation: rgb-cycle 3s ease-in-out infinite;
}

@keyframes rgb-cycle {
    0% { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    33% { color: #4169e1; text-shadow: 0 0 10px rgba(65, 105, 225, 0.5); }
    66% { color: #8a2be2; text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); }
    100% { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 50%, #0f3460 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--light-text);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.birthday-card {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.15), rgba(65, 105, 225, 0.15));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(138, 43, 226, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--gold);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 4px 4px 8px rgba(0, 0, 0, 0.7); }
}

/* Screens */
.screen {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

/* Game Intro */
.game-intro {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold);
}

.game-intro h2 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.start-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--gold), var(--accent));
    border: none;
    border-radius: 30px;
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* QCM Screens */
.qcm-screen h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.5;
}

.qcm-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Styles pour l'image de Rohan */
.rohan-image {
    margin: 20px auto;
    text-align: center;
}

.rohan-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.option-card.correct-option {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.1);
}

.champion-img, .game-img, .miss-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.option-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--light-text);
}

/* Age options */
.age-option {
    text-align: center;
    padding: 20px;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
}

.days-text {
    font-size: 1rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* Navigation */
.navigation {
    margin-top: 30px;
}

.nav-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

/* Victory Screen */
.victory-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid var(--gold);
}

.victory-content h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.victory-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.gift-reveal {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.gift-reveal h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.gift-description {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

.gift-details {
    font-size: 1.1rem;
    color: var(--light-text);
    opacity: 0.9;
}

.celebrate-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--success), var(--accent));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.celebrate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 0 5px 5px 0;
}

/* Message system */
.message {
    margin-bottom: 30px;
    font-size: 1.3rem;
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 15px;
}

.fun-fact {
    font-style: italic;
    color: var(--accent);
    margin-top: 15px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes slideDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    animation: confettiFall 2s ease-out forwards;
    z-index: 1000;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Styles pour les informations SPA */
.spa-info {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.spa-image {
    text-align: center;
    margin-bottom: 20px;
}

.spa-img {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spa-details h4 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.spa-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--light-text);
    text-align: center;
}

.spa-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.feature {
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.map-container {
    margin-top: 20px;
}

.google-map {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-address {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
    text-align: center;
}

/* Styles pour le mode hardcore */
.hardcore-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.hardcore-question h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.hardcore-question p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.hardcore-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.hardcore-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.hardcore-submit-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--accent), var(--purple));
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 20px 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hardcore-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* Animation de rotation pour le chargement */
.hardcore-submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.hardcore-submit-btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hardcore-warning {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.hardcore-completed {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Styles pour la section Hardcore Débloqué */
.hardcore-unlocked {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 15px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.hardcore-glow {
    position: relative;
    z-index: 2;
}

.hardcore-unlocked::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #8a2be2, #4169e1, #ffd700);
    border-radius: 16px;
    z-index: 1;
    animation: border-glow 3s ease-in-out infinite alternate;
}

.hardcore-unlocked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 14px;
    z-index: 1;
}

@keyframes border-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hardcore-title {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: text-pulse 2s ease-in-out infinite alternate;
}

@keyframes text-pulse {
    0% { text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.6); }
}

.hardcore-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.5;
}

.text-gradient {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: gradient-shift 3s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hardcore-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hardcore-btn {
    background: linear-gradient(45deg, var(--accent), var(--purple)) !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    padding: 12px 25px !important;
    animation: btn-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes btn-pulse {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3); }
    100% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5); }
}

/* Styles pour les résultats hardcore */
.final-score {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(138, 43, 226, 0.1));
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--gold);
}

.final-score h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.score-breakdown p {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.leaderboard {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard h3 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.rank {
    font-weight: bold;
    color: var(--gold);
    min-width: 30px;
}

.player-name {
    flex: 1;
    margin: 0 15px;
    font-weight: 500;
}

.player-score {
    color: var(--accent);
    font-weight: bold;
}

/* Version mobile */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .birthday-card {
        padding: 25px 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .qcm-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .champion-img, .game-img, .miss-img {
    height: 120px;
}
    
    .rohan-img {
        width: 150px;
        height: 150px;
    }
    
    .victory-content {
        padding: 25px;
    }
    
    .victory-content h2 {
        font-size: 2rem;
    }
    
    .gift-description {
        font-size: 1.3rem;
    }
    
    .spa-info {
        padding: 20px 15px;
    }
    
    .spa-img {
        height: 150px;
    }
    
    .spa-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .google-map {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .number {
        font-size: 2rem;
    }
}