/* ==========================================================
   REIZH-UP / APFN — HEADER V2
   ========================================================== */

#header {
  position: relative;
  z-index: 100;
  color: #30394c;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

#header .header-nav {
  display: none !important;
}

#header .apfn-header {
  padding: 0;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

#header .apfn-header > .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

/* ==========================================================
   STRUCTURE DESKTOP
   ========================================================== */

#header .apfn-header-desktop {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  column-gap: 38px;
  align-items: center;
  min-height: 156px;
}

/* ==========================================================
   LOGO
   ========================================================== */

#header .apfn-header-logo {
  width: 155px;
}

#header .apfn-logo-link {
  display: block;
  line-height: 0;
}

#header .apfn-header-logo img {
  display: block;
  width: 155px !important;
  max-width: 155px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

#header .apfn-header-navigation {
  min-width: 0;
}

#header .apfn-header-navigation .menu,
#header .apfn-header-navigation .top-menu {
  margin: 0;
}

#header .apfn-header-navigation .top-menu[data-depth="0"] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
}

#header .apfn-header-navigation .top-menu > li {
  position: relative;
  float: none;
}

#header .apfn-header-navigation .top-menu a[data-depth="0"] {
  display: flex;
  align-items: center;
  min-height: 156px;
  padding: 0 13px;
  color: #30394c;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
}

#header .apfn-header-navigation .top-menu a[data-depth="0"]:hover,
#header .apfn-header-navigation .top-menu a[data-depth="0"]:focus,
#header .apfn-header-navigation .top-menu .current > a[data-depth="0"] {
  color: #5d9ee8;
}

/* Sous-menu */

#header .apfn-header-navigation .top-menu .sub-menu {
  top: 100%;
  left: 0;
  width: 430px;
  min-width: 430px;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(32, 45, 65, 0.12);
}

#header .apfn-header-navigation
.top-menu .sub-menu ul[data-depth="1"] {
  display: block;
  margin: 0;
  padding: 0;
}

#header .apfn-header-navigation .top-menu .sub-menu li {
  display: block;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #e5e7ea;
}

#header .apfn-header-navigation
.top-menu .sub-menu li:last-child {
  border-bottom: 0;
}

#header .apfn-header-navigation .top-menu .sub-menu a {
  display: block;
  padding: 18px 28px;
  color: #30394c;
  background: #ffffff;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  text-transform: none;
}

#header .apfn-header-navigation .top-menu .sub-menu a:hover,
#header .apfn-header-navigation .top-menu .sub-menu a:focus {
  color: #5d9ee8;
  background: #f8fafd;
}

#header .apfn-header-navigation
.top-menu .sub-menu ul[data-depth="1"] > li {
  float: none;
  width: 100%;
}

/* ==========================================================
   ACTIONS
   ========================================================== */

#header .apfn-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: max-content;
}

/* ==========================================================
   CONNEXION
   ========================================================== */

#header .apfn-account {
  position: relative;
  margin: 0;
}

#header .apfn-account-login,
#header .apfn-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 145px;
  min-height: 50px;
  margin: 0;
  padding: 12px 24px;
  color: #ffffff !important;
  background: #5d9ee8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

#header .apfn-account-login:hover,
#header .apfn-account-login:focus,
#header .apfn-account-trigger:hover,
#header .apfn-account-trigger:focus {
  color: #ffffff !important;
  background: #4e8ed9;
  text-decoration: none;
}

#header .apfn-account-trigger::-webkit-details-marker {
  display: none;
}

#header .apfn-account-trigger::marker {
  display: none;
  content: "";
}

#header .apfn-account-trigger__arrow {
  font-size: 20px;
  transition: transform 0.2s ease;
}

#header .apfn-account-menu[open]
.apfn-account-trigger__arrow {
  transform: rotate(180deg);
}

/* ==========================================================
   MENU DU COMPTE
   ========================================================== */

#header .apfn-account-menu {
  position: relative;
}

#header .apfn-account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 110;
  width: 310px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  box-shadow: 0 16px 40px rgba(32, 45, 65, 0.14);
}

#header .apfn-account-dropdown::before {
  position: absolute;
  top: -7px;
  right: 34px;
  width: 14px;
  height: 14px;
  content: "";
  background: #ffffff;
  border-top: 1px solid #e5eaf0;
  border-left: 1px solid #e5eaf0;
  transform: rotate(45deg);
}

#header .apfn-account-dropdown__header {
  position: relative;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #edf0f4;
}

#header .apfn-account-dropdown__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #7b8595;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

#header .apfn-account-dropdown__name {
  display: block;
  overflow: hidden;
  color: #30394c;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header .apfn-account-dropdown__navigation {
  padding: 10px 0;
}

#header .apfn-account-dropdown__link,
#header .apfn-account-dropdown__logout {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 24px;
  color: #30394c !important;
  background: #ffffff;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

#header .apfn-account-dropdown__link:hover,
#header .apfn-account-dropdown__link:focus,
#header .apfn-account-dropdown__logout:hover,
#header .apfn-account-dropdown__logout:focus {
  color: #5d9ee8 !important;
  background: #f8fafd;
}

#header .apfn-account-dropdown__link .material-icons,
#header .apfn-account-dropdown__logout .material-icons {
  flex: 0 0 22px;
  font-size: 21px;
}

#header .apfn-account-dropdown__footer {
  padding: 10px 0;
  border-top: 1px solid #edf0f4;
}

/* ==========================================================
   PANIER
   ========================================================== */

#header .apfn-header-cart,
#header .apfn-header-cart #_desktop_cart,
#header .apfn-header-cart .blockcart {
  margin: 0;
}

#header .apfn-header-cart .blockcart {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent !important;
}

#header .apfn-header-cart .blockcart .header {
  margin: 0;
}

#header .apfn-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
  padding: 10px;
  color: #30394c !important;
  background: transparent;
  border: 1px solid #dfe5ec;
  text-decoration: none;
}

#header .apfn-cart-link:hover,
#header .apfn-cart-link:focus {
  color: #5d9ee8 !important;
  background: #f8fafd;
  border-color: #cad6e3;
}

#header .apfn-cart-icon {
  font-size: 25px;
}

#header .apfn-cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#header .apfn-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: #ffffff;
  background: #5d9ee8;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* ==========================================================
   MOBILE
   ========================================================== */

#header .apfn-header-mobile {
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
}

#header .apfn-mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #30394c;
  background: transparent;
  border: 0;
}

#header .apfn-mobile-menu-button .material-icons {
  font-size: 28px;
}

#header .apfn-mobile-logo img {
  display: block;
  width: auto;
  max-width: 110px;
  max-height: 58px;
  margin: 0 auto;
}

#header .apfn-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#header .apfn-account--mobile .apfn-account-login,
#header .apfn-account--mobile .apfn-account-trigger {
  min-width: auto;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

#header .apfn-account--mobile
.apfn-account-trigger__arrow {
  display: none;
}

#header .apfn-account--mobile
.apfn-account-dropdown {
  position: fixed;
  top: 82px;
  right: 16px;
  left: 16px;
  width: auto;
}

#header .apfn-account--mobile
.apfn-account-dropdown::before {
  display: none;
}

/* Le panier déplacé par le JavaScript natif de Classic */

#header #_mobile_cart .apfn-cart-link {
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================
   NETTOYAGE DES STYLES CLASSIC
   ========================================================== */

#header .header-top,
#header .header-top .container,
#header .header-top-right,
#header .apfn-header-navigation,
#header .apfn-header-actions {
  border: 0 !important;
  box-shadow: none !important;
}

#header .apfn-header-navigation .row,
#header .apfn-header-actions .row,
#header .apfn-account .row {
  margin-right: 0;
  margin-left: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1199px) {
  #header .apfn-header > .container {
    padding-right: 22px;
    padding-left: 22px;
  }

  #header .apfn-header-desktop {
    grid-template-columns: 135px minmax(0, 1fr) auto;
    column-gap: 24px;
  }

  #header .apfn-header-logo,
  #header .apfn-header-logo img {
    width: 135px !important;
    max-width: 135px !important;
  }

  #header .apfn-header-navigation
  .top-menu a[data-depth="0"] {
    padding: 0 9px;
    font-size: 15px !important;
  }

  #header .apfn-account-login,
  #header .apfn-account-trigger {
    min-width: 125px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  #header .apfn-header-mobile {
    display: flex !important;
  }

  #header .apfn-header > .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  #header #mobile_top_menu_wrapper {
    margin-right: -16px;
    margin-left: -16px;
    padding: 18px 16px 24px;
    background: #ffffff;
    border-top: 1px solid #edf0f4;
  }
}

/* ==========================================================
   MENU UNIFIÉ WORDPRESS / PRESTASHOP
   ========================================================== */

#header .apfn-unified-nav,
#header .apfn-unified-nav ul,
#header .apfn-unified-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .apfn-unified-nav__root {
  position: relative;
  display: flex;
  align-items: center;
}

#header .apfn-unified-nav__item {
  position: relative;
}

#header .apfn-unified-nav__disclosure,
#header .apfn-unified-nav__disclosure > summary {
  margin: 0;
}

#header .apfn-unified-nav__disclosure > summary {
  list-style: none;
  cursor: pointer;
}

#header .apfn-unified-nav__disclosure > summary::-webkit-details-marker {
  display: none;
}

#header .apfn-unified-nav__top-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 156px;
  padding: 0 13px;
  color: #30394c !important;
  background: transparent;
  border: 0;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
}

#header .apfn-unified-nav__top-link:hover,
#header .apfn-unified-nav__top-link:focus,
#header .apfn-unified-nav__disclosure[open] > .apfn-unified-nav__top-link {
  color: #5d9ee8 !important;
}

#header .apfn-unified-nav__chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

#header .apfn-unified-nav__disclosure[open]
> .apfn-unified-nav__top-link
.apfn-unified-nav__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

#header .apfn-unified-nav__panel {
  z-index: 120;
  color: #30394c;
  background: #ffffff;
  border: 1px solid #edf0f4;
  box-shadow: 0 16px 40px rgba(32, 45, 65, 0.14);
}

#header .apfn-unified-nav__panel a {
  color: #30394c !important;
  font-family: "Work Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  text-decoration: none !important;
  text-transform: none;
}

#header .apfn-unified-nav__panel a:hover,
#header .apfn-unified-nav__panel a:focus {
  color: #5d9ee8 !important;
}

#header .apfn-unified-nav__panel--mega {
  width: min(980px, calc(100vw - 60px));
  padding: 0;
}

#header .apfn-unified-nav__intro {
  padding: 17px 24px;
  background: #f6f9fd;
  border-bottom: 1px solid #e6ecf3;
}

#header .apfn-unified-nav__intro a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #395ca3 !important;
  font-weight: 600 !important;
}

#header .apfn-unified-nav__columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr;
  gap: 0;
}

#header .apfn-unified-nav__column {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid #edf0f4;
}

#header .apfn-unified-nav__column:last-child {
  border-right: 0;
}

#header .apfn-unified-nav__column h3 {
  margin: 0 0 12px;
  color: #30394c;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

#header .apfn-unified-nav__column h3.apfn-unified-nav__second-title {
  margin-top: 22px;
}

#header .apfn-unified-nav__column > ul > li {
  margin-bottom: 9px;
}

#header .apfn-unified-nav__column > ul > li:last-child {
  margin-bottom: 0;
}

#header .apfn-unified-nav__children {
  margin-top: 7px !important;
  padding-left: 13px !important;
  border-left: 2px solid #dce7f5;
}

#header .apfn-unified-nav__children li {
  margin-bottom: 6px;
}

#header .apfn-unified-nav__children a {
  color: #687385 !important;
  font-size: 13px !important;
}

#header .apfn-unified-nav__compact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

#header .apfn-unified-nav__panel--simple {
  width: 330px;
  padding: 10px 0;
}

#header .apfn-unified-nav__panel--simple a {
  display: block;
  padding: 11px 22px;
}

#header .apfn-unified-nav__panel--simple li + li {
  border-top: 1px solid #f0f2f5;
}

@media (min-width: 768px) {
  #header .apfn-unified-nav__panel {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease,
      transform 0.18s ease;
  }

  #header .apfn-unified-nav__disclosure:hover > .apfn-unified-nav__panel,
  #header .apfn-unified-nav__disclosure:focus-within > .apfn-unified-nav__panel,
  #header .apfn-unified-nav__disclosure[open] > .apfn-unified-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  #header .apfn-unified-nav__top-link {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 15px !important;
  }

  #header .apfn-unified-nav__panel--mega {
    width: min(900px, calc(100vw - 44px));
  }

  #header .apfn-unified-nav__column {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  #header .apfn-unified-nav__root {
    display: block;
  }

  #header .apfn-unified-nav__item {
    border-bottom: 1px solid #edf0f4;
  }

  #header .apfn-unified-nav__item:last-child {
    border-bottom: 0;
  }

  #header .apfn-unified-nav__top-link {
    justify-content: space-between;
    min-height: 0;
    padding: 15px 10px;
    font-size: 16px !important;
    white-space: normal;
  }

  #header .apfn-unified-nav__panel {
    position: static;
    width: auto;
    border: 0;
    border-top: 1px solid #edf0f4;
    box-shadow: none;
  }

  #header .apfn-unified-nav__disclosure:not([open])
  > .apfn-unified-nav__panel {
    display: none;
  }

  #header .apfn-unified-nav__intro {
    padding: 14px 18px;
  }

  #header .apfn-unified-nav__columns {
    display: block;
  }

  #header .apfn-unified-nav__column {
    padding: 20px 18px;
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  #header .apfn-unified-nav__column:last-child {
    border-bottom: 0;
  }

  #header .apfn-unified-nav__compact-list {
    grid-template-columns: 1fr;
  }

  #header .apfn-unified-nav__panel--simple {
    padding: 4px 0;
  }

  #header .apfn-unified-nav__panel--simple a {
    padding: 13px 18px;
  }
}
