/* ── valezconsulting — portail ──────────────────────────────────────── */

:root {
  --bg: #070a13;
  --text: #e9edf7;
  --muted: #8f9ab3;
  --faint: #7f8aa5;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --media: #f6b26b;
  --project: #5ed4f0;
  --admin: #a78bfa;
  --ok: #34d399;
  --down: #f87171;
  --unknown: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Aurora — deux nappes lentes derrière tout */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  pointer-events: none;
}
body::before {
  width: 60vw; height: 60vw;
  min-width: 480px; min-height: 480px;
  top: -22vw; left: -14vw;
  background: radial-gradient(circle at 30% 30%, #2743a6, #12205e 55%, transparent 72%);
  animation: drift-a 46s ease-in-out infinite alternate;
}
body::after {
  width: 52vw; height: 52vw;
  min-width: 420px; min-height: 420px;
  bottom: -20vw; right: -12vw;
  background: radial-gradient(circle at 60% 60%, #124d5e, #3b1a66 60%, transparent 75%);
  animation: drift-b 58s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vw, -6vh) scale(1.08); } }

/* ── Header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 28px 0;
}
.brand {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--media); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ── Layout ── */
.wrap {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  flex: 1;
}

/* ── Hero ── */
.hero {
  padding: 88px 0 62px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.badge {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.02;
  background: linear-gradient(135deg, #ffffff 25%, #aebbf0 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .thin { font-weight: 350; }
.lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-status {
  margin-top: 26px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ── Sections ── */
.zone { padding: 26px 0 8px; }
.zone-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.zone-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Grilles ── */
.grid { display: grid; gap: 14px; }
.grid-feature { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-admin { grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr)); }

/* ── Cartes ── */
.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease,
              background 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.1s; }
.grid .card:nth-child(3) { animation-delay: 0.15s; }
.grid .card:nth-child(4) { animation-delay: 0.2s; }
.grid .card:nth-child(5) { animation-delay: 0.25s; }
.grid .card:nth-child(6) { animation-delay: 0.3s; }
.grid .card:nth-child(7) { animation-delay: 0.35s; }
.grid .card:nth-child(8) { animation-delay: 0.4s; }
.grid .card:nth-child(9) { animation-delay: 0.45s; }
.grid .card:nth-child(10) { animation-delay: 0.5s; }

.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  background: var(--panel-hover);
}
.card:focus-visible { outline: 2px solid var(--project); outline-offset: 3px; }

.card.media:hover  { border-color: color-mix(in srgb, var(--media) 45%, transparent);  box-shadow: 0 12px 38px -14px color-mix(in srgb, var(--media) 38%, transparent); }
.card.project:hover{ border-color: color-mix(in srgb, var(--project) 45%, transparent); box-shadow: 0 12px 38px -14px color-mix(in srgb, var(--project) 38%, transparent); }
.card.admin:hover  { border-color: color-mix(in srgb, var(--admin) 45%, transparent);  box-shadow: 0 12px 38px -14px color-mix(in srgb, var(--admin) 38%, transparent); }

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.icon svg { width: 22px; height: 22px; }
.media .icon   { color: var(--media); }
.project .icon { color: var(--project); }
.admin .icon   { color: var(--admin); }

.body { min-width: 0; }
.name {
  display: block;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.desc {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  color: var(--muted);
}
.feature .desc { margin-top: 6px; }

.go {
  margin-left: auto;
  align-self: center;
  color: var(--faint);
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.card:hover .go { transform: translateX(4px); color: var(--text); }

/* ── Pastilles de statut ── */
.dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unknown);
  transition: background 0.3s ease;
}
.live-pill .dot { position: static; }
.dot.up   { background: var(--ok);   box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); animation: pulse 2.6s ease-out infinite; }
.dot.down { background: var(--down); box-shadow: 0 0 9px rgba(248, 113, 113, 0.6); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ── Footer ── */
.foot {
  max-width: 1100px;
  width: 100%;
  margin: 46px auto 0;
  padding: 22px 28px 30px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--faint);
}
.foot-sep { opacity: 0.5; }

/* Texte pour lecteurs d'écran uniquement (état des services) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Animations d'entrée ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .hero { padding: 62px 0 44px; }
  .top, .wrap, .foot { padding-left: 20px; padding-right: 20px; }
}
