/*
Theme Name: Divi Enfant
Description: Theme enfant de Divi. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: Divi
Version: 1.0
*/


/*FONT*/
@font-face { 
    font-family: 'Montserrat-Regular'; 
    src: url('fonts/Montserrat-Regular.ttf') format('truetype'); 
    font-weight: 500; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Montserrat-Bold'; 
    src: url('fonts/Montserrat-Bold.ttf') format('truetype'); 
    font-weight: 900; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Montserrat-Medium'; 
    src: url('fonts/Montserrat-Medium.ttf') format('truetype'); 
    font-weight: 500; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Montserrat-SemiBold'; 
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype'); 
    font-weight: 700; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Montserrat-Thin'; 
    src: url('fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Montserrat-LightItalic'; 
    src: url('fonts/Montserrat-LightItalic.ttf') format('truetype');
    font-weight: 300; 
    font-style: italic;
    font-display: swap;
}

* {
    font-family: "Montserrat-Regular";
}



#page-container {
    padding-top: 0 !important;
}

 h1, h3 {
    font-family: "Montserrat-SemiBold" !important;
}

h2 {
    font-family: "Montserrat-Bold" !important;
}

h1 span {
	font-family: "Montserrat-LightItalic" !important;
}



.p-vert {
    background-color: #61A834 !important;
    width: fit-content !important;
    padding: 3px 5px !important;
}
.p-vert p {
    font-family: "Montserrat-Bold";
} 

.title-bold {
    font-family: "Montserrat-Bold";
} 

/*-------------------------------
            HEADER
-------------------------------*/
.header-custom {
    background-color: #f7f7f7;
}
.container-header.desktop {
    display: block;
}
.container-header.mobile {
    display: none !important;
}

.top-network {
  position: relative;
  width: 100%;
  min-height: 56px;
  background: #f7f7f7; /* fond de base */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 50px;
}


/* bande verte en diagonale */
.top-network::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #61A834;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0%);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)) !important;
    z-index: 0;
}

.top-network .box-network {
    z-index: 1;
    color:white;
    font-size: 20px;
    display:flex;
    gap:15px;
}
.picto-network {
    display: flex;
    align-items: center;
    gap:5px;

}

/*NAV*/
.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap:80px;
    padding: 0 80px 30px 80px;
}
.nav ul li a {
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap:8px;
    font-family: "Montserrat-Medium";
}

.nav.desktop ul {
    display: flex;
    gap:20px;
    flex-wrap: wrap;
}

.nav.desktop a:hover {
    color: #61A834;
}
.nav.desktop a:hover svg path {
  fill: #61A834; /* couleur au hover */
}




/*---------------------------
        Page ACCUEIL
---------------------------*/
.circle-install {
    background-color: white;
    width: fit-content;
    padding: 25px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.circle-install p {
    font-family: "Montserrat-Medium";
    color: #61A834;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.3px;
    line-height: 1.7em;
    padding: 0;
}
.circle-install .value {
    font-family: "Montserrat-SemiBold";
    font-size: 40px;
    display:block;
    letter-spacing: 0;
}




/*---------------------------
        RESPONSIVE
---------------------------*/
@media (max-width:980px) {
    .container-header.desktop {
        display: none;
    }
    .container-header.mobile {
        display:block !important;
    }
    .top-network::before {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 45%);
    }
    .top-network {
        justify-content: center;
        min-height: 80px;
        padding: 0px 20px 30px 50px;
    }
    .container-nav {
        flex-direction: column;
        align-items: center;
        gap:0;
    }
    .container-nav ul {
        display: none;
    }


    /*Bouton burger*/
    .box-burger {
        border: none;
        background: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        margin-top:30px;
    }
    .line-burger {
        display: block;
        width: 30px;
        height:3px;
        background-color: black;
    }

    /*Volet menu mobile*/
    .volet-menu-mobile {
        position: absolute;
        width: 100%;
        z-index: 10;
        top: -100%;
        left: 0;
        transition: top .4s ease;
    }


    /* ===============================
    ÉTAT OUVERT DU VOLET
    ================================ */
    .volet-menu-mobile.is-open {
        top: 0;
    }
    /* Bouton croix */
    .btn-close {
        position: absolute;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        right: 30px;
        top: 110px;
    }

    /* Barres */
    .btn-close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 5px;
        background-color: #000;
        transform-origin: center;
    }

    .btn-close span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .btn-close span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .box-nav-mobile {
        padding: 20px 0px 0px 0px;
        background-color: white;
    }
    .box-nav-mobile a {
        padding: 0px 40px;
    }
    .nav.mobile {
        margin-top: 30px;
    }
    .nav.mobile ul li a{
        margin-bottom: 40px;
    }
    .nav.mobile ul li a {
        padding:0px 40px;
    }

    .nav.mobile ul li:last-child a  {
        background-color: #61A834 !important;
        padding:20px 40px 20px 40px;
        color: white;
        font-weight: bold;
        margin-bottom: 0;

    }
    .top-network.volet {
        background-color: white;
    }
    .icon-mail {
        color: white;
    }

    /*ACCUEIL*/
    .circle-install {
        background-color: #61A834;
    }
    .circle-install p {
        color: white;
        font-size: 14px;
    }
    .circle-install .value {
        font-size: 30px;
    }
}