/* RESET & BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    /* Empêche le rebond élastique sur iOS/Android */
    overscroll-behavior: none; 
}

body {
    background-color: #000; /* Fond noir par défaut sur mobile pour éviter les bords blancs */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- STYLE MOBILE (PAR DÉFAUT) --- */
/* C'est ce qui s'affiche sur le Samsung A14 */
.mobile-container {
    width: 100%;
    height: 100vh; /* Fallback pour vieux navigateurs */
    height: 100dvh; /* S'adapte dynamiquement à la barre d'adresse mobile */
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* --- STYLE ORDINATEUR / TABLETTE --- */
/* Uniquement si l'écran est plus large que 768px */
@media (min-width: 768px) {
    body {
        background-color: #1a1a1a; /* Fond gris foncé autour du "téléphone" */
    }

    .mobile-container {
        width: 375px; /* Largeur iPhone standard */
        height: 812px;
        max-height: 95vh; /* Marge de sécurité */
        border-radius: 30px;
        border: 8px solid #000;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
}

/* --- GESTION DES PAGES (Identique à avant) --- */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}

.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* --- STYLE PAGE 1 --- */
#page-1 {
    background: linear-gradient(135deg, #072a4b, #003d77, #0158ab);
    background-size: 200% 200%;
    color: white;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-placeholder {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid white;
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.splash-footer {
    position: absolute;
    bottom: 20px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    width: 100%;
    text-align: center; /* Assure le centrage sur tous les mobiles */
}

/* --- STYLE PAGE 2 --- */
#page-2 {
    background-color: #f4f4f4;
    color: #333;
}