/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
@font-face {
    font-family: cooper;
    src: url(../fonts/Cooper-Black.otf);
}*/

/* Styles généraux */
body {
    background-color: black;
    font-family: Arial, sans-serif;
    /*background-image: url('../images/background.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-attachment: fixed;*/
    color: #fff;
}

.background{
    position: fixed;
    right: 50%;
    bottom: 50%;
    transform: translate(50%,50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    background: url('../video/background.mp4') no-repeat center center fixed;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
}

@keyframes fadeOut {
    0%   {
        opacity: 100%;
        margin-top:0;
    }
    60%   {
        opacity: 100%;
        margin-top:0;
    }
    100% {
        opacity: 0%;
        margin-top:-60px;
    }
}

@keyframes go-up{
    0%   {

    }
    100% {
        transform: translate(0,-25%);
    }
}

#rotating-text {
    display: inline-block;
    animation: rotate 8s linear infinite;
}


@keyframes rotate {
    0% {
        transform: rotateY(90deg);
    }
    25% {
        transform: rotateY(0deg);
    }
    50%{
        transform: rotateY(90deg);
    }
    75%{
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(90deg);
    }
}


.err{
    position: absolute;
    top: -2%;
    left: 50%;
    z-index: 10000000;
    transform: translate(-50%,50%);
    width: -moz-fit-content;
    width: fit-content;
    background-color: rgba(200, 0, 0,0.8);
    border: solid rgb(100, 0, 0);
    border-radius: 3vh;
    padding: 0.2% 1% 0.2% 1%;
    margin: 0 auto;
    animation: fadeOut 2s;
    animation-fill-mode: forwards;

}

.succ{
    position: absolute;
    top: -2%;
    left: 50%;
    z-index: 10000000;
    transform: translate(-50%,50%);
    width: -moz-fit-content;
    width: fit-content;
    background-color: rgba(120, 201, 0, 0.8);
    border: solid green;
    border-radius: 3vh;
    padding: 0.2% 1% 0.2% 1%;
    margin: 0 auto;
    animation: fadeOut 2s;
    animation-fill-mode: forwards;
}
/*
.magasin{
    font-family: cooper;
}*/

.menu-up {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.5s;

}
header {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px 10px 10px;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}


.left, .right {
    flex: 1;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

/* Menu de navigation */
nav ul {
    /* elements de naviation en ligne centrée a droite et sur plusieurs lignes au besoin */
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}

nav ul li p{
    font-size: 2em;
}

nav ul li ul li p{
    font-size: 1.7em;
}

nav ul li {
    position: relative;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

nav ul li:hover{
    background-color: rgba(151, 151, 151, 0.85);
}

nav ul li img{
    width: 30px;
    margin: -5px 5px;
}


/* menu deroulant ul li ul */

nav ul li ul{
    background-color: rgba(0, 0, 0, 0.75);
    position: absolute;
    width: -moz-fit-content;
    width: fit-content;
    visibility: hidden;
    overflow: auto;
    top: 100%;
    right:0;
    left:auto;
    z-index: 1000;
}

nav ul li:hover ul{
    visibility: visible;
}

nav ul li ul a{
    min-width: 100%;
    margin: 0;
    text-align: center;
}

nav ul li ul li{
    white-space: nowrap;
}


nav ul li a {
    text-decoration: none;
    color: #fff;
}


.white-button {
    padding: 7px 15px 7px 15px;
    margin: 3px;
    border-radius: 5px;
    background-color: #ffffff95;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.white-button:hover {
    background-color: #a9a9a9;
}

.accueil {
    width: -moz-fit-content;
    width: fit-content;
    position: relative;
    margin: 0 auto;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.accueil div{
    display: flex;
    justify-content:center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px 0;
}

.accueil div a div{
    display: flex;
    align-items: center;
    color: black;
    margin: 0 10px 10px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px 0 0 5px;
    text-align: center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px auto;
    border:solid 1px black;
}

.accueil div button{
    display: flex;
    align-items: center;
    color: black;
    margin: 0 10px 10px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 0 5px 5px 0;
    text-align: center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px auto;
    border: none;
    cursor: pointer;
    border: solid 1px black;
}

.accueil div a div:hover, .accueil div button:hover{
    background-color: rgba(255, 255, 255, 0.6);
    transition: 0.2s;
}

.accueil div a div img, .accueil div button img{
    width: 25px;
    margin: 0 10px;
}

main {
    padding: 200px 10px 50px 10px;

}

main h1{
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.product-detail {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;

}

.product-detail .images {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 30%;
    justify-content: center;
    align-items: center;
}

.product-detail .images .principale {
    width: 100%;
    height: 20vw;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border-radius: 5px;
}

.imagegrand{
    /*centre l'image au milieu de l'ecran et la met en avant*/
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 10000;
    height: min(90vw,90vh);
    width: auto;
    display: none;
}

.fondgrand{
    /*fond noir semi transparent*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
}

.product-detail .images .sousimages {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display:flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.product-detail .images .sousimages .sousimage{
    height: 4vw;
    margin: 10px 0;
    border-radius: 5px;

}

.product-detail .images .sousimages .sousimage:focus{
    border: solid 2px wheat;
    border-radius: 5px;
    scale: 1.1;

}

.product-detail .product-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 70%;
    padding-bottom: 150px;
    margin: 0;
    font-size: 1.7em;
    border-radius: 5px;
    position:relative;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 5px;
    border-bottom-left-radius: 15px;
    overflow-x:scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;


}

.product-detail .product-info::-webkit-scrollbar {
    display: none;
}

.product-detail .product-info .des_courte{
    width:80%;
    margin: 0;
    background: #11b70e76;
    border-bottom-right-radius: 15px;
    padding: 5px;
}

.product-detail .product-info .des_longue{
    margin-left: 15px;
}

.product-detail .product-info .des_longue video{
    width : 10%;
    overflow-y:hidden;
    transition: 0.5s;
}

.product-detail .product-info .des_longue video:hover{
    width : 40%;
}




.product-detail .product-info .payement{
    position: absolute;
    bottom: 0;
    left: 0;
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    flex-direction:row;
}

.product-detail .product-info .prix{
    width: -moz-fit-content;
    width: fit-content;
    padding: 30px 65px;
    font-size: 2.5em;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    background-color: #11b70e76;
    white-space: nowrap;
}

.ttc{
    position: absolute;
    font-size:0.3em;
    bottom:0;
    left:0;
    padding: 5px;
}

.payementpfois{
    display: flex;
    margin: 20px 40px;
    width: -moz-fit-content;
    width: fit-content;
    white-space: nowrap;
}

.troisxquatrex{
    padding: 5px;
    width: 100px;
    height: 100px;
}

.troisxquatrex:hover{
    cursor: pointer;
}

.affichage{
    border-radius: 5px;
    display:inline-block;
    max-width:0;
    white-space:nowrap;
    height: fit-content;
    padding: 0;
    overflow: hidden;
    background-color: rgba(76, 212, 212, 0.753);
}

.payementpfois:hover .affichage{
    padding: 10px;
    max-width: -moz-fit-content;
    max-width: fit-content;
}

.products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-around;
    margin: 75px auto 0 auto;
    width: 75%;
}

.product {
    background-color: rgba(0, 0, 0, 0.5);
    width: 225px;
    margin: 15px;
    border-radius: 5px;
    text-align: center;
    position:relative;
}

.product:hover{
    background-color: rgba(90, 90, 90, 0.75);
}

.product img {
    opacity: 0.9;
    height: 200px;
    border-radius: 10px;
    transition: 1s;
}

.product:hover .image img{
    opacity: 1;
    transform: scale(1.1);
    transition: 0.25s;
}

.product img {
    width: 100%;
    border-radius: 10px;
}

.product p, .product h3, .product h2{
    width: 100%;
    padding: 0 5px; 
    word-wrap: break-word;
    height: 100px;
}


.product .prix{
    font-size: 2em;
    padding: 5px;
    background-color: #11b70eaa;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}


.menuproduit{
    display: flex;
    margin: 20px 0;
}

.operation{
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
    background-color: #000000ba;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.operation a button{
    margin: 10px auto;
    padding: 10px 20px;
    border-radius: 5px;

} 


a{
    text-decoration: none;
    color: #fff;
}


footer {
    background-color: rgba(0, 0, 0, 0.5); /* Ajoute un fond semi-transparent pour le footer */
    padding: 10px 10px 0 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    text-decoration: none;
    color: #fff;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}


.contact p {
    margin-bottom: 0px;
}

.centrer {
    background-color: rgba(0, 0, 0, 0.746);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

/* panneau de recherche */
.search {
    display:block;
    justify-content: center;
    width: -moz-fit-content;
    width: fit-content;
    margin: 20px auto 0 auto;
}

.close {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 2px 0 2px;
}

.search input {
    font-size: 1.3vw;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px 0 0 5px;
    border: none;
    width: 30%;
    margin: 0;
}

.search select {
    font-size: 1.3vw;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0 10px 5px;
    border: none;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.search select option {
    font-size: 1.3vw;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0 ;
    border: none;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0;
}


.search a{
    font-size: 1.3vw;
    padding: 10px 10px ;
    border-radius: 0 5px 5px 0;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
}

.search a:hover{
    background-color: rgba(255, 255, 255, 0.6);
    transition: 0.2s;
}

.magasin{
    /*affichage des contacts de l'entreprise, adresse, telephone, mail, etc...*/
    text-align: center  ;
    margin: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    width: -moz-fit-content;
    width: fit-content;
}
.magasin h2,.magasin p{
    margin: 10px 0;
}

.idv{
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.carte{
    width: 70%;
    height: 400px;
    margin: 20px 0;
    border-radius: 5px;
}

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

/* class apropos, texte qui defile en mode star wars */

.apropos {
    font-family: 'Starjedi', sans-serif;
    display: flex;
    position:absolute;
    top:0;
    margin:0 auto;
    width: 90%;
    height: 75%;
    perspective: 450px;
    overflow: hidden;
    margin-top: 120px;
    
}

.apropos h1, .apropos h2, .apropos h3{
    text-align: center;
}

.scroll-text {
    width: 70%;
    font-weight: bold;
    font-size: 2vw;
    margin: 0 auto;
    color:#ffc909;
    font-size: 3vw;
    line-height: 1.5em;
    font-weight: bold;
    text-align: justify;
    position: relative;
    animation: scroll 100s linear forwards;
    transform: translateZ(-250px) rotateX(20deg);
}

.package {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    height: fit-content;
}

.content {
    margin-right: 20px;
    width:60%;
    /* centré vericallement et horizontalement */
    text-align: center;
}

.package .image {
    text-align: center;
    color:white;
    width:10%;
    height:fit-content;
    align-items: flex-end;
}

.image img{
    padding: 5px;
    width: 150px;
    overflow:scroll;
}





@keyframes scroll {
    0% {
        top:100vh;
        transform: translateZ(0) rotateX(20deg);
    }
    100% {
        top:-370vh;
        transform: translateZ(-350vw) rotateX(65deg)
    }
}

.container{
    background-color: rgba(0, 0, 0, 0.8);
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    padding: 20px;
}



/* class image fait defiler les images toutes les 2 secondes*/


@media (max-width: 650px) {
    @keyframes scroll {
        0% {
            top:100vh;
            transform: translateZ(0) rotateX(20deg);
        }
        100% {
            top:-400vh;
            transform: translateZ(-300vw) rotateX(50deg); /* Ajustez la valeur pour les écrans plus petits */
        }
    }
    main{
        padding: 200px 10px 50px 10px;
    }

    li {
        padding: 3vw 5vw 3vw 5vw;
        margin: 1.5vw;
    }

    nav ul li p{
        font-size: 3.5vw;
    }
    
    nav ul li ul li p{
        font-size: 3vw;
    }

    h1 {
        font-size: 6vw;
    }
    h2{
        font-size: 5vw;
    }
    h3{
        font-size: 2.5vw;
    }
    p{
        font-size: 2.5vw;
    }
    a{
        font-size: 2.5vw;
    }

    .troisxquatrex{
        width: 50px;
        height: 50px;
    }


    .payementpfois{
        margin: 10px;
    }

    .product-detail .product-info .prix{
        padding: 20px 40px;
        font-size: 4vw;
    }

    .ttc{
        font-size: 2vw;
    }

    .products{
        width: 100%;
    }
    
    .product{
        width: 40vw;
    }
}