@font-face {
    font-family: 'PoiretOne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/PoiretOne-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Merryweather';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Merriweather.woff2') format('woff2');
}

html {
    overflow-y: scroll;
}

html::-webkit-scrollbar{
    display: none;
}
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body{
    font-family: 'PoiretOne';
    margin: 0;
    background-color: rgb(246, 243, 239);
}

.content{
    margin-top: 5.2rem;
}

button{
    border-width: 0;
    font-family: 'PoiretOne';
}

/* navigation */


navigation{
    background-color: rgba(246, 243, 239, 0.8);
    display: flex;
    height: 5rem;
    width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    z-index: 1;
}
.nav-menu-desktop{
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    width:fit-content;
}
.nav-menu-desktop a:not(:last-child){
    text-decoration: none;
    align-items: center;
    font-size: 1.8rem;
    color: #3D3532;
    padding-left: 2rem;
    padding-right: 2rem;
}

#nav-boutique, .hero-text button, .form-btn{
    background-color: #C96C4A;
    color: white;
    border-radius: 0.8rem;
    height: 3rem;
    line-height: 3rem;
    margin: 0.2rem;
    cursor:pointer;
}
#nav-boutique{
    font-size: 1.6rem;
    line-height: 1rem;
}
#nav-boutique:hover, .hero-text button:hover, .form-btn:hover{
    background-color: rgba(246, 243, 239, 0.8);
    color:#C96C4A;
    border-color: #C96C4A;
    border-width: 0.2rem;
    border-style: solid;
}
.nav-menu-desktop:not(:last-child){
    float: left;
}

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

.nav-icon{
    display:none;
}

.overlay{
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    background-color: rgb(246, 243, 239);
    background-color: rgba(246, 243, 239, 0.9);
    overflow-x: hidden;
    transition: 0.5s
}

.overlay-content {
    position: relative;
    top:25%;
    width:100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a{
    padding: 8px;
    text-decoration: none;
    font-size: 4rem;
    color: #3D3532;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus{
    color:#C96C4A
}

.overlay .closebtn{
    cursor: pointer;
    background-color: rgba(246, 243, 239, 0);
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    border-width: 0;
}
.closebtn img{
    width:4rem;
}

.show{
    height:100%;
}
/* Hero section */

#hero{
    height:100vh;
    margin-top: 5.2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/background-home.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-text{
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
.hero-text h1{
    font-size:5rem;
    font-weight: lighter;
}

.hero-text p{
    font-size: 2rem;
}

.hero-text button{
    border: none;
    font-family: 'PoiretOne';
    font-size: 1.4rem;
    width: 15rem;
    height: 4rem;
}

.success{
    padding: 20px;
    background-color: 	#6ac94a;
    color: white;
    border-radius: 0.8rem;
    margin-bottom: 15px;
}
.danger {
    padding: 20px;
    background-color: rgb(201, 74, 74);
    color: white;
    margin-bottom: 15px;
    border-radius: 0.8rem;
}
.success span, .danger span{
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s; 
}
.success span:hover{
    color:black;
}

.form-content{
    padding: 20px;
    font-size: 2rem;
    background-color: rgba(246, 243, 239, 0.9);
    left: 25%;
    width:50%;
    position: relative;
    text-align: center;
    border-radius: 0.8rem;
}

.form{
    background-color: rgba(246, 243, 239, 0);
}

.errorlist{
    background-color: rgb(201, 74, 74);
    color: white;
}

.form-btn{
    border-color: #C96C4A;
    border-style: solid;
    border-width: 0.2rem;
    margin: 0;
    width:10rem;
    padding: 0;
    height: 4rem;
    line-height: 4rem;
    font-size: 1.5rem;
    font-family: 'PoiretOne';
}

form {
    padding-top: 2rem;
}

form p {
    display: inline-flex;
    width: 100%;
    align-items: center;
}

form p label {
    width: 50%;
}
form p input {
    height: 1.5rem;
}
form p textarea{
    margin: auto;
}
/* Gallery section  */

#gallery, #renovation{
    background-color: #EBEFEB;
    color: #3D3532;
}

.gallery-text, .renovation-text{
    text-align: center;
}

.gallery-text h1, .renovation-text h1{
    margin: 0;
    padding-top: 5.3rem;
    font-size: 5rem;
    font-weight: lighter;
}

.gallery-text p, .renovation-text p{
    font-size: 2rem;
}
.gallery-grid{
    padding: 2rem;
}
.gallery-grid center{
    margin: 2rem;
}
.gallery-grid center a, .gallery-grid center span{
    font-size: 2rem;
    color: #3D3532;
    text-decoration-line: none;
    font-family: 'Merryweather';
    font-weight: lighter;
}

.row{
    display: flex;
    padding: 0 1.5rem;
    max-width: 75%;
    justify-content: center;
    margin: auto;
 }

.column{
    display: flex;
    flex-direction: column;
    flex:45%;
    max-width: 50%;
    padding: 0 1rem;
}

.gallery-img{
    margin-top: 2rem;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-img:hover{
    opacity: 0.7;
}

.modal-img {
    display: none;
    position: fixed;
    z-index: 2;
    padding: 5rem 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content{
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 0.8rem;

 }

.gallery-caption{
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #F6F3EF;
    padding: 1rem 0;
    height: 2rem;
    font-size: 2rem;
}

.modal-content, .gallery-caption{
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0.8)
    }
    to {
        transform: scale(1)
    }
}

.close{
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #F1F1F1;
    font-size: 5rem;
    font-weight: bold;
    transition: 0.3s;
}
 
.close:hover, .close:focus{
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Renovation section */
#renovation{
    padding-bottom: 3rem;
}
.renovation-grid{
    position: relative;
}

.renov-img{
    width: 100%;
    border-radius: 0.8rem;
}
.slides{
    display: none;
    margin: auto;
    width: 40vw;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    font-weight: bold;
    font-size: 3rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.prev {
    left: 25%;
}
.next {
  right: 25%;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
  color: #F6F3EF;
}

.slide-caption{
    color: #F6F3EF;
    font-size: 4rem;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    text-align: center;
}

.numbertext{
    color: #F6F3EF;
    font-size: 2rem;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.fade{
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from{opacity:0.4}
    to{opacity: 1}
}

.img-comparaison{
    max-width: 80vw;
    max-height: 90vh;
    margin: auto;
    border-radius: 0.8rem;
    overflow: hidden;
}

.img-comparaison img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.img-comparaison .images-container{
    position: relative;
    display: flex;
}

.img-comparaison .images-container .before-image{
    position: absolute;
    top: 0;
    width: 50%;
}

.img-comparaison .slider{
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.img-comparaison .slider-line{
    position: absolute;
    height: 100%;
    width: 0.3rem;
    background: #fff;
    left: 50%;
}

.img-comparaison .slider-icon{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    font-size: 4rem;
    color: #fff;
    transform: translate(-50%, -50%);
}
/* Services section */

#services, #about{
    background-color: rgb(246, 243, 239);
    padding-top: 5rem;
    color: #3D3532;
}
.services-text{
    text-align: center;
}

.services-text h1{
    font-size: 5rem;
    font-weight: lighter;
}

.services-text p {
    font-size: 2rem;
}

.service-card{
    background-color: white;
    border-radius: 0.8rem;
    float:left;
    width:30%;
    margin: 0.9rem;
    text-align: center;
    border-style: solid;
    border-color: rgba(61, 53, 50, 0.1);
    border-width: thin;
    height: 20rem;
}

.card-text p{
    font-size: 2rem;
}

.card-title, .card-text{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.card-title{
    height: 40%;
}
.card-text{
    height: 60%;
}
.card-title h2 {
    font-size: 2.2rem;
    margin: 1rem;
    width: 60%;
}
.card-title img{
    margin: 0.5rem;
}
.services:after{
    content:"";
    display: table;
    clear: both;
    width: 100%;
}

/* About section  */

.about-title {
    text-align: center;
    width: 100%;
}

.about-title h1{
    font-size: 5rem;
    font-weight: lighter;
    width: 100%;
}

.about-text{ 
    width: 100%;
    display: flex;
}

.about-text p{
    font-family: 'Merryweather';
    font-weight: lighter;
    font-size: 2rem;
    line-height: 2.3rem;
    padding: 3rem;
    text-align: center;
    letter-spacing: 0.1rem;
    width: 50%;
}
.about-img{
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img img{
    width: 100%;
    margin: 1rem;
    border-radius: 0.8rem;
}

/* Contact section */

 #contact{
    background-color: #7E8E7D;
    margin-top: 5.2rem;
    color: #F6F3EF;
    padding-top: 3rem;
}

.action-title {
    margin: 2rem;
    text-align: center;
    border-radius: 0.8rem;
    border-color: #F6F3EF;
    border-style: solid;
    border-width: 0.2rem;
    padding: 2rem;

}

.action-title h1, .contact-container h1 {
    font-size: 5rem;
    font-weight: lighter;
}

.action-title p {
    font-size: 2rem;
    line-height: 2.3rem;
    padding: 1rem;
    letter-spacing: 0.1rem;
}

.action-btn button{
    border: none;
    font-family: 'PoiretOne';
    font-size: 1.7rem;
    width: 15rem;
    height: 4rem;
    border-radius: 0.8rem;
    margin: 1rem;
    cursor: pointer;
    border-style: solid;
    border-width: 0.2rem;
}

#devis-btn{
    color: #F6F3EF;
    background-color: #9EB29D;
    border-color: #9EB29D;
}
#boutique{
    color: #F6F3EF;
    background-color: #7E8E7D;
    border-color: #F6F3EF;
}
#devis-btn:hover, #boutique:hover{
    color: #9EB29D;
    background-color: #F6F3EF;
}

.contact-container{
    text-align: center;
    padding-bottom: 4rem;
}
.contact{
    display: flex;
    justify-content: space-around;
}
.contact-card{
    margin: 1rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
    width: 30%;
    background-color: #F6F3EF;
    color: #3D3532;
}


.contact-card-title{
    display:flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    height: 20%;
}

.contact-card-title img {
    width:3rem;
    margin-right: 1rem;
}

.contact-card-title h2{
    font-size: 2.5rem;
    margin: 0;
}

.contact-card-text {
    height: 80%;
    font-size: 2rem;
    font-family: 'Merryweather';
    font-weight: lighter;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-card:last-of-type .contact-card-text {
    font-size: 1.5rem;
}

/* Footer */
footer{
    text-align: center;
}
footer h2{
    font-size: 3rem;
    font-weight: lighter;
}
.footer-btn{
    display: flex;
    justify-content: center;
}
.footer-btn button{
    background-color: rgba(0, 0, 0, 0);
}
.footer-btn button img{
    width: 10rem;
    height: 10rem;
    margin: 1rem;
    cursor: pointer;
}
@media screen and (max-width: 1325px){
    
.contact-card:last-of-type .contact-card-text {
    font-size: 1.1rem;
}
} 
@media screen and (max-width:720px){
    .column{
        flex:100%;
        max-width: 100%;
    }
    .row{
        flex-direction: column;
    }

    .modal-content {
        max-width: 90%;
        height: auto;
    }
} 
@media screen and (max-width:1230px) {
    .nav-menu-desktop a:not(:last-child), #nav-boutique{
        display: none;
    }
    .nav-icon{
        float: right;
        display:block;
        cursor: pointer;
        background-color: rgba(0,0,0,0);
    }
    .nav-icon img{
        width: 2.8rem;
    }
    .form-content{
        position: relative;
        width:100%;
        top: 0;
        left: 0;
    }

    .service-card{
        width: 100%;
        margin: 2rem 0;
    }

    .card-title h2 {
    font-size: 3rem;
    }
    .card-text p{
    font-size: 2.5rem;
    }

    .about-text{
        display: block;
    }
    .about-img{
        width: 100%;
    }
    .about-text p {
        width: 90%;
        padding: 2rem;
        margin: auto;
    }
    .contact{
        display:block
    }
    .contact-card{
        width:90%;
        margin: 1rem auto;
    }
    .contact-card-text{
        font-size: 2rem;
    }
    .contact-card:last-of-type .contact-card-text {
        font-size: 1.6rem;
    }
    .modal-content {
        max-width: 90%;
    }
    .slides{
        width: 70vw;
    }
    .prev{
        left: 0;
    }
    .next{
        right: 0;
    }
}