/******************************
 * VARIABLES
 ******************************/
 :root {
    --text-color: #333;
    --text-color-hover: #F7931E;
    --border-color: #F7931E;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    --overlay-box-shadow: 0px 2px 2px 2px rgba(55, 45, 22, .1);
    --border-radius: 20px;
    --z-index-overlay: 1;
  }
  
  /******************************
   * RESET ET BASE
   ******************************/
  * {
    box-sizing: border-box;
    margin: 0; 
    padding: 0;
  }
.overlay-column__list li,
.sav-block__list li,
.mobile-menu__list li {
  list-style: none; /* Supprime uniquement les puces pour ces listes */
}

li a {
  text-decoration: none;
}

body {
  font-family: 'Ubuntu Woff', sans-serif;
  background: #fff;
  color: var(--text-color);
}
  
  /******************************
   * HEADER 
   ******************************/
  header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px !important;
    position: fixed;
    width: 100%;
    font-family: 'Ubuntu Woff', sans-serif !important;
  }
  .header__background {
    background: #fff;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
  } 
  body:has(#main-img) .header__background {
    opacity: 0;
  }
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 1140px;
    position: relative;
  }
.header ul {
  margin: 0px !important;
}
  .header__logo {
    display: flex;
    align-items: center;
  }
  .header__logo-image {
    height: 36px !important;
    max-width: 130px !important;
  }
  
  /******************************
   * NAV DESKTOP
   ******************************/
  .header__nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1140px;
  }
  .nav-desktop__list {
    display: flex;
    align-items: center;
  }
  .nav-item {
    position: relative;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-item__link { 
    font-family: 'Ubuntu Woff', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    padding: 5px 8px;
    color: #333;
    transition: all 0.2s;
    margin: 0; 
  }
  body:has(#main-img) .nav-item__link {
    color: white;
  }
  .nav-item__link:hover, 
  .hovered {
    color: var(--text-color-hover) !important;
    cursor: pointer;
  }
  
  /* Rénovation globale : highlight */
  .nav-item.highlight .nav-item__link {
    background: #F7931E;
    color: #fff !important;
    border-radius: 20px;
    padding: 0.10px 8px;
    border: 2px solid #F7931E;
    transition: all 0.2s;
  }
  .nav-item.highlight .nav-item__link:hover,
  .nav-item.highlight .hoveredHighlight {
    color: #F7931E !important;
    background: #fff !important;
  }
  
  /******************************
   * MEGA OVERLAY
   ******************************/
  .mega-overlay {
    position: absolute;
    top: calc(100% + 16px); /* Espace de 16px */
    background: #fff;
    padding: 20px;
    min-width: 600px;
    border-radius: 20px;
    box-shadow: var(--overlay-box-shadow);
    
    /* Caché par défaut, s'ouvre via .open */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: var(--z-index-overlay);
  }
  
  #mega-renov {
    min-width: 400px;
    top: calc(100% + 13px);
    left: -16px;
  }
  
  #mega-isolation {
    min-width: 800px;
    left: -200px;
  }
  
  #mega-chauffage {
    min-width: 900px;
    left: -280px;
  }
  
  #mega-solaire {
    /* min-width: 650px; */
    min-width: 500px;
    min-height: 150px;
  }
  
  #mega-aides {
    min-width: 470px;
  }

  #mega-exterieur {
    min-width: 350px;
    min-height: 150px;
  }
  
  /* Quand JS ajoute .open => visible */
  .mega-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Layout columns */
  .overlay-columns {
    display: flex;
    gap: 30px;
  }
  
  #mega-renov .overlay-columns {
    gap: 0px;
  }
  
  #mega-renov .overlay-column {
    flex-basis: 70%;
  }
  
  #mega-isolation .overlay-column {
    flex-basis: 25%; 
  }
  
  #mega-chauffage .overlay-column {
    flex-basis: 20%;
  }
  
  #mega-solaire .overlay-column {
    /* flex-basis: 35%; */
    flex-basis: 40%;
  }

  #mega-exterieur .overlay-column {
    flex-basis: 70%;
  }
  
  .overlay-column__title {
    color: #F7931E;
    border-bottom: 2px solid #F7931E;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
  }
  .overlay-column__list {
    margin-bottom: 15px;
  }
  .overlay-column__list li {
    margin-top: 15px;
  }
  .line-height {
    line-height: 0.8;
  }
  .overlay-column__list-item {
    margin-bottom: 5px;
  }
  .overlay-column__link {
    color: var(--text-color);
    font-family: 'Ubuntu Woff', sans-serif;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.2s;
    position: relative;
    z-index: 5;
  }
  .overlay-column__link:hover {
    color: var(--text-color-hover);
  }
  .overlay-column__mascotte-image {
    margin-top: 10px;
  }
  
  #mega-renov .overlay-column__mascotte-image {
    width: 70%;
    position: absolute;
    top: -55px;
    right: -110px;
  }
  
  #mega-isolation .overlay-column__mascotte-image {
    width: 35%;
    position: absolute;
    top: -20px;
    right: -80px;
  } 
  
  #mega-chauffage .overlay-column__mascotte-image {
    width: 38%;
    position: absolute;
    top: -20px;
    right: -200px;
  }
  
  #mega-solaire .overlay-column__mascotte-image {
    width: 55%;
    position: absolute;
    top: -20px;
    right: -120px;
  }
  
  #mega-aides .overlay-column__mascotte-image {
    width: 60%;
    position: absolute;
    top: 140px;
    right: -120px;
  }

  #mega-exterieur .overlay-column__mascotte-image {
    width: 70%;
    position: absolute;
    top: -30px;
    right: -100px;
  }
  
  /******************************
   * BLOC SAV 
   ******************************/
  .nav-desktop__sav-block {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    height: 100%;
  }
  .sav-block__list {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }
  .sav-block__item {
    width: 100%;
    display: flex;
    font-family: 'Ubuntu Woff', sans-serif;
    font-weight: 400;
    font-size: 16px;
  }
  .sav-block__linkOrange,
  .sav-container__linkOrange {
    border: 2px solid #F7931E;
    background: #F7931E;
    padding: 0.10px 8px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none !important;
  }
  .sav-block__linkOrange:hover {
    background: #fff;
    color: #F7931E;
  }
  .sav-block__linkBlue, 
  .sav-container__linkBlue {
    border: 2px solid #005BFF;
    background: #005BFF;
    padding: 0.10px 8px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none !important;
  }
  .sav-container__linkBlue,
  .sav-container__linkOrange {
    width: 40% !important;
  }
  .sav-block__linkBlue:hover {
    background: #fff;
    color: #005BFF;
  }
  .sav-container {
    display: flex;
    justify-content: space-evenly;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Ubuntu Woff', sans-serif;
  }
  .sav-container a {
    color: white !important;
  }
  .nav-desktop__sav-block-responsiv {
    display: none;
  }
  .nav-desktop__sav-block-responsiv .sav-block__list{
    display: flex;
    flex-direction: row;
  }
  
  /******************************
   * BURGER (MOBILE)
   ******************************/
  .header__mobile-burger {
    display: none;
    background: none !important;
    border: none;
    position: relative;
    width: 30px;
    height: 20px;
    box-shadow: none !important;
    padding: 0 !important;
    mix-blend-mode: difference;
  }
  .header__mobile-burger span,
  .header__mobile-burger span::before,
  .header__mobile-burger span::after {
    display: block;
    background: #fff;
    mix-blend-mode: difference;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: 0.3s;
  }
  .header__mobile-burger span {
    top: 50%;
    transform: translateY(-50%);
  }
  .header__mobile-burger span::before {
    content: "";
    top: -7px;
  }
  .header__mobile-burger span::after {
    content: "";
    top: 7px;
  }
  
  /******************************
   * OFFCANVAS (MOBILE)
   ******************************/
  .mobile-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;      
    height: 100vh;
    background: #FFFFFF;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
    z-index: 1; 
    display: flex;
    flex-direction: column;
  }
  .mobile-offcanvas.open {
    transform: translateX(0%);
  }
  .mobile-menu-level {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: none; 
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  }
  .mobile-menu-level--active {
    display: block; 
    transform: translateX(0); 
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #F2F2F2;
    padding: 10px;
  }
  .mobile-header__logo {
    max-height: 40px;
  }
  .mobile-header__close-button {
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333 !important;
    width: 30px;
    height: 30px;
  }
  .mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-left: 0px;
    margin-bottom: 0px;
  }
  .mobile-menu__item {
    margin-bottom: 10px;
  }
  .mobile-highlight a {
    color: #F7931E !important;
    font-weight: bold;
	width: 100%;  
  }
  .mobile-highlight .mobile-menu-item-row__chevron {
    border-color: #F7931E;
  }
  .mobile-menu__link {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    font-family: 'Ubuntu Woff', sans-serif;
  }
  .mobile-menu-item-row,
  .mobile-menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Ubuntu Woff', sans-serif;
  }
  .mobile-menu-item-row__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(-45deg);
    margin-left: 10px;
  }
  .mobile-menu__back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Ubuntu Woff', sans-serif;
  }
  .mobile-menu__title {
    margin-bottom: 25px;
    font-family: 'Ubuntu Woff', sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #F7931E;
  }
  #submenuAides .mobile-menu__title,
  #submenuRenov .mobile-menu__title {
    border-bottom: 2px solid var(--border-color);
  }
  .mobile-submenu__list {
    list-style-type: none;
    margin: 0;
  }
  .mobile-submenu__list ul {
    margin-left: 0px;
  }
  .mobile-submenu__list li {
    margin: 16px 0px;
    list-style-type: none;
  }
  .mobile-submenu__item {
    margin-bottom: 32px !important;
  }
  .mobile-submenu__item a,
  .mobile-submenu__list a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    font-family: 'Ubuntu Woff', sans-serif;
  }
  
  .mobile-submenu__itemTitle {
    color: #F7931E;
    border-bottom: 2px solid #F7931E;
    padding-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
    max-width: 65%;
  }
  #submenuRenov .mobile-submenu__mascotte-image {
    width: 70%;
    position: absolute;
    bottom: 0px;
    right: 24px;
  }
  #submenuIsolation .mobile-submenu__mascotte-image {
    width: 70%;
    position: absolute;
    bottom: 0px;
    right: 24px;
  }
  #submenuChauffage .mobile-submenu__mascotte-image {
    width: 85%;
    margin-left: 48px;
  }
  #submenuSolaire .mobile-submenu__mascotte-image {
    width: 60%;
    position: absolute;
    bottom: 0px;
    right: 0px;
  }
  #submenuAides .mobile-submenu__mascotte-image {
    width:60%;
    position: absolute;
    bottom: 0px;
    right: 0px;
  }
  #submenuExterieur .mobile-submenu__mascotte-image {
    width:60%;
    position: absolute;
    bottom: 0px;
    right: 24px;
  }
  .sav-container__link {
    margin-right: 10px;
  }

  .warning {
    display: inline;
    text-align: center;
    color: white;
    background: #F7931E;
    font-family: 'Ubuntu Woff';
  }
  
  /******************************
   * MEDIA QUERIES
   ******************************/
  @media (max-width: 991px) {
    .header {
      width: 100%;
      flex-direction: row !important;
      height: 80px !important;
    }
    .header__nav-desktop {
      display: none;
    }
    .header__logo {
      width: auto !important;
    }
    .header__mobile-burger {
      display: block;
    }
    .nav-desktop__sav-block-responsiv {
      display: none !important;
    }
  }
  @media (min-width: 992px) {
    .mobile-offcanvas {
      display: none;
    }
  }
  @media (max-width: 1339px) {
    .header {
      flex-direction: column;
      /* height: 50px !important; */
    }
    .header__logo {
      width: 940px;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .header__nav-desktop {
      width: 945px;
    }
    .nav-desktop__sav-block-responsiv {
      display: flex;
    }
    .nav-desktop__sav-block {
      display: none;
    }
    #mega-chauffage {
      min-width: 600px;
      left: -280px;
    }
    #mega-chauffage .overlay-columns {
      flex-wrap: wrap;
    }
    #mega-chauffage .overlay-column {
      flex-basis: 40%;
    }
    #mega-chauffage .overlay-column__mascotte-image {
      width: 55%;
      top: -26px;
      right: -180px;
    } 
  }



  
  /******************************
   * MAIN CONTENT
   ******************************/
  .main-content {
    padding: 20px;
    height: 500vh;
  }
  .main-content {
    font-family: 'Ubuntu Woff', sans-serif;
    color: #1D1D1B;
  }
  .main-content p {
    font-family: 'Inter', sans-serif;
  }


.elementor-element-18323893 {
   margin-top: 0px !important; /*gère le décalage page produit*/
}
  