/* HIDS-GED V2 — coach, résumé, circuit, seuil, bannière UAT */

.hids-uat-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  min-height: var(--uat-banner-height);
  background: color-mix(in srgb, var(--warning) 18%, var(--bg-header));
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-sizing: border-box;
}

.hids-coach {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--fluo-mauve, #c084fc) 28%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 58%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 8px 28px rgba(12, 6, 28, 0.2);
}

.hids-coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hids-coach-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-fg);
  font-size: 14px;
}

.hids-coach-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.hids-coach-close:hover {
  color: var(--text-primary);
}

.hids-coach-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hids-coach-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hids-resume-30s {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--fluo-violet, #a855f7) 22%, var(--border));
  background: color-mix(in srgb, var(--bg-hover) 55%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hids-resume-30s-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hids-resume-30s-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.hids-resume-item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hids-resume-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.hids-resume-item-wide {
  grid-column: 1 / -1;
}

.hids-circuit-assistant {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: var(--bg-card);
}

.hids-circuit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hids-circuit-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hids-circuit-step {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.hids-circuit-step-current {
  background: rgba(30, 111, 191, 0.15);
  color: var(--accent-light);
  border-color: rgba(30, 111, 191, 0.35);
  font-weight: 600;
}

.hids-circuit-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.hids-seuil-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(210, 153, 34, 0.15);
  color: var(--warning);
  border: 1px solid rgba(210, 153, 34, 0.4);
}

.hids-reduce-motion-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.hids-three-canvas {
  display: none;
}

.hids-login-wrap,
.hids-layout {
  position: relative;
  z-index: 1;
}

.hids-org-three {
  position: relative;
  height: 220px;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(30,111,191,.12), transparent 70%);
}

canvas.hids-three-org {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

/* Hero photo hologram.cd (bg1–bg5), Ken Burns lent */
.hids-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hids-hero-slide {
  position: absolute;
  /* Déborde pour masquer les bords du filter blur */
  inset: -28px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  animation: hids-hero-ken 60s ease-in-out infinite;
  will-change: opacity, transform, filter;
}

/* Dark : flou permanent type « transition » — le texte / cartes ressortent mieux */
:root .hids-hero-slide,
[data-theme="dark"] .hids-hero-slide {
  filter: blur(14px) saturate(1.1) brightness(0.82);
}

.hids-hero-slide:nth-child(1) { animation-delay: 0s; }
.hids-hero-slide:nth-child(2) { animation-delay: 12s; }
.hids-hero-slide:nth-child(3) { animation-delay: 24s; }
.hids-hero-slide:nth-child(4) { animation-delay: 36s; }
.hids-hero-slide:nth-child(5) { animation-delay: 48s; }

.hids-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 6, 28, 0.42) 0%, rgba(8, 14, 36, 0.28) 42%, rgba(10, 4, 24, 0.48) 100%);
}

.hids-hero-overlay::after {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(168, 85, 247, 0.38), transparent 52%),
    radial-gradient(ellipse at 88% 92%, rgba(244, 114, 182, 0.32), transparent 48%),
    radial-gradient(ellipse at 70% 20%, rgba(232, 121, 249, 0.18), transparent 42%);
  animation: hids-aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hids-aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.08); opacity: 1; }
}

@keyframes hids-hero-ken {
  0% { opacity: 0; transform: scale(1.08); }
  3% { opacity: 1; }
  17% { opacity: 1; transform: scale(1.14); }
  20% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .hids-hero-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .hids-hero-slide:first-child { opacity: 1; }
}

html[data-reduce-motion="1"] .hids-hero-slide {
  animation: none;
  opacity: 0;
  transform: none;
}

html[data-reduce-motion="1"] .hids-hero-slide:first-child {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hids-hero-overlay::after { animation: none; }
}

html[data-reduce-motion="1"] .hids-hero-overlay::after {
  animation: none;
}

[data-theme="light"] .hids-hero-slide {
  filter: none;
  inset: 0;
  transform: scale(1);
}
[data-theme="light"] .hids-hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(246,248,250,0.48) 45%, rgba(255,255,255,0.7) 100%);
}
[data-theme="light"] .hids-hero-overlay::after {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(168, 85, 247, 0.12), transparent 52%),
    radial-gradient(ellipse at 88% 92%, rgba(244, 114, 182, 0.1), transparent 48%);
  opacity: 0.7;
}
[data-theme="light"] .hids-coach,
[data-theme="light"] .hids-resume-30s {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: #D0D7DE;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: #0D1117;
}

