/* Menu global — chargé aussi sur les pages Astra / Directorist */
.icd-header .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

body:has(.icd-header) {
  padding-top: 4.75rem;
}

.icd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.icd-header .wrap {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.icd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
}

.icd-header .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  flex-shrink: 0;
}

.icd-header .brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: #c2410c;
  color: #0a192f;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.icd-nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.icd-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.icd-nav a:hover,
.icd-nav a[aria-current="page"] {
  color: #c2410c;
}

.icd-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.icd-switchers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icd-switchers-drawer {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.icd-switchers-bar {
  display: none;
}

.icd-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.icd-lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  min-height: 36px;
}

.icd-lang[aria-pressed="true"] {
  background: #c2410c;
  color: #ffffff;
}

.icd-currency {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1.6rem 0.35rem 0.55rem;
  min-height: 36px;
  cursor: pointer;
}

.icd-currency option {
  color: #0a192f;
}

.btn-deposer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #c2410c;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  min-height: 44px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-deposer:hover {
  background: #d35400;
  color: #ffffff;
  transform: scale(1.05);
}

.icd-account {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.icd-account:hover {
  color: #c2410c;
  border-color: #c2410c;
}

.icd-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icd-burger span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.icd-nav.is-open {
  display: flex;
  position: fixed;
  top: 4.75rem;
  left: 0;
  width: min(22rem, 100%);
  height: calc(100dvh - 4.75rem);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 1.1rem 1.25rem 2rem;
  background: rgba(10, 25, 47, 0.98);
  overflow-y: auto;
  z-index: 1001;
}

.icd-nav.is-open a {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.icd-nav.is-open .icd-switchers-drawer {
  display: flex;
}

body.icd-nav-open {
  overflow: hidden;
}

@media (min-width: 1100px) {
  .icd-nav {
    display: flex;
  }

  .icd-nav.is-open {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .icd-nav.is-open a,
  .icd-nav a {
    padding: 0;
    font-size: 1rem;
    border-bottom: 0;
  }

  .icd-switchers-drawer {
    display: none !important;
  }

  .icd-switchers-bar {
    display: flex;
  }

  .icd-burger {
    display: none;
  }
}

.icd-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.5rem 0 5.5rem;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.icd-footer .wrap {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.icd-footer .footer-grid {
  display: grid;
  gap: 1.5rem;
}

.icd-footer a {
  color: #ffffff;
}

.icd-footer h2 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #047857;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (min-width: 720px) {
  .icd-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}


/* Responsive adjustments to guarantee zero overlap across 1100px - 1440px */
.icd-header .wrap {
  width: min(100% - 1.5rem, 1280px);
  margin-inline: auto;
}

@media (min-width: 1100px) and (max-width: 1320px) {
  .icd-nav {
    gap: 0.75rem;
  }
  .icd-nav a {
    font-size: 0.88rem;
  }
  .icd-tools {
    gap: 0.5rem;
  }
  .icd-tools .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 1321px) {
  .icd-nav {
    gap: 1.1rem;
  }
  .icd-nav a {
    font-size: 0.95rem;
  }
}


.icd-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  flex-shrink: 0;
  margin-right: 2rem !important; /* Marge nette pour separer le logo des liens */
}

.icd-header .brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.icd-nav {
  gap: 1.25rem;
}
