/* ============================================================
   STYLE-RESPONSIVE.CSS
   Ce fichier se charge après style.css et contient les ajustements
   responsifs pour différentes tailles d'écran
   ============================================================ */

/* ============================================================
   VARIABLES (RAPPEL)
   Pour maintenir la cohérence avec le fichier principal
   ============================================================ */
:root {
    /* Couleurs principales */
    --primary-color: #005eda;
    --secondary-color: #f3004e;
    --dark-bg: #00151f;
    --darker-bg: #222;
    
    /* Espacements */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    
    /* Bordures */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
}

/* ============================================================
   RÈGLES GLOBALES POUR MOBILE
   ============================================================ */
@media (max-width: 768px) {
    /* Base et utilitaires */
    html, body {
        overflow-x: hidden; /* Prévient le scroll horizontal */
    }
    
    /* ============================================================
       1. HEADER & BANNIÈRE
       ============================================================ */
    header {
        /* Correction de l'image de fond */
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        min-height: 300px;
        
        /* Ajustement des marges */
        padding-top: 80px;
        padding-bottom: var(--spacing-md);
    }
    
    /* Typographie du header */
    header h1 {
        font-size: 32px;
    }
    
    header p {
        font-size: 18px;
        margin: var(--spacing-sm) 0;
    }
    
    /* ============================================================
       2. NAVIGATION & TOP BAR
       ============================================================ */
    .top-bar {
        padding: var(--spacing-sm);
    }
    
    .top-logo {
        max-width: 120px;
    }
    
    /* Menu principal */
    .top-bar nav ul {
        display: none; /* Masqué par défaut */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: var(--spacing-sm) 0;
        text-align: center;
    }
    
    .top-bar nav ul li {
        margin: var(--spacing-sm) 0;
    }
    
    /* Bouton d'action principal */
    .play-now-button {
        font-size: 16px;
        padding: 8px 15px;
        border-radius: 8px;
    }
    
    /* ============================================================
       3. CONTENU PRINCIPAL
       ============================================================ */
    .main-content {
        padding: var(--spacing-md) 0;
        background-attachment: scroll; /* Désactive l'effet parallaxe sur mobile */
    }
    
    /* Blocs de contenu */
    .feature-container {
        width: 90%;
        margin: var(--spacing-md) auto;
        border-radius: var(--border-radius-md);
        padding: 15px;
    }
    
    .feature-text {
        padding: var(--spacing-sm);
        font-size: 16px;
    }
    
    /* ============================================================
       4. COMPOSANTS & ÉLÉMENTS INTERACTIFS
       ============================================================ */
    /* Boutons et navigation */
    .feature-navigation {
        flex-direction: row !important; /* Force la disposition horizontale */
        gap: var(--spacing-sm);
        justify-content: space-between;
    }
    
    .feature-button {
        width: 48% !important; /* Maintient les boutons côte à côte */
        font-size: 16px;
        padding: var(--spacing-sm);
    }
    
    /* Cartes et images */
    .card-set img {
        width: 50px;
        margin: 3px;
    }
    
    .store-icon {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
    
    /* ============================================================
       5. FOOTER & PIED DE PAGE
       ============================================================ */
    footer {
        text-align: center;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    /* Structure du footer */
    .footer-top {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        background: none !important;
        border-top: none !important;
    }
    
    .footer-top-middle {
        padding: 0 var(--spacing-sm);
        font-size: 14px;
    }
    
    .footer-top-right {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Boutons et liens du footer */
    .store-button {
        width: 150px;
        margin: 0 auto;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
}