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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin: 25px 0;
    font-size: 2.2rem;
    color: #FF5733;
    /* Orange vif */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Style de la liste des chapitres */
#chapters {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#chapters li {
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #FF5733;
}

#chapters li:hover {
    transform: translateX(5px);
    background-color: #333;
}

#chapters a {
    display: block;
    padding: 15px 20px;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

#chapters a:hover {
    color: #FF5733;
}

/* Style pour les derniers chapitres (les plus récents) */
#chapters li:nth-child(-n+3) a::after {
    content: " 🔥";
    font-size: 0.9rem;
}

#chapters li:first-child {
    background-color: rgba(255, 87, 51, 0.2);
    /* Fond légèrement orange pour le plus récent */
    border-left-width: 5px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
        margin: 15px 0;
    }

    #chapters {
        padding: 10px;
        gap: 8px;
    }

    #chapters a {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#chapters li {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
}

/* Animation décalée pour chaque élément */
#chapters li:nth-child(1) {
    animation-delay: 0.05s;
}

#chapters li:nth-child(2) {
    animation-delay: 0.1s;
}

#chapters li:nth-child(3) {
    animation-delay: 0.15s;
}

#chapters li:nth-child(4) {
    animation-delay: 0.2s;
}

#chapters li:nth-child(5) {
    animation-delay: 0.25s;
}

#chapters li:nth-child(6) {
    animation-delay: 0.3s;
}

#chapters li:nth-child(7) {
    animation-delay: 0.35s;
}

#chapters li:nth-child(8) {
    animation-delay: 0.4s;
}

#chapters li:nth-child(9) {
    animation-delay: 0.45s;
}

#chapters li:nth-child(10) {
    animation-delay: 0.5s;
}

/* Pour le reste des éléments */
#chapters li:nth-child(n+11) {
    animation-delay: 0.55s;
}

/* Barre de navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.nav-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background-color: #FF5733;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF5733;
}