@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

/* ####################### */
/* Global */
/* ####################### */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    outline: none;
    border: none;
    text-decoration: none;
    scroll-behavior: smooth;
}
:root {
    --main: #e8ae10;
    --main2: #ff6428;
    --main3: #c51010;
    --text: #131416;
    --bg: #fff;
    --shadow: 2px 2px 18px rgb(14 52 54 / 15%);
}

body {
    background: var(--bg);
    color: var(--text);
}
body.active {
--text: #fff;
--bg: #131416;
}

section {
    padding: 50px 10%;
}

#dark-mode {
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--main);
    color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s ease-in-out;
}
#dark-mode:hover {
    background: var(--main2);
}
/* ####################### */
/* Navigation */
/* ####################### */
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 100px;
}
nav.active {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.2);
    background: var(--bg);
}
.logo {
    font-size: 1.2rem;
    color: var(--main3);
    font-weight: 600;
}
.navigation {
    display: flex;
}
.navigation a {
    color: var(--text);
    padding: 0 1rem;
    font-weight: 600;
}
.navigation a:hover , .navigation a.active {
    color: var(--main2);
}
#burger-menu {
    font-size: 2rem;
    color: var(--text);
    transition: .2s ease-in-out;
    cursor: pointer;
    display: none;
}
#burger-menu:hover {
    color: var(--main2);
}

/* ####################### */
/* Home */
/* ####################### */

.home{
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 1.5rem;
}
.home img {
    width: 100%;
    border-radius: 50%;
    width: 400px;
    height: 400px;
}
.home-img{
    display: flex;
    align-items: center;
    justify-content: center;
}
.home h1{
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 1rem;
}
.home h1 span{
    color: var(--main);
}
.home p {
    color: var(--main);
    font-size: clamp(20px, 5vw, 25px);
}
.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 7px;
    background: var(--text);
    color: var(--bg);
    transition: .2s ease-in-out;
}
.btn:hover{
    background: var(--main);
}

/* ################################# */
/* About */
/* ################################# */

.about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.5rem;
    align-items: center;
}
.about img{
    width: 80%;
}
.about-content span{
    color: var(--main);
    font-weight: 500;
}
.about-content h2{
    font-size: clamp(25px,5vw,35px);
}
.about-content p{
    margin: 1rem 0 1.3rem;
}

/* ################################# */
/* Tarifs */
/* ################################# */

.section-heading{
    text-align: center;
}
.section-heading span {
    color: var(--main);
    font-weight: 500;
}
.section-heading h2{
    font-size: clamp(25px,5vw,40px);
}
.tarifs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem;
    align-items: center;
}
.tarifs-box{
    position: relative;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 7px;
    box-shadow: var(--shadow);
    padding-inline-start: 10px;
    overflow: hidden;
}
.tarifs-box-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: .2s ease-in-out;
}
.tarifs-box h3{
    font-size: 1.5rem;
    color: var(--text);
}
.tarifs-box h4{
    color: var(--main);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 1rem 0;
}
.tarifs-box span{
    padding: 0.5rem 1rem;
    color: var(--text);
    border-radius: 0 15px 0 15px;
}
/*
.tarifs-box .bx{
    width: 50px;
    height: 50px;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 15px 0 15px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--bg);
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.tarifs-box .bx:hover{
    background: var(--main2);
} */

.tarifs-box:hover .tarifs-box-content{
    top: 0;
}

/* ################################# */
/* Services */
/* ################################# */

.services-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
}
.services-box{
    border-radius: 7px;
    box-shadow: var(--shadow);
    padding: 1rem;
}
.services-box h3{
    font-size: 1.2rem;
}
.services-box p{
    margin: 0.5rem 0;
}

/* ################################# */
/* Contact */
/* ################################# */
.contact-container{
    padding: 0 1rem;
}
.contact-container form{
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.contact-container form input, 
.contact-container form textarea {
    width: 100%;
    height: 50px;
    border: 1px solid #e2e2e2;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 7px;
}
.contact-container form textarea{
    height: 150px;
    resize: none;
}
.contact-container form button {
    cursor: pointer;
}

/* ################################# */
/* Footer */
/* ################################# */
footer{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,auto));
    justify-content: center;
    gap: 1.5rem;
    background: var(--text);
    color: var(--bg);
    padding: 1rem;
}
.footer-box{
    display: flex;
    flex-direction: column;
}
.footer-box p{
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin: 0.5rem 0 1rem;
}
.footer-box p .bx{
    font-size: 1.3rem;
    margin-right: 0.5rem;
}
.footer-social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}
.footer-social .bx{
    padding: 10px;
    background: var(--main);
    color: var(--bg);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.footer-social .bx:hover{
    background: var(--main2);
}
.footer-box h6{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.footer-box a{
    color: var(--main);
}
.footer-box a:hover{
    color: var(--main2);
}
.copy{
    padding: 2rem 1rem;
    text-align: center;
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
}
/* ################################# */
/* Breakpoints */
/* ################################# */

@media screen and (max-width: 1000px){
    .home img{
        width: 300px;
        height: 300px;
    }
}

@media screen and (max-width: 921px){
  nav {
    padding: 14px 41px;
  }
}

@media screen and (max-width: 780px){
    section, nav {
        padding: 50px 8%;
    }
    #burger-menu {
        display: block;
    }
    .navigation {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        width: 280px;
        height: 100vh;
        box-shadow: 3px 0 5px 0 rgba(0,0,0,.2);
        background: var(--bg);
        transition: .2s ease-in-out;
    }
    .navigation a {
        display: block;
        margin: 1rem 0;
    }
    #dark-mode {
        margin: 2rem 1rem;
    }
    .navigation.active {
        left: 0;
    }
}

@media screen and (max-width: 715px){
    .home{
        padding-top: 8rem;
    }
    nav{
        padding: 10px 16px;
    }
    .home, .about {
        text-align:center;
        grid-template-columns: 1fr;
    }
    .about-img{
        order: 2;
    }
}

@media screen and (max-width: 500px){
    section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 425px){
    .home{
        padding-top: 4rem;
    }
    .home img{
        width: 300px;
        height: 300px;
        
    }

    .tarifs {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .home, .about {
        text-align:center;
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
    }
    .about {
        margin-top: 0;
    }
    .tarifs-box{
        grid-template-columns: 1;
        display: block;
        align-items: center;
        justify-content: center;

    }
}
@media screen and (max-width: 360px) {
    section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .home img{
        width: 300px;
        height: 300px;
        margin: 0 auto;
        margin-bottom: 500px;
    }
    .about {
        margin-top: 0;
    }
}
@media screen and (max-width: 320px){

    .home img{
        width: 250px;
        height: 250px;
        margin-top: 8rem;
    }
    .about {
        margin-top: 0;
    }
}