/* =============================================================================
   Intégration du nouveau design sur le site réel (bascule de novembre 2026)
   ============================================================================= */

/* Retour en haut de page : un bouton clair, au trait, comme les boutons secondaires du site.
   Sur ordinateur il laisse la place au menu flottant ; il ne se montre qu'assez bas dans la page. */
.retour-haut {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 14px; cursor: pointer;
  background: #fff; color: var(--gray-900);
  box-shadow: 0 0 0 1px var(--gray-100), 0 18px 34px -20px rgba(24, 24, 146, .45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .25s ease, color .25s ease;
}
.retour-haut svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.retour-haut.is-on { opacity: 1; visibility: visible; transform: none; }
.retour-haut:hover { color: var(--blue-500); box-shadow: 0 0 0 1px var(--blue-500), 0 18px 34px -20px rgba(24, 24, 146, .45); }
@media (max-width: 800px) { .retour-haut { right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 13px; } }

/* Menus déroulants : un menu fermé ne capte plus la souris.
   Sans cela, l'aperçu affiché à droite du menu « La solution » (visible même
   quand le menu est transparent) ouvrait le menu au simple passage de la souris. */
.nav-menu { pointer-events: none; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { pointer-events: auto; }

/* Badge IA du copilote RH */
.ia-badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  margin-left: 8px; padding: 3px 8px 3px 6px; border-radius: 99px;
  background: linear-gradient(135deg, #7B5CF5, #2F6BFF); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
}
.ia-badge svg { width: 12px; height: 12px; fill: currentColor; }
.ia-badge--lg { margin: 0 0 14px; padding: 6px 12px 6px 9px; font-size: 13px; }
.ia-badge--lg svg { width: 15px; height: 15px; }
.ia-badge .ia-tag { margin-left: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .24); font-weight: 700; }
.nav-feat[href="/fonction/ia"]::after {
  content: "IA"; margin-left: 6px; padding: 2px 7px; border-radius: 99px;
  background: linear-gradient(135deg, #7B5CF5, #2F6BFF); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}

/* Logos clients en couleur (décision du 23 novembre 2026) */
.logos-list img { filter: none !important; opacity: 1 !important; }

/* Bandeau cookies au-dessus de tout */
#silktide-wrapper, #stcm-wrapper { z-index: 2147483000; }
