/* GoServ header (.gsh) — chargé après ais-* pour gagner la cascade / CDN */

html body header.gsh,
html body .gsh {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(var(--gs-bg-rgb, 10 18 32) / 0.96) !important;
  border-bottom: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.1) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html body .gsh__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

html body .gsh__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gs-text, #0b1b33) !important;
  text-decoration: none !important;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body .gsh__brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

html body .gsh__nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .gsh__nav a {
  display: block;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  color: rgb(var(--gs-text-rgb, 11 27 51) / 0.78) !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

html body .gsh__nav a:hover {
  color: var(--gs-text, #0b1b33) !important;
  background: rgb(var(--gs-line-rgb, 11 27 51) / 0.05) !important;
}

/* Style capture préférée : fond brun-orange discret + fine bordure orange */
html body .gsh__nav a.is-active {
  color: #fff !important;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.16) !important;
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.45) !important;
  box-shadow: inset 0 -1px 0 rgb(var(--gs-accent-rgb, 47 124 255) / 0.85),
    none !important;
}

html body .gsh__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

html body .gsh__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 10px;
  background: var(--gs-accent, #1d6cf2) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

html body .gsh__cta:hover {
  color: #fff !important;
  background: var(--gs-accent-hover, #1559d1) !important;
}

html body .gsh .ais-lang-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.2);
  border-radius: 10px;
  background: var(--gs-surface, #ffffff) !important;
  color: var(--gs-text, #0b1b33) !important;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Menu (copie de goserv-ui.css, partagé avec le panel PHP) ---------- */
/* Menu du haut (bureau) : page active en blanc avec une lueur orange floue sous
   le mot (pas de trait net, pas de fond). Survol : le texte passe en blanc. */
@media (min-width: 861px) {
  html:root body .gsh__nav a,
  html:root body .gsh--app .gsh__nav a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.55rem 0.85rem !important;
    color: var(--gs-text-body, #3b4a63) !important;
    font-weight: 600;
    transition: color 0.2s ease !important;
  }

  html:root body .gsh__nav a::before {
    display: none !important;
  }

  /* Trait lumineux fin, collé sous le mot (même largeur que le texte) */
  html:root body .gsh__nav a::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gs-accent, #1d6cf2);
    box-shadow: 0 0 8px rgb(var(--gs-accent-rgb, 47 124 255) / 0.9), 0 0 2px rgb(var(--gs-accent-rgb, 47 124 255) / 0.9);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  html:root body .gsh__nav a:hover,
  html:root body .gsh--app .gsh__nav a:hover {
    color: var(--gs-text, #0b1b33) !important;
    background: transparent !important;
  }

  html:root body .gsh__nav a:hover::after {
    opacity: 0.4;
    transform: scaleX(0.7);
  }

  html:root body .gsh__nav a.is-active,
  html:root body .gsh--app .gsh__nav a.is-active {
    color: var(--gs-text, #0b1b33) !important;
    font-weight: 700;
    background: transparent !important;
    box-shadow: none !important;
  }

  html:root body .gsh__nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Bouton Commander : même typo que l'espace client (pas de majuscules forcées) */
html:root body .gsh__cta {
  font-family: "DM Sans", system-ui, sans-serif;
  text-transform: none;
}

/* Langue : nom complet (Français) au lieu du code */
html body .ais-lang-select__code {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ---------- Menu compte (copie de goserv-ui.css, partagé avec le panel PHP) ---------- */
/* ---------- Menu compte (connecté) : bouton orange, menu au survol ---------- */

.gsh-acc {
  position: relative;
}

html:root body .gsh__cta.gsh-acc__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gsh-acc__chev {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.gsh-acc.is-open .gsh-acc__chev {
  transform: rotate(180deg);
}

/* Le menu est toujours dans la page: il apparaît en fondu, sans à-coup */
.gsh-acc__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1200;
  min-width: 100%;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.gsh-acc.is-open .gsh-acc__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Panneau compact en verre, petite flèche vers le bouton */
.gsh-acc__panel {
  position: relative;
  width: 250px;
  padding: 0.35rem;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.16);
  border-radius: 14px;
  background: rgb(var(--gs-surface-rgb, 17 28 48) / 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.gsh-acc__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.16);
  border-left: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.16);
  background: rgb(var(--gs-surface-rgb, 17 28 48) / 0.98);
  transform: rotate(45deg);
}

html:root body .gsh-acc__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  color: var(--gs-text, #0b1b33) !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

html:root body .gsh-acc__item:hover,
html:root body .gsh-acc__item:focus-visible {
  background: rgb(var(--gs-line-rgb, 11 27 51) / 0.05);
  outline: none;
}

.gsh-acc__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.14);
  color: var(--gs-accent, #1d6cf2);
  font-size: 0.85rem;
}

.gsh-acc__txt {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.gsh-acc__txt strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.gsh-acc__txt small {
  color: var(--gs-text-muted, #6b7a94);
  font-size: 0.74rem;
}

.gsh-acc__go {
  color: #6f7a90;
  font-size: 0.7rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

html:root body .gsh-acc__item:hover .gsh-acc__go {
  color: var(--gs-accent, #1d6cf2);
  transform: translateX(2px);
}

html:root body .ais-lang-select__code {
  letter-spacing: 0;
  text-transform: none;
}

/* Panel PHP (sans JS) : ouverture au survol ou au clavier */
.gsh-acc:hover .gsh-acc__menu,
.gsh-acc:focus-within .gsh-acc__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gsh-acc:hover .gsh-acc__chev,
.gsh-acc:focus-within .gsh-acc__chev {
  transform: rotate(180deg);
}

/* Menu des langues: bleu nuit (plus de noir de l'ancienne feuille) */
html body .ais-lang-select__trigger {
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.2) !important;
  background: rgb(var(--gs-surface-rgb, 17 28 48) / 0.85) !important;
  color: var(--gs-text, #0b1b33) !important;
}

html body .ais-lang-select__trigger:hover {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.5) !important;
}

html body .ais-lang-select__menu {
  padding: 0.35rem !important;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.18) !important;
  border-radius: 14px !important;
  background: var(--gs-surface, #ffffff) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5) !important;
}

html body .ais-lang-select__option {
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--gs-text, #0b1b33) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-weight: 600 !important;
}

html body .ais-lang-select__option:hover,
html body .ais-lang-select__option:focus-visible {
  background: rgb(var(--gs-line-rgb, 11 27 51) / 0.06) !important;
  color: var(--gs-text, #0b1b33) !important;
}

html body .ais-lang-select__option.is-active {
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.14) !important;
  color: var(--gs-accent-pale, #6f9bea) !important;
}

html body .ais-lang-select__option .bi-check2 {
  color: var(--gs-accent, #1d6cf2) !important;
}
