/* ============================================
   TIME'S UP! - STYLES RESPONSIVE
   Adaptation mobile, tablette et desktop
   ============================================ */

/* === MOBILE FIRST (< 768px) === */
@media (max-width: 767px) {
    /* Header */
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .theme-toggle,
    .lang-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-features {
        gap: var(--spacing-sm);
    }
    
    .feature {
        min-width: 100px;
        padding: var(--spacing-sm);
    }
    
    .feature i {
        font-size: 1.5rem;
    }
    
    .feature span {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-large {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    /* Game Preview */
    .game-preview {
        grid-template-columns: 1fr;
    }
    
    /* How to Play */
    .how-to-play h3 {
        font-size: 2rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* === TABLETTES (768px - 1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .game-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-wrap: wrap;
    }
}

/* === DESKTOP (> 1024px) === */
@media (min-width: 1024px) {
    /* Effets hover plus prononcés */
    .preview-card:hover {
        transform: translateY(-8px);
    }
    
    .step:hover {
        transform: translateY(-8px);
    }
    
    /* Grid optimisé */
    .game-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === TRÈS GRANDS ÉCRANS (> 1440px) === */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* === PETITS ÉCRANS (< 360px) === */
@media (max-width: 359px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }
}

/* === ORIENTATION PAYSAGE SUR MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero-icon {
        display: none;
    }
    
    .how-to-play {
        padding: var(--spacing-md) 0;
    }
}

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

/* === IMPRESSION === */
@media print {
    .main-header,
    .main-footer,
    .hero-actions,
    .theme-toggle,
    .lang-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-title {
        -webkit-text-fill-color: initial;
        color: black;
    }
}
