/* TYRIA — Chrome partagé (footer, recherche, mobile) */
@import url('./theme.css?v=20260613');

.tyria-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: 16px 24px 18px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210, 225, 245, 0.35);
  font-family: 'Rajdhani', sans-serif;
}

.tyria-footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0.55;
}

.tyria-footer-ornament::before,
.tyria-footer-ornament::after {
  content: '';
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.45), transparent);
}

.tyria-footer-ornament svg {
  width: 14px;
  height: 14px;
  stroke: rgba(201, 169, 110, 0.7);
  fill: none;
}

.tyria-footer-motto {
  font-size: 8px;
  letter-spacing: 0.35em;
  color: rgba(201, 169, 110, 0.4);
  margin-bottom: 6px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  text-transform: none;
}

.tyria-footer-line { line-height: 1.6; }
.tyria-footer-module { color: rgba(201, 169, 110, 0.55); }

/* Recherche globale Cmd+K */
.tyria-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(5, 8, 14, 0.82);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}

.tyria-search-overlay.open { display: flex; }

.tyria-search-panel {
  width: 100%;
  max-width: 560px;
  background: #0f141c;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.tyria-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tyria-search-header input {
  flex: 1;
  background: var(--tyria-surface-deep, rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: #e8edf5;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
}

.tyria-search-header input:focus {
  outline: none;
  border-color: rgba(201, 169, 110, 0.5);
}

.tyria-search-kbd {
  font-size: 10px;
  color: rgba(210, 225, 245, 0.4);
  letter-spacing: 0.08em;
}

.tyria-search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
}

.tyria-search-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
  font-family: 'Rajdhani', sans-serif;
}

.tyria-search-item:hover,
.tyria-search-item:focus {
  background: rgba(201, 169, 110, 0.08);
  border-color: rgba(201, 169, 110, 0.2);
}

.tyria-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf5;
}

.tyria-search-item-sub {
  font-size: 11px;
  color: rgba(210, 225, 245, 0.5);
  margin-top: 2px;
}

.tyria-search-type {
  display: inline-block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 169, 110, 0.75);
  margin-bottom: 4px;
}

.tyria-search-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(210, 225, 245, 0.45);
}

.tyria-icon-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

/* Mobile */
@media (max-width: 900px) {
  .tyria-hide-mobile { display: none !important; }
  .hero-kpis,
  .kpi-management-grid,
  .kpi-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .navbar-module-title-text {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }
  .tab-navigation { overflow-x: auto; flex-wrap: nowrap; }
  .tab-button { white-space: nowrap; font-size: 10px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .alert-card-header { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .hero-kpis,
  .kpi-row {
    grid-template-columns: 1fr !important;
  }
}

/* Documents RH — utilisateur connecté (barre haute) */
.tyria-doc-rh-user-info,
.topbar-right .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-user-text,
.tyria-doc-rh-user-info .topbar-user-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, rgba(210, 225, 245, 0.75));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(320px, 42vw);
}

html[data-theme="light"] .topbar-user-text {
  color: rgba(35, 32, 28, 0.72);
}

.topbar-module .badge-role,
.badge-role#roleDisplay {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  color: var(--accent-gold, #c9a96e);
  background: rgba(201, 169, 110, 0.08);
  margin-left: auto;
  flex-shrink: 0;
}
