.header-scrolled {
    transition: .5s;
    background: #0f0d13cc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
}

header {
    height: 80px;
    width: 100%;
    background-color: var(--background);
    position: fixed;
    z-index: 9;
    transition: .5s ease;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    max-width: 1900px;
}

.header-container div {
    display: flex;
    align-items: center;
}

.header-container img {
    width: 30px;
    height: 30px;
}



.btn-register-index {
    padding: 15px 25px;
    color: var(--black);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: .3s ease;
    border-radius: 30px;
    background-color:var(--nebulapurple);
    text-decoration: none;
}
.btn-login-index{
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: .3s;
    margin-right: 10px;

}

.btn-register-index:hover{
    background-color: #6e18b9;
}

.background {
    background-image:
        linear-gradient(to top, rgba(9, 9, 11, 1), rgba(9, 9, 11, 0) 60%),
        linear-gradient(to bottom, rgba(9, 9, 11, 1), rgba(9, 9, 11, 0) 60%),
        linear-gradient(to right, rgba(9, 9, 11, 1), rgba(9, 9, 11, 0) 60%),
        linear-gradient(to left, rgba(9, 9, 11, 1), rgba(9, 9, 11, 0) 60%),
        url(../img/background.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    top: 80px;

}

.global-container {
    width: 90%;
    margin: 0 auto;
    max-width: 1900px;
    position: relative;
    z-index: 1;
}

.presentation {
    display: flex;
    justify-content: center;
}

p {
    text-align: center;
    color: #fff9;
    margin-top: 17px;
}
h2 {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
}
h3 {
    text-align: center;
    font-size: 2.125rem;
    margin-top: 150px;
}


.film-flex {
    display: flex;
}

.film {
    width: 150px;
    height: 210px;
    margin: 10px;
    margin-top: 35px;
    flex-wrap: wrap;
    display: flex;
    overflow: hidden;
}

.film img {
    width: 100%;
    object-fit: cover;
    display: block;
    object-position: center top;
    height: 100%;
    width: 100%;
    transition: .3s ease;
    cursor: pointer;
}

.film img:hover {
    scale: 1.1;
}

.picto {
    display: flex;
    justify-content: center;
    margin-top: 150px;
}

.picto div {
    margin: 0 20px;
    text-align: center;
}

.picto i {
    font-size: 50px;
    color: var(--nebulapurple);
    border-radius: 50%;
    transition: all .5s;
}

.picto div h3 {
    margin-top: 50px;
    color: #fff;
    font-size: 1.5rem;
}

.subscription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Utilisation de grid avec des cartes qui s'adaptent */
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.subscription-card {
    background-color: #18181b;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    text-align: left;
}

.subscription-card:hover {
    transform: scale(1.02);
}

.popular {
    border: 3px solid var(--nebulapurple);
    position: relative;
}

.popular::before {
    content: "Le plus populaire";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nebulapurple);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price {
    font-size: 2rem;
    color: var(--nebulapurple);
    margin: 20px 0;
    font-weight: bold;

}

ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 30px;
}

ul li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

ul li i {
    color: var(--nebulapurple);
    margin-right: 10px;
    font-size: 1.5rem;
}

.subscribe-btn {
    background-color: var(--nebulapurple);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.subscribe-btn:hover {
    background-color: #6e18b9;
}

.subscription-section h3 {
    font-size: 2.125rem;
    margin-bottom: 45px;
    font-weight: bold;
    margin-top: 150px;

}

.screen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 150px;
    text-align: left;
    width: 60%;
}

.screen h3,
.screen p {
    text-align: left;
}

.screen h3 {
    margin-top: 0;
}

.screen img {
    width: 100%;
    max-width: 700px;
    height: auto;
}

.screen-right {
    width: 100%;
    display: flex;
    justify-content: center;
}

.question-container {
    margin: 0 auto;
    width: 90%;
    margin-top: 150px;
}

.question-container h3 {
    margin-bottom: 40px;
}

.question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2d2d2d;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 7px;
    transition: all .3s;
}

.question:hover {
    background-color: #3c3c3c;
}

.question-selected {
    border-radius: 7px 7px 0 0;
}

.question p {
    color: #fff;
    margin: 0;
    text-align: inherit;
}

.question i {
    font-size: 25px;
}

.ri-close-large-line {
    font-size: 25px;
}

.reponse {
    width: 100%;
    background-color: #1f1f1f;
    display: flex;
    margin-top: -7px;
    padding: 1.5rem;
    margin-bottom: 10px;
    transition: all .3s;
    line-height: 23px;
    border-radius: 0 0 7px 7px;
}

.reponse p {
    margin: 0;
    text-align: left;
}

.croix {
    transition: all .3s;
}

.croix-rotate {
    transform: rotate(45deg);
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
}

.star {
    position: absolute;
    background: #9f35fc;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star:nth-child(1) {
    top: 110%;
    left: 8%;
    width: 22px;
    height: 22px;
    transform: rotate(31deg);
}

.star:nth-child(2) {
    top: 100%;
    left: 89%;
    transform: rotate(60deg);
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .background {
        height: 50vh;

    }

    h2 {
        font-size: 2rem;
        width: 95%;
    }

    .film-flex {
        display: block;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 13px;
    }

    .screen {
        display: block;
        width: 90%;
    }

    .screen h3,
    .screen p {
        text-align: center;
    }

    .screen img {
        margin-top: 2rem;
    }

    .question-container {
        width: 100%;
    }

    .star {
        display: none;
    }
}

@media (max-width: 764px) {
    .background {
        height: 50vh;
    }

    .presentation {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .film-flex {
        display: flex;
    }

    .film {
        width: 140px;
    }

    .picto {
        display: block;
    }

    .picto div {
        margin: 35px 0;
        text-align: center;
    }
}

