:root {
    font-size: 1rem;
    --color-primary: #EB3A2B;
    --color-primary-rgb: 235, 58, 43;
    --color-primary-hover: #ff1500;
    --color-secondary: #B2B2B2;
    --text-color: #333;
    --padding-desktop: 120px;
    --padding-mobile: 20px;
}

/***************************
        FONTS
***************************/
/* open-sans-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300;
    src: url("data/css/fonts/open-sans-v43-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("data/css/fonts/open-sans-v43-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 400;
    src: url("data/css/fonts/open-sans-v43-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    src: url("data/css/fonts/open-sans-v43-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    src: url("data/css/fonts/open-sans-v43-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    src: url("data/css/fonts/open-sans-v43-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/***************************
        GENERAL
***************************/
* {
    box-sizing: border-box;
    color: var(--text-color);
    font-family: 'Open Sans';
    font-size: 1em;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

body { 
    margin: 0; 
}

img {
    max-width: 100%;
    height: auto;
}

.site-section { 
    margin: 4rem 0; 
    scroll-margin-top: 180px;
}
.site-padding-left { padding-left: var(--padding-desktop); }
.site-padding-right { padding-right: var(--padding-desktop); }

.container {
    margin: auto;
    width: 100%;
    padding-left: var(--padding-desktop);
    padding-right: var(--padding-desktop);
}
.container--lg { max-width: 1024px; }
.container--lg2 { max-width: 1200px; }
.container--sm { max-width: 920px; }

/***************************
        HELPERS
***************************/
.text-right { text-align: right; }
.text-center { text-align: center; }

.mb-1 { margin-bottom: 1em; }
.brad-30 { border-radius: 30px; }

/***************************
        BOUTONS
***************************/
.btn-primary {
    display: inline-block;
    padding: 1em 1.1em;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: var(--color-primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}
.btn-primary.forward { 
    display: inline-flex;
    gap: 0 .5em;
}

.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

/***************************
        TITRES
***************************/
.subtitle {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
}
.subtitle span { color: var(--color-primary); }

/***************************
        ENTETE et MENU
***************************/
.site-header {
    position: sticky;
    top: 0;
    padding: 2rem var(--padding-desktop);
    background: #fff;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.05);
    z-index: 99;
}
.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 0 3em;
    margin: 0;
    padding: 0;
}
.site-menu-item { list-style-type: none; }
.site-menu-item a {
    font-size: 1.1rem;
    font-weight: 600; 
    text-decoration: none; 
    transition-duration: .2s;
}
.site-menu-item a.forward {
    display: inline-flex;
    gap: 0 .5em;
}

.site-menu-item a:hover{
    color: var(--color-primary);
}

.site-menu-item a.forward:hover{
    color: #fff;
    background: var(--color-primary-hover);
}

h1 {
    display: inline-block;
    padding: .5em;
    padding-right: 1.5em;
    padding-left: var(--padding-desktop);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--color-primary);
}

.top-container {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0 40px;
}
.top-container__row { flex: 1; }

#btn-menu{
    display: none;
    z-index: 1;
    background: none;
    border: none;
    position: relative;
}

#btn-menu span,
#btn-menu span::before,
#btn-menu span::after{
    content: "";
    display: block;
    position: absolute;
    height: 3px;
    width: 30px;
    background: #000;
    border-radius: 2px;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

#btn-menu span{
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

#btn-menu span::before{
    top: -9px;
}

#btn-menu span::after{
    bottom: -9px;
}

#btn-menu.close span{
    transform: rotate(-45deg)
}

#btn-menu.close span::before{
    top: 0;
    transform: rotate(90deg);
}

#btn-menu.close span::after{
    bottom: 0;
}

/***************************
        AVIS
***************************/
.list-avis {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 4rem 0;
    z-index: 2;
}
.list-avis:before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 70%;
    height: 100%;
    background: rgba(var(--color-primary-rgb), 0.04);
    border-radius: 30px;
    transform: translateX(-50%);
    z-index: 1;
}
.avis {
    padding: 2em 1.9em;
    flex-basis: calc(50% - 30px);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
    z-index: 2;
}
.avis header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1rem;
}

.avis h3{
    margin-block: 0;
}

/***************************
        CONSEILS
***************************/
.list-conseils {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 2rem;
}
.conseil {
    text-align: center;
    flex: 1;
}
.conseil p{
    margin-block: 0;
}
.conseil__title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: .5rem;
}
.conseil__icon{
    background-color: var(--color-primary);
    padding: 8px;
    border-radius: 50%;
    height: 74px;
    width: 74px;
    margin: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/***************************
        POURQUOI
***************************/
.pourquoi {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}
.pourquoi__picture {
    flex-basis: 33.33%;
}
.pourquoi__description {
    flex: 1;
}

/***************************
        PERGOLAS
***************************/
.list-pergolas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.pergola {
    flex: 1;
    text-align: center;
}
.pergola__title {
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 500;
    text-transform: uppercase;
}
.pergola__title span { 
    display: block;
    font-weight: 700; 
}

/***************************
        CONTACT
***************************/
.box-form {
    padding: 50px 80px;
    border-radius: 30px;
    background: #FFF;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.05);
}

.form-devis fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.form-devis label { 
    display: block; 
    margin-bottom: .3em;
}

.form-devis .list {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 20px;
}

.form-devis .list > * {
    flex-basis: calc(50% - 20px);
}
.form-devis .list .message,
.form-devis .list div.rgpd,
.form-devis .list div.buttons {
    flex-basis: calc(100% - 20px);
}

.form-devis [type=text],
.form-devis [type=email],
.form-devis [type=tel],
.form-devis textarea {
    padding: .4em 1em;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(235, 58, 43, 0.30);
    background: rgba(235, 58, 43, 0.05);
}
.form-devis textarea {
    min-height: 100px;
}
.form-devis .checkbox span label { 
    margin: 0; 
    font-style: italic;
}
.form-devis .checkbox p { margin: 0; }
.form-devis .checkbox span { 
    display: flex;
    align-items: start; 
    gap: .3em;
}
.form-devis .checkbox input { 
    margin-top: 5px;
}

.form-devis div.buttons { text-align: center; }
.form-devis .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0 .5em;
}

.form-devis span.error {
    color: var(--color-primary);
}

.loader {
    position: absolute;
    top: 0; right: 0;
    bottom: 0; left: 0;
    background: url("data/image/landing/tube-spinner.svg") center center no-repeat rgba(0, 0, 0, .29);
    background-size: 64px;
}

.box-sent {
    padding: 1em;
    color: #0f570f;
    background: #bbe3bb;
    border-radius: 8px;
}

/***************************
        LOGIKINOV
***************************/
.box-logikinov {
    padding: 50px 80px;
    background: rgba(var(--color-primary-rgb), 0.04);
    border-radius: 30px;
}
.box-logikinov-top {
    margin-bottom: 2rem;
}
.box-logikinov .logo {
    width: 350px;
}

/***************************
        AGENCES
***************************/
.box-agences {
    padding: 50px 80px;
    border: 2px solid rgba(var(--color-primary-rgb), 0.40);
    border-radius: 34px;
}
.list-agences {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.agence {
    flex: 1;
    text-align: center;
}
.agence p { margin: 0; }
.agence__title {
    margin-bottom: .5em;
    font-size: 1.7rem;
    font-weight: 600;
}
.agence__title span { font-weight: 700; }
.agence__tel {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 2vw, 2.29rem);
    font-weight: 700;
    white-space: nowrap;
}

/***************************
        FOOTER
***************************/
footer { padding-bottom: 2rem; }
footer menu { 
    list-style-type: none; 
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
}

footer a{
    text-decoration: none;
    transition-duration: .2s;
}

footer a:hover{
    color: var(--color-primary);
}

/***************************
        RWD
***************************/
@media (max-width: 1250px){
    .site-header__container{
        flex-direction: column;
    }
    .site-menu{
        gap: 0 2em;
    }
    .site-menu-item a{
        font-size: 1rem;
    }
    .top-container{
        flex-direction: column-reverse;
        gap: 40px;
        align-items: center;
    }
    .top-container__picture .site-padding-right {
        padding-left: var(--padding-desktop);
    }
    .site-padding-left {
        padding-right: var(--padding-desktop);
    }
}

@media (max-width: 992px){
    :root{
        --padding-desktop: var(--padding-mobile);
    }
    h1{
        font-size: 2.3rem;
    }
    .subtitle{
        font-size: 2.2rem;
    }
    .pourquoi{
        gap: 30px;
    }
    .btn-container{
        text-align: center;
    }
    .agence__title,
    .pergola__title{
        font-size: 1.5rem;
    }
    .list-conseils{
        gap: 40px;
    }
    .conseil{
        width: calc(50% - 40px);
        flex: unset;
    }
    .avis,
    .pergola,
    .agence{
        width: calc(50% - 30px);
        flex: unset;
    }
    .box-form,
    .box-logikinov,
    .box-agences{
        padding: 40px;
    }
}

@media (max-width: 768px){
    .form-devis .list > *,
    .form-devis .list .message, 
    .form-devis .list div.rgpd, 
    .form-devis .list div.buttons{
        flex-basis: 100%;
    }
    .site-header__container{
        flex-direction: row;
    }
    .site-menu{
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        max-width: 400px;
        padding: 2em;
        padding-top: 7em;
        box-shadow: -4px 0 8px rgb(0,0,0,.1);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5em;
        transform: translateX(100%);
        transition-duration: .2s;
    }
    .site-menu.active{
        transform: none;
    }
    .site-menu-item a{
        font-size: 1.1rem;
    }
    #btn-menu{
        display: block;
    }
}

@media (max-width: 575px){
    .subtitle{
        font-size: 2rem;
    }
    .pourquoi__picture{
        flex-basis: 100%;
        text-align: center;
    }
    .pourquoi:not(.site-section){
        flex-direction: column-reverse;
    }
    .agence__title,
    .pergola__title{
        font-size: 1.3rem;
    }
    .avis,
    .conseil,
    .pergola,
    .agence{
        flex: 100%;
    }
    .box-logikinov .logo {
        width: 300px;
    }
    footer menu{
        flex-direction: column;
        gap: 2.5em;
    }
}