/* HEADER */
.ressources-header {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #000;
    color: #fff;
}
.ressources-header h1 {
    font-size: 2.3rem;
    font-weight: 700;
}
.search-bar {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.search-bar input {
    padding: 12px 18px;
    width: 380px;
    border-radius: 50px 0 0 50px;
    border: none;
    outline: none;
}
.search-bar button {
    background: #ff7b00;
    padding: 12px 20px;
    border-radius: 0 50px 50px 0;
    border: none;
    cursor: pointer;
    color: #fff;
}

/* SECTION */
.netflix-container {
    padding: 2rem 1.5rem;
    background: #111;
    color: #fff;
    /* width: 2500px;
    margin-left: -200px; */
}
.category-section {
    margin-bottom: 3rem;
}
.category-section h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

/* CAROUSEL */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* CARD */
.card {
    min-width: 280px;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease;
}
.card:hover {
    transform: scale(1.06);
}
.card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.card-info {
    padding: 1rem;
}
.card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.card-info p {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: 0.8rem;
}
.btn-orange {
    display: inline-block;
    padding: 8px 14px;
    background: #ff7b00;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: .85rem;
}

/* NAV BUTTONS */
.nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #00000099;
    border: none;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.nav:hover {
    background: #ff7b00;
}
.prev { left: 0; }
.next { right: 0; }

.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.pdf-modal-content {
    margin: auto;
    background: white;
    width: 80%;
    height: 85%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-pdf {
    position: absolute;
    top: 10px;
    right: 18px;
    color: black;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}
/* #pdfModal {
    display: none;
}
#pdfModal.open {
    display: block;
} */
 #pdfModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#pdfModal.open {
    display: flex;
}

#pdfModal iframe {
    border: none;
    width: 80%;
    height: 80%;
}

.close-pdf {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

