/*
Theme Name: Mon Thème Perso
Author: Votre Nom
Description: Thème personnalisé léger pour remplacer Colibri Pro.
Version: 1.0
Text Domain: mon-theme-perso
*/

/* Styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222222;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barre de navigation fixe et blanche au défilement */
#navigation.h-navigation.est-fixe {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80px;
  z-index: 999;
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.admin-bar #navigation.h-navigation.est-fixe {
  top: 32px !important;
}

/* coller la nav en haut sur mobile */

@media (max-width: 425px) {
  body.admin-bar #navigation.h-navigation.est-fixe {
    top: 0px !important;
  }
}

#navigation.h-navigation.est-fixe a {
  color: #111111 !important;
}

#navigation.h-navigation.est-fixe img {
  max-height: 70px !important;
  width: auto !important;
  display: block;
}
/* icone centrée menu burger */
.h-icon-svg{
    display: flex;
    justify-content: center;
}

/* Masquer le bouton burger sur grand écran */
@media (min-width: 992px) {
  #navigation .h-menu-button,
  #navigation .menu-toggle,
  #navigation [data-colibri-component="menu-button"] {
    display: none !important;
  }
}

/* Par défaut : on affiche le logo normal, on cache le logo pour fond blanc */
#navigation .logo-fixe {
  display: none !important;
}

#navigation .logo-normal {
  display: block !important;
  max-height: 70px;
  width: auto;
}

/* Quand la barre est fixe et blanche : on inverse */
#navigation.h-navigation.est-fixe .logo-normal {
  display: none !important;
}

#navigation.h-navigation.est-fixe .logo-fixe {
  display: block !important;
  max-height: 70px;
  width: auto;
}

/* menus en blanc version mobile*/
@media (max-width: 766px){
    
    #navigation.h-navigation.est-fixe a {
        color: white!important;
    }
    
}


/* Carrousels partagés (Fabrication & Stages) – défilement horizontal */
.fabrication-carousel,
.stages-carousel {
  position: relative;
  overflow: hidden;
  background-color: #17252a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  z-index: 5;
}

.fabrication-carousel .carousel-track,
.stages-carousel .carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  will-change: transform;
}

.fabrication-carousel .carousel-slide,
.stages-carousel .carousel-slide {
  position: static;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
}

.fabrication-carousel .carousel-slide img,
.stages-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fabrication-carousel .carousel-btn,
.stages-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(9, 33, 42, 0.75);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.fabrication-carousel .carousel-prev,
.stages-carousel .carousel-prev {
  left: 12px;
}

.fabrication-carousel .carousel-next,
.stages-carousel .carousel-next {
  right: 12px;
}

.fabrication-carousel .carousel-dots,
.stages-carousel .carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px;
}

.fabrication-carousel .carousel-dot,
.stages-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.fabrication-carousel .carousel-dot.is-active,
.stages-carousel .carousel-dot.is-active {
  background-color: #ffffff;
}

/* liens en hover sur les a href et non sur les li */
#colibri .style-1063 > div > .colibri-menu-container > ul.colibri-menu > li {
  margin-top: 0;
  margin-right: 20px;
  margin-bottom: 0;
  margin-left: 20px;
  padding-top: 0 !important;
  padding-right: 0;
  padding-bottom: 0 !important;
  padding-left: 0;
}

#colibri
  .style-1063
  > div
  > .colibri-menu-container
  > ul.colibri-menu
  > li
  > a {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* section avis page accueil */
#avis-clients {
  background-color: #e8e8e8;
}

#avis-clients .h-text {
  margin-bottom: 50px;
}

/* Menu Burger */
/* Menu mobile offcanvas */
.h-offcanvas-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background-color: #17252a;
  color: #ffffff;
  z-index: 1002;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.h-offcanvas-panel.is-open {
  display: block !important;
  transform: translateX(0);
}

.h-offcanvas-panel.hide,
.h-offcanvas-panel.force-hide {
  display: none;
}

.offscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1001;
}

.offscreen-overlay.is-open {
  display: block;
}

.h-offcanvas-panel .colibri-menu {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h-offcanvas-panel .colibri-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 6px 0;
}

body.offcanvas-open {
  overflow: hidden;
}

/* carousel hauteur responsive max 768px */

@media (max-width: 768px) {
  .fabrication-carousel,
  .stages-carousel {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto;
  }

  .fabrication-carousel .carousel-track,
  .stages-carousel .carousel-track {
    height: auto !important;
    align-items: flex-start;
  }

  .fabrication-carousel .carousel-slide,
  .stages-carousel .carousel-slide {
    height: auto !important;
    align-self: flex-start;
  }

  .fabrication-carousel .carousel-slide img,
  .stages-carousel .carousel-slide img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain; /* ou "cover" si vous préférez remplir sans bandes, avec height: auto l'image garde son ratio naturel */
  }
}

@media (max-width: 1024px) {
     #hero {
        padding-top: 200px;
    }
    
}

@media (max-width: 766px) {
     #hero {
        padding-top: 150px;
    }
    
}