/* ===== IMPORT DES STYLES DE BASE ===== */
@import url('styles_old.css');

/* ===== VARIABLES MODERNES ===== */
:root {
    --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff8c00 50%, #ffa500 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    --gradient-card: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.3);
    --blur-glass: blur(10px);
}

/* ===== PARTICULES ANIMÉES ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
    opacity: 0;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift)) scale(0.5);
        opacity: 0;
    }
}

/* ===== HEADER MODERNE ===== */
.home-header-modern {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.logo-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-icon-modern {
    position: relative;
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    perspective: 1000px;
}

.crash-icon {
    animation: drive-in 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 0, 0.4));
}

.impact-effect {
    animation: explode 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(255, 165, 0, 0.8));
}

@keyframes drive-in {
    0%, 100% {
        transform: translateX(-30px) rotate(-5deg) scale(1);
    }
    45% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(5px) rotate(8deg) scale(1.15);
    }
    55% {
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes explode {
    0%, 45%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5) rotate(45deg);
        opacity: 1;
    }
    55% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
}

.logo-text-modern {
    font-size: 3.5rem;
    font-weight: 900;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    letter-spacing: -2px;
}

.logo-word {
    display: inline-block;
    animation: float-logo 3s ease-in-out infinite;
}

.logo-word.crash {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0s;
    text-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.logo-word.guess {
    background: linear-gradient(135deg, #ffa500 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.2s;
    text-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.tagline-modern {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    animation: fade-in-up 1s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STATS RAPIDES ===== */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-badge {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== BANNIÈRE MISE À JOUR MODERNE ===== */
.update-banner-modern {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slide-down 0.6s ease;
}

.update-banner-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.update-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.update-content-modern h3 {
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.update-content-modern p {
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.title-icon {
    font-size: 2rem;
    animation: bounce-icon 2s infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-10deg);
    }
    75% {
        transform: translateY(-4px) rotate(10deg);
    }
}

/* ===== CARTES DE DIFFICULTÉ MODERNES ===== */
.difficulty-selector-modern {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.difficulty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.difficulty-card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.difficulty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.difficulty-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.difficulty-card:hover::before {
    opacity: 0.1;
}

/* Badge populaire discret */
.card-badge.popular {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 107, 0, 0.3);
}.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 3rem;
    animation: rotate-icon 4s ease-in-out infinite;
}

@keyframes rotate-icon {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.card-badge {
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-play:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== OPTIONS DE JEU MODERNES ===== */
.game-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.option-card {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.option-card.clickable {
    cursor: pointer;
}

.option-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.option-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.option-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.option-card:hover .option-arrow {
    transform: translateX(5px);
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 0, 0.3);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
    background: white;
}

/* ===== CLASSEMENT MODERNE ===== */
.leaderboard-modern {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.refresh-btn {
    background: rgba(255, 107, 0, 0.2);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.refresh-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(180deg);
}

.refresh-btn.spinning {
    animation: spin 0.5s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.refresh-icon {
    font-size: 1.5rem;
}

.leaderboard-list-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Amélioration des items du leaderboard */
.leaderboard-list-modern .leaderboard-item {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-left-width: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-list-modern .leaderboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.leaderboard-list-modern .leaderboard-item:hover::before {
    left: 100%;
}

.leaderboard-list-modern .leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE MODERNE ===== */
@media (max-width: 768px) {
    .logo-text-modern {
        font-size: 2.5rem;
    }
    
    .logo-icon-modern {
        font-size: 3.5rem;
    }
    
    .tagline-modern {
        font-size: 1.1rem;
    }
    
    .quick-stats {
        gap: 1rem;
    }
    
    .stat-badge {
        padding: 0.5rem 1rem;
    }
    
    .update-banner-modern {
        padding: 1.5rem;
    }
    
    .update-content-modern h3 {
        font-size: 1.2rem;
    }
    
    .update-content-modern p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .difficulty-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-options-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }

    /* Bug Report Modal - Tablet */
    .bug-modal-content {
        max-width: 90vw;
    }

    .bug-modal-content .modal-header h2 {
        font-size: 1.6rem;
    }

    .bug-intro {
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-select,
    .form-input,
    .form-textarea {
        font-size: 0.95rem;
    }

    /* Rules Modal - Tablet */
    .rules-modal-content {
        max-width: 90vw;
    }

    .rules-modal-content .modal-header h2 {
        font-size: 1.6rem;
    }

    .rules-content-modern {
        padding: 1.5rem;
    }

    .rules-intro p {
        font-size: 1rem;
    }

    .rule-card-header h3 {
        font-size: 1.25rem;
    }

    .rule-card-body p {
        font-size: 0.95rem;
    }

    .points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .home-header-modern {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .logo-text-modern {
        font-size: 2.5rem;
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .logo-icon-modern {
        font-size: 3rem;
    }
    
    .tagline-modern {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .quick-stats {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .stat-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
    
    .update-banner-modern {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .update-banner-modern h3 {
        font-size: 1.1rem;
    }
    
    .update-banner-modern p {
        font-size: 0.85rem;
    }
    
    .update-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .difficulty-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .difficulty-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-features {
        font-size: 0.85rem;
    }
    
    .btn-play {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .game-options-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .option-icon {
        font-size: 1.8rem;
    }
    
    .option-title {
        font-size: 1rem;
    }
    
    .option-desc {
        font-size: 0.8rem;
    }
    
    .leaderboard-modern {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .leaderboard-item {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .footer-simple {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .footer-simple .footer-content {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    /* Bug Report Modal - Mobile */
    .bug-modal-content {
        max-width: 95vw;
        margin: 1rem;
    }

    .bug-modal-content .modal-header {
        padding: 1rem;
    }

    .bug-modal-content .modal-header h2 {
        font-size: 1.4rem;
    }

    .bug-modal-content .modal-body {
        padding: 1rem;
    }

    .bug-intro {
        font-size: 0.9rem;
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .label-icon {
        font-size: 1rem;
    }

    .form-select,
    .form-input,
    .form-textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .char-counter {
        font-size: 0.75rem;
    }

    .modal-actions-modern {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Rules Modal - Mobile */
    .rules-modal-content {
        max-width: 95vw;
        margin: 1rem;
    }

    .rules-modal-content .modal-header {
        padding: 1rem;
    }

    .rules-modal-content .modal-header h2 {
        font-size: 1.4rem;
    }

    .rules-content-modern {
        padding: 1rem;
        max-height: 65vh;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .rules-intro {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .rules-intro p {
        font-size: 0.9rem;
    }

    .rule-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .rule-card-header {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .rule-icon {
        font-size: 1.5rem;
        width: 42px;
        height: 42px;
    }

    .rule-card-header h3 {
        font-size: 1.1rem;
    }

    .rule-card-body p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

    .rule-list li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
        gap: 0.75rem;
        align-items: flex-start;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .rule-list li .bullet {
        flex-shrink: 0;
        margin-top: 0.2rem;
    }

    .points-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .point-item {
        padding: 0.85rem;
    }

    /* Fix hints grid overflow on mobile */
    .hints-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hint-item {
        padding: 0.85rem;
        gap: 0.6rem;
    }

    .hint-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .hint-text {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    /* Fix difficulty list on mobile */
    .difficulty-list {
        gap: 0.75rem;
    }

    .difficulty-item {
        padding: 0.9rem 1rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .diff-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }

    .diff-content {
        flex: 1;
        min-width: 0;
    }

    .diff-content strong {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .diff-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    /* Prevent text overflow in rule warnings */
    .rule-warning {
        padding: 0.75rem;
        gap: 0.6rem;
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .point-value {
        font-size: 1.3rem;
    }

    .point-label {
        font-size: 0.85rem;
    }

    /* Modal close buttons - easier to tap on mobile */
    .btn-close {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.8rem !important;
        min-width: 44px;
        min-height: 44px;
    }

    /* Rules footer */
    .rules-footer {
        padding: 1rem;
        text-align: center;
    }

    .rules-footer p {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
.difficulty-card {
    animation: fade-in-scale 0.6s ease forwards;
    opacity: 0;
}

.difficulty-card:nth-child(1) {
    animation-delay: 0.1s;
}

.difficulty-card:nth-child(2) {
    animation-delay: 0.2s;
}

.difficulty-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.option-card {
    animation: fade-in-right 0.6s ease forwards;
    opacity: 0;
}

.option-card:nth-child(1) {
    animation-delay: 0.4s;
}

.option-card:nth-child(2) {
    animation-delay: 0.5s;
}

.option-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leaderboard-modern {
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

/* ===== MODAL IDENTIFICATION MODERNE ===== */
#player-name-modal .modal-content {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

#player-name-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    animation: shine 3s infinite;
}

#player-name-modal .modal-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
    padding: 1.5rem 2rem;
    position: relative;
}

#player-name-modal .modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

#player-name-modal .modal-body {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
}

#player-name-modal .modal-body > p {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.player-input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-name-field,
.player-country-field {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.player-name-field:focus,
.player-country-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.player-name-field::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
}

.player-country-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.player-country-field option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    font-size: 1rem;
}

#start-game-with-name-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#start-game-with-name-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#start-game-with-name-btn:hover::before {
    width: 300px;
    height: 300px;
}

#start-game-with-name-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

#start-game-with-name-btn:active {
    transform: translateY(-1px);
}

#player-name-modal .btn-close {
    background: rgba(255, 107, 0, 0.2);
    border: 2px solid rgba(255, 107, 0, 0.3);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#player-name-modal .btn-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
    box-shadow: var(--shadow-md);
}

/* Animation d'entrée de la modal */
#player-name-modal.show .modal-content {
    animation: modal-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-bounce {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    50% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive pour modal identification */
@media (max-width: 768px) {
    #player-name-modal .modal-header h2 {
        font-size: 1.5rem;
    }
    
    #player-name-modal .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .player-name-field,
    .player-country-field {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
    
    #start-game-with-name-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #player-name-modal .modal-header {
        padding: 1rem 1.5rem;
    }
    
    #player-name-modal .modal-header h2 {
        font-size: 1.3rem;
    }
    
    #player-name-modal .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .player-input-container {
        gap: 1rem;
    }
    
    #start-game-with-name-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

/* ===== MODAL BUG REPORT MODERNISÉE ===== */
.bug-modal-content {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.bug-modal-content .modal-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.bug-modal-content .modal-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.bug-intro {
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 107, 0, 0.1);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.char-counter {
    display: block;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.modal-actions-modern {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary-modern,
.btn-secondary-modern {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 107, 0, 0.3);
}

    .btn-secondary-modern:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--accent-primary);
        transform: translateY(-2px);
    }

/* ===== MODAL RÈGLES MODERNISÉE ===== */
.rules-modal-content {
    background: var(--gradient-card);
    backdrop-filter: var(--blur-glass);
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    max-width: 900px;
}

.rules-modal-content .modal-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.rules-modal-content .modal-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.rules-content-modern {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.rules-content-modern::-webkit-scrollbar {
    width: 8px;
}

.rules-content-modern::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.rules-content-modern::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.rules-intro {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 140, 0, 0.1));
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.rules-intro p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.rule-card {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
    transform: translateY(-2px);
}

.rule-card.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-color: var(--accent-primary);
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rule-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 0, 0.3);
}

.rule-card-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.rule-card-body {
    color: var(--text-primary);
    line-height: 1.7;
}

.rule-card-body p {
    margin: 0;
    font-size: 1rem;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.bullet {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.point-item {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.point-item:hover {
    transform: translateY(-3px);
}

.point-item.positive {
    border-color: #4caf50;
}

.point-item.bonus {
    border-color: #ffd700;
}

.point-item.negative {
    border-color: #f44336;
}

.point-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.point-item.positive .point-value {
    color: #4caf50;
}

.point-item.bonus .point-value {
    color: #ffd700;
}

.point-item.negative .point-value {
    color: #f44336;
}

.point-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hint-item {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.hint-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.hint-icon {
    font-size: 1.8rem;
}

.hint-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.rule-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.difficulty-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.difficulty-item {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.difficulty-item:hover {
    transform: translateX(8px);
}

.difficulty-item.easy {
    border-color: #4caf50;
}

.difficulty-item.medium {
    border-color: #ff9800;
}

.difficulty-item.hard {
    border-color: #f44336;
}

.diff-icon {
    font-size: 2.5rem;
}

.diff-content strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.diff-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rules-footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-radius: 12px;
    margin-top: 1rem;
}

.rules-footer p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ===== FOOTER MINIMALISTE ===== */
.footer-simple {
    margin-top: 6rem;
    padding: 2rem 0;
    background: transparent;
}

.footer-simple .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.footer-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.footer-btn:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 480px) {
    .footer-simple {
        margin-top: 4rem;
    }
    
    .footer-simple .footer-content {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}
