
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    text-decoration: none;
    max-width: 100%;
    list-style: none;
}

html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;

}


header{
    height: auto;
    width: 100%;
}

header nav{
    position: fixed;
    height: 95px;
    background: #fff;
    width: 100%;
    display: flex;
    box-shadow: 1px 1px 8px 5px #0f0d0d38;
    z-index: 99;
}

nav .logo{
    height: 100%;
    width: 25%;
    display: flex;
    align-items: center; 
    justify-content: center;
}

nav .logo img{
    height:75% ;
}
nav .nav-items{
    width: 75%;
    height: 100%;
}

nav .nav-items .items{
    height: 50%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;   
}
nav .nav-items .items a{
    color: #000;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav .nav-items .items a .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

nav .nav-items .items a.active2 .arrow {
    transform: rotate(180deg);
}

nav .nav-items .btn{
    padding: 0 ;
    display: flex;
    height: 40%;
    width: 100%;
    align-items: center;
}

/*.btn{
    border: 1px solid red;
}*/
.btn form {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: 70%;
    justify-content: center;
}

.btn form input{
    height: 75%;
    border: none;
    
}

.btn form .search{
    width: 60%;
    outline: hidden;
    padding: 0 10px;
    border: 1px solid rgb(98, 98, 192);
    border-radius: 6px 0 0 6px;
}
.btn form .search:focus{
    outline:none;
}
.btn form .submit{
    padding:0 10px;
    color: #fff;
    background: transparent;
    font-weight: bold;
    border-radius: 0 6px 6px 0;
    background: rgb(123, 123, 214);
    transition: .3s ease-in-out;
}


#searchResults {
    position: absolute;
    top: 31px;
    width: 66%;
    background: rgb(255, 255, 255);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.315);
    display: none;
    z-index: 1000;
    border: 1px solid rgb(98, 98, 192);
    
}

.result-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.result-item:hover {
    background: #f0f0f0;
}

.no-result {
    padding: 10px;
    color: red;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}




.btn form .submit:hover{
    background: rgb(72, 72, 177) ;
}

.btn .abonne{
    background: rgb(116, 116, 196);
    color: #fff;
    padding: 3px 10px;
    font-size: 20px;
    border-radius: 6px; 
    transition: .3s ease-in-out;
    margin-left: 15px;
}
.btn  .abonne:hover{
    background:rgb(38, 38, 146) ;
}

/* Sous-menus */
header .liste1, .liste2, .liste3, .liste4, .liste5, .liste6, .liste7, .liste8 {
    position: absolute;
    top: 95px;
    right: 0;
    height: auto;
    width: 20%;
    background: #fff;
    box-shadow: 1px 8px 5px #0f0d0d38;
    padding: 15px;
    border-radius: 0 0 5px 5px;
    /* Transition des sous-menus */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 99;
}


.liste2{
    right: 50%;
}
.liste3{
    right: 41%;
}
.liste4{
    right: 34%;
}
.liste5{
    right: 25%;
}
.liste6{
    right: 18%;
}

.liste7{
    right: 7%;
}

/* Styles pour le contenu des sous-menus */
header .liste1 ul,
header .liste2 ul,
header .liste3 ul,
header .liste4 ul,
header .liste5 ul,
header .liste6 ul,
header .liste7 ul,
header .liste8 ul {
    width: 100%;
}

header .liste1 ul li,
header .liste2 ul li,
header .liste3 ul li,
header .liste4 ul li,
header .liste5 ul li,
header .liste6 ul li,
header .liste7 ul li,
header .liste8 ul li {
    margin: 10px  ;
    border-bottom: 1px solid rgba(137, 43, 226, 0.274);
}


header .liste1 ul li::before,
header .liste2 ul li::before,
header .liste3 ul li::before,
header .liste4 ul li::before,
header .liste5 ul li::before,
header .liste6 ul li::before,
header .liste7 ul li::before,
header .liste8 ul li::before{
    content: "➤";
    color: rgb(116, 116, 196);
    position: absolute;
    left: 5px;
    font-size: 14px;
}

header .liste1 ul li a,
header .liste2 ul li a,
header .liste3 ul li a,
header .liste4 ul li a,
header .liste5 ul li a,
header .liste6 ul li a,
header .liste7 ul li a,
header .liste8 ul li a {
    color: #000;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

header .liste1 ul li a:hover,
header .liste2 ul li a:hover,
header .liste3 ul li a:hover,
header .liste4 ul li a:hover,
header .liste5 ul li a:hover,
header .liste6 ul li a:hover,
header .liste7 ul li a:hover,
header .liste8 ul li a:hover {
    color: rgb(72, 72, 177);
}

/* Classe active pour afficher les sous-menus */
.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(2px) !important;
}

nav .menu {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}

.active0{
    transform: rotate(90deg);
    transition: .3s ease-in-out;
}

nav .menu .close-icon {
    display: none;
}

nav .menu.active0 .menu-icon {
    display: none;
}

nav .menu.active0 .close-icon {
    display: inline-block;
    
}



@media screen and (max-width:768px){
   html, body{
        height: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    nav .nav-items{
        width: 100%;
        height: auto;
        position: absolute;
        left: 0;
        top: 95px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        background: #fff;
        box-shadow: 1px 8px 5px #0f0d0d48;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease-in-out;
        z-index: 98;
    }

    .active1{
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(2px) !important;
    }
    
    nav .menu {
        display: block;
    }

    nav .nav-items .btn{
        padding: 15px;
        display: flex;
        height: auto;
        width: 100%;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgba(137, 43, 226, 0.267);
    }
    
    .btn form {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn form input{
        height: 35px;
    }
    
    .btn form .search{
        width: 70%;
    }

    #searchResults{
        width: 80%;
    }
    
    .btn a {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    nav .nav-items .items{
        height: auto;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
    
    nav .nav-items .items a{
        font-size: 1.2rem;
        display: flex;
        justify-content: space-between;
        margin: 15px;
        padding: 5px 0;
        border-bottom: 1px solid rgba(137, 43, 226, 0.1);
    }

    header .liste1,
    header .liste2,
    header .liste3,
    header .liste4,
    header .liste5,
    header .liste6,
    header .liste7,
    header .liste8 {
        width: 60%;
        right: 0;
        position: fixed;
        height: 80vh;
        overflow-y: auto;
    }
}







main{
    margin-top: 115px;
    padding: 0 10px ;
}



/***La section pour le banner et la section bienvenue**/

.banner, .Welcome{
    width: 100%;
    display: flex;
    align-items: center;
}

.child-left, .child-rigth{
    padding: 15px;
    width: 50%;
}

.child-left h1{
    text-transform: uppercase;
    font-size: 2rem;
    color:#6262C0 ;
}

.child-left p, .child-rigth p{
    font-size: 1.2rem;
    margin: 20px 0;
}

.child-rigth h2{
    text-transform: capitalize;
    font-size: 2rem;
    color:#6262C0 ;
}
.child-rigth h2 span{
    color: orangered;
}

.child-slogon{
    color: #6262C0;
    font-size: 1rem;
    font-weight: bold;
}

.child-rigth img, .child-left img{
    width: 100%;
}


.btn2{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.btn2 form {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: 70%;
    justify-content: center;
}

.btn2 form input{
    height: 100%;
    border: none;
    
}

.btn2 form .search{
    width: 60%;
    outline: hidden;
    padding: 0 10px;
    border-radius: 6px 0 0 6px;
    border: 1px solid rgb(98, 98, 192);
}
.btn2 form .search:focus{
    outline:none;
}
.btn2 form .submit{
    padding:0 20px;
    color: #fff;
    background: transparent;
    font-weight: bold;
    border-radius: 0 6px 6px 0;
    background: rgb(123, 123, 214);
    transition: .3s ease-in-out;
}


/***La saction pour la partie specialité de **/

.emulator-texte{
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.emulator-texte h2{
    color: #6262C0;
    font-size: 2rem;
}

.emulator-texte h2 span{
    color:  orangered;
}

.emulator{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;   
    padding: 20px; 
    background: rgba(109, 32, 180, 0.048);
    margin: 30px 0;
}

.emulator-child{
 /*   border: 1px solid red;*/
    height: 180px;
    width: 160px;
    box-shadow: 1px 1px 4px 4px #0000001c;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    gap: 5px;
}
.emulator-child img{
    width: 70%;
}

.emulator-child .icon{
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
}
.emulator-child h5{
    font-size: 20px;
    color: #6262C0 ;
}

button{
    padding: 10px;
    background: transparent;
    border: 1px solid orangered;
    border-radius: 6px;
    margin: 20px;
    color: orangered;
    position: relative;
    transition: .3 ease-in-out;
}
button::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background: orangered;
}

button:hover::before{
    width: 100%;
}

button a{
    color: orangered;
    background: transparent;
    font-size: 17px;
}

.welcome-texte{
    width: 100%;
    padding: 25px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.welcome-texte h2{
    font-size: 2rem;
    color: #6262C0;
    margin-bottom: 20px;
} 

.welcome-texte h2 span{
    color: orangered;
}






@media screen and (max-width:768px){
    .banner, .Welcome{
        flex-direction: column;
    }

    .child-left, .child-rigth{
        width: 100%;
    }

    .child-left h1{
        font-size: 1.6rem;
    }
}






.tandence-new{
    width: 100%;
    background: #000000;
    box-shadow: 4px 3px 8px 8px rgba(0, 0, 0, 0.116);
    border-radius: 10px;
    margin: 30px 0;
    padding: 30px 0;
    
}

.tandence-new .container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.tandence-new h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 200;
}

.tandence-new .buttons {
    margin-bottom: 20px;
    height: 100px;
    display: flex ;
    justify-content: center;
    align-items: center;
    gap: 20px;

}

.tandence-new button {
    background-color: #191A1C;
    color: #fff;
    border-radius: 20px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    height: 40px;
    transition: background-color 0.3s, color 0.3s;
    
}

.tandence-new button.active {
    background-color: #fff;
    color: #000;
}

.tandence-new .games {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.game-section{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.game-card1{
    display: flex;
    justify-content: center;
    gap:15px ;
    flex-wrap: wrap
}

.tandence-new .game-card {
    width: 170px;
    height:250px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.tandence-new .game-card img {
    width: 100%;
    height: 80%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.tandence-new .game-card img:hover {
    transform: scale(1.08);
}

.tandence-new .game-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #faf3f3;
}

/* Masquer la section inactive */
.tandence-new .game-section {
    display: none;
}

.tandence-new .game-section.active {
    display: flex;
}






  
.avant-game{
    height: 150px;
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 20px;
    gap: 10px;
    padding: 0 30px;
}  



.avant-game h4{
    font-size: 2rem;
    color: #0070CC;
}
.avant-game h4 span{
    color: orangered;
}
.avant-game p{
    font-size: 1.5rem;
} 



.box-games{
    width: 100%;
    height: 250px;
    background: #fff;
    box-shadow: 4px 3px 8px 8px rgba(0, 0, 0, 0.116);
    display: flex;
    border-radius: 6px;
    margin-bottom: 20px;
}
.gamme-image{
    height: 100%;
    width: 40%;
    padding: 10px;
    
}
.gamme-image a img{
    height: 100%;
    width: 90%;
}

.game-texte{
    height: 100%;
    width: 60%;
    padding: 10px;
    display: flex;
    justify-content: center ;
    align-items: center;
}
.game-texte a{
    color: #000;
    font-size: 2rem;
    font-weight: bold;
    transition: .5s ease-in-out;
}

.game-texte a:hover{
    color: #0070CC;
}








footer{
    margin: 0;
    width: 100%;
    background: #00439C;
}

.footer-nav{
    display: flex;
    margin-bottom: 40px;
    padding-top: 20px;
    justify-content: space-between;
    
}

.footer-logo{
    display:  flex;
    flex-direction: column;
    justify-content: center;
    width: 30%;
    padding-left: 30px;

}
.footer-logo img{
    height: 80px;
    width: 80px;
    margin-bottom: 10px;
    margin-left: 50px;

}
.footer-logo h5{
     font-size: 25px;
     font-weight: 400;
     margin-bottom: 10px;
     color: #ffff;
}
.footer-logo p{
    color: #fff;
    font-size: 15px;
}
.footer-logo p a{
    color: #fff;
    text-decoration: underline;
}
.footer-logo p a:hover{
    color: #adb2c4;
}

.link-link{
    width: 60%;
    display: flex;
}
.footer-links{
    width: 50%;
    
}
.footer-links a{
    display: block;
    color: #fff;
    font-size: 25px;
    color: #fff;
    border-bottom: 1px solid #fff;
    width: 150px;
    margin-bottom: 5px;
}
.footer-links1{
    width: 50%;
}
.footer-links1 a{
    display: block;
    color: #fff;
    font-size: 25px;
    color:#fff;
    border-bottom: 1px solid #fff;
    width: 250px;
    margin-bottom: 5px;
}
.footer-content{
    padding-top: 20px;
    border-top: .5px solid #ffff;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-content p{
    color: #fff;
}

.link-icone{
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.link-icone i{
    font-size: 35px;
    color:#fff;
    margin-left: 20px;
}
.link-icone i:hover{
    color: #adb2c4;
}






@media screen and (max-width:1024px){
   
  
    .footer-nav{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .link-link{
        padding-top: 15px;
        border-top: .5px solid #ffff;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .footer-logo{
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo img{
        margin-left: 0;
    }
    .footer-links{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links1{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-content p{
        font-size: 25px;
    }
}  




@media screen and (max-width:768px){
    main{
         padding: 0 5px ;
    }

    .main-image1{
        height: 70%;
        margin-bottom: 20px;
    }

    .image-caption{ 
        font-size: 16px;
    }
    
    .avant-game h4{
         font-size: 1rem;
    }
    .avant-game p{
        font-size: 0.8rem;
    }
    .box-games{
        height: 130px;
    }
    .avant-game{
        height: 100px;
    }

    .gamme-image a img{
        width: 100%;
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .game-texte a{
        font-size: 1rem;
    }

    .footer-links a, .footer-links1 a{
        font-size: 20px;
        width: 150px;
    }
    .footer-content{
        padding: 0 15px;
        display: flex;
        justify-content: center;
    }
    .footer-content p{
        font-size: 14px;
    }
    .tandence-new button{
        font-size: 12px;
    }
    .tandence-new .game-card {
    width: 130px;
    height: 185px;
    }  
    .logo-phone img{
        display:block;
         position: absolute;
         top: 10px;
         left: 150px;
    }
     .logo-phone0 img {
        display: none;
    }  

    
}    
