/*
Theme Name: Manga Ultra 
Theme URI: https://votresite.com
Description: Thème mangaUltra rapide & SEO
Version: 1.0
Author: Votre Nom
*/

:root {
    --primary: #e50914;
    --bg: #0a0a0a;
    --text: #ffffff;
    --border: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.site-header {
    background: #000;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 1rem;
}

.nav-menu.active { display: block; }
.nav-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text);
    text-decoration: none;
}

/* Grille chapitres */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.chapter-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.chapter-card:hover { transform: scale(1.05); }
.chapter-thumb {
    aspect-ratio: 2/3;
    background: linear-gradient(45deg, #222, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.chapter-info { padding: 1rem; }
.chapter-number { font-weight: 700; color: var(--primary); }

/* Lecteur */
.reader-container {
    background: #000;
    min-height: 100vh;
    padding-bottom: 80px;
}

.reader-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.reader-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 2000;
    width: 0%;
    transition: width 0.3s;
}

/* Mobile first */
@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .nav-menu {
        display: flex !important;
        position: static;
        background: none;
    }
    .nav-menu a { padding: 0 1rem; }
    .chapter-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}