.smart-menu-trigger,
.smart-menu-mobile-entry,
.smart-menu button,
.smart-menu a {
  font-family: var(--font-display, "Rajdhani", "Inter", system-ui, sans-serif);
}

.smart-menu-trigger {
  appearance: none;
  border: 1px solid rgba(0, 229, 255, .34);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .14), rgba(255, 43, 214, .08)),
    rgba(8, 12, 22, .82);
  color: #f4f9ff;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 44px;
  width: 48px;
  min-width: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(0, 229, 255, .08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  white-space: nowrap;
}

.smart-menu-trigger__label,
.smart-menu-trigger__kbd {
  display: none;
}

.smart-menu-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, .7);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(255, 43, 214, .13)),
    rgba(8, 12, 22, .95);
}

.smart-menu-trigger__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #00e5ff;
}

.smart-menu-trigger__kbd {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .72rem;
  color: #aab8cb;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  padding: 2px 6px;
}

.smart-menu-mobile-entry {
  width: calc(100% - 24px);
  margin: 10px 12px 14px;
  border: 1px solid rgba(0, 229, 255, .38);
  background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(147, 51, 234, .14));
  color: #fff;
  min-height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 229, 255, .1);
}

.smart-menu-mobile-entry small {
  display: block;
  color: #a9b9cc;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-weight: 600;
  margin-top: 2px;
}

.smart-menu {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  color: #e8edf5;
}

.smart-menu.is-open {
  display: block;
}

.smart-menu__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(0, 229, 255, .18), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(255, 43, 214, .13), transparent 30%),
    rgba(4, 7, 13, .82);
  backdrop-filter: blur(14px);
}

.smart-menu__dialog {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(790px, calc(100vh - 40px));
  margin: 20px auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 18, 30, .98), rgba(8, 12, 22, .98));
  box-shadow: 0 40px 130px rgba(0, 0, 0, .5);
}

.smart-menu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.smart-menu__eyebrow {
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .8rem;
  margin-bottom: 5px;
}

.smart-menu__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
}

.smart-menu__sub {
  margin: 8px 0 0;
  color: #aebbd0;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: .96rem;
}

.smart-menu__close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.25rem;
}

.smart-menu__search {
  padding: 18px 26px 14px;
  display: grid;
  gap: 14px;
}

.smart-menu__searchbox {
  position: relative;
}

.smart-menu__searchbox svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #00e5ff;
  pointer-events: none;
}

.smart-menu__input {
  width: 100%;
  height: 64px;
  padding: 0 18px 0 54px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, .35);
  background: rgba(5, 10, 19, .9);
  color: #fff;
  font: 700 1.08rem var(--font-sans, "Inter", system-ui, sans-serif);
  outline: none;
}

.smart-menu__input::placeholder {
  color: #7f8ea4;
}

.smart-menu__input:focus {
  border-color: rgba(0, 229, 255, .8);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .12);
}

.smart-menu__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.smart-menu__chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .045);
  color: #dce7f7;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.smart-menu__chip.is-active {
  color: #061018;
  background: linear-gradient(135deg, #00e5ff, #7dd3fc);
  border-color: transparent;
}

.smart-menu__body {
  min-height: 0;
  overflow: auto;
  padding: 0 26px 26px;
}

.smart-menu__layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr);
  gap: 18px;
}

.smart-menu__panel {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  padding: 18px;
}

.smart-menu__panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.25rem;
}

.smart-menu__quick {
  display: grid;
  gap: 10px;
}

.smart-menu__quick a {
  display: block;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(135deg, rgba(0, 229, 255, .1), rgba(255, 255, 255, .035));
  border-radius: 16px;
  padding: 14px;
  color: #f8fbff;
  text-decoration: none;
  font-weight: 900;
}

.smart-menu__quick small {
  display: block;
  color: #a8b7ca;
  margin-top: 3px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-weight: 600;
}

.smart-menu__meta {
  color: #8fa0b8;
  font-size: .9rem;
  margin: 0 0 12px;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.smart-menu__results {
  display: grid;
  gap: 10px;
}

.smart-menu-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  color: #eef6ff;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.smart-menu-result:hover,
.smart-menu-result.is-selected {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, .52);
  background: rgba(0, 229, 255, .09);
}

.smart-menu-result__title {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  color: #fff;
}

.smart-menu-result__desc {
  display: block;
  margin-top: 4px;
  color: #aebbd0;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: .9rem;
  line-height: 1.35;
}

.smart-menu-result__section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 104px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 229, 255, .12);
  color: #8ff3ff;
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}

.smart-menu__empty {
  border: 1px dashed rgba(148, 163, 184, .28);
  border-radius: 18px;
  padding: 24px;
  color: #b9c7da;
  text-align: center;
}

body.smart-menu-lock {
  overflow: hidden;
}

@media (max-width: 1280px) {
  .smart-menu-trigger__label,
  .smart-menu-trigger__kbd {
    display: none;
  }
}

/* Header polish: the site now has a lot of pages, so the top bar must stay calm. */
@media (min-width: 961px) {
  .site-header .nav {
    gap: clamp(18px, 2.2vw, 40px);
  }

  .site-header .nav-links {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(22px, 2vw, 34px);
    min-width: 0;
  }

  .site-header .nav-links > li:nth-child(1),
  .site-header .nav-links > li:nth-child(2),
  .site-header .nav-links > li:nth-child(5),
  .site-header .nav-links > li.nav-mobile-cta {
    display: none !important;
  }

  .site-header .nav-links > li:nth-child(6) {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .site-header .nav-links > li:nth-child(6) > .mega-trigger {
    display: inline-flex !important;
    align-items: center;
  }

  .site-header .nav-links a,
  .site-header .mega-trigger {
    white-space: nowrap;
    font-size: clamp(.92rem, .88vw, 1.02rem);
  }

  .site-header .nav-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
  }

  .smart-menu-trigger--desktop { border-radius: 16px; }

  .site-header .nav-phone {
    min-width: 158px;
    white-space: nowrap;
    justify-content: center;
  }

  .site-header .nav-phone span {
    white-space: nowrap;
    line-height: 1;
  }

  .site-header .nav-devis {
    min-width: 168px;
    white-space: nowrap;
  }
}

.announce-bar .announce-bar-link {
  width: min(100%, var(--container, 1440px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  min-width: 0;
}

.announce-bar .announce-bar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.announce-bar .announce-bar-text strong,
.announce-bar .announce-bar-text span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce-bar .announce-bar-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .announce-bar {
    height: var(--announce-h, 48px) !important;
    min-height: 0 !important;
  }

  .announce-bar .announce-bar-link {
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
  }

  .announce-bar .announce-bar-text {
    justify-content: flex-start;
  }

  .announce-bar .announce-bar-text span {
    display: none;
  }

  .announce-bar .announce-bar-text strong {
    font-size: .86rem;
  }

  .announce-bar .announce-bar-cta {
    padding: 6px 10px;
    font-size: .78rem;
  }
}

@media (min-width: 961px) and (max-width: 1220px) {
  .site-header .nav-links > li:nth-child(7) {
    display: none !important;
  }
}

@media (min-width: 961px) and (max-width: 1080px) {
  .site-header .nav-links > li:nth-child(8) {
    display: none !important;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .site-header .nav-phone span {
    display: none;
  }

  .site-header .nav-phone {
    min-width: 46px;
    width: 46px;
    padding-inline: 0;
  }
}

@media (max-width: 1060px) {
  .smart-menu-trigger--desktop {
    width: 46px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .smart-menu-trigger__label,
  .smart-menu-trigger__kbd {
    display: none;
  }
}

@media (max-width: 860px) {
  .smart-menu__dialog {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .smart-menu__head {
    padding: 20px 18px 15px;
  }

  .smart-menu__search {
    padding: 14px 18px;
  }

  .smart-menu__body {
    padding: 0 18px 18px;
  }

  .smart-menu__layout {
    grid-template-columns: 1fr;
  }

  .smart-menu__panel--quick {
    order: 2;
  }

  .smart-menu-result {
    grid-template-columns: 1fr;
  }

  .smart-menu-result__section {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .smart-menu-trigger--desktop {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .smart-menu__title {
    font-size: 1.8rem;
  }

  .smart-menu__sub {
    font-size: .9rem;
  }

  .smart-menu__close {
    min-width: 42px;
    height: 42px;
  }

  .smart-menu__input {
    height: 58px;
    font-size: 1rem;
  }

  .smart-menu__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .smart-menu__chip {
    flex: 0 0 auto;
  }
}
