/*  Theme Name:   gestimark enfant
Description:   gestimark - Menu
Author:       Gestimark  
Author URI:   https://gestimark.com/
Template:     blankslate 
Version:      0.1.0 */



@media screen and (max-width: 1199px) {

      
    /* -----------------------------------------------------------
                              ICÔNE BURGER
    ------------------------------------------------------------ */
        
    /* Boite de l'icône burger */
    
      .gtmHeader .gtm-open-nav-menu{
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 45px; /* hauteur du fond */
        width: 45px; /* largeur du fond */
        border-radius: 5px;
        background-color: whitesmoke; /* couleur d'arrière plan de la boite */
        margin: 15px 15px 0px 0px;
        align-items: center; /* centrer les barres du burger verticalement */
        justify-content: center; /* centrer les barres du burger horizontalement */
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 9999999999999999999999999;
  
      }
          
    /* ------------------- OUVRIR & FERMER -------------------- */
        
    /* ligne centrale du menu burger */
    
      .gtmHeader .gtm-open-nav-menu span {
        display: block;
        position: relative;
        height: 3px;/* hauteur */
        width: 25px;/* longueur */
        /* transform: rotate(-55deg); */
        background-color: #2b2800; /* couleur */
        border-radius: 4px;
      }
          
    /* Lignes haute & basse */
        
      .gtmHeader .gtm-open-nav-menu span:before,
      .gtmHeader .gtm-open-nav-menu span:after{
        content: "";
        position: absolute;
        left:0px; /* positionnement tout à gauche de la ligne centrale */
        width: 100%; /* largeur des lignes haute & basse */
        height: 100%; /* utilise toute la hauteur */
        box-sizing: border-box;
        background-color: #2b2800;/* couleur des lignes */
        transition: all .2s ease;/* transition des lignes */
        border-radius: 4px;
      }
        
    /* Lignes haute */
        
      .gtmHeader .gtm-open-nav-menu span:before{
        top:-7px;/* Positionnement de la ligne haute */
      }
    
    /* Lignes basse */
      .gtmHeader .gtm-open-nav-menu span:after{
        top:7px;/* Positionnement de la ligne basse */
      }
        
    /* ------------------- FERMER -------------------- */
              
          
      .gtm-hidden-scrolling .gtmHeader .gtm-open-nav-menu span {
        background-color: transparent !important; /* suppression de la ligne centrale */
      }
    
      .gtm-hidden-scrolling .gtmHeader .gtm-open-nav-menu span:before {
        transform: rotate(45deg);/* rotation de la barre haute */
        top:0px; /* position la ligne basse au center */
        background-color: #2b2800;
        left:0px; /* positionnement tout à gauche de la ligne centrale */
      }
    
      .gtm-hidden-scrolling .gtmHeader .gtm-open-nav-menu span:after{
        transform: rotate(-45deg); /* rotation de la ligne basse */
        top:0px; /* position la ligne basse au center */
        left:0px; /* positionnement tout à gauche de la ligne centrale */
      }
        
    /* -----------------------------------------------------------
                            MENU
    ------------------------------------------------------------ */
      
      .gtm-menu {
        z-index: 2000;
        position: relative;
      }
    
      .gtmHeader {
        position: fixed;
        left: 0;
        width: 100%;
        min-height: 100vh;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
      }
    
      .gtm-header-main {
        position: relative;
        z-index: 10;
      }
    
    
      nav.gtm-nav-menu ul.menu {
        list-style: none;
        padding-left: 0px;
      }
      
    /* Apparition disparition du menu */
        
      .gtmHeader {
        top: -100%;/* déplacement du menu hors site */
        transition: all 0.5s ease;/* Transition d'apparition du menu*/
      }
    
      /* Menu ouvert */
      .gtmHeader.gtmOpen {
        top: 0px;/* Décalage de 100% pour faire apparaitre le menu */
        z-index: 1000;
        background-color: #b8c3c7;
        background-image: url(/wp-content/uploads/2025/01/lignes-v.svg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
      }
    
    /* -----------------------------------------------------------
                      NAVIGATION PRINCIPALE
    ------------------------------------------------------------ */
    

    .gtm-logo-fimav-menu {
      width: 250px;
      margin-top: 20px;
      position: fixed;
      top: -23px;
      left: 45%;
      transform: translateX(-50%);
    }

  
    .menu-item.page_item a {
      color: #2b2800 !important;
    }
      
      .menu-item.default {
        display: block;
      }
            
      nav.gtm-nav-menu .menu {
        display: block;
        text-align: center;
      }
      
    /* espacement des liens */
        
      .gtmHeader .menu > .menu-item  {
        margin-bottom: 10px;
      }
    
      .gtmHeader .menu > .menu-item > a {
        font-family: "Open Sans", serif;
        color: #2b2800;
        text-transform: uppercase;
        font-size: 1.7rem;
        line-height: 1.3;
        font-weight: 400;
        letter-spacing: 1px;
        text-decoration: none;
        transition: all 0.3s ease;/* transition au survol des liens */
      }
      
  
    /* Design des liens actifs */
        
      .menu > .menu-item.current-menu-ancestor > a{ 
        color: #7c82ff
        ;
        font-weight: 600;
      }
    
      /* curseur sur les séparateurs */
      .separator {
        cursor: pointer;
      }
    
      /* Design des séparateurs actifs  */
    
      .parent.gtm-active a.separator {
        color: #c93c5d !important;
        font-weight: 600 !important;
    
      }
    
    /* Design du logo à la place du lien de menu accueil */
    
      .default img {
        width: 100px;
      }
    
    /* -----------------------------------------------------------
                      SOUS MENU
    ------------------------------------------------------------ */
        
      nav.gtm-nav-menu .menu .sub-menu {
        display: block;
        text-align: center;
        list-style: none;
        padding-left: 0px;
      }
        
      nav.gtm-nav-menu .menu .sub-menu a {
        text-decoration: none;
        line-height: 2;
      }
    
      .gtmHeader .menu > .menu-item-has-children .sub-menu {
        position: relative;
        max-height: 0;
        overflow: hidden; 
        visibility: hidden;
        opacity: 0;
        transition: all .2s ease-in-out;
      } 
    
      .gtmHeader .menu > .menu-item-has-children.gtm-active .sub-menu  {
        visibility: visible;
        opacity: 1;
      }
    
    /* Design des liens du sous menu  */
      nav.gtm-nav-menu .sub-menu li:first-child {
        padding-top: 10px;
      }
    
      nav.gtm-nav-menu .sub-menu li {
        line-height: 1.8rem;
      }
    
      nav.gtm-nav-menu .sub-menu li a {
        color: #fff;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.1rem;
        transition: all 0.3s ease;
      }
        
      /* Design des liens Au survol et actif */
      nav.gtm-nav-menu .sub-menu li.active a {
        color: #A0CD60;
      }
          
    }
      
    /* ============================ FIN DU MENU MOBILE ================================= */
    
    
    /* ============================ MENU GRAND MOBILE ================================= */
        
    @media screen and (min-width: 400px) and (max-width: 1199px) {
    
      /* taille de la typo des liens du menu principal */
      .gtmHeader .menu > .menu-item > a {
        font-size: 2.7rem;
      }
    
      /* taille de la typo des liens du sous menu */
      nav.gtm-nav-menu .sub-menu li a {
        font-size: 20px;
      }
    }
    
    /* ============================ FIN DU MENU GRAND MOBILE ================================= */
      
      
        
    /** //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    --------------------------------------------------------------------------------------------------------------------------------------------------
                                                                  MENU DESKTOP
    --------------------------------------------------------------------------------------------------------------------------------------------------
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// **/
    @media screen and (max-width: 1199px) { 
      .gtm-nav-menu {
        display: none;
      }
      
      .gtm-nav-menu.gtmOpen {
        display: block;
      }
    }

    @media screen and (min-width: 1200px) {
        
      /* header {
        padding-top: 85px;
      } */

    /* -----------------------------------------------------
                              MENU 
    ------------------------------------------------------- */
    .current-menu-ancestor > a {
      border-bottom: 2px solid #2b2800;
    }

    .sub-menu .current-menu-item > a {
        color: #7c82ff !important;
    }
    
        
      .menu-item.default {
        display: none;
      }
    
      .gtm-header-main .menu {
        background-color: transparent;
        border-bottom-left-radius: 30px;
        transition: all .2s ease-in;
      }
    
      .gtm-header-main {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
      }
    
      /* .gtm-header-main.scroll .menu {
        background-color: #000000;
      } */
      
        
      nav.gtm-nav-menu ul.menu {
        display: flex;
        justify-content: flex-start;
        /* align-items: flex-end; */
        gap: 30px;
        padding: 0px 30px;
        list-style: none;
        margin: 0 0 15px 0;
        width: max-content;
      }
      
      nav.gtm-nav-menu ul.menu li {
        padding: 10px 0px;
        position: relative;
      }
        
    /* -----------------------------------------------------
                    NAVIGATIOM PRINCIPALE
    ------------------------------------------------------- */
        
    /* Design des liens */
        
      .gtmHeader .menu > .menu-item > a {
        color: #2b2800;
        text-transform: uppercase;
        font-size: clamp(1rem, 1.4vw, 20rem);
        letter-spacing: 1px;
        font-weight: 500;
        text-decoration: none;
        font-family: "Open Sans", serif;
      }
      
  
    /* Design des liens Au survol */
      
      .gtmHeader .menu > .menu-item > a:hover {
        color: #7c82ff;/* couleur des liens de menu */
      }
        
    /* Design des liens actifs */
        
      .current_page_item a{ 
        color: #2b2800 !important;
      }
        
    /* Design des séparateurs actifs  */
        
      .current_page_item a.separator {
        color: #2b2800 !important;
        font-weight: 600 !important;
      }
    
        
    /* Design du logo à la place du lien de menu accueil */
      
      .menu-item a {
        display: flex;
        align-items: center;
      }
    
      .default img {
        height: 35px;
      }

      .gtm-logo-fimav-menu {
        width: 200px;
      }
     
    /* -----------------------------------------------------------
                LIGNE AU DESSOUS DES LIENS DU MENU
    ------------------------------------------------------------ */
    
    /* -----------------------------------------------------
                    SOUS MENU
    ------------------------------------------------------- */
        
        /* Design du sous-menu */ 
    
        .gtmHeader .menu > .menu-item > .sub-menu {
          position: absolute;
          left: 0%;/* Opx à gauche */
          top: 100%;/* 50px du haut */
          min-width: 250px;/* Largeur du sous menu */
          background-color: whitesmoke;
          padding: 0px 10px 10px 10px;/* Padding du sous-menu */
          list-style: none;
          opacity:0;/* Rendre le sous-menu transparent quand il n'est pas visible */
          visibility: hidden;/* Cacher le sous-menu */
          margin: 0;
          border-radius: 10px;
          transition: all 0.3s ease;/* transition liens du sous-menu */
        }
        
        .gtmHeader .menu > .menu-item-has-children:hover > .sub-menu {
          opacity: 1; 
          visibility: visible; 
        }
    
        .gtmHeader .menu > .menu-item > .sub-menu {
          z-index: 10;/* Permet de passer au dessus de l'image du logo */
        }
    
        /* ==================================
        Forcer le dernier sous menu
        à s'aligner à droite si necessaire 
        ======================================*/ 
    
        .gtmHeader .menu > .menu-item:last-child > .sub-menu {
          right: 0%;
          left: auto;
        }
    
        /* Design des liens du sous menu  */
    
        nav.gtm-nav-menu .sub-menu li {
          padding-bottom: 0px !important;
        }
    
        nav.gtm-nav-menu .sub-menu li a {
          color: #2b2800;
          font-size: 16px;
          font-weight: 400;
          line-height: 1.2rem;
          text-decoration: none;
          transition: all 0.3s ease;
    
        }
        
        /* Design des liens Au survol et actif */
    
        nav.gtm-nav-menu .sub-menu li:hover a, 
        nav.gtm-nav-menu .sub-menu li.active a {
          color: #7c82ff;
        }
        
    }
  
    @media screen and (min-width: 1300px) { 
      .gtm-logo-fimav-menu {
        width: 300px;
        margin-top: -15px;
      }

    } 