/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Satisfy&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

:root {
    --neon-white: #fff;
    --neon-gray: #ccc;
    --main-color: #ff2c1f;
    --neon-red: #c40003;
    --text-color: #020307;
    --bg-color: #fff;
    --sh-color: #1b1c1f;
}

body {
    background: var(--text-color);
    color: var(--bg-color);
}

section {
    padding: 4.5rem 0 1+2.5rem;
}

#home {
    height: 90vh;
}

header {
    position: sticky;
    width: 100%;
    top: 0;
    height: 5rem;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 100px;
    transition: 0.5s;
    background-color: var(--sh-color);
}

h2 {
    text-align: left;
    margin-left: 5%;
    margin-right: 5%;
}

i {
    color: var(--main-color);
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.logo .bx {
    font-size: 24px;
    color: var(--main-color);
}

.navbar {
    display: flex;
    column-gap: 5rem;
    justify-content: space-between;
}

.navbar li {
    position: relative;
}

.navbar a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bg-color);
}

.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.4s all linear;
}

.navbar a:hover::after,
.navbar a.home-active::after {
    width: 100%;
}

#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 1000001;
    display: none;
}

.btn {
    padding: 0.7rem 1.4rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
    border-radius: 0.5rem;
}

.btn:hover {
    background: #c40003;
}

.container {
    width: 100%;
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgb(2, 3, 7, 0.4);
}

.warning {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 0.2rem !important;
    background: var(--bg-color) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    width: 1.5rem !important;
    background: var(--main-color) !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0.7);
    object-fit: cover;
    object-position: 20% 20%;
}

.home-text {
    z-index: 1000;
    padding: 150px 150px;
}

.home-text span {
    color: var(--bg-color);
    font-weight: 500;
    text-transform: uppercase;
}

.home-text h1 {
    color: var(--bg-color);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.voirplus {
    margin-right: 5%;
}

.affiche-haut {
    display: flex;
    justify-content: space-between;
}

.affiche-haut .voirplus {
    padding: 8px 16px;
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.affiche-haut .voirplus:hover {
    background-color: var(--neon-red);
}

.film-affiche {
    height: auto;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    margin-left: 5%;
    margin-right: 5%;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.film-affiche a img {
    min-width: 120px;
    max-width: 230px;
    height: 100%;
    width: auto;
    object-fit: cover;
}

.popcorn {
    margin-left: 0%;
    margin-right: 5%;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    width: 400px;
    height: auto;
    float: right;
}

.intro {
    display: flex;
    width: 45%;
    align-items: center;
    text-align: center;
    font-size: 1.10rem;
    margin-left: 5%;
}

.titre {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#info-titre {
    text-align: center;
}

#pop {
    display: flex;
    justify-content: space-evenly;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* SearchBar */

/*  footer  */

footer {
    background: (var--text-color);
    height: auto;
    font-family: "Open Sans";
    padding-top: 40px;
    color: var(--bg-color);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 3rem;
}

.footer-content p {
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
}

.socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}

.socials li {
    margin: 0 10px;
}

.socials a {
    text-decoration: none;
    color: var(--bg-color);
}

.socials a i {
    font-size: 1.25rem;
    transition: color .4s ease;
}

.socials a:hover i {
    color: var(--neon-red);
}

.footer-bottom {
    background: var(--text-color);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}

.footer-bottom span {
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}

/* Page info film */

h2.bande-annonce {
    margin-left: 0%;
    margin-bottom: 17px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.container-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.all-info {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.info-left {
    display: flex;
    flex-direction: column;
}

#separator {
    padding-top: 3%;
}

.separateur-film {
    position: relative;
    padding-left: 15px;
}

.separateur-film::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neon-white);
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {

    0%,
    100% {
        box-shadow: 0 0 5px var(--neon-white), 0 0 15px var(--neon-gray);
    }

    50% {
        box-shadow: 0 0 8px (var--neon-gray), 0 0 12px var(--neon-white);
    }
}

#synopsis {
    display: block;
    max-width: 500px;
}

.info-right {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
}

#info-btn {
    align-self: flex-end;
    margin-top: auto;
}

/* Popup mentions */
.popup-mentions-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-mentions-content {
    background: #1b1c1f;
    /* Couleur de fond sombre pour le popup */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#close-popup {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--bg-color);
}

.popup-mentions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-mentions-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.popup-mentions-close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.popup-mentions-body {
    max-height: 60vh;
    overflow-y: auto;
}

.popup-mentions-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--bg-color);
}

.popup-mentions-body p,
.popup-mentions-body li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* Pour les navigateurs basés sur WebKit (Chrome, Safari) */
.popup-mentions-body::-webkit-scrollbar {
    width: 5px;
}

.popup-mentions-body::-webkit-scrollbar-track {
    background: var(--sh-color);
}

.popup-mentions-body::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
}

.popup-mentions-body::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

body.modal-open {
    overflow: hidden;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 470px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 1.5em;
    color: #333;
}

.close-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.5em;
    color: #333;
}

.close-btn:hover {
    color: #666;
}

.input-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    font-size: 1em;
    margin-bottom: 5px;
    color: #333;
}

.input-group .flex-75,
.input-group .flex-25 {
    flex-basis: 0;
}

.input-group .flex-75 {
    margin-right: 10px;
}

.input-group .flex-25 {
    flex-grow: 1;
    display: flex;
    justify-content: end;
    flex-direction: column;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group select {
    padding: 8px 10px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 0.9em;
}

.submit-btn {
    width: 100%;
    background-color: var(--main-color);
    color: white;
    padding: 10px 15px;
    border: none;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--neon-red);
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-container input[type="text"] {
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 0.9em;
}

.special-justify {
    justify-content: start !important;
}

#form-movie-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #ffffff;
    border-radius: 8px;
    max-width: 750px;
    margin: 20px 5% 20px auto
}

#form-movie-search input[type="text"],
#form-movie-search select {
    flex-grow: 1;
    padding: 8px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

#form-movie-search button {
    padding: 8px 16px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#form-movie-search button:hover {
    background-color: var(--neon-red);
    transition: background-color 0.3s ease;
}

.search-movies {
    display: flex;
    justify-content: space-between;
}


/* Media Queries for Responsive Design */
@media (max-width: 1280px) {
    header {
        padding: 20px 50px;
    }

    .home-text {
        padding: 100px 100px;
    }

    .intro {
        width: 60%;
    }
}


@media (max-width: 1000px) {
    #menu-icon {
        display: flex;
        align-self: center;
    }


    .swiper-slide {
        display: flex !important;
    }

    #menu-hamburger {
        display: flex;
        gap: 5%;
    }

    .navbar {
        position: absolute;
        z-index: 10000;
        top: 5rem;
        right: 0;
        width: 100%;
        height: calc(100vh - 5rem);
        background: rgba(2, 3, 7, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        row-gap: 1.5rem;
        display: none;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 1.5rem;
    }

    header {
        padding: 20px;
        justify-content: space-between;
    }

    .home-text {
        padding: 50px 20px;
        text-align: center;
    }

    .intro {
        width: 90%;
        margin: 0 auto;
        font-size: 1rem;
    }

    .film-affiche {
        margin-left: 2%;
        margin-right: 2%;
        gap: 10px;
    }

    .popcorn {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    .affiche-haut {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .all-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 835px) {
    #form-movie-search {
        margin: 20px 5% 20px 5%;
    }
}