* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    --var-bg-color : #7743e9;
    --var-secondary-color: #6e51cf;
    --var-text-color: #fff;
    --var-text-color-dark: #333;
    --var-bg-light: #f0f4ff;
    --var-bg-dark: #d3c9f3;
    scroll-behavior: smooth;
}

body {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: var(--var-bg-light);
    color: var(--var-text-color-dark);
}

header {
    height: 4rem;
    width: 100%;
    padding: 0 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 4rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--var-text-color-dark);
    font-weight: 500;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

nav ul li a:hover {
    color: var(--var-secondary-color)
}

header button {
    background-color: #fff;
    color: var(--var-secondary-color);
    font-weight: 500;
    border: 1px solid var(--var-secondary-color);
    padding: 0.7rem 1rem;
    border-radius: 0.3rem;
    -webkit-border-radius: 0.3rem;
    -moz-border-radius: 0.3rem;
    -ms-border-radius: 0.3rem;
    -o-border-radius: 0.3rem;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    cursor: pointer;
}

header button:hover {
    background-color: var(--var-secondary-color);
    color: #fff;
}

main {
    padding: 2rem;
}

#banniere {
    background: linear-gradient(
        90deg,
        var(--var-bg-color) 15%,
        var(--var-secondary-color)
    );
    width: 100%;
    height: 70vh;
    padding: 2rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#banniere .gauche h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
}

#banniere .gauche p {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1rem);
}

.gauche button {
    background-color: #fff;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    color: var(--var-secondary-color);
    font-weight: 700;
    margin-top: 1.4rem;
    padding: 0.9rem 1rem;
    -webkit-border-radius: 0.3rem;
    -moz-border-radius: 0.3rem;
    -ms-border-radius: 0.3rem;
    -o-border-radius: 0.3rem;
}

.droite {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.droite img {
    z-index: 100;
}

.effets {
    width: 100%;
    height: 100%;
    position: absolute;
}

.cercle {
    background-color: #d3c9f3;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    animation: animation 0.5s ease-in;
    -webkit-animation: animation 3s ease-in infinite;
}

.cercle:nth-child(1) {
    background: linear-gradient(
        90deg, 
        var(--var-bg-color) 15%,
        #9b8dc8 100%);
    position: absolute;
    right: 10px;
    animation-delay: 1s;
}

.cercle:nth-child(2) {
    background: linear-gradient(
        90deg, 
        var(--var-bg-color) 15%,
        #9b8dc8 100%);
        position: absolute;
        left: 10px;
        animation-delay: 0.7s;
}
.cercle:nth-child(3) {
    background: linear-gradient(
        90deg, 
        var(--var-bg-color) 15%,
        #9b8dc8 100%);
    position: absolute;
    top: 10px;
    left: 100px;
}

@keyframes animation {
    0% {
        transform: translateY(0)    ;
        -webkit-transform: translateY(0)    ;
        -moz-transform: translateY(0)    ;
        -ms-transform: translateY(0)    ;
        -o-transform: translateY(0)    ;
    }
    50% {
        transform: translateY(100px);
        -webkit-transform: translateY(100px);
        -moz-transform: translateY(100px);
        -ms-transform: translateY(100px);
        -o-transform: translateY(100px);
    }
    100% {
        transform: translateY(0)    ;
        -webkit-transform: translateY(0)    ;
        -moz-transform: translateY(0)    ;
        -ms-transform: translateY(0)    ;
        -o-transform: translateY(0)    ;
    }
}

#services {
    margin-top: 2rem;
}

#services h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
}

.sevices-listes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-service {
    background-color: #fff;
    flex: 1;
    padding: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    position: relative;
}

.card-service h3 {
    padding-bottom: 0.8rem;
    text-align: center;
}
.card-service h3 a {
    padding-bottom: 8rem;
    text-decoration: none;
}

#portfolio {
    margin-top: 2rem;
}

#portfolio h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    color: var(--var-text-color-dark);
    margin-bottom: 1rem;
}

.images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.images img {
    width: 100%;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.images img:hover {
    cursor: pointer;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);

}
#contact {
    margin-top: 3rem;
    display: flex;
    height: calc(100vh - 200px);
    background-color: #fff;
}

#contact .parti1 , .partie2 {
    flex: 1;
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem;
    height: 100%;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

#contact .parti1 {
    color: #fff;
    background-color: var(--var-secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
}

.partie2 form {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    outline: none;
    font-size: 1rem;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;

    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

textarea {
    height: 150px;
}

.partie2 textarea:focus{
    border: 1px solid var(--var-bg-color);
}

.partie2 input:focus{
    border: 1px solid var(--var-bg-color);
}

.partie2 button {
    color: var(--var-secondary-color);
    height: 50px;
    font-size: 1rem;
    font-weight: 900;
    border: 1px solid var(--var-secondary-color);
    background-color: #fff;
    cursor: pointer;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.partie2 button:hover {
    color: #fff;
    background-color: var(--var-secondary-color);
}

footer {
    width: 100%;
    height: 100px;
    margin-top: 2rem;
    background-color: #fff;
    color: var(--var-text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}


/*Media Queries*/

@media screen and (max-width: 760px){

    main {
        padding: 1rem;
    }

    nav {
        display: none;
    }

    #banniere{
        flex-direction: column;
        min-height: 10vh;
        height: 500px;
        gap: 10px;
    }

    .gauche {
        display: block;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #banniere .gauche h1 {
        font-size: 22px;
        margin-bottom: 0.5rem;
    }

    #banniere .gauche p {
        font-size: 12px;
    }

    .droite img {
        width: 320px;
    }

    #services .sevices-listes {
        flex-direction: column;
    }

    #portfolio .images {
        display: flex;
        flex-direction: column;
    }

    #contact {
        flex-direction: column;
        min-height: 60vh;
    }
};