@import url('https://fonts.googleapis.com/css2?family=Poppins:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body{
    background: #282828;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif ;
} 

.menu{
    background: #282828;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 70px;
    box-shadow: 0 25px 20px -20px rgba(0, 0, 0, 0.4);
}

li {
    list-style: none;
    padding: 17px 17px;
}

.menu .links li a{
    color: white;
    font-size: 17px;
    text-decoration: none;
}

.menu .links{
    display: flex;
    gap: 2rem;
}

.menu .menu-ham{
    cursor: pointer;
    font-size: 32px;
    color: white;
    display: none;
}

.menu-mobile{
    display: none;
    position: absolute;
    right: 50px;
    top: 100px;
    width: 300px;
    height: 0;
    background-color: grey;
    border-radius: 10px;
    overflow: hidden;
    z-index: 111;
    transition: height 2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.menu-mobile.open{
    height: 325px;
}

.menu-mobile li{
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-mobile li a{
    text-decoration: none;
    color: white;
}

.menu-mobile li a:hover{
    color: rgb(0, 255, 51);
    font-size: large;
    text-shadow: rgb(7, 151, 45) 3px 3px 8px;
}

.menu-mobile .contact-btn:hover{
    color: white;
    text-shadow: none;
}

.menu-mobile .contact-btn{
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-btn{
    background-color: rgb(7, 151, 45);
    color: white;
    padding: 10px 15px;
    border: none;
    outline: none;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: scale 0.2 ease;
    text-decoration: none;
}

.contact-btn:hover{
    scale: 1.05;
    color: white;
}

.menu .links li a:hover{
    color: rgb(0, 255, 51);
    font-size: large;
    text-shadow: rgb(7, 151, 45) 3px 3px 8px;
}


@media (max-width: 1100px){
    .menu .links,
    .menu .contact-btn{
        display: none;
    }

    .menu .menu-ham{
        display: block;
    }

    .menu-mobile{
        display: block;
    }
}

@media (max-width: 600px){
    .menu-mobile{
        left: 50px;
        width: unset;
    }

    .menu{
        padding: 30px 25px;
    }

    .menu .logo img{
        width: 257px;
        padding: 0;
        height: 50px;
    }
}

@media (max-width: 365px){
    .menu .logo img{
        width: 217px;
        padding: 0;
        height: 45px;
    }
}

@media (max-width: 305px){
    .menu .logo img{
        width: 187px;
        padding: 0;
        height: 40px;
    }
}

.merci{
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.merci p{
    background: rgb(29, 28, 28);
    padding: 70px 70px;
    font-size: 30px;
    box-shadow: 
    0 0 15px green,
    0 0 20px rgb(0,255,0);
    border-radius: 20px;
    color: white;
}

.merci p a{
    color: rgb(204, 204, 204);
    text-shadow:0 0 2px rgb(0,255,0),
    0 0 4px green;
}

.titre{
    background-image: url("contback.jpg");
    background-size: cover;
    border-bottom: 2px solid green;
    border-top: 2px solid black ;
}

.filter{
    display: flex;
    justify-content: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.8);
}

.titre h1{
    font-size: clamp(25px, 7vw, 60px);
    color: white;  
    text-shadow: green 6px 6px 10px;
    text-align: center;
}

.container{
    background-image: url("contactimg1.png");
    background-size: cover;
}

.position{
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 100px;
}

.boxtwo{
    position: relative;
    display: flex;
    width: 50%;    
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(29, 28, 28);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px 2px;
}

.boxtwo::before{
    content: '';
    position: absolute;
    width: 150%;
    left: -100%;
    height: 120%;
    top: -70%;
    background: linear-gradient(0deg,rgb(0, 255, 0),rgb(0, 255, 0));
    transform-origin: bottom right;
    animation: animate 10s linear infinite;
}

.boxtwo::after{
    content: '';
    position: absolute;
    width: 150%;
    height: 120%;
    left: 50%;
    background: linear-gradient(0deg,rgb(0, 255, 0),rgb(0, 255, 0));
    transform-origin: top left;
    animation: animate 10s linear infinite;
    bottom: -70%;
} 

.boxtwo form{
    background: rgb(29, 28, 28);
    z-index: 10;
    padding: 40px 50px;
    border-radius: 8px;
    width: 100%;
}

.boxtwo form h1{
    color: #fff;
    font-family: sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: clamp(35px,3vw,50px);
}

.boxtwo form h3{
    font-family: 'Play', sans-serif;
    color: white;
    font-size: clamp(17px,1.9vw,30px);
    display: flex;
    justify-content: start;
    margin-top: 50px;
    text-shadow: green 1px 1px 4px;
    text-align: center;
}

.content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
} 

.inputbox{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.groupe{
    display: flex;
    flex-wrap: wrap;
    width: 45%;
    padding-bottom: 15px;
}

.groupe label{
    width: 95%;
    color: white;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: green 1px 2px 4px;
}

.groupe input{
    height: 40px;
    width: 95%;
    padding: 0 10px;
    border: 2px solid green;
    outline-color: none; 
    border-radius: 5px;
    background-color: transparent;
    color: white;
}

.groupe input:invalid{
    color: red;
}

.groupe i{
    color: rgb(0, 255, 0);
    margin-top: -30px;
    margin-left: 85%;
}

.groupe input::placeholder{
    color: white;
    letter-spacing: 1px;
}

.groupe-mess{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 15px;
}

.groupe-mess label{
    width: 95%;
    color: white;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: #000000 1px 2px 4px;
}

.groupe-mess textarea{
    resize: none;
    width: 100%;
    height: 90px;
    border: 2px solid green;
    outline-color: none; 
    border-radius: 5px;
    padding: 10px 10px;
    background-color: transparent;
    color: white;
}

.groupe-mess textarea::placeholder{
    color: white;
    font-size: 15px;
    letter-spacing: 1px;
}

.button{
    display: flex;
    justify-content: center;
}

.button button{
    background-color: transparent;
    border: 2px solid green;
    padding: 15px 25px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 300ms;
}

.button button:hover{
    scale: 1.01;
    border: 2px solid rgb(0,255,0);
    box-shadow: 0 0 15px rgb(0,255,0),
                0 0 25px rgb(0,255,0),
}

@media(max-width:1800px){
    .boxtwo{
        width: 80%;
    }
}

@media(max-width:575px){
    .boxtwo::before{
        width: 120%;
        height: 80%;
        left: -70%;
        top: -30%;
    }
    
    .boxtwo::after{
        width: 120%;
        height: 80%;
        left: 50%;
        bottom: -30%;
    }
    
    .position{
        padding: 150px 75px;
    }
}

@media(max-width:490px){       
    .boxtwo::before{
        width: 45%;
        height: 80%;
        left: 0%;
        top: -30%;
    }
    
    .boxtwo::after{
        width: 45%;
        height: 80%;
        left: 55%;
        bottom: -30%;
    }

    .position{
        padding: 150px 25px;
    }
}

@media(max-width:1199px){
    .groupe{
        width: 100%;
    }
}

@media(max-width:715px){
    .groupe-mess textarea{
        height: 180px;
    }
}

@media(max-width:545px){
    .groupe-mess textarea{
        height: 200px;
    }

    .boxtwo form{
        padding: 40px 15px;
    }
}


@media(max-width:380px){
    .groupe i{
        margin-left: 80%;
    }

    .position{
        padding: 150px 15px;
    }
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}