/*
 Theme Name:   Faste Wordpress theme child
 Theme URI:    http://www.faste.ca
 Description:  Thème de base pour le développement Web chez Faste Communication
 Author:       Guillaume Proulx
 Author URI:   http://www.faste.ca
 Template:     faste
 Text Domain:  faste-child
 Version:      1.0.18
*/
 
/* temp */

#gform_fields_1 input::placeholder {
  color: white;
}

textarea{
    color: white;
}

.secmenu{
    display: none!important;
}
 
/* CONFIGURATION INITIALE */ 
*{
    font-family: var(--main-font);
}
h1 {
    font-size: calc(17px + 3vw);
    color: var(--color4);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 100%;    
}
h1 strong{
    font-size: 145%;
}
h2 { 
    font-size: calc(14px + 1.7vw);
    font-weight: normal;
    /*text-transform: uppercase;*/  
}
h3 {
    font-size: calc(13px + 1.5vw);
    color: var(--color4);
    font-weight: 500;
}
h4 {
    font-size: calc(12px + 1.3vw);
    color: var(--color1);
    font-weight: 600;
}
h5 {
    font-size: calc(15px + 1vw);
    font-weight: 300;
    padding-bottom: 0;
    margin-bottom: 0;
    color:var(--color5);
}
p, li{
    color: var(--color5);
    font-size: calc(16px + 0.3vw);
    margin-top: 0;
    font-weight: 300;
    /*margin-bottom: 1vw;*/
}
p strong{
    font-weight:800;
}
.rev h1, .rev h2, .rev h3, .rev h4, .rev h5, .rev p{
    color:white;
}
@media screen and (min-width:1920px){
    h1 {
        font-size: 75px;
    }
    h2 {
        font-size: 50px;
    }
    h3 {
        font-size: 40px;
    }
    h4 {
            font-size: 30px;
    }
    h5 {
            font-size: 30px;
    }

    main section.stats div.num > span:nth-child(2){
        font-size: 95px;
    }

    section.stats div.num > span:nth-child(1){
        font-size: 48px;
    }
 
}
 
@media screen and (min-width:1300px){
    p, li{
        font-size: 22px;
    }
}
 
blockquote p{
    color: var(--color2);
    font-weight: bold;
}
blockquote p:first-child::before{
    content:"« ";
}
blockquote p:last-child::after{
    content:" »";
}
 
.b1, .woocommerce a.button.add_to_cart_button, .woocommerce a.added_to_cart{
    background-color: var(--color1);
    color: white;
    padding: 15px 55px;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    display: inline-block;
    font-size: 75%;
    border-radius:30px;
    margin-right: 10px;
    text-align: center;
}
.b2, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{
    background-color: var(--color2);
    color: white;
    padding: 15px 55px;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    display: inline-block;
    font-size: 75%;
    border-radius:30px;
    margin-right: 10px;
    text-align: center;
}
.b3{
    background-color: transparent;
    border: 1px solid var(--color1);
    color: var(--color1);
    display: inline-block;
    padding: 15px 55px;
    font-size: 75%;
    border-radius:50px;
    text-transform: uppercase;
}
/*
.rev .b1{
}
.rev .b2{
}
*/
.rev .b3{
    color:var(--blanc);
    border-color: var(--blanc);
    transition: background 0.4s ease-in;
}
.rev .b3:hover{
    background-color:rgba(255,255,255,0.5)!important;
}
.container{
    margin:0 auto;
    max-width:1800px;
    padding: var(--pad);
}
.wp-block-cover, .wp-block-cover-image{
    min-height:0;
}
footer > div{
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
}
/* CONFIGURATION INITIALE END */
header#header .logo img{
    max-width: 210px;
}

body header#header:not(.menu) {
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 5;
}
header#header {
    background-color: rgba(255,255,255,0.8);
    padding: 0;
    grid-template-columns: minmax(calc(120px + 8vw), calc(300px + 8vw)) minmax(50%, 1fr);
}
body.active header#header.sticky{
    background-color: rgba(255,255,255,0.8);
    box-shadow:none;
}
header#header .ann{
    padding: 10px;
    grid-column: span 2;
    background-color: var(--noir);
    color:var(--blanc);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 90%;
}
header#header.active .ann{
    display: none;
}
header#header .menus li{
    font-size:16px;
    margin-bottom: 0;
}
header#header .menus{
    grid-template-columns: minmax(50%, 1fr) auto;
    display: grid;
}
header#header .menus > nav > ul {
    justify-content: flex-start;
}
header#header .logo {
    padding: 4px 20px 10px 8vw;
}
header#header nav a {
    color:var(--color4);
    text-transform: uppercase;
    font-size: 90%;
    letter-spacing: 1px;
}
header#header .menus > nav > ul {
    margin-top: 0;
    height: 100%;
    padding: 0 0 0 4vw;
}
header#header .menus a{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    height: 100%;
    -ms-align-items: center;
    align-items: center;
    padding: 21px 1vw 15px 1vw;
    position: relative;
}
header#header .menus > nav li.menu-item-has-children > a:after{
    content :"";
    display: block;
    width: 7px;
    height: 7px;
    transform: rotate(-45deg);
    transform-origin: center;
    border-right: 1px solid var(--color4);
    border-bottom: 1px solid var(--color4);
    position: relative;
    bottom: 0px;
    right: -5px;
    transition: all 0.2s ease-in-out;
}
header#header .menus > nav li.menu-item-has-children:hover > a:after{
    transform: rotate(45deg);
    bottom: 3px;
}
header#header:not(.menu) .menus > nav > ul > li:hover, header#header .menus > nav ul.sub-menu {
    background-color: transparent;
}
/*
header#header .menus > nav > ul > li:hover > a:before{
    content :"";
    display: block;
    position: absolute;
    width: 100%;
    height: 40px;
    left: 0px;
    border: 1px solid var(--color4);
    animation: appear 0.2s linear forwards;
}
 */

 header#header .menus > nav > ul > li:hover > a{
    
    font-weight: bold;
 }
@keyframes appear {
  /* Start with the stroke hidden (offset equals the array length) */
  from {
    opacity: 0;
  }
  /* End with the stroke fully visible (offset is 0) */
  to {
    opacity: 1;
  }
}
header#header .secmenu a {
    background-color: var(--color6);
    color:var(--blanc);
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -ms-align-items: center;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    text-align: center;
    font-weight: 600;
    margin: 0;
}
header#header .secmenu li{
    height: 100%;
}
 
.citation{
    background: linear-gradient(to bottom, #ffffff 50%, #000000 50%);
} 

.modele_service section.cta{
    padding-top: 5vw;
}



body.privacy-policy main{
    padding: 10vw 5vw;
}  
/* Tableaux de la politique de confidentialité */
body.privacy-policy main table{
    width: 100% !important;
    margin: 30px 0;
    border-collapse: collapse;
    border: 1px solid rgba(65,65,65,0.25);
}
body.privacy-policy main table td,
body.privacy-policy main table th{
    width: auto;
    padding: 15px 20px;
    vertical-align: top;
    text-align: left;
    border: 1px solid rgba(65,65,65,0.25);
}
body.privacy-policy main table td p{
    margin: 0;
}
body.privacy-policy main table thead td,
body.privacy-policy main table thead th{
    background-color: var(--color2);
    border-color: var(--color2);
}
body.privacy-policy main table thead td *,
body.privacy-policy main table thead th *{
    color: var(--blanc);
}
body.privacy-policy main table tbody tr:nth-child(even){
    background-color: #F4F4F4;
}

@media screen and (max-width:760px){
    /* Défilement horizontal plutôt que des colonnes écrasées */
    body.privacy-policy main table{
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.privacy-policy main table td,
    body.privacy-policy main table th{
        min-width: 200px;
        padding: 12px 15px;
        font-size: 14px;
    }
}

.citation > div{
    background-color: var(--color2);
    padding: 5vw;
    border-radius: 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   
}

.citation > div h2{
    margin: 0 0 15px 0;
    font-weight: 700;
} 
.citation .contenu h2::before{
    content: "«\00a0";
}
.citation .contenu h2::after{
    content: "\00a0»";
}

.texture::after{
    position: absolute;
    content:"";
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-blend-mode: multiply;
    opacity: 0.2;
    mix-blend-mode: luminosity;
    z-index: 0;
}
 
section.stats div.num > span:nth-child(1){
    display: block;
    font-size: calc(12px + 1.7vw);
}

section.stats div.num > span:nth-child(2){
font-size: calc(15px + 4vw);
}

.stats > div .num {
    font-family: var(sec);
    font-weight: 800;
    line-height: 65px;
        font-family: var(--sec-font);
}
 
section.stats {

    align-items: baseline;

}

.texture > *{
    z-index: 1;
    position: relative;
}
.titlesection{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-align-items: center;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto 10vh auto;
}
.titlesection > h1{
    flex-basis: 350px;
}

.modele_service_archive .titlesection > div{
    padding-left: 0vw;
}

.titlesection > div{
    counter-increment: item-count;
    flex-basis: calc(100% - 350px);
    padding-left: 8vw;
    max-width: 1000px;
}
.cta h1{
    text-align: center;
    margin-bottom: 8vh;
}
.cta input[type]:nth-child(n){
    background-color: transparent;
    color:var(--blanc);
    outline: 0;
    border:none;
    border-bottom:1px solid var(--blanc);
    border-radius: 0;
    letter-spacing: 1.5px;
    padding-left: 0;
}
.cta input[type]::placeholder{
    text-transform: uppercase;
}
.cta .gform_fields > *:nth-of-type(n-3){
    grid-column: span 6;
    grid-row: var(--nth-child);
}
.cta .gform_fields > .gfield--type-textarea{
    grid-column: span 6;
    grid-row: span 3;
}
.cta .gform_fields > .gfield--type-textarea textarea{
    border-radius:0;
    border-top:1px solid var(--blanc);
    background-color: rgba(255,255,255,0.5);
}
.cta .gform-theme--foundation{
    --gf-form-gap-x:4vw;
}
.cta .gform_footer{
    padding-left: calc(50% + var(--gf-form-gap-x) / 2);
}
.cta .gform-theme.gform-theme--framework.gform_wrapper .gform_footer input[type="submit"].gform_button:nth-child(n){
    border:1px solid var(--blanc);
    background-color: transparent;
    border-radius:50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 45px;
    transition: background 0.4s ease-in;
}
.cta .gform-theme.gform-theme--framework.gform_wrapper .gform_footer input[type="submit"].gform_button:nth-child(n):hover{
    background-color:rgba(255,255,255,0.5)!important;
}
.cta .gform-theme--framework .gform-field-label:where(:not([class*=gform-field-label--type-])){
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color:var(--blanc);
    margin-bottom: 17px;
}
 
.cta {
    padding: var(--pad);
    background-color: var(--noir);
    padding-top: 16vw;
    z-index: -1;
}
.cta .gform_confirmation_message{
    color:var(--blanc);
    text-align: center;
}
footer{
    background-color: var(--noir);
    padding:var(--pad);
}
.copy{
    background-color: var(--noir);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.copy p{
    padding: 0 20px;
}
.copy a{
    color: var(--blanc);
    text-decoration: underline;
}
footer .contact{
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
}
footer .callout{
    grid-column: span 1;
}
footer .contact a{
    color:var(--blanc);
}
footer .contact > div{
    border-left:1px solid var(--blanc);
    padding-left: 2vw;
    flex-grow: 1;
}
footer > div {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
}
footer .social img{
    filter: invert();
    width: 20px;
}
footer .social{
    padding: 10px;
}
footer .social:nth-of-type(1){
    margin-left: -10px;
}

/* MEGA MENU STYLES */
body header#header:not(.menu) .menus > nav li.menu-item-has-children > ul.mega{
    background-color: rgba(45,119,66,0.95);
    border-bottom-left-radius: 4vw;
    border-bottom-right-radius: 4vw;
    padding: 0;
}
body header#header:not(.menu) .menus > nav li.menu-item-has-children > ul.mega .mega-list > h5{
    color:var(--blanc);
    border-bottom: 1px solid var(--blanc);
}

body header#header:not(.menu) .menus > nav li.menu-item-has-children > ul.mega a{
    color:var(--blanc);
}
body header#header:not(.menu) .menus > nav li.menu-item-has-children > ul.mega li > a {
    text-transform: uppercase;
}
.mega-list{
    padding:30px 30px 30px 60px;
}
.megacontent .content > *{
    color:var(--blanc);
}
.megacontent .content{
    padding: 60px 30px 30px 30px;
}
.megacontent {
    padding:0;
}
.megacontent > .img > img{
    border-bottom-right-radius: 4vw;
}
header#header:not(.menu) .menus>nav ul.sub-menu .mega-list li,
header#header:not(.menu) .menus>nav ul.sub-menu .mega-list li:hover{
    border-bottom:0px;
}
header#header:not(.menu) .menus > nav ul.sub-menu .mega-list li:hover > a{
    color:var(--blanc);
    font-weight:800
}
body header#header:not(.menu) .menus > nav li.menu-item-has-children > ul.mega .content a {
    display: block;
    color: white;
    padding: 15px 55px;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    display: inline-block;
    font-size: 75%;
}
/* MEGA MENU STYLES END */
/* Headers */
section.header{
    position: relative;
}
section.header.rev{
    background-color: var(--noir);
}
section.header .overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-image: var(--bg-url);
    background-size: 80% auto;
    background-position: top left;
    background-repeat: no-repeat;

    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 80%);
}
section.header .titre_page{
    position: absolute;
    bottom: 7vh;
    left: 6vw;
    max-width:800px;
}
section.header .titre_page h3{
    margin-bottom: 10px;
}
section.header img{
    height: 25vw;
    width: 100%;
    margin-left: 0%;
    object-fit: cover;
    min-height: 250px;
    filter: brightness(0.8);
    /*
    -webkit-mask-image: linear-gradient(
        to left,
        rgba(0, 0, 0, 1) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to left,
        rgba(0, 0, 0, 1) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    */
}
/* Headers fin */

.stats{
    padding:var(--pad);
    background-color: #F4F4F4;display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-align-items: center;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}
.stats > div + div{
    border-left:1px solid var(--color5);
}


.stats > div{
    width: 25%;
    padding: 4vh 40px;
}
/*
.stats > div .num{
    font-size: calc(18px + 2vw);
    font-weight: 900;
}
    */
.stats > div p{
    font-size:calc()
}
.flexcontent h1{
    margin-bottom: 1vh;
}
.flexcontent h4{
    font-weight: 600;
}
.flexcontent img, .flexcontent video{
    border-radius: 2vw;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}
/* TEMOIGNAGES */

.temoignage{
    background-color: var(--color1);
    position: relative;
}


.temoignage *{
  color: white;
}

.temoignage-slider{
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 5vw 8vw;
}

/*
.temoignage-slider.splide{
    position: initial;   
}
*/

.temoignage .splide__arrow{
        background: transparent;
}

.temoignage .splide__arrow--next img{
    rotate: 180deg;
}

.temoignage p.nom{
    margin: 0;
    text-transform: uppercase;
}

.temoignage p.titre{
    font-style: oblique;
}

.temoignage-slider .splide__track,
.temoignage-slider .splide__list,
.temoignage-slider .splide__slide {
    height: auto !important;
}
/* TEMOIGNAGES FIN */

/* Articles en lien */

.intro_plus_article h4{
	color: black;
}


.intro_plus_article h4{
	font-weight: bold;
}

.intro_plus_article p{
    display: flex;
    align-items: center;
    gap: 15px;
}

.intro_plus_article a{
	color: var(--color1);
    font-weight: bold;
}

.plus_article {
    padding-top: 5vw;
    background-color: #F9F8F9;
	overflow: hidden;
    padding-bottom: 5vw;	
}
.plus_article .splide__slide{
	border-radius: 25px;
    overflow: hidden;
}
.intro_plus_article{
    display: flex;
    padding: 0 8vw 25px 8vw;
    justify-content: space-between;	
}
.plus_article .splide__slide img {
    vertical-align: bottom;
    height: 32vw;
    object-fit: cover;
    margin: 0vw;
    min-height: 400px;
    filter: brightness(0.7);	
}

.plus_article div.slider{ 
    position: relative;
    left: 8vw;	
}

.plus_article .splide__slide{
	position: relative;
}


.splide__slide img {
    vertical-align: bottom;
    height: 32vw;
    object-fit: cover;
    margin: 0vw;


}

.plus_article .boite_info_article *{
	color: white;
}
.plus_article .boite_info_article p.cat_post a{
	color: white;
    font-weight: 500;
}

.plus_article .boite_info_article{
    position: absolute;
    bottom: 0;	
    left: 40px;	
    right: 30px;
}

.zoom-image {
  overflow: hidden; /* Hides the parts that zoom out of bounds */
}

.zoom-image img {
  transition: transform 0.3s ease; /* Smooth transition */
  display: block;
  width: 100%;
}

.zoom-image img:hover {
  transform: scale(1.2); /* Zoom to 120% */
}
/* Articles en lien FIN */

@media screen and (max-width:1350px){
    header#header .menus > nav > ul {
        padding: 0 0 0 0vw;
    }
}

@media screen and (max-width:1250px){
        body header#header:not(.menu) {
        position: relative;
    }
    main section.stats > div .num {
        line-height: 4vw;
    }

      

}

@media screen and (max-width:1024px){
        main section.stats > div {
        width: 50%;
        padding: 4vh 40px;
    }

    div.flexcontent > .row > div{
        min-width: 5px;
        flex-basis: 100%;
    }

    footer .contact {
        grid-column: span 3;

    }

    main section.stats > div .num {
        line-height: 5vw;
    } 

    body > main > section.stats > div:nth-child(3){
        border-left: 0;
    }
}

@media screen and (max-width:640px){
    .cta .gform_fields > *:nth-of-type(n-3) {
        grid-column: span 12;
        grid-row: initial;
    }

    .temoignage-slider{
        padding: 5vw 15vw;        
    }

    main section.stats > div .num {
        line-height: 6vw;
    } 

    div.logos > div {
        flex-basis: 45%;

    }

    footer .callout {
        grid-column: span 3;
    }

    footer .contact {
        flex-direction: column;
    }

    main section.stats > div {
        width: 100%;
        border-left: 1px solid !important;
    }
}

/* 3e niveau du menu: visible seulement dans le menu mobile */
@media screen and (min-width:1251px){
    header#header .menus > nav ul.sub-menu ul.sub-menu{
        display: none !important;
    }
    header#header .menus > nav ul.sub-menu li.menu-item-has-children > a:after{
        content: none;
    }
}

/* MENU MOBILE (≤1250px)
   Sélecteurs préfixés "html body" pour passer devant faste/css/menu.css et megamenu.css
   peu importe l'ordre de chargement. */
@media screen and (max-width:1250px){
    html body.menu-open{
        overflow: hidden;
    }
    html body header#header{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        background-color: #fff;
        z-index: 50;
    }
    html body header#header .ann{
        width: 100%;
        padding: 8px 15px;
        font-size: 12px;
    }
    html body header#header.menu .ann{
        display: none;
    }
    html body header#header .logo{
        width: auto;
        padding: 10px 20px;
        position: relative;
        z-index: 3;
    }
    html body header#header .logo img,
    html body.active header#header.sticky .logo img{
        max-width: 160px;
    }

    /* Hamburger */
    html body header#header .ham-icon{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: auto;
        padding: 20px;
        position: relative;
        z-index: 3;
        cursor: pointer;
    }
    html body header#header .ham-icon > span{
        width: 28px;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background-color: var(--color4);
        transform-origin: center;
        transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    }
    html body header#header .ham-icon > span + span{
        margin-top: 7px;
    }
    html body header#header .ham-icon > span:nth-of-type(3){
        width: 18px;
    }
    html body header#header .ham-icon.close > span:nth-of-type(1){
        transform: translateY(9px) rotate(45deg);
    }
    html body header#header .ham-icon.close > span:nth-of-type(2){
        opacity: 0;
    }
    html body header#header .ham-icon.close > span:nth-of-type(3){
        width: 28px;
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Panneau */
    html body header#header .menus{
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        height: 100dvh;
        padding: 72px 0 0 0;
        background-color: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s ease-in-out, visibility 0s linear 0.4s;
    }
    html body header#header.menu .menus{
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s ease-in-out;
    }

    /* Menu principal */
    html body header#header .menus > nav{
        display: block;
        flex: 0 0 auto;
        overflow: visible;
        border-top: 1px solid rgba(65,65,65,0.15);
    }
    html body header#header .menus > nav > ul{
        display: block;
        height: auto;
        margin: 0;
        padding: 0;
    }
    html body header#header .menus > nav > ul > li{
        text-align: left;
        background-color: transparent;
        border-bottom: 1px solid rgba(65,65,65,0.15);
    }
    html body header#header .menus > nav > ul > li > a,
    html body header#header .menus > nav > ul > li:hover > a{
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 18px 25px;
        font-size: 16px;
        font-weight: 500;
        color: var(--color4);
        white-space: normal;
    }
    html body header#header .menus > nav > ul > li.current-menu-item > a,
    html body header#header .menus > nav > ul > li.current-menu-ancestor > a{
        color: var(--color2);
    }

    /* Chevron des parents: bas = fermé, haut = ouvert */
    html body header#header .menus > nav li.menu-item-has-children > a:after,
    html body header#header .menus > nav li.menu-item-has-children:hover > a:after{
        width: 9px;
        height: 9px;
        right: 0;
        bottom: 3px;
        transform: rotate(45deg);
    }
    html body header#header .menus > nav li.menu-item-has-children.open > a:after{
        bottom: -3px;
        transform: rotate(-135deg);
        border-color: var(--color2);
    }
    html body header#header .menus > nav li.menu-item-has-children.open > a{
        color: var(--color2);
        font-weight: 700;
        animation: none;
    }
    html body header#header .menus > nav li.menu-item-has-children.open > a:before{
        content: none;
        animation: none;
    }

    /* Sous-menus en accordéon */
    html body header#header .menus > nav li.menu-item-has-children{
        position: static;
    }
    html body header#header .menus > nav li.menu-item-has-children > ul,
    html body header#header .menus > nav li.menu-item-has-children > ul.mega{
        display: none;
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        left: auto;
        padding: 0 0 10px 0;
        opacity: 1;
        transform: none;
        animation: none;
        box-shadow: none;
        border-radius: 0;
        background-color: #F4F4F4;
    }
    html body header#header .menus > nav li.menu-item-has-children.open > ul,
    html body header#header .menus > nav li.menu-item-has-children.open > ul.mega{
        display: block;
    }
    html body header#header .menus > nav ul.mega h5,
    html body header#header .menus > nav ul.mega .megacontent{
        display: none !important;
    }
    html body header#header .menus > nav ul.sub-menu .mega-list{
        padding: 0;
        flex-basis: auto;
    }
    html body header#header .menus > nav ul.sub-menu li,
    html body header#header .menus > nav ul.sub-menu li:hover{
        border: 0;
        background-color: transparent;
    }
    html body header#header .menus > nav ul.sub-menu li > a,
    html body header#header .menus > nav ul.sub-menu li:hover > a{
        display: block;
        height: auto;
        padding: 12px 25px 12px 40px;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.5px;
        text-transform: none;
        white-space: normal;
        color: var(--color4);
    }
    html body header#header .menus > nav ul.sub-menu li.current-menu-item > a{
        color: var(--color2);
        font-weight: 700;
    }

    /* 3e niveau */
    html body header#header .menus > nav ul.sub-menu li.menu-item-has-children > a,
    html body header#header .menus > nav ul.sub-menu li.menu-item-has-children:hover > a{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    html body header#header .menus > nav ul.sub-menu li.menu-item-has-children > ul{
        padding: 0;
        background-color: transparent;
    }
    html body header#header .menus > nav ul.sub-menu ul.sub-menu li > a,
    html body header#header .menus > nav ul.sub-menu ul.sub-menu li:hover > a{
        padding-left: 55px;
        font-size: 14px;
    }

    /* Hover (seulement avec souris, pour éviter le hover collant au toucher) */
    html body header#header .menus > nav li > a{
        transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    }
    @media (hover:hover){
        html body header#header .menus > nav > ul > li > a:hover,
        html body header#header .menus > nav ul.sub-menu li > a:hover{
            color: var(--color2);
        }
        html body header#header .menus > nav > ul > li > a:hover{
            background-color: #F4F4F4;
        }
        html body header#header .menus > nav ul.sub-menu li > a:hover{
            background-color: rgba(65,65,65,0.06);
        }
        html body header#header .menus > nav li.menu-item-has-children > a:hover:after{
            border-color: var(--color2);
        }
    }

    /* Menu secondaire (bouton) */
    html body header#header .menus > .secmenu{
        display: block;
        margin-top: auto;
        padding: 30px 25px;
        background-color: transparent;
    }
    html body header#header .secmenu ul.menu{
        display: block;
    }
    html body header#header .secmenu ul.menu li{
        height: auto;
        writing-mode: horizontal-tb;
        transform: none;
    }
    html body header#header .secmenu a{
        display: block;
        height: auto;
        margin: 0;
        padding: 16px 20px;
        border-radius: 30px;
        text-align: center;
        letter-spacing: 1px;
    }
}
@media screen and (max-width:400px){
    html body header#header .logo img,
    html body.active header#header.sticky .logo img{
        max-width: 130px;
    }
    html body header#header .menus{
        padding-top: 64px;
    }
}
/* MENU MOBILE FIN */