:root {
  --cm-level1-height: 80px;
  --cm-level1-height-mobile: 50px;
  --cm-level2-height: 40px;
  --cm-level3-height: 180px;
  --color-logo-bleu: #2d3ad1;
  --color-logo-blanc: #fff;
  --color-logo-rouge: #fa1a13;
  --bs-primary: #2d3ad1 !important;
  --bs-link-color: #1d2790 !important;
  --max-weight-body: 1620px;
}
html {
  background: #0b1363;
}
body {
  max-width: var(--max-weight-body);
  background: white;
  margin: 0 auto;
}
.color-myfc-rouge {
  color: var(--color-logo-rouge) !important;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2d3ad1 !important;
  --bs-btn-border-color: #2d3ad1 !important;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1d2790 !important;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #5e5e68 !important;
  --bs-btn-disabled-border-color: #5e5e68 !important;
}

.btn-outline-primary {
  --bs-btn-color: #2d3ad1;
  --bs-btn-border-color: #2d3ad1;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2d3ad1;
  --bs-btn-hover-border-color: #2d3ad1;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2d3ad1;
  --bs-btn-active-border-color: #2d3ad1;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #2d3ad1;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #2d3ad1;
  --bs-gradient: none;
}

.header a:not(.dropdown-item):not(.btn) {
  color: #444444 !important;
}

.header-bottom__row {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  min-width: 100vw;
  transform: translateX(-50%);
  margin: 0 !important;
  padding: 0 !important;
  min-height: var(--cm-level1-height);
}
/* Navigation barre principale */
#custommenu-nav {
  max-height: var(--cm-level1-height);
  max-width: var(--max-weight-body);
}
.custommenu-nav {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: var(--max-weight-body);
  transform: translateX(-50%);
  background: #fff;
  display: flex;
  align-items: flex-end;
  height: var(--cm-level1-height);
  z-index: 40;
  margin: 0 auto !important;
  padding: 0 !important;
}
.custommenu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  background: whitesmoke;
}
.custommenu--main.left-side {
  margin-right: auto;
}
.right-side {
  margin-left: auto;
}

.custommenu-item,
.custommenu-itemsub {
  position: static;
}

.custommenu-itemsub {
  color: initial;
}

/* Liens niveau 1 */
.custommenu-link {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  padding: 0 22px;
  height: var(--cm-level1-height);
  transition: color 0.18s, border 0.18s;
  border-bottom: 2px solid transparent;
  line-height: 90%;
}

.custommenu-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: normal;
  margin-top: 0.15em;
  opacity: 0.86;
  letter-spacing: 0.01em;
}

.custommenu-link:hover,
.custommenu-item.has-children:hover > .custommenu-link {
  color: #bfa14c;
  border-bottom: 2px solid #bfa14c;
  background: #faf7f0;
}
/*
.custommenu-item.has-children > .custommenu-link::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 6px;
  color: #bbbbbbbf;
}*/

/* Mega menu niveau 2 : en ABSOLU sous le parent */
.custommenu-megamenu {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%; /* Juste SOUS l’item parent */
  width: 100vw;
  max-width: var(--max-weight-body);
  height: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 40px #0002;
  z-index: 30;
  padding: 0;
}

.custommenu-item.has-children:hover > .custommenu-megamenu {
  height: var(--cm-level2-height);
  overflow: visible;
}

/* Sous-menu horizontal (niveau 2) */
.custommenu-submenu {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100vw;
  max-width: var(--max-weight-body);
  margin: 0;
  padding: 0;
  list-style: none;
}
.custommenu-itemsub {
  display: flex;
  align-items: center;
  position: relative;
}
.custommenu-itemsub.has-children > .custommenu-linksub::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 6px;
  color: #bbbbbbbf;
}

.custommenu-linksub {
  display: flex;
  align-items: center;
  height: var(--cm-level2-height);
  padding: 0 18px;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.18s;
  background: none;
  border: none;
}
.custommenu-linksub:hover,
.custommenu-itemsub.has-children:hover > .custommenu-linksub {
  color: #bfa14c;
}

/* Sous-menu horizontal (niveau 2) reste pareil */

/* Mega menu niveau 3 : en ABSOLU SOUS niveau 2 */
.custommenu-megamenusub {
  display: block;
  position: fixed;
  left: 0;
  top: calc(var(--cm-level1-height) + var(--cm-level2-height));
  width: 100vw;
  max-width: 100vw;
  height: 0px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  background: white;
  box-shadow: 0 8px 40px #0002;
  z-index: 30;
  padding: 10px -20px;
}
/* Pour que le méga menu soit positionné par rapport à l’item parent */

/*
.custommenu-itemsub.has-children {
  position: relative;
}
*/
.custommenu-itemsub.has-children:hover > .custommenu-megamenusub {
  height: var(--cm-level3-height);
  transition: all 0.3s ease-in-out;
  overflow: visible;
  padding: 10px 20px;
}

.custommenu-submenusub {
  display: grid;
  grid-template-columns: repeat(4, minmax(auto, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  height: 100%;
  justify-content: start;
}
.custommenu-itemsubsub {
  margin-bottom: 6px;
}
.custommenu-linksubsub {
  display: none;
  text-align: left;
  font-size: 0.98rem;
  text-decoration: none;
  font-weight: 400;
  padding: 5px 0;
  border-radius: 3px;
  color: var(--color-logo-bleu) !important;
}
.custommenu-linksubsub:hover {
  color: #bfa14c;
  background: #fcf9ef;
}

/* ----- NIVEAU 4 dans le megamenu ----- */
.custommenu-col-title {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
}

.custommenu-list-level4 {
  list-style: disc;
  margin: 0;
  padding: 0;
}

.custommenu-itemsubsubsub {
  margin: 0 0 4px 0;
}
/*texte des liens niveau 4 */
.custommenu-linksubsubsub {
  display: block;
  width: fit-content;
  text-align: left;
  color: #444 !important;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 400;
  padding: 3px 0 3px 8px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.custommenu-linksubsubsub:hover {
  color: var(--color-logo-bleu) !important;
  background: #f2f4fd;
}

/* LOGO ajustement */
.div-logo-customer-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  z-index: 50;
  height: var(--cm-level1-height);
  margin-left: 20px;
  min-width: min-content;
}
.widget-customer-menu .widget-languages {
  width: fit-content;
  margin: auto;
}

.widget-customer-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: var(--cm-level1-height-mobile);
  margin-top: 15px;
  width: 100%;
  min-width: 100px;
}
.widget-customer-menu-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  width: 100%;
  transform: scale(0.8);
}
#_desktop_logo img {
  height: 80px;
  width: auto;
}
.div-logo-customer-menu #_desktop_logo:before {
  background-repeat: no-repeat;
  content: "";
  position: absolute;
  width: 55px;
  height: 60px;
  background: url(https://www.myfrenchcomptoir.fr/img/logo-top.svg) no-repeat;
  top: 0;
  margin-left: -4px;
  animation: move 11s ease-in-out infinite both;
  animation-delay: 1s;
  background-size: 50px;
  background-position: 5px 5px;
}
.header-block {
  width: 30px;
  padding: 0 5px;
}

.header-block__action-btn .material-icons {
  /*color: var(--color-logo-bleu) !important;*/
  font-size: 20px !important;
}
.blockcart > span:nth-child(1) > span:nth-child(2) {
  margin-left: 0px !important;
}

/* Responsive
@media (max-width: 1100px) {
  .custommenu-link {
    padding: 0 10px;
  }
  .custommenu-megamenusub {
    padding: 22px 14px 18px 14px;
  }
}
@media (max-width: 900px) {
  .custommenu-nav {
    flex-wrap: wrap;
  }
  .custommenu-megamenu,
  .custommenu-megamenusub {
    left: 0;
    right: 0;
    width: 100vw;
  }
  .custommenu-submenusub {
    grid-template-columns: 1fr;
  }
} */
.displayMobile {
  display: none;
}
.displayDesktop {
  display: flex;
}

.bg-red {
  background-color: red !important;
}

@media (max-width: 1000px) {
  /* Liens niveau 1 */
  .custommenu-link {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    padding: 0 10px;
    height: var(--cm-level1-height-mobile);
    transition: color 0.18s, border 0.18s;
    border-bottom: 2px solid transparent;
    line-height: 90%;
  }
  .displayMobile {
    display: none;
  }
  .displayDesktop {
    display: flex;
  }
  .widget-customer-menu {
    height: var(--cm-level1-height-mobile);
    margin: 0;
  }
  .custommenu-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.15em;
    letter-spacing: 0.01em;
  }
}

.module_search_mobile {
  transform: scale(0.8);
}
@media (max-width: 767px) {
  .displayMobile {
    display: flex !important;
  }
  .displayDesktop {
    display: none !important;
  }

  header {
    height: var(--cm-level1-height-mobile);
    max-height: fit-content;
  }

  #custommenu-nav {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s;
    will-change: transform, opacity;
    position: sticky; /* ou fixed si tu préfères, selon ton code */
    top: 0;
    z-index: 30;
    max-height: var(--cm-level1-height-mobile);
    background: whitesmoke;
  }
  #custommenu-nav.hide-on-scroll {
    transform: translateY(-100%);
    opacity: 0.01;
    pointer-events: none;
  }
  #custommenu-nav.show-on-scroll {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .div-logo-customer-menu .widget-languages {
    width: 20px;
    height: 20px;
    padding: 0;
    margin-top: 5px;
  }
  .custommenu-linksub {
    padding: 0 5px;
    color: #444;
    font-weight: 600;
    font-size: 0.8rem;
  }

  /* Masquer tous les sous-menus par défaut 
  .custommenu-megamenu,
  .custommenu-megamenusub,
  .custommenu-list-level4 {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
  }*/

  /* Navigation barre principale */
  .custommenu-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  /* Liens niveau 1 */
  .custommenu--main.left-side,
  .custommenu--main.right-side {
    width: fit-content;
    margin: 0;
    height: var(--cm-level1-height-mobile);
  }

  /* Afficher le sous-menu si le parent est .open */
  .custommenu-item.open > .custommenu-megamenu,
  .custommenu-itemsub.open > .custommenu-megamenusub,
  .custommenu-itemsubsub.open > .custommenu-list-level4 {
    display: block !important;
    max-height: 1200px;
    transition: max-height 0.3s, padding 0.3s;
  }

  /* Mega menu niveau 3 : en ABSOLU SOUS niveau 2 */
  .custommenu-megamenusub {
    display: block;
    position: fixed;
    left: 0;
    top: calc(var(--cm-level1-height-mobile) + var(--cm-level2-height));
    width: 100vw;
    max-width: 100vw;
    height: 0px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 40px #0002;
    z-index: 30;
    padding: 10px -20px;
    background: white;
  }

  /* Petite flèche accordéon 
  .custommenu-item.has-children > a::after,
  .custommenu-itemsub.has-children > a::after,
  .custommenu-itemsubsub > a::after {
    content: "▼";
    font-size: 0.8em;
    margin: 0;
    color: #888;
    transition: transform 0.3s;
    display: inline-block;
  }*/

  #_desktop_logo img {
    height: 40px;
    max-height: 40px;
    width: auto;
    margin: 0;
  }

  .div-logo-customer-menu #_desktop_logo:before {
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    width: 40px;
    height: 50px;
    background: url(https://www.myfrenchcomptoir.fr/img/logo-top.svg) no-repeat;
    top: 0;
    margin-left: -4px;
    animation: move 11s ease-in-out infinite both;
    animation-delay: 1s;
    background-size: 25px;
    background-position: 5px 7px;
  }
  .div-logo-customer-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    position: relative;
    background: transparent;
    z-index: 40;
    height: var(--cm-level1-height-mobile);
    width: fit-content;
    left: 10%;
    top: -10%;
    min-height: var(--cm-level1-height-mobile);
  }

  .widget-customer-menu {
    position: absolute !important;
    right: 0 !important;
    top: 10px !important;
    transform: translateX(100%);
    flex-direction: row;
    align-items: center;
    width: fit-content;
    min-width: 100px;
    height: var(--cm-level1-height-mobile);
  }
  .module_search_mobile {
    transform: scale(0.5) translateX(-200%);
    position: fixed;
    top: 5px;
    right: 0;
    z-index: 60;
    transition: all 0.3s ease-in-out;
  }
}

@media (max-width: 650px) {
  .module_search_mobile {
    transform: scale(0.5) translateX(-100%);
    position: fixed;
    top: 5px;
    right: 0;
    z-index: 60;
    transition: all 0.3s ease-in-out;
  }
}

@media (max-width: 550px) {
  .module_search_mobile {
    transform: scale(0.45);
    position: fixed;
    top: 5px;
    right: 10px;
    z-index: 60;
    transition: all 0.3s ease-in-out;
  }
}

/* accordion */

/* Afficher le sous-menu si le parent est .open 
.custommenu-item:hover > .custommenu-megamenu,
.custommenu-itemsub:hover > .custommenu-megamenusub {
  position: absolute  !important;
  left: 0;
  right: 0;
  top: 100%;
  width: 100vw;
  max-height: var(--cm-level3-height);
  overflow: scroll;
  padding-bottom: 8px;
  transition: max-height 0.3s, padding 0.3s;
}
*/
/* Pour l'accordéon, on met un curseur pointeur */
/*
.custommenu-item.has-children > a,
.custommenu-itemsub.has-children > a,
.custommenu-itemsubsub > a {
  cursor: pointer;
  
}*/
/* Petite flèche accordéon */
/*
.custommenu-item.has-children > a::after,
.custommenu-itemsub.has-children > a::after {
  content: "▼";
  font-size: 0.8em;
  margin: 0;
  color: #888;
  transition: transform 0.3s;
  display: inline-block;
}
.custommenu-item:hover > a::after,
.custommenu-itemsub:hover > a::after,
.custommenu-itemsubsub:hover > a::after {
  transform: rotate(-180deg);
  color: #2d3ad1;
}*/
/* Sauf si pas d'enfant (pas de flèche) */
/*
.custommenu-item:not(.has-children) > a::after,
.custommenu-itemsub:not(.has-children) > a::after {
  content: "";
}

*/
.z-50 {
  z-index: 50 !important;
}

@keyframes move {
  0% {
    transform: rotate(0deg) translate(0px, 0px);
  }
  10% {
    transform: rotate(-3deg) translate(-1px, 0px);
  }
  30% {
    transform: rotate(-8deg) translate(-1px, 0px);
  }
  50% {
    transform: rotate(0deg) translate(0px, 0px);
  }
  60% {
    transform: rotate(-3deg) translate(0px, 0px);
  }

  70% {
    transform: rotate(-3deg) translate(0px, 0px);
  }
  80% {
    transform: rotate(12deg) translate(2px, 0px);
  }
  95% {
    transform: rotate(12deg) translate(2px, 0px);
  }

  100% {
    transform: rotate(0deg) translateY(0px);
  }
}
