/* Burger */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;outline: none !important;color: var(--couleur-secondaire-1);
}
.burger__line { width: 24px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
body.is-offcanvas-open .burger__line:nth-child(1){ transform: translateY(8px) rotate(45deg); }
body.is-offcanvas-open .burger__line:nth-child(2){ opacity: 0; }
body.is-offcanvas-open .burger__line:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1024px){ .burger{ display:none; } }


/* ====== OFFCANVAS (dans ton header) ====== */
.header-mobile { position: relative; }

#offcanvas-menu.offcanvas{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px); /* optionnel: à ajuster si besoin */
  background: #f5f5f5;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#offcanvas-menu.offcanvas.open{
  transform: translateX(0);
}

.offcanvas__inner{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.offcanvas__panels{
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ====== PANELS ====== */
.oc-panel{
  position: absolute;
  inset: 0;
  background: #f5f5f5;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  overflow: auto; /* scroll dans le panneau */
  -webkit-overflow-scrolling: touch;
}

.oc-panel.is-active{
  transform: translateX(0);
  z-index: 10;
}

.oc-panel--root{
  transform: translateX(0);
  z-index: 1;
}

/* header panneau enfant */
.oc-panel__header{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 14px 16px;
  background: #97a2be;
  border-bottom: 1px solid #e5e5e5;
}

.oc-panel__back{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.oc-panel__title{  
  text-decoration: none;
  color: #003473;
}

/* ====== MENU LIST ====== */
.offcanvas__nav,
.offcanvas__nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas__nav li,
.offcanvas__nav ul li{
  display:flex;
  align-items:center;
  border-bottom: 1px solid #ddd;
  background: #f5f5f5;
}

.offcanvas__panels a{
  flex: 1;  
  padding: 18px 20px;
  text-decoration:none;
  text-transform: uppercase;  
  color: #003473;
}

.oc-open-sub{
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  color: #003473;
}

.oc-panel .sub-menu > li {
  border-bottom: 1px solid #dadbdd;
  padding: 15px 0;
  display: flex;
}


/* IMPORTANT : on ne cache plus .sub-menu globalement
   car on va les déplacer dans des panels (donc ils sortent du root)
*/