/* ============================================================
   DAL'ALU — Header
   Édite ce fichier directement pour styler le header.
   ============================================================ */

/* ── Reset du header parent ── */
.wp-block-template-part {
  all: unset;
}

/* ── Structure principale ── */
.dal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.dal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 102px;
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(12px, 10vw, 10%);
}

.dal-header__inner__container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.dal-header__inner .margin {
  width: 10%;
}

.dal-header .dal-header-bandeau {
  width: 100%;
  background-color: var(--dal-red);
  height: 28px;
  display: flex;
  align-items: center;
}

.dal-header .dal-bandeau {
  width: 100%;
  margin: 0 10%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 45px;
}

.dal-header .dal-header-bandeau a {
  color: #FFF;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.dal-header .dal-header-bandeau a:hover {
  text-decoration: underline;
}

/* ── Logo ── */
.dal-header__logo {
  flex-shrink: 0;
  width: 177px;
  height: 46px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.dal-header__logo img{
  width: 100%;
}
/* ── Navigation ── */
.dal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  margin-right: 15px;
}

.dal-nav__products,
.dal-nav__pages {
  display: flex;
  align-items: center;
  gap: 29px;
}

.dal-nav__link {
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
}


/* Liens produits — gras, noirs */
.dal-nav__link--product {
  color: #000;
  font-size: 18px;
}

/* Liens pages — léger, gris */
.dal-nav__link--page {
  color: #898181;
  font-weight: 400;
  /* border-bottom: solid 2px; */
  border-color: transparent;
  transition: all .4s ease-in-out;
}

.dal-nav__link--page:hover {
  border-bottom: solid 2px;
  border-color: var(--dal-red);
}

.dal-has-cb {
  position: relative;
  cursor: pointer;
  padding: 20px 0;
}

.dal-has-cb:hover {
  border-color: transparent;
}

.dal-has-cb:hover .dal-nav-cb {
  opacity: 1;
  visibility: visible;
}

.dal-nav-cb {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 400px;
  display: flex;
  flex-direction: column;
  word-wrap: initial;
  background: #ffffff;
  border-radius: 4px 4px 200px 20px;
  padding: 10px 0px 10px 20px;
  left: -20%;
  top: 80%;
  box-shadow: 2px 3px 0px 0px #ebebeb;
  align-items: flex-start;
  transition: opacity .2s ease-in, visibility 0s linear .2s;
}
.dal-nav-cb .dal-nav__link {
  font-size: 16px;
}


.dal-has-cb:hover .dal-nav-cb {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease-in, visibility 0s linear 0s;
}

.dal-has-cb .dal-nav__link--page {
  padding: 10px;
}

/* Séparateur vertical rouge */
.dal-nav__separator {
  width: 2px;
  height: 24px;
  background: var(--dal-red);
  border-radius: 2px;
  margin: 0 30px;
  flex-shrink: 0;
}

/* ── Groupe CTA + burger ── */
.dal-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Bouton CTA ── */
.dal-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--dal-red);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.dal-header__cta:hover {
  background: #b30e16;
  color: #ffffff;
}

/* ── Liseré bleu bas de header ── */
.dal-header__border {
  height: 4px;
  background: linear-gradient(90deg, #1a3a6e 0%, #2d6abf 50%, #5b9bd5 100%);
}

/* ── Burger ── */
.dal-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.dal-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.dal-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dal-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.dal-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile (panneau latéral droit) ── */
.dal-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100dvh;
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dal-mobile-menu.is-open {
  transform: translateX(0);
}

.dal-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 80px 28px 40px;
  gap: 32px;
}

.dal-mobile-menu__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dal-mobile-menu__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #999;
  margin: 0 0 8px;
}

.dal-mobile-menu__section a {
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.15s;
}

.dal-mobile-menu__section a:last-child {
  border-bottom: none;
}

.dal-mobile-menu__section a:hover {
  color: var(--dal-red);
}

.dal-mobile-menu__cta {
  display: block;
  text-align: center;
  background: var(--dal-red);
  color: #fff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dal-mobile-menu__cta:hover {
  background: #b30e16;
}

/* ── Overlay ── */
.dal-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dal-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive ── */
@media (max-width: 1440px) {
  .dal-nav {
    display: none;
  }

  .dal-header__inner__container{
    justify-content: space-between;
  }

  .dal-burger {
    display: flex;
  }

  .dal-header__inner {
    justify-content: space-between;
    height: 70px;
  }

  .dal-header__logo,
  .dal-header__logo img {
    width: 100px;
  }
}

@media (max-width: 1024px) {

  .dal-header .dal-header-bandeau,
  .dal-header-bandeau {
    display: none;
  }

  .dal-header__cta {
    display: none;
  }
}