/* ══════════════════════════════════════════════════════════════════════════════
 *  Feature flags — bannière "en travaux" + page placeholder
 *  Chargé par tous les modules via /js/feature-flags.js
 * ════════════════════════════════════════════════════════════════════════════ */

/* Bannière sticky en haut de page */
.hp-flag-banner {
  position: sticky;
  top: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-bottom: 1px solid;
  animation: hp-flag-slide-down .25s ease-out;
}

.hp-flag-banner.is-maintenance {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border-bottom-color: #f59e0b;
}

.hp-flag-banner.is-info {
  background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e3a8a;
  border-bottom-color: #3b82f6;
}

.hp-flag-banner__icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.hp-flag-banner__text {
  flex: 1;
  line-height: 1.4;
}

.hp-flag-banner__text strong {
  font-weight: 700;
  margin-right: 4px;
}

.hp-flag-banner__return {
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, .12);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.hp-flag-banner__close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: .6;
  font-size: 14px;
  line-height: 1;
  transition: opacity .15s ease;
}

.hp-flag-banner__close:hover { opacity: 1; }

@keyframes hp-flag-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Page placeholder pour utilisateurs hors bypass */
.hp-flag-placeholder {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3eaf4 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hp-flag-placeholder__card {
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(11, 33, 64, .12);
  border: 1px solid rgba(11, 33, 64, .08);
}

.hp-flag-placeholder__icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .3));
}

.hp-flag-placeholder__title {
  font-size: 22px;
  font-weight: 700;
  color: #0b2140;
  margin-bottom: 8px;
}

.hp-flag-placeholder__module {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
}

.hp-flag-placeholder__message {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hp-flag-placeholder__return {
  display: inline-block;
  background: #fef3c7;
  color: #78350f;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hp-flag-placeholder__back {
  display: inline-block;
  background: #f8fafc;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}

.hp-flag-placeholder__back:hover {
  background: #1a3a6b;
  transform: translateY(-1px);
}

.hp-flag-placeholder__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3eaf4;
  font-size: 11px;
  color: #94a3b8;
}
