.computec-search-toggle__label {
  line-height: 1.2;
}

.computec-search-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.computec-search-toggle__icon svg {
  width: 18px;
  height: 18px;
}

.computec-search-panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.computec-search-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 38, 0.4);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
}

.computec-search-panel__content {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.computec-search-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.computec-search-panel__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}

.computec-search-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bef-exposed-form .form--inline > .form-item {
  width: 100%;
  position: relative;
  border-radius: 30px;
  background: #f8fafc;
}

.computec-search-close:hover,
.computec-search-close:focus-visible {
  outline: none;
}

.computec-search-panel__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.computec-search-panel__form {
  position: relative;
}

.computec-search-panel__form form {
  width: 100%;
  position: relative;
}

.computec-search-panel__form .form-item,
.computec-search-panel__form .js-form-item,
.computec-search-panel__form .form-type-search,
.computec-search-panel__form .form-type-textfield {
  flex: 1;
  margin: 0;
}

.box {
  border-bottom: 1px solid #c7ccd3;
  padding: 1rem 2rem;
}

.box > a {
  transition: all 0.2s ease-in-out;
  color: #171a22;
}

.computec-search-panel__form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.computec-search-panel__form input[type="search"],
.computec-search-panel__form input[type="text"] {
  width: 100%;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  outline: none !important;
  padding: 0 2rem;
  -webkit-appearance: none;
  box-shadow: none;
  border: 0;
  border-radius: 38px;
  margin: 0;
  height: 56px;
}

.computec-search-panel__form input[type="search"]::placeholder,
.computec-search-panel__form input[type="text"]::placeholder {
  color: rgba(15, 23, 42, 0.5);
}

.computec-search-panel__form .form-actions {
  margin: 0;
  display: flex;
  align-items: center;
}

.computec-search-panel__form .form-actions input[type="submit"]:hover,
.computec-search-panel__form .form-actions button:hover {
  background: #1d4a9c;
  box-shadow: 0 14px 28px rgba(25, 52, 95, 0.35);
  transform: translateY(-1px);
}

.computec-search-panel__form .form-actions input[type="submit"]:focus-visible,
.computec-search-panel__form .form-actions button:focus-visible {
  outline: 2px solid rgba(29, 74, 156, 0.4);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
  z-index: -1;
}

@media (max-width: 768px) {
  .computec-search-panel {
    padding-top: 5rem;
  }

  .computec-search-panel__form form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .computec-search-panel__form .form-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .computec-search-panel__form .form-actions input[type="submit"],
  .computec-search-panel__form .form-actions button {
    width: auto;
    height: auto;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
  }
}

.computec-mobileMenu-panel {
    background: #f8fafc;
    height: 100vh;
    left: 0;
    overflow: auto;
    position: absolute;
    width: 100vw;
    z-index: 105;
}

.computec-mobileMenu-panel li.nav-item {
    align-items: center;
    border-bottom: 1px solid #eff0f4;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}

.toggle-mobile-btn {
    margin: 0;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.toggle-mobile-btn[aria-expanded="false"] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-mobile-btn[aria-expanded="true"] {
     height: 28px;
}


/* État actif (transformé en croix) */
.toggle-mobile-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.toggle-mobile-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.toggle-mobile-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

.toggle-mobile-btn span {
    width: 30px;
    height: 2px;
    background: #284798;
    display: block;
    transition: 0.3s ease;
}

@media (min-width: 1200px) {
  .topHeader .header-topbar {
    padding-left: 3rem;
    padding-right: 3rem;
    width: 100%;
  }

  .computec-search-toggle {
    align-items: center;
    /* background-image: linear-gradient(#3573c0, #3573c0) !important; */
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    color: #171a22;
    display: flex;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.196px;
    line-height: 1.286;
    padding-bottom: 3px;
    text-decoration: none;
    transition: background-size 0.5s;
    background: none;
    border: 0;
    margin: 0;
    outline: none;
    padding: 0;
  }

  .computec-search-toggle:hover,
  .computec-search-toggle:focus-visible {
    background-size: 100% 2px;
    outline: none;
  }
}
