@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Droid Sans', sans-serif;
    color: #fff;
}

html {
    scroll-behavior: smooth;
    
}

body {
    background-color: var(--grisTheme);
    
}

:root {
    --grisTheme: rgb(36, 36, 36);
    --grisThemeLight: rgb(54, 54, 54);
    --grisThemeDark: rgb(22, 22, 22);

    --rougeTheme: rgb(225, 0, 0);
    --rougeThemeDark: rgb(209, 0, 0);
    --rougeThemeLight: rgb(255, 0, 0);



}



header {
    height: 100lvh;
    width: 100%;
    background-image: url('assets/backgrounds/movies2.png');
    background-size: auto 100lvh;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-x: center;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;

    & h1 {
        text-shadow: #000  0 0 4px;
        font-family: 'Star-wars', sans-serif;
    }

    @media (max-width: 700px) {
        background-image: url(assets/responsive-bg/accueil3-Photoroom_enhanced.png);
    }
}

main {
    padding-top: 10lvh;
    padding-bottom: 10lvh;

}

main nav{
    display: flex;
    position: sticky;
    top: 10lvh;
    z-index: 98;

    & .nav-box {
        width: 70vw;
        margin: 0 auto;
        position: relative;
        z-index: 98;
        display: flex;
        justify-content: center;


        & ul {

            display: flex;
            list-style-type: none;

            & li {

                & a button {
                    background-color: var(--rougeTheme);
                    padding: 12px 17px;
                    border: none;
                    cursor: pointer;
                    overflow: hidden;            
                    transform: none;
                    text-decoration: none;
                    position: relative;
                    overflow: hidden;
                    transition: 0.4s;
                    font-family: 'Jura', sans-serif;


                    &:hover {
                        transform: rotateX(35deg);
                        box-shadow: 0 5px 0 0 var(--rougeThemeDark);
                        background-color: var(--rougeThemeLight);
                    }

                    &:before {
                        content: "";
                        position: absolute;
                        width: 25px;
                        height: 500px;
                        top: 50%;
                        transform: rotate(-60deg) translateX(139px);
                        background-color: #FFF;
                        transition: all 0.4s;
                       }
                
                    &:hover::before {
                        translate: 191px -193px;    
                        transition-delay: 0.1s;
                        
                    }


                    &#left-link {
                        border-top-left-radius: 10px;
                        border-bottom-left-radius: 10px;
                    }

                    &#right-link {
                        border-top-right-radius: 10px;
                        border-bottom-right-radius: 10px;
                    }
                }
            }
        }
    }


}

main section {

    margin-bottom: 10lvh;
    margin-top: 10lvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50lvh;

    & h2 {
        text-align: center;
        font-family: 'Star-wars', sans-serif;
        margin-bottom: 5lvh;

        color: var(--rougeTheme);
        text-shadow: 0 0 2px rgb(107, 0, 0);
    }

    &#presentation {

        margin-bottom: 20lvh;
        & .grid {
            display: grid;
            grid-template-columns: 40% 40%;
            grid-template-rows: 50% 50%;
            column-gap: 10%;
            row-gap: 5lvh;
            justify-items: center;
            justify-content: center;

            margin-top: 10lvh;

            & .card {
                width: 80%;
                padding: 20px;
                text-align: center;
                box-shadow: 0 0 10px 10px var(--rougeTheme);
                border-radius: 20px;

                transform: rotateX(15deg) rotateY(15deg);
                transition: 0.7s;

                & h3 {
                    margin-bottom: 3lvh;
                }

                & p {
                    margin: 0;
                }

                &:hover {
                    transform: none;
                }
                
            }

        }
    }

    
    & p {
        margin-bottom: 20lvh;
    }

    & a {
        width: min-content;
        height: min-content;
        cursor: pointer;
        margin-top: 10lvh;
        font-family: 'Jura', sans-serif;

    }

    & a button{
        background-color: var(--rougeTheme);
        padding: 15px 30px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        overflow: hidden;
        position: relative;
        font-family: 'Jura', sans-serif;


        box-shadow: 0px 15px 20px 20px var(--grisThemeLight);

        transform: none;
        transition: 0.5s;

        &:before {
            content: "";
            position: absolute;
            width: 25px;
            height: 500px;
            top: 50%;
            transform: rotate(-60deg) translateX(139px);
            background-color: #FFF;
            transition: all 0.4s;
           }
    
        &:hover::before {
            translate: 191px -193px;    
            transition-delay: 0.2s;
            
        }
   
           
        &:hover {
            transform: rotateX(30deg);
            box-shadow: 0px 20px 20px 20px var(--grisThemeLight);
            background-color: var(--rougeThemeLight);
            transition-delay: 0.1s;
        }
    }
           


    }

/* 
footer {
    width: 90%;
    height: 5lvh;

    display: flex;
    flex-direction: column;
    align-items: center;
    border: var(--rougeTheme) 2px solid;
    border-bottom: none;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: relative;
    bottom: 0lvh;

    overflow-y: hidden;

    margin: 0 auto;
    transition: 0.7s;

    &:hover {
        height: 18lvh;
        transform: translateY(-13lvh);
        
    }



    & #bandeau {
        margin-top: 2lvh;   
        display: flex;
        flex-direction: column;
        align-items: center;

        
        & .stick {
            width: 5vw;
            height: 3px;
            background-color: var(--rougeTheme);
            z-index: 99;
            margin-bottom: 2lvh;
    
        }
    }
} */


footer {
    width: 90%;
    height: 5lvh; /* Footer rétracté à 5lvh */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--rougeTheme);
    border-bottom: none;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    position: fixed; /* Le footer est fixé au bas de l'écran */
    bottom: 0;
    left: 50%; /* Centrage horizontal */
    transform: translateX(-50%); /* Ajustement pour centrer parfaitement */
    margin: 0 auto;
    overflow: hidden;
    transition: height 0.7s, transform 0.7s; /* Animation sur la hauteur et le mouvement vertical */
    z-index: 99; /* Toujours au-dessus du reste du contenu */

    &:hover {
        height: 18lvh; /* Agrandissement du footer à 18lvh */
        transform: translateX(-50%) translateY(-13lvh); /* Le footer remonte légèrement pour dévoiler son contenu */
    }

    #bandeau {
        margin-top: 2lvh;   
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stick {
        width: 5vw;
        height: 3px;
        background-color: var(--rougeTheme);
        margin-bottom: 2lvh;
    }
}