/*
  Phuc Labs — bandeau de consentement analytics (Phase 1.5B-B1).
  Chargé sur toutes les routes servies (générées + copiées V1). Ne porte
  aucune logique propre à une route : mêmes règles partout.
*/
#phuc-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding: 18px 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#phuc-consent-banner .phuc-consent-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#phuc-consent-banner .phuc-consent-text {
  margin: 0;
  color: #e7ecf6;
  font-size: 14px;
  line-height: 1.6;
  flex: 1 1 420px;
  min-width: 0;
}

#phuc-consent-banner .phuc-consent-text a {
  color: #37b6d9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#phuc-consent-banner .phuc-consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

#phuc-consent-banner .phuc-consent-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 112px;
  min-height: 40px;
}

#phuc-consent-banner .phuc-consent-accept,
#phuc-consent-banner .phuc-consent-refuse {
  background: rgba(255, 255, 255, 0.08);
  color: #e7ecf6;
  border-color: rgba(255, 255, 255, 0.28);
}

#phuc-consent-banner .phuc-consent-accept:hover,
#phuc-consent-banner .phuc-consent-refuse:hover {
  background: rgba(255, 255, 255, 0.16);
}

#phuc-consent-banner .phuc-consent-btn:focus-visible {
  outline: 2px solid #37b6d9;
  outline-offset: 2px;
}

#phuc-consent-banner:focus {
  outline: 2px solid #37b6d9;
  outline-offset: -4px;
}

.phuc-consent-manage-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482999;
  background: rgba(11, 18, 32, 0.92);
  color: #9aa8c2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.phuc-consent-manage-btn:hover {
  color: #e7ecf6;
  border-color: rgba(255, 255, 255, 0.3);
}

.phuc-consent-manage-btn:focus-visible {
  outline: 2px solid #37b6d9;
  outline-offset: 2px;
}

.phuc-consent-manage-btn[hidden] {
  display: none;
}

@media (max-width: 640px) {
  #phuc-consent-banner {
    padding: 16px;
  }
  #phuc-consent-banner .phuc-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  #phuc-consent-banner .phuc-consent-text {
    /* flex-basis: 420px devient une hauteur en layout colonne mobile ;
       sans ce reset le bandeau BG occupe plus de la moitié d'un écran
       390×844 (constaté en revue Phase 1.5B-B1, correctif). */
    flex-basis: auto;
  }
  #phuc-consent-banner .phuc-consent-actions {
    justify-content: stretch;
  }
  #phuc-consent-banner .phuc-consent-btn {
    flex: 1 1 0;
  }
  .phuc-consent-manage-btn {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
  }
}
