@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Syne:wght@400..800&display=swap");

:root {
    /*colors*/
    --blue: #AC7245; /*#00aceb;*/
    --white: #ffffff;
    --text: #333333;
    --black: #080808;
    /*Font*/
    --roboto: "Roboto", sans-serif;
}
/*GLOBAL CSS*/
*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    margin: 0;
    overflow-x: hidden;
    font-family: "Roboto", sans-serif;
    color: var(--text);
}
a {
    text-decoration: none;
    transition: all 0.6s ease;
    color:var(--blue);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: var(--roboto);
    color: var(--text);
    font-weight: 400;
}
p {
    line-height:1.6 ;
}
h1 {
    font-size:clamp(2.5rem, 2vw + 1rem, 3.2rem);
    font-weight: 300;
    color: var(--white);
    margin:0;
    padding:15px;
}
h2 {
    font-size: clamp(2.2rem, 2vw + 1rem, 2.8rem);
    font-weight: 300;
}
h3 {
    line-height: 1.8;
    font-size: clamp(1.6rem, 2vw + 1rem, 1.8rem);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding:4% 15px;
}

/*Nav*/
.navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    height: 6rem;

}
.logo {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.logonav {
    max-width: 100%;
}
.menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.item {
     list-style-type: none;
}

.link-item {
    color: var(--white);
    text-transform: uppercase;
    padding: 0 1rem;
    font-weight: 300;
}
.link-item.active {
    color:var(--blue);
}
.link-item:hover {
    color: var(--blue);
    transition: all ease 0.6s;
}
.burger {
    padding: 1.5rem;
    display: none;
}
.burger > div {
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background-color: var(--white);
    margin: 0.6rem;
    transition: all 0.3s ease;
}
.toggle .line1 {
    transform: rotate(-45deg) translate(-8px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/*Slider*/
.splide__slide img {
  width: 100%;
  height: 100%;
  min-height: 20vh;
  object-fit: cover;
}

/*bandeau bleu title h1*/
.bandeau {
    background-color: var(--blue);
}
.bandeau h1 {
    text-align: center;
}

/*text présentation + block picto service - home - */

.block-service {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding:20px 0;
    margin:0 10rem;
 }
 .block-service a {
    text-align: center;
 }
 .block-service a img {
    transition: all ease-in-out 0.5s;
    max-width: 120px;
 }
 .block-service a img:hover {
    transform: scale(1.1);
    transition: all ease-in-out 0.5s;
 }
 .block-service a h4 {
    color: var(--text);
    max-width: 200px;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
 }

 /*bloc réalisations*/
 .wrapper-gallery {
    background-color: var(--black);
    padding:5rem 15px;
}
.wrapper-box {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.img-box {
    aspect-ratio: 4 / 3;
    position:relative;
    overflow: hidden;
    width: 100%;
} 
.img-box img {
    width:100%;
    height: 100%;
    object-fit: cover;
    display:block;
    transition:all 0.5s ease;
}
.img-box .overlay {
    position:absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.5s ease;
}
.img-box:hover img {
    transform: scale(1.2);
}
.img-box:hover .overlay {
    opacity: 1;
}
.overlay .title-overlay h2,
.button-overlay a {
    text-transform: uppercase;
    color:var(--white);
}
.button-overlay{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #080808be;
    width:100%;
}
.button-overlay:hover {
    background-color: var(--blue);
}
.button-overlay a {
    padding:2rem;
}
/* page à propos*/
.article.content-apropos{
    padding: 2rem 0;
}
/* page prestation*/
.container.prestation h2 {
    color: var(--blue);
}
/*page partenaires*/
.container.partenaire {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 100px;
}
.card-article {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition:all 0.5s ease;
}
.card-article:hover {
    transform: scale(1.1);
    transition:all 0.5s ease;
}

.card-article img {
    max-width: 100%;
}

/*article-realisation*/
.content-lightbox {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 16px;
    Padding:5rem 0;
}
.content-lightbox img {
    aspect-ratio: 1 / 1;
    width:100%;
    height:100%;
    object-fit: cover;
    display: block;
    cursor:pointer;
}
#lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.container.lightbox ul {
    line-height: 1.5;
}

/*page contact*/
.container.contact .info {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.container.contact .info h2 {
    font-size: clamp(1.8rem, 0.263vw + 1.695rem, 2.2rem);
    color:var(--blue);
}
.info .info-content {
    text-align: center;
}
 /*******formulaire**********/
.container.contact form {
    max-width: 1200px;
    margin: 0 auto;
 } 
.content-fieldset {
    border:none;
    max-width: 50rem;
}
.content-fieldset legend {
    border-bottom:1px solid #5d5b5b61;
    width: 100%;
    margin-bottom:3rem;
}
.content-fieldset legend > span {
    font-size: 1.8rem;
    padding-bottom: 0.8rem;
    display: inline-block;
}
.wrap-form {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
.wrap-label-input {
    margin-bottom: 1.5rem;
}
.wrap-label-input > div {
    display: flex;
    flex-direction: column;
}
.wrap-label-input label {
    margin-bottom: 1rem;
}
textarea#contact_message {
    min-height:10rem;
}
.wrap-label-input input {
    padding: 5px;
    height: 3rem;
    border: 1px solid #9d9d9d;
}
.button-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}
.button-submit input {
    padding: 12px 25px;
    background: var(--blue);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-size: 15px;
    transition:all 0.5s ease;
}
.button-submit input:hover {
    background-color: var(--black);
    color:var(--white);
    transition:all 0.5s ease;
}

/*Legal*/
.content-legal h2 {
    color:var(--blue);
}
 
 /*FOOTER*/
 /* bandeau bleu h2*/
 .bandeau.text-style {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding:15px;
 }
.wrap-button-devis {
    display: flex;
    align-items: center;
}
.wrap-button-devis a {
    border: 2px solid #ffffff;
    border-radius:5px;
    color:var(--white);
    padding:5px;
    text-transform: uppercase;
    width: 120px;
    text-align: center;
    transition: all ease 0.6s;
}
.wrap-button-devis a:hover {
    background-color: white;
    color: var(--blue);
    transition: all ease 0.6s;
}
.text-bandeau h2,
.text-bandeau p {
    margin:10px 0;
    color:var(--white);
}
/*fin bandeau*/
.footer {
    background-color: var(--black);
    padding:5rem 0;
}
.wrap-footer {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin:0 auto;
    padding:15px;
}
.column {
    padding:15px;
}
.column h4 {
    text-transform: uppercase;
    font-weight: 300;
    color:var(--white);
}
.column p {
    font-weight: 300;
    line-height: 1.5;
    color:var(--white);
}
.link-footer {
    margin:0;
    padding:0;
}
.link-footer li {
    padding: 10px 0;
    border-bottom:1px solid var(--text);
    list-style-type: none;
}
.link-footer a {
    color:var(--white);
    padding:10px 0;
    font-weight: 300;
    transition: all ease 0.6s;
}
.link-footer a:hover {
    color: var(--blue);
    transition: all ease 0.6s;
}
.wrap-subfooter {
    background-color: var(--black);
    text-align: center;
    font-size: 13px;
    color: var(--white);
    font-weight: 300;
}
.container.subfooter {
    padding:24px 0;
    border-top:1px solid var(--text);
}
.container.subfooter a,
.container.subfooter span {
    padding:0 5px;
}



/*medias query*/

@media all and (max-width: 1280px) {
    .container.partenaire {
        grid-gap:50px;
    }
    .card-article img {
    max-width: 60%;
    }
}
@media all and (max-width: 990px) {
    .wrap-nav {
        display: block;
    }
    .navbar {
        flex-direction: column-reverse;
        align-items: flex-end;
        background-color: var(--text);
        height:100%;
    }
    .logo {
        align-self: center;
        order: 2;
    }
    .menu {
        flex-wrap: wrap;
    }
    .nav-active .item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .menu.nav-active {
        height: 40vh;
        background-color: var(--text);
    }
    .item {
        width: 100%;
        text-align: left;
        display: none;
        border-bottom: solid 0.5px #ffffff42;
    }
    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-8px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    .wrapper-box {
        grid-template-columns: 1fr;
    }
    .content-lightbox {
    grid-template-columns: repeat(2, 1fr);
    }
    .wrap-form {
         grid-template-columns: 1fr;
    }
    .content-fieldset {
        margin-bottom: 3rem;
    }
}

@media all and (max-width: 635px) {
    .container {
        padding-top:10%;
        padding-bottom: 10%;
    }
    .wrap-button-devis a {
        margin-top:10px;
    }
    .block-service {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin:0;
    }
    .container.partenaire {
        grid-gap:20px;
    }
    .card-article {
        align-items: center;
    }
    .card-article img {
        max-width: 45%;
    }
    .content-lightbox {
    grid-template-columns: 1fr;
    }
    
}