/* 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: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 2.5rem;
    color: #9370DB;
    /* Violet clair */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Style de la liste des webtoons */
#myWebtoons {
    list-style-type: none;
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

#myWebtoons li {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#myWebtoons li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#myWebtoons a {
    display: block;
    padding: 20px;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    border-left: 4px solid #9370DB;
    /* Bordure gauche violette */
    transition: background-color 0.2s;
}

#myWebtoons a:hover {
    background-color: rgba(147, 112, 219, 0.2);
    /* Légère couleur violette au survol */
}

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

    h1 {
        font-size: 2rem;
        margin: 20px 0;
    }

    #myWebtoons {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

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

/* Styles pour les écrans très petits */
@media screen and (max-width: 480px) {
    #myWebtoons {
        grid-template-columns: 1fr;
    }
}

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

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

#myWebtoons li {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

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

#myWebtoons li:nth-child(2) {
    animation-delay: 0.2s;
}

#myWebtoons li:nth-child(3) {
    animation-delay: 0.3s;
}

#myWebtoons li:nth-child(4) {
    animation-delay: 0.4s;
}

#myWebtoons li:nth-child(5) {
    animation-delay: 0.5s;
}

#myWebtoons li:nth-child(6) {
    animation-delay: 0.6s;
}

#myWebtoons li:nth-child(7) {
    animation-delay: 0.7s;
}

#myWebtoons li:nth-child(8) {
    animation-delay: 0.8s;
}

#myWebtoons li:nth-child(9) {
    animation-delay: 0.9s;
}

#myWebtoons li:nth-child(10) {
    animation-delay: 1s;
}

/* Les éléments supplémentaires apparaîtront sans délai supplémentaire */

/* 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: #777;
}