/* Container */
.hc-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}
/* Topbar */
.hc-topbar {
  background: #0a2ca4;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.hc-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
}
.hc-logo img {
  height: 28px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}
.hc-toplinks {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hc-toplinks a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}
.hc-toplinks a:hover {
  color: #b3c6ff;
}
.hc-toplinks span {
  color: #fff;
  opacity: 0.5;
  font-size: 1.1em;
}
/* Navbar */
.hc-navbar {
  background: #fff;
  border-bottom: 2px solid #2563eb;
  box-shadow: 0 2px 8px rgba(30,64,175,0.04);
}
.hc-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  background: #fff;
}
.hc-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-nav li {
  position: relative;
}
.hc-nav a {
  color: #0a2ca4;
  font-weight: 600;
  font-size: 1.07rem;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
  background: none;
  border: none;
  display: block;
}
.hc-nav a:hover,
.hc-nav a.active {
  color: #2563eb;
}

/* Mega menu */
.hc-megamenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;
  background: #f8fafc;
  box-shadow: 0 8px 32px rgba(30,64,175,0.08);
  z-index: 1000;
  padding: 0;
  border-top: 2px solid #2563eb;
}
.hc-nav li:hover > .hc-megamenu,
.hc-nav li:focus-within > .hc-megamenu {
  display: block;
}
.hc-megamenu-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  gap: 0;
}
.hc-megamenu-col-left {
  width: 180px;
  padding: 0 0 0 12px;
}
.hc-megamenu-col-center {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
}
.hc-megamenu-col-right {
  width: 180px;
  padding: 0 0 0 12px;
}
.hc-megamenu-col-left a,
.hc-megamenu-col-center a,
.hc-megamenu-col-right a {
  font-size: 0.95rem;
}
.hc-megamenu-col-center .desc {
  font-size: 0.88em;
  margin-bottom: 3px;
}
.hc-megamenu-badge {
  font-size: 0.68em;
  padding: 0 4px;
  margin-left: 2px;
}
.hc-megamenu-col-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-megamenu-col-left li {
  margin: 0;
}
.hc-megamenu-col-left a {
  display: flex;
  align-items: center;
  color: #2563eb;
  font-weight: 600;
  padding: 8px 0 8px 0;
  text-decoration: none;
  border-radius: 4px 0 0 4px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  font-size: 0.98rem;
}
.hc-megamenu-col-left a:hover,
.hc-megamenu-col-left a.active {
  background: #dbeafe;
  color: #1e293b;
}
.hc-megamenu-col-left a .fa-chevron-right {
  margin-left: auto;
  font-size: 0.9em;
  opacity: 0.7;
}
.hc-megamenu-col-center h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.hc-megamenu-col-center ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-megamenu-col-center li {
  margin-bottom: 6px;
}
.hc-megamenu-col-center a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  font-size: 0.98rem;
}
.hc-megamenu-col-center a:hover {
  text-decoration: underline;
}
.hc-megamenu-col-right h6 {
  color: #2563eb;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hc-megamenu-col-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-megamenu-col-right li {
  margin-bottom: 8px;
}
.hc-megamenu-col-right a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.97em;
}
.hc-megamenu-col-right a:hover {
  text-decoration: underline;
}
.hc-search {
  display: flex;
  align-items: center;
  gap: 0;
}
.hc-search input[type="search"] {
  border: 1px solid #2563eb;
  border-radius: 6px 0 0 6px;
  padding: 6px 12px;
  font-size: 1rem;
  outline: none;
  min-width: 160px;
  transition: border 0.15s;
}
.hc-search input[type="search"]:focus {
  border-color: #1f44b5;
}
.hc-search button {
  background: #2563eb;
  border: 1px solid #2563eb;
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 6px 12px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.hc-search button:hover {
  background: #0a2ca4;
}
/* Responsive */
@media (max-width: 991px) {
  .hc-container { padding: 0 12px; }
  .hc-navbar-inner { flex-direction: column; height: auto; }
  .hc-nav { flex-wrap: wrap; gap: 12px; }
  .hc-search { margin-top: 8px; }
  .hc-megamenu-grid { flex-direction: column; }
  .hc-megamenu-col-left, .hc-megamenu-col-center, .hc-megamenu-col-right { width: 100%; padding: 8px; }
  .hc-megamenu { padding: 16px 0; }
}
@media (max-width: 600px) {
  .hc-topbar-inner, .hc-navbar-inner { flex-direction: column; align-items: flex-start; height: auto; }
  .hc-toplinks { flex-wrap: wrap; gap: 8px; font-size: 14px; }
  .hc-nav { flex-direction: column; gap: 0; width: 100%; }
  .hc-nav li { width: 100%; }
  .hc-nav a { padding: 10px 0; display: block; width: 100%; }
  .hc-search { width: 100%; }
  .hc-search input[type="search"] { width: 100%; min-width: 0; }
}
.hc-megamenu {
  min-width: 500px;
  padding: 0;
}
.hc-megamenu-grid {
  max-width: 600px;
  padding: 4px 0;
  gap: 0;
}
.hc-megamenu-col-left {
  width: 90px;
  padding: 0 0 0 2px;
}
.hc-megamenu-col-left a {
  font-size: 0.85rem;
  padding: 3px 0 3px 0;
}
.hc-megamenu-col-center {
  padding: 0 6px;
}
.hc-megamenu-col-center h5 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.hc-megamenu-col-center a {
  font-size: 0.85rem;
}
.hc-megamenu-col-center .desc {
  font-size: 0.78em;
  margin-bottom: 2px;
}
.hc-megamenu-col-right {
  width: 80px;
  padding: 0 0 0 2px;
}
.hc-megamenu-col-right h6 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.hc-megamenu-col-right a {
  font-size: 0.82em;
}
.hc-megamenu-badge {
  font-size: 0.60em;
  padding: 0 3px;
  margin-left: 1px;
}
.hc-megamenu-col-left ul,
.hc-megamenu-col-center ul,
.hc-megamenu-col-right ul {
  margin: 0;
  padding: 0;
}
.hc-megamenu-col-center li,
.hc-megamenu-col-right li {
  margin-bottom: 1px;
}
.hc-megamenu-col-left li {
  margin: 0;
}
@media (max-width: 1200px) {
  .hc-megamenu-grid { max-width: 98vw; }
}
@media (max-width: 991px) {
  .hc-megamenu-grid { flex-direction: column; }
  .hc-megamenu-col-left, .hc-megamenu-col-center, .hc-megamenu-col-right { width: 100%; padding: 8px; }
}

/* Mega menu dark style */
.megamenu-dark {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 950px;         /* ou la largeur souhaitée */
  max-width: 98vw;
  background: #0a2ca4;
  color: #fff;
  z-index: 1000;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,64,175,0.18);
  border-top: 2px solid #2563eb;
  overflow: hidden;
  padding: 0;
  margin-left: 0.5rem; /* ou 16px, ajuste selon ton design */
}
.hc-nav li:hover > .megamenu-dark,
.hc-nav li:focus-within > .megamenu-dark {
  display: block;
}

.megamenu-dark-grid {
  display: flex;
  min-height: 340px;
}

.megamenu-dark-cats {
  background: #1f44b5;
  min-width: 260px;
  max-width: 300px;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2563eb;
}

.megamenu-dark-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.megamenu-dark-cats li {
  margin-bottom: 8px;
}

.megamenu-dark-cats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 8px 0 0 8px;
  color: #fff !important;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  position: relative;
  opacity: 1;
  width: 100%;
  min-width: 0;
}
.megamenu-dark-cats .cat-label {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  text-align: left;
}
.megamenu-dark-cats .cat-arrow {
  margin-left: 12px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #eaf3ff;
  opacity: 0.7;
  transition: color 0.18s;
  flex-shrink: 0;
}
.megamenu-dark-cats a.active .cat-arrow,
.megamenu-dark-cats a:hover .cat-arrow {
  color: #fff;
  opacity: 1;
}

.megamenu-dark-cats a.active,
.megamenu-dark-cats a:hover {
  background: #2563eb;
  color: #fff !important;
  opacity: 1;
}

.megamenu-dark-cats a[aria-disabled="true"],
.megamenu-dark-cats a.disabled {
  color: #7fa7e6 !important;
  opacity: 0.6;
  pointer-events: none;
  background: transparent;
}

.megamenu-dark-products {
  flex: 1;
  padding: 32px 32px 32px 32px;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.megamenu-dark-content {
  width: 100%;
  display: none;
  flex-direction: row;
  gap: 32px;
}

.megamenu-dark-content[style*="display: flex"] {
  display: flex !important;
}

.megamenu-dark-col {
  flex: 1;
  min-width: 0;
}

.megamenu-dark-offer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
  border-radius: 8px;
}

.megamenu-dark-offer:last-child {
  border-bottom: none;
}

.megamenu-dark-offer:hover {
  background: rgba(37,99,235,0.10);
}

.megamenu-dark-offer-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  border-radius: 8px;
  flex-shrink: 0;
}

.megamenu-dark-offer-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.megamenu-dark-offer-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #eaf3ff;
}

.megamenu-dark-offer-desc {
  font-size: 0.97rem;
  color: #c7e0ff;
  margin-top: 2px;
}

.hc-nav-main {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-nav-main li a {
  color: #0a2ca4;
  font-weight: 600;
  font-size: 1.13rem;
  text-decoration: none;
  transition: color 0.15s;
}

.hc-nav-main li a:hover {
  color: #2563eb;
}

.hc-nav-right {
  display: flex;
  align-items: center;
}

.btn-espace-client {
  background: #2563eb;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  margin-left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.15s, color 0.15s;
  border: none;
}

.btn-espace-client:hover {
  background: #0a2ca4;
  color: #fff;
}

.megamenu-dark-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #eaf3ff;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
}

.megamenu-dark-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  margin-top: 4px;
}
.hc-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  margin: 0 0 0 8px;
  cursor: pointer;
}
.hc-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #0a2ca4;
  border-radius: 2px;
}
@media (max-width: 991px) {
  .hc-burger { display: flex; }
  .hc-nav-main, .hc-nav-right { display: none; }
  body.nav-open .hc-nav-main, body.nav-open .hc-nav-right { display: flex; }
}

/* Mega menu desktop */
@media (min-width: 992px) {
  .megamenu-dark {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 950px;
    max-width: 98vw;
    background: #0a2ca4;
    color: #fff;
    z-index: 1000;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30,64,175,0.18);
    border-top: 2px solid #2563eb;
    overflow: hidden;
    padding: 0;
    margin-left: 0.5rem;
  }
  .hc-nav li:hover > .megamenu-dark,
  .hc-nav li:focus-within > .megamenu-dark {
    display: block;
  }
}

/* Mega menu mobile */
@media (max-width: 991px) {
  .megamenu-dark {
    display: none !important;
  }
  .megamenu-mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a2ca4;
    color: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: transform 0.2s;
    padding: 0;
  }
  .megamenu-mobile-drawer.open {
    display: block;
  }
  .megamenu-mobile-drawer .drawer-header {
    padding: 18px 14px 8px 14px;
    border-bottom: 1px solid #2563eb;
    background: #0a2ca4;
    font-size: 1.05rem;
    font-weight: 600;
    color: #eaf3ff;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .megamenu-mobile-drawer .drawer-back {
    color: #eaf3ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.01rem;
    margin-bottom: 6px;
  }
  .megamenu-mobile-drawer .drawer-list {
    list-style: none;
    margin: 0;
    padding: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .megamenu-mobile-drawer .drawer-list li {
    margin: 0;
    padding: 0 8px;
  }
  .megamenu-mobile-drawer .drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eaf3ff;
    color: #0a2ca4;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(30,64,175,0.07);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    position: relative;
    min-height: 38px;
  }
  .megamenu-mobile-drawer .drawer-link:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(30,64,175,0.13);
  }
  .megamenu-mobile-drawer .drawer-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #2563eb;
    background: #fff;
    border-radius: 4px;
    padding: 1px;
    margin-right: 2px;
    transition: fill 0.15s, background 0.15s;
  }
  .megamenu-mobile-drawer .drawer-link:hover svg {
    fill: #fff;
    background: #2563eb;
  }
  .megamenu-mobile-drawer .drawer-arrow {
    margin-left: auto;
    color: #2563eb;
    font-size: 1.08em;
    transition: color 0.15s;
  }
  .megamenu-mobile-drawer .drawer-link:hover .drawer-arrow {
    color: #fff;
  }
  .megamenu-mobile-drawer .drawer-link.drawer-link-main {
    background: #fff;
    color: #2563eb;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid #2563eb;
    min-height: 40px;
  }
}
@media (min-width: 992px) {
  .megamenu-mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
}
@media (max-width: 991px) {
  .hc-topbar, .hc-nav-right { display: none !important; }
  .hc-navbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(30,64,175,0.04);
  }
  .hc-burger {
    display: flex;
    margin: 0;
    order: 1;
  }
  .hc-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    order: 2;
  }
  .hc-logo img {
    height: 28px;
    max-width: 120px;
    margin: 0 auto;
    display: block;
  }
  .hc-user-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 3;
    flex: 0 0 auto;
    margin-left: 8px;
  }
  .hc-user-mobile a {
    color: #2563eb;
    font-size: 1.7em;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 50%;
    transition: background 0.15s;
  }
  .hc-user-mobile a:hover {
    background: #eaf3ff;
  }
  .hc-nav-main {
    display: none !important;
    flex-direction: column;
    background: #fff;
    width: 100vw;
    position: absolute;
    left: 0;
    top: 54px;
    z-index: 1500;
    box-shadow: 0 2px 8px rgba(30,64,175,0.04);
    padding: 0 0 18px 0;
  }
  body.nav-open .hc-nav-main {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .hc-user-mobile { display: none !important; }
  .hc-nav-main {
    display: flex !important;
    flex-direction: row;
    gap: 36px;
    align-items: center;
    background: transparent;
    position: static;
    width: auto;
    box-shadow: none;
    padding: 0;
  }
}
.megamenu-dark-offer {
  border: none !important;
  padding: 0;
}
.megamenu-dark-offer a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.15s;
  background: none;
  border-top: none;
}
.megamenu-dark-offer:first-child a {
  border-top: none !important;
}
.megamenu-dark-offer:last-child a {
  border-bottom: none !important;
}
.megamenu-dark-col:first-child .megamenu-dark-offer:first-child {
  margin-top: 0;
}
.megamenu-dark-col:last-child .megamenu-dark-offer:first-child {
  margin-top: 48px; /* Ajuste cette valeur pour un alignement parfait */
}