/* Menu mobile */
.mobile-menu {
    display: none;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    position: absolute;
    top: 4rem;
    left: 0;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(109, 40, 217, 0.5);
    color: white;
}

/* Animation pour l'icône du menu burger */
.menu-btn {
    transition: transform 0.3s ease;
}

.menu-btn.active {
    transform: rotate(90deg);
}

/* res.css - Fichier de responsivité pour WeGamer */

/* ==================== BASE ==================== */
html {
    font-size: 100%;
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== NAVIGATION MOBILE ==================== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.98);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(109, 40, 217, 0.2);
}

/* ==================== HERO SECTION ==================== */
@media (max-width: 1023px) {
    .hero-pattern {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-pattern {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* ==================== OBJECTIVES SECTION ==================== */
@media (max-width: 1023px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ==================== GAMES SECTION ==================== */
@media (max-width: 1023px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== FEATURES SECTION ==================== */
@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== MONETIZATION SECTION ==================== */
@media (max-width: 767px) {
    .monetization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credit-recharge {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .monetization-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-recharge {
        grid-template-columns: 1fr;
    }
}

/* ==================== CTA SECTION ==================== */
@media (max-width: 767px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* ==================== FOOTER ==================== */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 479px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==================== UTILITIES ==================== */
@media (max-width: 639px) {
    .text-sm-center {
        text-align: center;
    }
    
    .flex-sm-column {
        flex-direction: column;
    }
    
    .justify-sm-center {
        justify-content: center;
    }
}

/* ==================== ANIMATIONS ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== ORIENTATION ==================== */
@media (orientation: portrait) {
    .hero-pattern {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero-pattern {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #020617;
        color: #f1f5f9;
    }
}

/* ==================== HIGH CONTRAST ==================== */
@media (prefers-contrast: high) {
    body {
        background-color: black;
        color: white;
    }
    
    a, button {
        outline: 2px solid white;
    }
}

/* ==================== TOUCH DEVICES ==================== */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover, 
    .game-card:hover, 
    .stat-card:hover {
        transform: none !important;
    }
    
    .btn-cta:hover {
        transform: none !important;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    nav, footer, .cta-section {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
}
