/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: radial-gradient(circle at center, #0a2e2e 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Ou une font magitek */
}

/* Section Landing / Splash Page */
#landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;

    /* Utilisation de ton image avec un filtre sombre pour le contraste */
    background: linear-gradient(rgba(8, 8, 8, 0.616), rgba(0, 0, 0, 0.329)), 
                url('images/bg2.jpg') no-repeat center center;
    background-size: cover;

    color: #fff;
    text-align: center;
    position: relative;
}

/* On s'assure que le contenu est au-dessus du background */
.hero {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Animation subtile pour le background (optionnel pour le look pro) */
@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

#landing {
    animation: slow-zoom 20s infinite alternate ease-in-out;
}

.lang-buttons { margin: 2rem 0; }
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    background: #00ff99;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s;
}
.btn:hover { transform: scale(1.05); }

.social-links a {
    color: #aaa;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Comic View */
.comic-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(0,0,0,0.85);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.pages {
    padding-top: 60px; /* Espace pour le nav */
    max-width: 800px; /* Largeur max pour desktop */
    margin: 0 auto;
}

.pages img {
    display: block;
    width: 100%; /* S'adapte à la largeur du cell */
    height: auto;
}


.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

/* Ajoute ça à ton style actuel */
.reader-body { background-color: #000; } /* Fond noir pour la lecture */

.back-btn {
    color: #00ff99;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.comic-nav span {
    font-size: 0.9rem;
    color: #888;
    align-self: center;
}

.btn-lang {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 255, 204, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    border-radius: 4px;
}

.btn-lang:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 25px #00ffcc;
    transform: translateY(-2px);
}

/* Libère le scroll uniquement pour les pages de lecture */
.reader-body { 
    height: auto; 
    overflow-y: auto; 
    overflow-x: hidden;
    display: block; /* Évite que le flexbox de base ne brise le layout vertical */
}

/* Style pour la section de fin du comic */
#end-of-comic {
    color: #ffffff; /* Texte blanc par défaut */
}

#end-of-comic h2 {
    color: #00ff99; /* Vert néon magitek pour le "To be continued..." */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#end-of-comic p {
    color: #aaa; /* Un gris plus doux pour le merci */
    margin-bottom: 2rem;
}