/* ============================= */
/* BASE : Conteneur de section   */
/* ============================= */
.section-container {
    max-width: 1300px;   /* Ou la largeur que tu souhaites */
    margin: 0 auto;      /* Centre horizontalement */
    padding: 0 1rem;     /* Petite marge interne */
}

/* ============================= */
/* TITRES DES SECTIONS           */
/* ============================= */
.section-title {
    position: relative;
    display: flex;
    color: #fff;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.3rem;
    text-shadow: 2px 3px 0 #000, 0 0 18px #ffd70033;
    padding-bottom: 0.25em;
    align-items: center;
    justify-content: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) skewX(-16deg) scaleY(0.7) rotate(-2deg);
    bottom: 0;
    width: 104px;
    height: 7px;
    background: 
        linear-gradient(100deg, #ff751000 10%, #ae9a2d 60%, #d99a23 100%, #86111700 100%);
    opacity: 0.95;
    border-radius: 11px 29px 8px 25px / 20px 11px 15px 17px;
    filter: blur(0.5px) drop-shadow(0 2px 9px #ffd700bb);
    z-index: 0;
    pointer-events: none;
}
@keyframes shonen-streak {
    0% { filter: blur(0.5px) drop-shadow(0 2px 9px #ffd700bb) brightness(1.03);}
    100% { filter: blur(0.7px) drop-shadow(0 6px 16px #ffd700cc) brightness(1.28);}
}

/* ============================= */
/* SECTION : À Découvrir         */
/* ============================= */
.discover-section {
    margin-bottom: 3rem;
    padding: 1rem 0;
    /* On enlève le width: 100vw et les marges négatives */
}

.discover-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    width: 100%;
    max-width: 100%;
    cursor: grab;
}

.discover-carousel:active {
    cursor: grabbing;
}

.discover-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.discover-item {
    flex: 0 0 auto;
    width: 200px;
    height: 300px;
    position: relative;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: #1a1a1a; /* Couleur de fond cohérente avec le thème */
}

.discover-item:hover {
    transform: translateY(-5px);
}

.discover-cover {
    width: 100%;
    height: 100%;
}

.discover-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    position: relative;
}

.discover-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 5;
}

/* ============================= */
/* SECTION : Top Projets         */
/* ============================= */
.top-projects-section {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.top-projects-container {
    /* On centre via le conteneur parent .section-container */
    display: flex;
    flex-direction: row; 
    gap: 2rem;
}

.featured-project {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    order: 2; /* Pour l'effet de positionnement */
}

.featured-project-cover {
    flex: 0 0 auto;
    height: 250px;
    position: relative;
}

.featured-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-tag-featured {
    position: absolute;
    top: 10px;
    left: 257px;
    background-color: rgba(65, 105, 225, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.top-rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700; /* Or pour le badge #1 */
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.featured-project-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.featured-project-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
}

.featured-project-genres {
    color: #cccccc;
    font-size: 0.9rem;
}

.featured-project-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.featured-project-description {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.featured-project-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.featured-project-views {
    color: #cccccc;
    font-size: 0.9rem;
}

.featured-project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-projects-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    order: 1;
}

.project-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-cover {
    position: relative;
    height: 250px;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.rank-2 {
    background-color: #c0c0c0; /* Argent pour le badge #2 */
    color: #000;
}
.rank-3 {
    background-color: #cd7f32; /* Bronze pour le badge #3 */
    color: #000;
}
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8 {
    background-color: #4169e1; /* Bleu pour les autres badges */
    color: #fff;
}

.project-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffd700;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-info {
    padding: 1rem;
}

.project-title {
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #cccccc;
    font-size: 0.8rem;
}

.project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ============================= */
/* SECTION : Nouveaux Projets    */
/* ============================= */
.new-projects-section {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.new-projects-container {
    width: 100%;
    overflow-x: auto; 
    scrollbar-width: none; 
    cursor: grab;
}

.new-projects-container:active {
    cursor: grabbing;
}

.new-projects-container::-webkit-scrollbar {
    display: none; 
}

.new-projects-grid {
    display: flex; 
    flex-wrap: nowrap; 
    gap: 1rem;
    width: max-content; 
    padding-bottom: 1rem; 
}

.new-project-card {
    flex: 0 0 200px; 
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.new-project-card:hover {
    transform: translateY(-5px);
}

.new-project-cover {
    position: relative;
    height: 250px;
}

.new-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-project-info {
    padding: 1rem;
}

.new-project-title {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-project-meta {
    color: #cccccc;
    font-size: 0.8rem;
}

.new-project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.view-more-card {
    flex: 0 0 200px;
    background-color: rgba(65, 105, 225, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: background-color 0.3s ease;
}

.view-more-card:hover {
    background-color: rgba(65, 105, 225, 0.5);
}

.view-more-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.view-more-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ============================= */
/* FOOTER simplifié              */
/* ============================= */
.site-footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================= */
/* MEDIA QUERIES (responsive)    */
/* ============================= */

@media (max-width: 1200px) {
    .top-projects-container {
        flex-direction: column;
    }
    .featured-project {
        order: 1;
        margin-bottom: 2rem;
    }
    .top-projects-grid {
        order: 2;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-project {
        flex-direction: column;
    }
    .featured-project-cover {
        height: 300px;
    }
    .top-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-projects-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .top-projects-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .release-title {
        font-size: 0.9rem;
    }

    .section-title::before,
    .section-title::after {
        width: 40px !important; /* Réduction de la longueur des barres */
        margin: 0 1px;
    }

}

@media (max-width: 576px) {

    .section-title {
        font-size: 1.3rem !important; /* Encore plus petit si nécessaire */
    }

    .section-title::before,
    .section-title::after {
        width: 30px; /* Encore plus court pour les petits écrans */
    }

}