/* Bandeau et mise en page */
.sosc-mainmenu {
  background: #204735;  
  position: fixed;
  top:36px;
  border-radius: 0px 0px 20px 20px;
  width:100%;
  padding: 15px;
  z-index: 1000;
}

.header-logo{
  width:15%;
  padding: 2px;
}
#header .logo {
  /* max-width: 100%; */
  /* height: 10%; */
  width: 75%;
}
.mainmenu_sections{
  width:70%;
  display: flex;
  justify-content: center;
  color:#fff;
  /* gap:26px; */
  text-transform: uppercase;
  align-items: center;
}

.mainmenu-contact{
  margin-right:18px;
      font-weight: 400;
    font-size: 14px;
}

.mainmenu-link,.mainmenu-link:focus,.mainmenu-link:hover,.mainmenu-link:active{
  color:#fff !important;
}
.mainmenu_hook{
  width:15%;
}
.sosc-mainmenu__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  width: 100%;
  justify-content: center;
  width: 100% !important;
}
.sosc-mainmenu__left, .sosc-mainmenu__center, .sosc-mainmenu__right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.header-top, .header-nav{display:none !important}
/**************************************/
/* onglet dropdown */
.dropdown-toggle::after {
  display:none;
}
.dropdown-toggle-2::after {
  display:none;
}
.mainmenu-dropdown { 
  position: relative; 
}
.mainmenu-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;                 
  left: 50%;
  transform: translateX(-50%);
  width: 180px;              
  height: 16px;              
  background: transparent;   
  pointer-events: auto;      
  z-index: 1002;            
}
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; color: #fff; text-transform: uppercase;
  font: inherit; cursor: pointer; padding: 2px 0;
  padding: 0.3rem 1rem;

  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
}
.dropdown-toggle-2 {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; color: #fff; text-transform: uppercase;
  font: inherit; cursor: pointer; padding: 2px 0;
  padding: 0.4rem 1rem;
  border: 1px solid #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
}
.sosc-mainmenu .dropdown-toggle-2[aria-expanded="true"]{
  color: #1b1b1b;
  background: #f2f7e2;
}
.dropdown-toggle .arrow {
  width: 15px; height: 15px; display: inline-block;
  background: currentColor;
  -webkit-mask: url('/modules/sosc_mainmenu/views/img/chevron-down.svg') no-repeat center / contain;
  mask: url('/modules/sosc_mainmenu/views/img/chevron-down.svg') no-repeat center / contain;
  transition: transform .16s ease;
}
.dropdown-toggle-2 .arrow {
  width: 15px; height: 15px; display: inline-block;
  background: currentColor;
  -webkit-mask: url('/modules/sosc_mainmenu/views/img/chevron-down.svg') no-repeat center / contain;
  mask: url('/modules/sosc_mainmenu/views/img/chevron-down.svg') no-repeat center / contain;
  transition: transform .16s ease;
}
.dropdown-panel {
  position: absolute; 
  left: 50%; 
  top: calc(100% + 10px); 
  transform: translate(-70px, 5px);
  opacity: 0; 
  visibility: hidden; 
  pointer-events: none;
  min-width: 260px; 
  background: #f2f7e2; 
  color: #1b1b1b;
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 10px; 
  z-index: 1001;
  transition: opacity .16s ease, transform .16s ease, visibility .16s step-end;
}
.mainmenu-dropdown.is-open .dropdown-panel {
  opacity: 1; 
  visibility: visible; 
  pointer-events: auto; 
  transform: translate(-70px, 19px);;
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.mainmenu-dropdown.is-open .dropdown-toggle-2 .arrow { transform: rotate(180deg); }
.mainmenu-dropdown.is-open .dropdown-toggle .arrow { transform: rotate(180deg); }
.mainmenu-services .dropdown-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}
.dropdown-list { 
  list-style: none; 
  margin: 0; 
  padding: 4px 0; 
}
.dropdown-item a {
  display: block; 
  border-radius: 8px; 
  color: inherit; 
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
.dropdown-item:focus, .dropdown-item:hover, #header a:hover  {
  color:#ed8210;
  text-decoration: none;
  background: 0 0;
}
#header .header-top, #header .header-nav { display: none !important; }
/* Overlay global  */
.sosc-mainmenu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 998;
  transition: opacity .16s ease, visibility .16s step-end;
}
.sosc-mainmenu__overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .16s ease, visibility 0s;
}

/* ===== PROJETS & SERVICES (mega) ===== */
.services-megamenu {
  position: fixed;
  left: 0; right: 0;
  /* top est fixé par JS à l’ouverture pour coller au bas du header */
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  z-index: 1001;              /* header 1000, overlay 998-999 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s step-end;
  padding: 16px 0;
  border-radius: 0 0 12px 12px;
}
.services-megamenu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10px;   /* couvre un éventuel espace entre header et panneau */
  height: 10px;
}
.services-megamenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

.services-megamenu__inner {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 16px;
  width: 1400px;
}

.services-left {
  padding: 8px 8px 8px 0;
  border-right: 1px solid #e7ecef;
}
.services-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.services-desc {
  color: #4a4a4a;
  line-height: 1.4;
  margin: 0;
}

.services-right { padding-left: 8px; display: grid; gap: 16px; }
.services-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr)); /* ajuste selon ton container */
  gap: 16px;
}
.service-card a {
  display: block;
  background: #f2f7e2;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  padding: 8px;
  text-decoration: none;
  color: #1b1b1b;
}
.service-card a:hover {
  display: block;
  background: #204735 !important;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  padding: 8px;
  text-decoration: none;
  color: #fff !important;
}
.service-card img {
  display: block; width: 100%; height: 140px; object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.service-title { font-weight: 700; margin-bottom: 4px; }
.service-cta { color: #ed8210; 
  font-weight: 400;    
  font-size:14px;
  display: flex;
    align-items: center;}
.service-card a:hover .service-cta{
  color:#fff;
}
.service-cta svg{
  height:1em;
  width:1em;
  fill:#ed8210;
  margin-left:10px;
}
.services-cta {
  background: #f2f7e2;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  grid-auto-flow: row;
  gap: 8px;
}
.services-cta__title {     
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: rgb(46, 45, 43)
  }
.services-cta__desc { 
  color: rgb(142, 142, 142);
   margin: 0; 
   font-size:14px;
font-style:normal;
font-weight:400;
}
.services-cta__btn {
  align-self: start;
  display: inline-block;
  background-color:rgba(2, 1, 1, 0);
border-bottom-color:rgb(237, 130, 16);
border-bottom-left-radius:3px;
border-bottom-right-radius:3px;
border-bottom-style:solid;
border-bottom-width:1px;
border-left-color:rgb(237, 130, 16);
border-left-style:solid;
border-left-width:1px;
border-right-color:rgb(237, 130, 16);
border-right-style:solid;
border-right-width:1px;
border-top-color:rgb(237, 130, 16);
border-top-left-radius:3px;
border-top-right-radius:3px;
border-top-style:solid;
border-top-width:1px;
box-shadow:none;
box-sizing:border-box;
color:rgb(237, 130, 16) !important;
display:inline-block;
fill:rgb(237, 130, 16);
font-size:14px;
font-style:normal;
font-weight:600;
height:36px;
line-height:14px;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
padding-bottom:10px;
padding-left:30px;
padding-right:30px;
padding-top:10px;
text-align:center;
text-decoration-color:rgb(237, 130, 16);
}

.half{
  width:50%;
}

/* Responsive */
@media (max-width: 1200px) {
  .services-cards { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 992px) {
  .services-megamenu__inner { grid-template-columns: 1fr; }
  .services-left { border-right: 0; padding-right: 0; }
}




/* Bouton catalogue : rotation flèche */
.mainmenu-catalogue .dropdown-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* ===== MEGA CATALOGUE ===== */
.catalog-megamenu{
  position: fixed;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  z-index: 1001;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s step-end;
  padding: 16px 0; border-radius: 0 0 12px 12px;
}
.catalog-megamenu.is-open{ opacity:1; visibility:visible; transform:translateY(0); transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.catalog-megamenu::before{ content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }

.catalog-megamenu__inner{
  display:flex;
  gap:16px;
   width:1400px !important;  
}

.col1{
  width:20%;
}

.col12{
  width:80%;
  display:flex;
  gap: 16px;
}

.mainmenu-dynamic-content{
  display:flex;
}

.catalog-label{
  font-size:14px;
  font-weight:700; 
  text-transform:uppercase; 
  color:#1b1b1b;
  letter-spacing:.02em; 
  margin-bottom:8px; 
  display:flex; 
  align-items:center; gap:8px;
}
.catalog-desc{ color:#4a4a4a; line-height:1.4; margin:0; font-size:14px; font-weight: 400;}
.cat-desc{ 
 
  border-right:1px solid #e7ecef; 
  padding-right: 20px;
    padding-left: 20px;
}

.cat-left{ padding:0 20px; border-right:1px solid #e7ecef; }
.cat-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; width:auto;}
.cat-list li{width:max-content;}
.cat-item{
  width:100%; 
  text-align:left; 
  background:transparent; 
  border:none;
  color:#1b1b1b;
  border-radius:4px; 
  padding:8px 22px; 
  cursor:pointer; 

  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 16px;

}
.cat-item:hover{ background:#ffefdc; color:#ed8210;}
.cat-item.is-active{ background:#ffefdc; color:#ed8210}



.cat-sub{     padding: 20px 20px; width: 70%;}

.sub-list{ list-style:none; margin:0; padding:0 0 0 0; display:grid; grid-template-columns: repeat(2, 1fr); row-gap: 17px;
    column-gap: 5px;}
.sub-list a{
  color:#1b1b1b;
  text-decoration:none;
  font-size:14px;
  display:inline-block;            
  transform-origin:left center;
  transition: color .16s ease, transform .16s ease;
}
.sub-list a:hover{
  color:#ed8210;
  transform: scale(1.03);          
  font-weight:600;
}
.sub-list .see-all a{ font-weight:700; }
.sub-list li {
    width: max-content;
}
.cat-promo{

    width: 50%;
    /* padding: 0 20px; */

}
.cat-promo .promo img{
  display:block; width:100%; height:auto; border-radius:12px; border:1px solid #e7ecef; background:#f2f7e2;
}


/* Responsive */
@media (max-width: 1200px){
  .catalog-megamenu__inner{ grid-template-columns: 1fr; }
  .cat-desc{ border-right:0; padding-right:0; }
}

/* ----- Bouton burger (affiché seulement en mobile via MQ plus bas) ----- */
.sosc-burger {
  display: none; /* desktop: hidden */
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
}
.sosc-burger .sosc-burger-lines{
  width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block;
}
.sosc-burger .sosc-burger-lines:before,
.sosc-burger .sosc-burger-lines:after{
  content:""; position:absolute; left:0; right:0; height:2px; background: currentColor;
}
.sosc-burger .sosc-burger-lines:before{ top:-6px; }
.sosc-burger .sosc-burger-lines:after { top: 6px; }
.sosc-burger .sosc-burger-text{ font-size: 13px; text-transform: uppercase; }

/* ===== MOBILE ===== */
@media (max-width: 991px){

  /* afficher le burger à côté du hook */
  .sosc-burger{ display: inline-flex; }

  /* Drawer plein écran qui slide de gauche -> droite */
  .sosc-mob-backdrop{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1100;
  }
  .sosc-mob-backdrop[hidden]{ display: none; }

  .sosc-mob-drawer{
    position: fixed; top:0; left:0; bottom:0; width: 100vw;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .28s ease;
    z-index: 1101;
    display: flex; flex-direction: column;
            z-index: 100000;
             overflow: auto;                 /* <— important */
  -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
  }
  .sosc-mob-drawer[aria-hidden="false"]{ transform: translateX(0); }

  .smd-head{
    position: relative;
    min-height: 56px;
    display:flex; align-items:center; justify-content:center;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
  }
  .smd-title{ font-weight:700; text-transform:uppercase; color:#123c3a; }
  .smd-close{
    position:absolute; right:6px; top:50%; transform:translateY(-50%);
    border:0; background:transparent; font-size:26px; line-height:1; color:#123c3a; cursor:pointer;
  }

  /* Niveaux */
  .smd-level{ list-style:none; margin:0; padding:0; }
  .smd-root > .smd-item { border-bottom: 1px solid #eee; }

  .smd-row{
    width:100%;
    display:flex; align-items:center; justify-content:space-between;
    background:#fff; border:0; color:#123c3a;
    text-transform:uppercase; cursor:pointer;
    padding: 14px 14px;
    font:600 14px/1 "Montserrat", Arial, sans-serif;
  }
  .smd-row.smd-link{ text-decoration:none; }
  .smd-label{ pointer-events:none; }
  .smd-chevron{ font-weight:700; font-size:18px; }

  /* Panels (catégories/services/voir aussi) : transition smooth */
  .smd-panel{
    max-height: 0; overflow:hidden; opacity:0; padding:0 0;
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
    will-change: max-height, opacity;
    border-bottom: 1px solid #eee;
  }
  .smd-panel[aria-hidden="false"]{ opacity:1; }
  .smd-panel.is-open{ padding: 8px 0 10px 0; }

  /* Catalogue : liste catégories */
  .smd-cats > li{ border-top: 1px dashed #eee; }
  .smd-subrow{
    width:100%;
    display:flex; align-items:center; justify-content:space-between;
    background:#fff; border:0; color:#123c3a;
    text-transform:uppercase; cursor:pointer;
    padding: 12px 18px;
    font:500 13px/1 "Montserrat", Arial, sans-serif;
  }
  .smd-plus{ font-weight: 700; font-size: 18px; }

  .smd-subpanel{
    max-height: 0; overflow:hidden; opacity:0; padding:0 0 0 22px;
    transition: max-height .26s ease, opacity .2s ease, padding .2s ease;
    will-change: max-height, opacity;
  }
  .smd-subpanel[aria-hidden="false"]{ opacity:1; }
  .smd-subpanel.is-open{ 
    padding: 0 0 10px 22px; 
    border-left: 1px solid #aeaeae;
    margin-left: 1em;
  }
  .smd-panel.is-open,
.smd-subpanel.is-open{
  overflow: visible; /* laisse passer le contenu si plus haut que prévu */
}
  .smd-subs{ list-style:none; margin:6px 0 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
  .smd-subs a{
    display:inline-block; text-decoration:none; color:#123c3a; font-size:14px;
  }
  .smd-seeall a{ font-weight:700; }

  /* ===== Services mobile : cartes complètes en 1 colonne ===== */
  .smd-services{
    display:flex; flex-direction:column;
    gap:12px; padding: 0 14px 12px;
  }
  .smd-service-card a{
    display:block;
    background:#f2f7e2;
    border:1px solid #e7ecef;
    border-radius:12px;
    padding:8px;
    text-decoration:none;
    color:#1b1b1b;
  }
  .smd-service-card img{
    display:block; width:100%; height:160px; object-fit:cover;
    border-radius:8px; margin-bottom:8px;
  }
  .smd-service-title{ font-weight:700; margin-bottom:6px; }
  .smd-service-cta{
    color:#ed8210; font-weight:400; font-size:14px; display:flex; align-items:center;
  }
  .smd-service-cta svg{ height:1em; width:1em; fill:currentColor; margin-left:10px; }
  .smd-service-card a:hover{
    background:#204735; color:#fff;
  }
  .smd-service-card a:hover .smd-service-cta{ color:#fff; }

  /* À voir aussi : colonne simple */
  .smd-also{ display:flex; flex-direction:column; gap:10px; padding: 0 14px; }
  .smd-also a{ text-decoration:none; color:#123c3a; font-size:14px; }

  /* Empêche le scroll derrière le drawer */
  html.smd-noscroll, body.smd-noscroll{ overflow:hidden; }
  /* masque toutes les entrées desktop */
  .mainmenu_sections,
  .mainmenu-catalogue,
  .mainmenu-services,
  .mainmenu-contact,
  .mainmenu-dropdown { 
    display: none !important; 
  }

  /* empêche les mégas desktop de s’afficher/cliquer en mobile */
  #catalogue-panel,
  #services-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* garde le header + logo + zone de droite (pour le burger) */
  .sosc-mainmenu__inner { justify-content: space-between; gap: 0; }
  .mainmenu_hook .sosc-burger { display: inline-flex; }
  .mainmenu_hook { width: 50%; }
  .sosc-mainmenu { padding: 15px 20px; width: 100vw; }
  .header-logo { width: 50%; padding: 2px; }

  /* Surbrillance des items ouverts */
  .smd-subrow[aria-expanded="true"]{ background-color:#FFEFDC; color:#ed8210; }
  .smd-row[aria-expanded="true"] .smd-label{ color:#ed8210; }
  .services-cta {
    flex-direction: column;
            gap: 20px;
  }
  .services-cta__title {

    margin-bottom: 10px;
  }

  
}