/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------Configuration de base ------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

:root {
    --main-color: #D40505;
    --second-color: #f1f1ec;
    --third-color: #090808;
    --fourth-color: #5b5b5b;
}

@font-face {
    font-family: Smeltex;
    src: url(fonts/Smeltex-Bold.otf);
}


* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    background-image: url(images/fondSite.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

main {
    margin: 0 10%;
}

a {
    color: inherit;
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------------------------Configuration du header + menu ------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
header {
    position: sticky;
    top: 0;
    background-color: rgba(241, 241, 236, 1);
    z-index: 10000000;
}



.Accueil {
    background-image: url(images/fondAccueil.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.divAccueil{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    width: 50%;
    color: var(--third-color);
    text-shadow: -20px 10px 20px var(--main-color);
    margin-left: 200px;
}

.divAccueil h1{
    font-size: 8.5rem;
    margin-bottom: 6%;
    text-shadow: none;
}
.divAccueil hr{
    color: var(--third-color);
}

.divAccueil h1::after{
    color: #090808;
}

.textAccueil{
    -webkit-text-stroke-width:  0.4rem;
    -webkit-text-stroke-color: black;
    color: transparent;
    animation: fillText 1s forwards;
}


@keyframes fillText {
    0% {
        color: transparent;
    }
    100% {
        -webkit-text-stroke-color: transparent;
        color: black;
    }
}


.menuList {
    display: none;
    font-family: "Smeltex";
    width: 100%;
    height: 100vh;
    font-size: 6rem;
    color: var(--second-color);
    background-color: var(--main-color);
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------------------------Configuration du bouton header + menu ------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.menu {
    position: relative;
    background-color: transparent;
    border: none;
    margin: 10px;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.menu:hover  .ligne{
    background-color: #D40505;
    transition: background-color 0.2s ease-in-out;
}

.logoMenu{
    width: 60px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ligne {
    position: absolute;
    width: 60px;
    height: 6px;
    background-color: var(--third-color);
    border-radius: 10px;
}

.menu .ligne:nth-child(1) {
    top: 0px;
}

.menu .ligne:nth-child(2) {
    top: 15px;
}

.menu .ligne:nth-child(3) {
    top: 30px;
}



.menu .ligne:nth-child(1),
.ligne:nth-child(3) {
    transform: rotate(0deg);
    transition: transform 0.4s ease-in-out, top 0.4s 0.4s ease-in-out;
}

.menu .ligne:nth-child(2) {
    transition: opacity 0.4s 0.4s ease-in-out;
}

.menu.active .ligne:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
    transition: top 0.4s ease-in-out, transform 0.4s 0.4s ease-in-out;
    background-color: var(--second-color);
}

.menu.active .ligne:nth-child(2) {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background-color: var(--second-color);
}

.menu.active .ligne:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
    transition: top 0.4s ease-in-out, transform 0.4s 0.4s ease-in-out;
    background-color: var(--second-color);
}

.fermerMenu {
    background-color: transparent;
    border: transparent;
    transition: fill 0.3s;
    width: 40px;
}

li {
    border-bottom: var(--second-color) solid;
    margin: 0 2%;
    transition: letter-spacing 0.2s ease-in-out;
}

.premierLi {
    border-top: var(--second-color) solid;
}

li:hover{
    background-image: url(images/fondAccueil.png);
    background-size: cover;
    color: var(--main-color);
    letter-spacing: 5px;
    transition: letter-spacing 0.2s ease-in-out;
}

h2 {
    font-family: "Smeltex", sans-serif;
    font-weight: 200;
}

.description {
    display: flex;
    align-items: flex-end;
    font-size: 2rem;
    white-space: pre-wrap;
    margin: 0 5% 10% 10%;
    height: 100%;
}

h1 {
    font-family: "Smeltex", sans-serif;
    font-weight: 200;
    font-size: 5rem;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ---------------------------------------------------------------------------------Carte Film accueil-----------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/


.carteFilm h2 {
    width: inherit;
}

.carteFilm {
    background-color: var(--second-color);
    border-radius: 20px;
    width: 30%;
    height: 700px;
    box-shadow: -20px 10px 20px var(--main-color);
    display: flex;
    flex-direction: column;
}

.carteFilm form {
    display: flex;
    justify-content: center;
    margin-top: 10%;
}

.carteFilm img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}



.textCart {
    margin: 2% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.logo {
    width: 80px;
    height: 80px;
    margin-right: 30px;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* --------------------------------------------------------------------------Carte de Film ou serie page film----------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.FilmDiv img {
    width: 250px;
}


.FilmDiv {
    display: flex;
    flex-direction: row;
    width: 80%;
    margin: 5% 10%;
}

.FilmDiv h2 {
    font-size: 3rem;
}

.Filmdetail {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 3%;
}

p {
    font-family: "IBM Plex Serif", serif;
    font-weight: 400;
}


.TitreDate {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.histoire {
    text-align: justify;
    color: var(--fourth-color);
    margin-bottom: 30px;
}

.textRed {
    color: var(--main-color);
}

.Film hr {
    color: var(--third-color);
}

.blocfilm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------Style du bouton ajouter ----------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.ajouter {
    background-color: transparent;
    color: var(--main-color);
    cursor: pointer;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    width: 300px;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: "Smeltex", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.ajouter svg {
    fill: var(--main-color);
    width: 20px;
    transition: fill 0.4s ease-in-out;
}

.ajouter hr {
    width: 3px;
    height: 30px;
    border: none;
    margin: inherit;
    background-color: var(--main-color);
    transition: background-color 0.4s ease-in-out;
}

.ajouter:hover {
    background-color: var(--main-color);
    color: var(--second-color);
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.ajouter:hover svg {
    fill: var(--second-color);
    transition: fill 0.4s ease-in-out;
}

.ajouter:hover hr {
    background-color: var(--second-color);
    transition: background-color 0.4s ease-in-out;
}
form {
    display: flex;
    justify-content: flex-end;
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------Bloc titre ----------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.presentMovies {
    margin: 10%;
}

.presentMovies h2{
    margin-bottom: 50px;
}




/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------Style du tableau de la tierlist --------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.categorie {
    width: 10%;
    text-align: center;
    height: 150px;
    border: var(--third-color) solid 2px;
    font-family: "Smeltex", sans-serif;
}

.emplacementFilm {
    width: 90%;
    height: 150px;
    background-color: var(--fourth-color);
    border: var(--third-color) solid 2px;
}

.tierlist{
    width: 100%;
    border: var(--third-color) solid 2px;
}

.ligneTierlist{
    display: flex;
    flex-direction: row;
}

.imageFilm{
    width: 100px;
    height: 150px;
}

.filmDepot {
    width: 100%;
    background-color: var(--second-color);

}


.max{
    background-color: #0f9c16;
}
.top{
    background-color: #37fa41;
}
.mid{
    background-color: #dde932;
}
.bot{
    background-color: #e9af32;
}
.min{
    background-color: #e93232;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------Page About ------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.AboutME{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.presentAbout{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.presentAbout hr{
    width: 100%;
}
.AboutME .contact svg{
    width: 200px;
    height: 200px;
    fill: var(--main-color);
    margin-bottom : 30px ;
}
.PageAbout{
    height: 100vh;
}
.PageAbout header{
    background-color:inherit ;
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------Style du footer ------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/


footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--fourth-color);
    margin-top: 60px;
    padding: 10px 0;
    color: var(--second-color);
}

.separation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

footer hr {
    width: 20%;
    height: 0px;
    color: var(--second-color);

}

footer h2 {
    text-align: center;
    width: 25%;
    margin: 0 2%;
}

.contact svg {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease-in-out;
    margin: 0 10px;
}

.contact {
    margin: 10px;
    display: flex;
    flex-direction: row;
}
.contact a{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact svg:hover {
    fill: var(--main-color);
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}
.contact .logo{
    margin-right: inherit;
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ---------------------------------------------------------------------------Bouton suppresion film ------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.moins{
    border-radius: 30px;
    width: 50px;
    height: 50px;
    border: inherit;
    border: var(--main-color) solid 2px;
    position: fixed;
    bottom: 300px;
    right: 10px;
}
.moins img{
    width: 30px;
    height: 30px;
}
.moins:hover{
    background-color: var(--second-color);
    border: var(--main-color) solid 1px;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ------------------------------------------------------------------------------------Media queries ------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/



@media (max-width: 1550px){
    .carteFilm{
        height: 400px;
    }
    .carteFilm h2 {
        font-size: 2rem;
    }
    .carteFilm{
        font-size: 1rem;
    }
    .description h2{
        font-size: 2rem;
    }
    .emplacementFilm{
        width: 80%;
    }
    .categorie{
        width: 20%;
    }
    .divAccueil{
        margin-left: 6%;
    }
    .divAccueil h1{
        font-size: 5.5rem;
    }
}

@media (min-width: 1500px) {
    .FilmDiv img {
        width: 400px;
    }

    .FilmDiv h2 {
        font-size: 4rem;
    }

    .Filmdetail p {
        font-family: "IBM Plex Serif", serif;
        font-weight: 400;
        font-size: 1.5rem;
    }

    .ajouter {
        width: 400px;
        height: 60px;
        font-size: 1.5rem;
    }

    .ajouter svg {
        width: 30px;
    }
}