/* TEST-GABRIEL-2026 */

:root {
    --font : Poppins;
    --background : #313131;
    --lightBlue : #292424;
    --darkBackground: #1f1f1f;
    --primary: #d8a631;
    --primaryHover: #faf3a0;
    --grey: rgb(171, 182, 194);
    --lightGrey: rgb(194, 196, 196);
    --white: rgb(235, 235, 235);
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Garantit que le body prend toute la hauteur */
}

body {
    background: var(--darkBackground);
    color: var(--grey);
    font-family: var(--font);
}
a {
    text-decoration: none;
    color: var(--grey);
}
a * {
    color: var(--grey);
}
header {
    background: var(--background);
    padding: 17px;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 2;
}

/* HEADER */

.navbar-header {
    background: #212529;
    height: 55px;
    display: flex;
    align-items: center;
}


.logo-link {
    display: flex;
    align-items: center;
}


.header-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 6px #00f);
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1.5rem;
}


.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}


.main-nav a:hover {
    color: #00aaff;
}

.anime-info{
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* CONNEXION */

.login-btn {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.85rem;
}


.login-btn:hover {
    background: white;
    color: #212529;
}
footer {
    position: fixed;
    bottom: 0px;
    background-size: 120%;
    padding: 10px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-around;
}

.section-title{
    color: white;
}

#footerBackground {
    /*background: url("../img/Texture/goldTexture.jpg") no-repeat center center;*/
    background-size: cover;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100vw;
    height: 100%;
    z-index: -1;
    filter: brightness(70%);
    transition: all 0.08s ease;
}
footer:hover #footerBackground {
    filter: brightness(55%);
}
footer .footerBloc {
    display: flex;
    flex-direction: column;
    font-size: 10px;
}

footer .footerBloc p {
    color: var(--white);
}
.titrePage {
    text-align: center;
    padding: 15px;
}
.pageWrapper {
    width: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
}
.bareRechercheContainer {
    display: flex;
    width: 80%;
    margin: auto;
    position: relative;
    max-width: 500px;
}
.bareRechercheContainer .iconClear {
    position: absolute;
    right: 0px;
    top : 50%;
    transform: translateY(-50%);
    padding: 10px;
}
.bareRechercheContainer .iconClear:hover {
    transform: translateY(-52%);
    cursor: pointer;
    color: var(--primaryHover);
}
.bareRecherche {
    border: var(--lightGrey) 2px solid;
    outline: none;
    background: var(--background);
    color: var(--lightGrey);
    font-size: 20px;
    padding: 5px;
    margin: auto;
    border-radius: 6px;
    width: 100%;
    max-width: 500px;
}
.bareRecherche:hover {
    background: var(--darkBackground);
}
.bareRecherche:focus {
    border: var(--primary) 2px solid;
}
.itemRecherche {
    width: 33%;
    max-width: 350px;
    min-width: 130px;
    padding-top: 8vw;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.1s ease;
}
.itemName {
    background-color: var(--lightBlue);
    color: var(--lightGrey);
    padding: 5px;
    border-radius: 0px 0px 4px 4px;
    text-align: center;
    font-weight: 650;
}
.itemRecherche:hover .itemName {
    color: var(--white);
}

.itemRecherche:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: 4px 9px 9px 2px rgba(0,0,0,0.16);
    box-shadow: 4px 9px 9px 2px rgba(0,0,0,0.16);
}
.checkBox {
    accent-color: gold;
}

.boutonAction {
    background: #313131;
    width: 60px;
    height: 60px;
    padding: 5px;
    border-radius: 50%;
    position: relative;
}
.boutonAction i {
    color: var(--grey);
    font-size: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.listeBouton {
    width: max-content;
    /*position: fixed;*/
    top: 5vw;
    left: 2.5vw;
    display: flex;
    flex-direction: row;
    gap: 1vw;
}

.clickable {
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}
.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
    color: white;
}
.listeRecherche {
 /*   margin: 40px auto 80px auto;*/

 /*   width: 100%;*/
 /*   max-width: max-content;*/
	/*align-items: center;*/
 /*   justify-content: center;*/
 /*   display: grid;*/
 /*   grid-template-columns: repeat(5, 1fr);*/

 /*   gap: 1vw;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, 225px);
    justify-content: center;
    gap: 25px;

}

.item-container {
    display: flex;
    background: var(--lightBlue);
    border-radius: 6px;
    gap: 1.5vw;
    position: relative;

    width: 30vw;
    max-width: 40vw;
    height: 15vw;

    padding: 10px;
    box-sizing: border-box; /* 🔥 TRÈS IMPORTANT */
}
.item-container .item-image {
    border-radius: 4px;
}
.info-nom{
    justify-content: center;
    align-items: center;
}
.info-container .info-nom {
    color: white;
    font-size: 1.1vw;
    font-weight: 620;
}
.info-container .info-nombre {
    font-size: 0.8rem;
    font-style: italic;
}
.item-container .item-redirect{
    color: var(--grey);
    display: flex;
    align-items: center;
    margin-left: auto;
}

.anime-img {
    width: 100%;
    height: 325px;

    object-fit: cover;

    display: block;
}

.badge-retard {
    position: absolute;
    top: 8px;
    left: 8px;

    background: crimson;
    color: white;
    font-size: 12px;
    font-weight: bold;

    padding: 4px 8px;
    border-radius: 12px;

    z-index: 2; /* au-dessus de tout */
}

@media screen and (max-width: 600px) {

    .listeRecherche .anime-card, .anime-grid .anime-card {
    width: 90%;
    max-width: 170px;
    margin: 0 auto;
}

    .bareRechercheContainer {
        width: 90%;
        max-width: 90%;
    }

    .boutonAction {
        width: 50px;
        height: 50px;
    }

    .listeRecherche, .anime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    align-items: center;
    justify-items: center;

}

.anime-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto !important;
    min-height: 0;
    overflow: visible;
}

.anime-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.anime-name {
    display: block;
    width: 100%;
    margin: 5px 0 0;
    padding: 0 5px;

    color: white;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-card {
    height: auto !important;
    min-height: 0;
    overflow: visible;
}

.home-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

    .bareRechercheContainer {
        width: 100%;
        max-width: 90%;
    }
    .bareRecherche {
        font-size: 16px;
        padding: 8px;
    }
    .boutonAction {
        width: 50px;
        height: 50px;
    }
    .item-container {
        width: 100%;
        max-width: 100%;
    }

    .pageWrapper {
        width: 95%;
    }

    #musicList {
        font-size: 14px;
    }

    .bareRecherche {
        font-size: 16px;
    }

    .bareRechercheContainer {
        flex-direction: column;
        align-items: stretch;
    }

    .bareRechercheContainer .iconClear {
        position: relative;
        top: 0;
        right: auto;
        margin: 5px 0;
    }

    .anime-info {
        display: block;
        margin: 3px 0 8px;
        font-size: 0.75rem;
    }

    .statut-icon {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 1024px) {
    .listeRecherche {
        max-width: 90vw;
    }
    .item-container {
        width: 45%;
        max-width: 45vw;
    }
}

@media screen and (max-width: 768px) {
    .listeRecherche {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .item-container {
        width: 90%;
        max-width: 90%;
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .item-container img {
        width: 100%;
        height: auto;
    }
    .info-container {
        width: 100%;
    }

}


.information-container {
    margin-top: 22%;
    width: 70vw;
    background: var(--background);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px;
    gap: 0.75em;
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    border-radius: 5px;
    align-items: center;
    justify-content: space-between;
}
.information-texte-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.conteneur .information-image {
    width: 25%;
    min-width: 500px;
    margin: auto;
    border-radius: 6px;
}
.conteneur .information-image-chevre {
    width: 25%;
    min-width: 100px;
    margin: auto;
    border-radius: 6px;
}
.conteneur .information-bloc {
    width: 100%;
    background: var(--darkBackground);
    padding: 10px;
    border-radius: 6px;
}
.information-texte-container {
    width: 50%;
    font-size: larger;
}


.info-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    width: 100%;
}


.information-bloc {
    background: var(--lightBlue);

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.information-bloc strong {
    color: var(--primary);
}


.tags-bloc {
    margin-top: 15px;
}


.synopsis-bloc {
    margin-top: 15px;
}


.synopsis-bloc p {
    margin-top: 10px;

    font-size: 0.9rem;

    font-style: italic;

    line-height: 1.5;
}


.home-sections { display: flex; gap: 30px; align-items: flex-start; } .home-sections > .anime-grid-wrapper { flex: 1; min-width: 0; }

.recent-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-header .section-title {
    margin: 0;
    text-align: center;
}

.recent-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;

    background: var(--primary);
    color: white;

    cursor: pointer;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.recent-arrow:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.recent-arrow i {
    font-size: 16px;
}


@media(max-width: 700px){

    .info-grid {
        grid-template-columns: 1fr;
    }

}

#deconnexion{
    position: relative;
    right: 5%;
    background: var(--background);
    border: var(--background);
    font-size: 17px;
}
#newuser{
    position: relative;
    background: var(--background);
    border: var(--background);
    font-size: 17px;
}
#enregistrer{
    position: relative;
    right: 5%;
    background: var(--background);
    border: var(--background);
    font-size: 17px;
}
#connecter{
    position: relative;
    background: var(--background);
    border: var(--background);
    font-size: 17px;
}

.bouton{
    display: flex;
}

.border-red {
    border: 2px solid red;
}

/* Classe de base pour tous les éléments */
.item-container {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.completed:hover {
    background-color: #ba1a1a;
    color: white;
    transform: scale(1.05);
}

.in-progress:hover {
    background-color: #3737aa;
    color: white;
    transform: scale(1.05);
}

.abandoned:hover {
    background-color: #277c27;
    color: white;
    transform: scale(1.05);
}

.no_view:hover {
    background-color: #ffffff;
    color: white;
    transform: scale(1.05);
}

.saison-list, .film-list, .music_list {
    margin-top: 20px; /* espace entre la section précédente et la liste des saisons */
    width: 100%; /* prend toute la largeur disponible */
    background: #2d2c2c; /* couleur de fond */
    border-radius: 8px; /* coins arrondis pour un effet plus doux */
    padding: 15px; /* espacement interne */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* ombre pour donner de la profondeur */
}

.saison-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px; /* espace entre chaque bloc saison */
    margin-top: 10px;
}

.saison-content {
    background: var(--darkBackground);
    padding: 15px;
    border-radius: 6px;
    color: var(--white);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

.saison-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.saison-content p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.saison-content div {
    margin-top: 10px;
}

.saison-container{
    border-bottom: 1px solid var(--lightGrey);
}

.saison-container:last-child {
    border-bottom: none; /* Supprime la bordure pour la dernière saison */
}

.music-list {
    margin-top: 20px; /* espace entre la section précédente et la liste des musiques */
    width: 100%; /* prend toute la largeur disponible */
    background: var(--lightBlue); /* couleur de fond */
    border-radius: 8px; /* coins arrondis pour un effet plus doux */
    padding: 15px; /* espacement interne */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* ombre pour donner de la profondeur */
}

.music-buttons {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: stretch;

    gap: 20px;

    margin-top: 20px;

    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 10px;
}



.extra-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}


.extra-section {
    flex: 1;
    background: var(--darkBackground);
    border-radius: 8px;
    padding: 15px;
}

.extra-section:only-child {
    width: 100%;
}


.film-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}


.film-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}


.film-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform .3s ease;
}


.film-overlay {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;

    padding: 10px;

    background: rgba(0,0,0,0.75);
    color: white;

    transform: translateY(100%);
    transition: transform .3s ease;

    text-align: center;
}


.film-card:hover .film-overlay {
    transform: translateY(0);
}


.film-card:hover img {
    transform: scale(1.05);
}


.film-overlay h4 {
    font-size: 14px;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
}

.film-overlay {
    min-height: 100px;
}


.film-overlay p {
    margin: 3px 0;
    font-size: 12px;
}


.canon {
    color: #00ff99;
}

.music-content {
    width: 100%;                /* prend toute la colonne */
    max-width: 250px;
    position: relative;
    background: linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(0,0,0,0.3)
    );

    padding: 20px 20px 20px 28px;

    border-radius: 18px 6px 18px 6px; /* coins alternés */

    box-shadow:
            0 6px 18px rgba(0,0,0,0.35);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    flex: 0 1 300px;
    display: flex;
    flex-direction: column;
}

.music-content:hover {
    transform: translateY(-6px) scale(1.02);
}

@media (max-width: 768px) {
    .music-buttons {
        justify-content: center; /* centrer les blocs */
    }

    .music-content {
        flex: 0 1 90%;          /* prend presque toute la largeur */
    }
}

.item-container {
    position: relative; /* permet de placer l'icône par rapport à la case */
    display: inline-block;
    width: 220px; /* largeur totale de ta case */
    height: 235px;
    margin: 20px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: #000000; /* ou autre */
}

.item-container.anime { height: 265px !important; width: 190px !important; }
.item-container.film { height: 250px; width: 180px; }
.item-container.artiste { height: 100px; }

.statut-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 2px 5px;
}

.statut-icon .fa-check-circle { color: green; }
.statut-icon .fa-book-open { color: #ffd600; }
.statut-icon .fa-hourglass-half { color: orange; }
.statut-icon .fa-times-circle { color: red; }
.statut-icon .fa-eye { color: gray; }

.table-artiste {
    background-color: #1e1e1e !important;
    color: #fff !important;
    border-collapse: collapse !important;
}

.table-artiste thead {
    background-color: #333 !important;
    color: #fff !important;
}

.table-artiste tbody tr:nth-child(odd) {
    background-color: #2a2a2a !important;
}

.table-artiste tbody tr:nth-child(even) {
    background-color: #1e1e1e !important;
}

.table-artiste tbody tr:hover {
    background-color: #444 !important;
}

.table-artiste th,
.table-artiste td {
    border: 1px solid #555 !important;
    padding: 8px;
}


.info-nom p {
    white-space: nowrap;       /* tout sur une seule ligne */
    overflow: hidden;          /* cache ce qui dépasse */
    text-overflow: ellipsis;   /* ajoute "..." */
    max-width: 180px;          /* largeur max du texte */
    margin: 0 auto;            /* centre le texte dans la case */
    display: block;            /* assure un bloc pour bien appliquer */
    text-align: center;

}



.music-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.music-content p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.music-content div {
    margin-top: 10px;
}

#anime_music {
    display: flex;
    flex-direction: column;
    overflow-y: scroll; /* Ajoute un défilement vertical */
    gap: 15px;
    padding-right: 10px; /* Assure que le contenu ne se cache pas sous la barre de défilement */
}

.music-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.music-header h4 {
    color: var(--primary);
}

.music-type,
.music-number {
    font-size: 0.9rem;
    color: var(--darkGrey);
}

.music-body {
    font-size: 1rem;
}

.music-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.music-artists {
    margin-top: 8px;

    max-height: 60px; /* hauteur max avant scroll */
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 5px; /* évite que le texte colle à la scrollbar */
}

/* Scrollbar plus discrète */
.music-artists::-webkit-scrollbar {
    width: 6px;
}

.music-artists::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.music-artists::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

.btn-music {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-right: 8px;

    color: white;
    text-decoration: none;

    background: var(--darkBackground);

    clip-path: polygon(
            25% 5%,
            75% 5%,
            95% 50%,
            75% 95%,
            25% 95%,
            5% 50%
    );

    box-shadow: 0 4px 12px rgba(0,0,0,0.5);

    transition: all 0.3s ease;
}

.btn-music:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-music:first-of-type {
    background: linear-gradient(135deg, #4e9af1, #2563eb);
}

.btn-music:last-of-type {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}


.scrollable-container {
    height: 500px;  /* Ajuste la hauteur de la zone de défilement */
    overflow-y: auto;  /* Affiche une barre de défilement verticale */
    margin-bottom: 20px; /* Un peu d'espace en bas */
    padding: 10px;  /* Un peu d'espace autour du contenu */
    border: 1px solid #ddd;  /* Bordure pour délimiter la zone */
}


.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #313131; /* couleur de fond */
    border-radius: 8px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu horizontalement */
    gap: 20px;/* S'assure que .conteneur occupe au moins toute la hauteur visible */
}



.information-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu horizontalement */
    gap: 20px; /* Espace entre les enfants */
}

.information-texte-container {
    max-width: 100%;
    text-align: center; /* Optionnel */
}

.stats-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.5;
}

.stats-summary p {
    font-weight: bold;
    font-size: 1.3rem;
    color: #2c3e50;
}

.stats-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f1f1;
    border-radius: 8px;
}

.tag-container {
    display: flex;
    gap: 10px; /* Espacement entre chaque tag */
    flex-wrap: wrap; /* Permet aux tags de passer à la ligne si nécessaire */
}

.tag {
    background-color: #00b2f3;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin: 2px;
    text-transform: capitalize;
}

.tag:hover {
    background-color: #0039f3;
    cursor: pointer;
}

.tag-filter-container {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
}

.tag-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.tag-checkbox-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox-list label {
    font-family: Bahnschrift; /* Change ici la police si tu veux une autre */
    font-size: 14px;
    font-weight: 500;
    color: #f0f0f0;
    margin-right: 20px; /* Plus d’espace entre les tags */
    margin-bottom: 10px;
    display: inline-block;
    cursor: pointer;
}


.tag-checkbox-list input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1); /* Taille augmentée pour plus de visibilité */
    cursor: pointer;
}
/* Styles par défaut */
.information-texte-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 500px; /* largeur desktop */
}

.information-bloc {
    font-size: 1rem;
}

/* Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    background-color: #094297;
    border-radius: 0.25rem;
}

.pagination-btn {
    background-color: #444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.pagination-btn:hover:not(:disabled) {
    background-color: #666;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-type-musique {
    display: flex;
    flex-direction: row; /* met en ligne */
    gap: 20px; /* espace entre les radios */
    align-items: center;
}

.radio-type-musique > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sync-tags {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    background: #3b82f6;
    color: white;

    border: none;
    border-radius: 50%;

    cursor: pointer;
}


.tags-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
}

.btn-sync-tags:hover {
    background: #2563eb;
}

.tag-sync-form {
    display: inline-block;
    margin: 0px;
    vertical-align: middle;
}

.tags-line {
    display: flex;
    align-items: center;
    gap: 8px;
}



.filter-actions {
    margin-top: 15px;
    text-align: center;
}

.btn-reset-filters {
    background: #6c757d;
    color: white;

    border: none;
    border-radius: 6px;

    padding: 8px 15px;

    cursor: pointer;
    transition: background 0.2s;
}

.btn-reset-filters:hover {
    background: #5a6268;
}

/* Styles pour petits écrans */
@media (max-width: 768px) {
    .information-texte-container {
        width: 95%;       /* occupe presque toute la largeur */
        gap: 1rem;        /* espace entre les blocs plus grand */
        margin: 0 auto;   /* centré horizontalement */
    }

    .information-bloc {
        font-size: 1.2rem;   /* texte plus grand */
        padding: 0.5rem;     /* plus d’espace autour */
    }

    .information-bloc p {
        font-size: 1.1rem;   /* paragraphe plus lisible */
    }

    .information-bloc label {
        font-size: 1.2rem;   /* labels plus grands */
    }

    .tag {
        font-size: 1rem;     /* tags plus grands */
        padding: 0.4rem 0.6rem;
    }
  
  /*.suite-image {
        display: none;
    }*/
}



/* Tableau principal */
.saison-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.saison-row {
    display: grid;
    grid-template-columns: 150px 2fr 1fr 1fr 0.7fr;
    gap: 8px;
    align-items: center;
  text-align:center;
  background: var(--darkBackground);
  border-radius: 3px;
  
}

.saison-row.header {
    font-weight: bold;
    border-bottom: 1px solid #555;
  background: #232121FF;
}

.saison-row > div {
    padding: 4px;
}

.suite-image {
    width: 145px;
  border-radius: 3%;
}

/* MOBILE */
@media (max-width: 768px) {

    .saison-row {
        grid-template-columns: 2fr 0.7fr 1fr 0.6fr;
    }

    .col-illustration {
        display: none;
    }

    .suite-image {
        display: none;
    }
}


.anime-link-block {
    margin-top: 20px;
}

.anime-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.anime-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.anime-link-card img {
    width: 60px;
    border-radius: 6px;
}

.anime-link-text small {
    opacity: .7;
    display: block;
}

.anime-link-text strong {
    color: var(--primary);
}



.carousel-container {
    position: relative;
    width: 300px;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* Wrapper des deux sections */
.anime-sections {
    display: flex;                 /* aligne horizontalement */
    justify-content: space-between; /* espace entre gauche et droite */
    gap: 40px;                     /* écart horizontal */
}

/* Chaque section garde sa largeur et style */
.anime-grid-wrapper {
    flex: 1;                        /* prend 50% chacune, ajustable */
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 180px);
    justify-content: center;
    gap: 60px 20px;
    position: relative;
}

/* Cartes */
.anime-card {
    position: relative;
    width: 180px;
    border-radius: 12px;
    background: #2a2a2a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}


.anime-card img {
    width: 180px;
    height: 260px;
    object-fit: cover;
    display: block;
}


.badge-retard {
    position: absolute;
    top: 8px;
    left: 8px;

    width: 28px;
    height: 28px;

    background: red;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 14px;

    z-index: 10;
}

.badge-tooltip {
    position: absolute;

    top: 35px;
    left: 0;

    background: rgba(0, 0, 0, 0.85);
    color: white;

    padding: 6px 10px;

    border-radius: 5px;

    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease;
}


.badge-retard:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
}


.progress-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.genre-progress-bar {
    display: flex;

    width: 100%;
    height: 25px;

    border-radius: 10px;
    overflow: hidden;

    margin: 15px 0;
}

.genre-shonen {
    background-color: #2196f3;
}

.genre-seinen {
    background-color: #e91e63;
}

.genre-shojo {
    background-color: #ff1d8d;
}

.genre-josei {
    background-color: #784888;
}

.note-container, .repartition-container {
    margin: 15px 0;
}

.note-info, .repartition-info, .canon-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.canon-progress-bar {
    display: flex;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.canon-yes {
    background-color: #4caf50;
}

.canon-no {
    background-color: #f44336;
}

.note-bar {
    width: 100%;
    height: 18px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.note-fill {
    height: 100%;
    background-color: #ffc107;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.anime-name {
    color: white !important;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px;
    margin: 0;
    min-height: 40px;

    width: 100%;
    max-width: 160px;      /* adapte à la largeur de ta carte */
    margin-left: auto;
    margin-right: auto;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    cursor: pointer;
}

/* Hover */
.anime-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.6);
}

.anime-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;

    pointer-events: none;  /* <-- IMPORTANT */
}

.anime-card:hover::after {
    opacity: 1;
}

/* 🎯 Effet superposition + décalage */
/*.anime-card:nth-child(4),
.anime-card:nth-child(5) {
    transform: translate(90px, -40px);
}*/
.home-card:nth-child(n+4) {
    transform: translateY(-40px);
  transform: translate(40px, -40px);
}



/* ========================= */
/* 📱 TABLETTE */
/* ========================= */
@media (max-width: 1024px) {

    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .anime-card {
        width: 100%;
        height: 240px;
    }

    /* On supprime l'effet décalage */
    .anime-card:nth-child(n+4) {
    transform: none;
}
}


/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 768px) {

    /* Les deux sections passent en colonne */
    .anime-sections {
        flex-direction: column;
        gap: 30px;
    }

    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .anime-card {
        width: 100%;
        height: 220px;
    }
}


/* ========================= */
/* 📱 PETIT MOBILE */
/* ========================= */
@media (max-width: 480px) {

    .anime-grid {
        grid-template-columns: 1fr;
    }

    .anime-card {
        height: 260px;
    }
}


/* ========================================= */
/* RESPONSIVE ACCUEIL                        */
/* ========================================= */

/* Tablettes */
@media (max-width: 1200px) {

    .home-sections {
        gap: 20px;
    }

    .anime-grid {
        grid-template-columns: repeat(2, 160px);
        gap: 40px 15px;
    }

    .anime-card {
        width: 160px;
    }

}


/* Petites tablettes / grands téléphones */
@media (max-width: 900px) {

    .home-sections {
        flex-direction: column;
        gap: 40px;
    }

    .home-sections > .anime-grid-wrapper {
        width: 100%;
    }

    .anime-grid {
        grid-template-columns: repeat(3, 160px);
        gap: 40px 15px;
    }

    .anime-card {
        width: 160px;
    }

}


/* Téléphones */
@media (max-width: 600px) {

    .home-sections {
        gap: 30px;
    }

    .anime-grid {
        grid-template-columns: repeat(2, 140px);
        gap: 35px 15px;
    }

    .anime-card {
        width: 160px;
    }

    .recent-header {
        gap: 8px;
    }

    .recent-header .section-title {
        font-size: 1.2rem;
    }

    .recent-arrow {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .recent-arrow i {
        font-size: 14px;
    }

}


/* Très petits téléphones */
@media (max-width: 350px) {

    .anime-grid {
        grid-template-columns: repeat(2, 125px);
        gap: 30px 10px;
    }

    .anime-card {
        width: 125px;
    }

    .recent-header .section-title {
        font-size: 1rem;
    }

    .recent-arrow {
        width: 28px;
        height: 28px;
    }

}







