/* =========================================================
   ACM HEADER
   Version autonome pour Yii2 / YY2
   Ne dépend pas de Bootstrap
   ========================================================= */

/* =========================================================
   VARIABLES

    --color-primary: #26a69a;
    --color-primary-pale: #76c2bb;

   ========================================================= */

:root {
  --acm-primary: #e75a5b;
  --acm-primary-pale: #ec8474;

  --acm-black: #000000;
  --acm-white: #ffffff;
  --acm-white-80: rgba(255, 255, 255, 0.8);

  --acm-grey-dark: #1c1c1c;
}

/* =========================================================
   FONT
   ========================================================= */

@font-face {
  font-family: "SchibstedGrotesk";
  src:
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Regular.woff2")
      format("woff2"),
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Regular.woff")
      format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SchibstedGrotesk";
  src:
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Bold.woff2")
      format("woff2"),
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Bold.woff")
      format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "SchibstedGrotesk";
  src:
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Black.woff2")
      format("woff2"),
    url("https://demo.agencecm.com/themes/custom/acm_base/fonts/SchibstedGrotesk-Black.woff")
      format("woff");
  font-weight: 900;
  font-display: swap;
}

/* =========================================================
   HEADER GLOBAL
   ========================================================= */

#d_header {
  position: relative;
  z-index: 1000;

  font-family: "SchibstedGrotesk", Arial, sans-serif;

  padding: 0;
  margin: 0;

  background: #ffffff;
}

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

#d_header .acm-header__nav {
  position: relative;

  height: 84px;

  background: #ffffff;

  box-shadow: 0 6px 10px -5px rgba(0, 0, 0, 0.2);

  z-index: 1000;
}

#d_header .acm-header__container {
  width: 100%;
  max-width: 1320px;

  height: 84px;

  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;

  gap: 30px;
}

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

#d_header .acm-header__branding {
  flex-shrink: 0;

  height: 84px;

  display: flex;
  align-items: center;
}

#d_header .acm-header__logo {
  display: flex;
  align-items: center;

  height: 84px;

  text-decoration: none;
}

/* MODIF LOGO */
/* #d_header .acm-header__logo img {
  display: block;

  width: auto;
  height: 80px;

  max-width: none;
}*/

#d_header .acm-header__logo img {
  display: block;
  width: auto;
  height: 55px;
  max-width: none;
}

/* =========================================================
   MENU PRINCIPAL + COLLAPSE
   ========================================================= */

#d_header .acm-header__collapse {
  flex: 1;

  min-width: 0;

  height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

#d_header .acm-header__main {
  flex: 1;

  min-width: 0;

  height: 84px;

  display: flex;
  align-items: center;
  justify-content: center;
}

#d_header .acm-header__menu {
  list-style: none;

  display: flex;
  align-items: stretch;

  height: 84px;

  margin: 0;
  padding: 0;

  gap: 20px;
}

/* =========================================================
   ITEMS
   ========================================================= */

#d_header .acm-header__item {
  position: static;

  display: flex;
  align-items: stretch;

  margin: 0;
  padding: 0;
}

#d_header .acm-header__link {
  position: relative;

  display: flex;
  align-items: center;

  height: 84px;

  margin: 0;
  padding: 0 4px;

  border: 0;
  background: transparent;

  color: #333333;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;

  line-height: 1.2;

  text-decoration: none;

  white-space: nowrap;

  cursor: pointer;
}

#d_header .acm-header__link:hover,
#d_header .acm-header__link:focus {
  color: #333333;
  text-decoration: none;
}

/* =========================================================
   SOULIGNEMENT
   ========================================================= */

#d_header .acm-header__link::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: 0;

  height: 10px;

  background-color: var(--acm-primary-pale);

  opacity: 0;

  transition: opacity 0.15s ease;
}

/*#d_header .acm-header__link:hover::after,
#d_header .acm-header__item.is-open > .acm-header__link::after {
  opacity: 1;
}*/

#d_header .acm-header__link:hover::after,
#d_header .acm-header__item.is-open > .acm-header__link::after,
#d_header .acm-header__item.is-active > .acm-header__link::after {
  opacity: 1;
}

/* =========================================================
   FLECHE DROPDOWN
   ========================================================= */

#d_header .acm-header__dropdown-toggle {
  padding-left: 20px;
}

#d_header .acm-header__dropdown-toggle::before {
  content: "";

  position: absolute;

  left: 2px;
  top: 50%;

  width: 8px;
  height: 8px;

  margin-top: -6px;

  border-left: 1.5px solid var(--acm-primary-pale);
  border-bottom: 1.5px solid var(--acm-primary-pale);

  transform: rotate(-45deg);

  transition: transform 0.15s ease;
}

#d_header .acm-header__item.is-open .acm-header__dropdown-toggle::before {
  transform: rotate(135deg);

  margin-top: -2px;
}

/* =========================================================
   DROPDOWNS
   ========================================================= */

#d_header .acm-header__dropdown {
  position: absolute;

  top: 84px;
  left: 0;

  width: 100vw;

  display: none;

  background:
    linear-gradient(
      to left,
      #ffffff 0%,
      #ffffff 40%,
      rgba(255, 255, 255, 0) 100%
    ),
    repeating-linear-gradient(
      -70deg,
      transparent,
      transparent 2px,
      #e5e5e5 2px,
      #e5e5e5 3px
    ),
    #ffffff;

  box-shadow:
    inset 0 10px 10px -10px rgba(0, 0, 0, 0.2),
    0 10px 15px rgba(0, 0, 0, 0.1);

  z-index: 999;
}

#d_header .acm-header__item.is-open .acm-header__dropdown {
  display: block;
}

#d_header .acm-header__dropdown-inner {
  width: 100%;

  max-width: 825px;

  min-height: 110px;

  margin: 0 auto;
  padding: 30px 0 20px;

  display: grid;

  grid-auto-flow: column;
  grid-auto-columns: max-content;

  grid-template-rows: repeat(1, auto);

  justify-content: center;

  column-gap: 50px;
  row-gap: 15px;
}

/* =========================================================
   ITEMS DES DROPDOWNS
   ========================================================= */

#d_header .acm-header__dropdown-item {
  position: relative;

  display: inline-flex;
  align-items: flex-start;

  width: max-content;

  padding: 0;

  color: #333333;

  font-family: inherit;
  font-size: 16px;
  font-weight: 400;

  line-height: 1.35;

  text-decoration: none;

  white-space: normal;
}

#d_header .acm-header__dropdown-item::before {
  content: "—";

  flex-shrink: 0;

  width: 1rem;

  margin: 0 1rem 0 0;

  font-weight: 700;

  color: var(--acm-primary-pale);
}

#d_header .acm-header__dropdown-item:hover {
  color: var(--acm-primary-pale);

  text-decoration: none;
}

/* =========================================================
   NOS OFFRES
   ========================================================= */

#d_header .acm-header__dropdown--offers {
  height: 52px;
}

#d_header .acm-header__dropdown--offers .acm-header__dropdown-inner {
  height: 52px;
  min-height: 52px;

  padding: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 0;
}

#d_header .acm-header__offer {
  position: relative;

  flex: 0 0 25%;

  max-width: 150px;

  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #333333;

  font-family: inherit;
  font-size: 16px;
  font-weight: 400;

  text-decoration: none;

  white-space: nowrap;
}

#d_header .acm-header__offer::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 6px;

  background-color: var(--item-color, var(--acm-primary-pale));

  transition: height 0.15s ease;
}

#d_header .acm-header__offer:hover {
  color: #333333;

  text-decoration: none;
}

#d_header .acm-header__offer:hover::after {
  height: 8px;
}

/* =========================================================
   MENU SECONDAIRE
   ========================================================= */

#d_header .acm-header__secondary {
  flex-shrink: 0;

  display: flex;
  align-items: center;

  gap: 20px;
}

/* =========================================================
   COMPTE
   ========================================================= */

#d_header .acm-header__account {
  display: flex;
  align-items: center;

  gap: 20px;

  font-weight: 700;
  text-transform: uppercase;
}

#d_header .acm-header__button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 38px;

  padding: 8px 15px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    opacity 0.15s ease;
}

/*#d_header .acm-header__button--gradient {
  color: #ffffff;

  background: linear-gradient(
    90deg,
    var(--acm-primary),
    var(--acm-primary-pale)
  );
}

#d_header .acm-header__button--gradient:hover {
  color: #ffffff;

  text-decoration: none;

  opacity: 0.9;
}*/
#d_header .acm-header__button--gradient {
  position: relative;
  overflow: hidden;
  z-index: 1;

  color: #ffffff;
  background: var(--acm-primary-pale);
}

#d_header .acm-header__button--gradient::before {
  content: "";

  position: absolute;
  inset: 0;

  width: 122px;

  background: var(--acm-white-80);

  -webkit-mask: url("https://4th-line.eu/ACM_Website_dev_multisite/web/images/svg/bg_btn_rayures.svg")
    no-repeat left top;
  mask: url("https://4th-line.eu/ACM_Website_dev_multisite/web/images/svg/bg_btn_rayures.svg")
    no-repeat left top;

  -webkit-mask-size: contain;
  mask-size: contain;

  z-index: -1;

  pointer-events: none;
}

#d_header .acm-header__button--gradient:hover {
  color: var(--acm-white-80);

  text-decoration: none;
}

#d_header .acm-header__button--outline {
  color: #333333;

  border: 1px solid #333333;

  background: #ffffff;
}

#d_header .acm-header__button--outline:hover {
  color: #ffffff;

  background: #333333;

  text-decoration: none;
}

/* =========================================================
   LANGUES
   ========================================================= */

#d_header .acm-header__languages {
  display: flex;

  align-items: center;

  gap: 10px;

  height: 100%;
}

#d_header .acm-header__languages a {
  color: #333333;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}

#d_header .acm-header__languages a:hover {
  color: var(--acm-primary-pale);

  text-decoration: none;
}

#d_header .acm-header__languages a.is-active {
  font-weight: 900;
}

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

#d_header .acm-header__toggle {
  display: none;

  width: 44px;
  height: 44px;

  margin: 0;
  padding: 0;

  border: none;

  outline: none;

  background: transparent;

  cursor: pointer;
}

#d_header .acm-header__toggle-icon {
  display: block;

  width: 40px;
  height: 40px;

  margin: auto;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /*
     * Version CSS du hamburger.
     * Pas besoin des SVG Drupal.
     */
  position: relative;
}

#d_header .acm-header__toggle-icon::before,
#d_header .acm-header__toggle-icon::after {
  content: "";

  position: absolute;

  left: 7px;
  right: 7px;

  height: 2px;

  background: #333333;

  transition:
    transform 0.2s ease,
    top 0.2s ease;
}

#d_header .acm-header__toggle-icon::before {
  top: 13px;

  box-shadow:
    0 10px 0 #333333,
    0 20px 0 #333333;
}

#d_header .acm-header__toggle-icon::after {
  display: none;
}

/* =========================================================
   RESPONSIVE < 1400px
   ========================================================= */

@media (max-width: 1399.98px) {
  #d_header .acm-header__nav {
    height: auto;

    min-height: 84px;
  }

  #d_header .acm-header__container {
    min-height: 84px;

    height: auto;

    flex-wrap: wrap;

    padding: 0 20px;
  }

  #d_header .acm-header__branding {
    height: 84px;
  }

  #d_header .acm-header__toggle {
    display: block;

    margin-left: auto;
  }

  #d_header .acm-header__collapse {
    display: none;

    width: 100%;

    height: auto;

    flex-basis: 100%;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    background: #ffffff;

    box-shadow:
      inset 0 10px 10px -10px rgba(0, 0, 0, 0.2),
      0 10px 15px rgba(0, 0, 0, 0.1);
  }

  #d_header .acm-header__collapse.is-open {
    display: flex;
  }

  #d_header .acm-header__main {
    width: 100%;

    height: auto;

    display: block;

    order: 1;
  }

  #d_header .acm-header__menu {
    width: 100%;

    height: auto;

    display: flex;

    flex-direction: column;

    gap: 0;

    padding: 15px 40px;

    border-top: 1px solid var(--acm-primary-pale);
  }

  #d_header .acm-header__item {
    position: relative;

    width: 100%;

    display: block;
  }

  #d_header .acm-header__link {
    width: 100%;

    height: auto;

    min-height: 45px;

    padding: 12px 10px 12px 20px;

    justify-content: flex-start;

    font-size: 18px;

    text-align: left;
  }

  #d_header .acm-header__link::after {
    display: none;
  }

  #d_header .acm-header__dropdown-toggle::before {
    left: 2px;

    width: 8px;
    height: 8px;
  }

  #d_header .acm-header__dropdown {
    position: static;

    width: 100%;

    display: none;

    background: transparent;

    box-shadow: none;
  }

  #d_header .acm-header__item.is-open .acm-header__dropdown {
    display: block;
  }

  #d_header .acm-header__dropdown-inner {
    width: auto;

    max-width: none;

    min-height: 0;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 0 0 20px 20px;
  }

  #d_header .acm-header__dropdown-item {
    width: auto;

    padding: 5px 10px 5px 0;

    font-size: 15px;
  }

  #d_header .acm-header__dropdown--offers {
    height: auto;
  }

  #d_header .acm-header__dropdown--offers .acm-header__dropdown-inner {
    height: auto;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    padding: 0 0 20px 20px;
  }

  #d_header .acm-header__offer {
    width: 100%;

    max-width: none;

    height: auto;

    min-height: 40px;

    justify-content: flex-start;

    padding: 5px 10px 5px 0;

    white-space: normal;
  }

  #d_header .acm-header__offer::after {
    display: none;
  }

  #d_header .acm-header__secondary {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    order: 2;

    padding: 15px 40px 30px;
  }

  #d_header .acm-header__account {
    width: 100%;

    flex-wrap: wrap;

    gap: 10px;
  }

  #d_header .acm-header__languages {
    margin-top: 15px;
  }
}

/* =========================================================
   PETITS ECRANS
   ========================================================= */

@media (max-width: 600px) {
  #d_header .acm-header__container {
    padding: 0 15px;
  }

  #d_header .acm-header__logo img {
    height: 65px; /*65px;*/
  }

  #d_header .acm-header__menu {
    padding-left: 20px;
    padding-right: 20px;
  }

  #d_header .acm-header__secondary {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =========================================================
   TRES PETITS ECRANS
   ========================================================= */

@media (max-width: 420px) {
  /*#d_header .acm-header__logo img {
    height: 60px;
  }*/
  #d_header .acm-header__logo img {
    height: 50px;
  }

  #d_header .acm-header__account {
    flex-direction: column;

    align-items: stretch;
  }

  #d_header .acm-header__button {
    width: 100%;
  }
}
