:root {
  --bg: #0A0C0F;
  --bg-2: #0E1116;

  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #EDEFF2;
  --text-muted: #9BA3AE;
  --text-dim: #838A94;

  --ok: #47D19A;
  --ok-soft: rgba(71, 209, 154, 0.14);
  --ok-text: #85E9BE;

  --hold: #E6B15A;
  --hold-soft: rgba(230, 177, 90, 0.13);
  --hold-text: #F0CB8C;

  --radius: 20px;
  --radius-sm: 12px;
  --ff: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 28px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* Fond premium — sobre, structurel, non gadget */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(71, 209, 154, 0.10), transparent 55%),
    radial-gradient(90% 70% at 85% 110%, rgba(90, 120, 160, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top) + var(--gutter))
    var(--gutter)
    calc(env(safe-area-inset-bottom) + var(--gutter));
}

.panel {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 6vw, 34px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---- Marque ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand__id { display: flex; flex-direction: column; gap: 2px; }

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand__sub {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ---- Hero statut ---- */
.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 0 6px;
}

.hero__pulse {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
.hero__pulse i {
  position: absolute;
  border-radius: 50%;
}
.hero__pulse i:first-child {
  width: 10px;
  height: 10px;
  background: var(--ok);
  box-shadow: 0 0 14px 2px rgba(71, 209, 154, 0.6);
}
.hero__pulse i:last-child {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ok);
  opacity: 0.6;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero__label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__value {
  margin: 2px 0 0;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.tagline {
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- États ---- */
.states { margin-top: 22px; }
.states__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.row + .row { margin-top: 6px; }

.row__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.row__dot--ok {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(71, 209, 154, 0.55);
}
.row__dot--hold {
  background: var(--hold);
  box-shadow: 0 0 8px rgba(230, 177, 90, 0.5);
}

.row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.row--protected {
  background: var(--hold-soft);
  border-color: rgba(230, 177, 90, 0.26);
}

.chip {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--ok {
  color: var(--ok-text);
  background: var(--ok-soft);
  border: 1px solid rgba(71, 209, 154, 0.28);
}
.chip--hold {
  color: var(--hold-text);
  background: rgba(230, 177, 90, 0.18);
  border: 1px solid rgba(230, 177, 90, 0.34);
}

/* ---- Bandeau périmètre ---- */
.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.015);
  font-size: 13px;
  color: var(--text-muted);
}
.notice__ico {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hold);
  box-shadow: 0 0 7px rgba(230, 177, 90, 0.5);
}

/* ---- Méta build ---- */
.meta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.meta__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.meta__item dt {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.meta__item dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.meta__next {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 -8px;
  min-height: 44px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.meta__next strong { color: var(--text); font-weight: 600; }
.meta__next-text { flex: 1 1 auto; min-width: 0; }
.meta__next-arrow { flex: none; color: var(--text-dim); font-size: 14px; }
.meta__next:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.meta__next:hover .meta__next-arrow { color: var(--text); }
.meta__next-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ---- Responsive ---- */
@media (min-width: 560px) {
  .panel { padding: 40px; }
  .hero { padding-top: 30px; }
}

/* Mobile : méta en colonne unique — la date de build tient sur une ligne */
@media (max-width: 440px) {
  .meta__grid { grid-template-columns: 1fr; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pulse i:last-child { animation: none; opacity: 0.4; }
}
