/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    font-family: 'Trebuchet MS', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
}

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ff004f;
}

header h1 {
    color: #ff004f;
    letter-spacing: 2px;
} 
.hero h2{
    color: #ff004f;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ff004f;
}

/* MAIN */
main {
    padding: 30px;
    text-align: center;
}

/* GRID ANIMES */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* 🎴 CARTE ANIME */
.card {
    width: 200px;
    padding: 10px;
    text-decoration: none;
    color: white;
    position: relative;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.4s;
}

/* Effet flottant */
.card:hover {
    transform: translateY(-10px) scale(1.05);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(270deg, #ff004f, #00f7ff, #ff004f);
    background-size: 600% 600%;
    animation: borderAnim 4s linear infinite;

    
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    /* WebKit (Chrome, Safari) */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
}


/* IMAGE */
.card img {
    width: 100%;
    border-radius: 10px;
    z-index: 1;
    position: relative;
}

/* TITRE */
.card p {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/* ANIMATION CADRE */
@keyframes borderAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* PAGE DETAILS ANIME */
.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 🖼️ IMAGE AVEC CADRE ANIMÉ */
.details img {
    width: 260px;
    border-radius: 15px;
    padding: 4px;
    background: linear-gradient(270deg, #ff004f, #00f7ff, #ff004f);
    background-size: 400% 400%;
    animation: borderAnim 5s infinite;
}

/* LISTES */
ul {
    list-style: none;
}

main ul a{
    background: rgba(0, 0, 0, 0.6);
    margin: 10px auto;
    padding: 10px;
    width: 200px;
    border-radius: 10px;
    border: 1px solid #ff004f;
}

/* FOOTER */
footer {
    background: rgba(0, 0, 0, 0.8); /* fond sombre semi-transparent */
    border-top: 3px solid #ff004f;   /* bordure néon rouge */
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 -3px 10px rgba(255, 0, 79, 0.5); /* glow effet néon */
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

