/* Styles pour la section Nouveaux Projets */

.new-projects-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.new-projects-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.new-projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    width: 100%;
    /* Assurer que les projets restent sur une seule ligne */
    flex-wrap: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .new-projects-grid {
        cursor: default !important;
    }
}

.new-projects-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.new-project-card {
    flex: 0 0 auto;
    width: 180px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    scroll-snap-align: start;
}

.new-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.new-project-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.new-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-project-card:hover .new-project-cover img {
    transform: scale(1.1);
}

.manga-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 2;
}

.new-project-info {
    padding: 0.8rem;
}

.new-project-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.new-project-card:hover .new-project-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.new-project-rating {
    color: #ffd700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.new-project-date {
    color: #aaa;
    font-size: 0.8rem;
}

.new-project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Carte "Voir plus" */
.view-more-card {
    flex: 0 0 auto;
    width: 180px;
    height: 330px; /* Même hauteur que les cartes de projet */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    scroll-snap-align: start;
}

.view-more-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.view-more-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.view-more-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .new-project-card {
        width: 160px;
    }
    
    .new-project-cover {
        height: 220px;
    }
    
    .view-more-card {
        width: 160px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .new-project-card {
        width: 140px;
    }
    
    .new-project-cover {
        height: 200px;
    }
    
    .view-more-card {
        width: 140px;
        height: 270px;
    }
}
