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

:root {
  --bg:             #0f172a;
  --surface:        #1e293b;
  --border:         #334155;
  --text:           #e2e8f0;
  --muted:          #94a3b8;

  --m1:             #6366f1; --m1-glow:        rgba(99,  102, 241, 0.22);
  --m2:             #10b981; --m2-glow:        rgba(16,  185, 129, 0.22);
  --perso:          #f59e0b; --perso-glow:     rgba(245, 158, 11,  0.22);
  --important:      #ef4444; --important-glow: rgba(239, 68,  68,  0.22);
}

/* ── BODY ── */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,0.12), transparent);
}

/* ── HEADER ── */
header { text-align: center; }

header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── LAYOUT 2 COLONNES ── */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── SECTION TITLE ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title .line {
  flex: 1;
  height: 1px;
  opacity: 0.25;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card .icon { font-size: 1.3rem; flex-shrink: 0; }

.card .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card .label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .url {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barre colorée à gauche */
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  opacity: 0.6;
  transition: opacity 0.2s, top 0.2s, bottom 0.2s;
}

.card:hover { transform: translateY(-2px); }
.card:hover::after { top: 8%; bottom: 8%; opacity: 1; }

/* ── STATUTS DE CARTE ── */
.card.status--info {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.06);
}
.card.status--info::after { background: #38bdf8; opacity: 1; top: 0; bottom: 0; }

.card.status--warning {
  background: rgba(251, 146, 60, 0.13);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: inset 0 0 18px rgba(251, 146, 60, 0.06);
}
.card.status--warning::after { background: #fb923c; opacity: 1; top: 0; bottom: 0; }

.card.status--success {
  background: rgba(74, 222, 128, 0.13);
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: inset 0 0 18px rgba(74, 222, 128, 0.06);
}
.card.status--success::after { background: #4ade80; opacity: 1; top: 0; bottom: 0; }

.card.status--danger {
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: inset 0 0 18px rgba(248, 113, 113, 0.06);
}
.card.status--danger::after { background: #f87171; opacity: 1; top: 0; bottom: 0; }

.card.status--muted {
  background: rgba(148, 163, 184, 0.05);
  border-color: rgba(148, 163, 184, 0.2);
}
.card.status--muted::after { background: #94a3b8; }

/* ── LÉGENDE GLOBALE ── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  cursor: default;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge--info    { color: #38bdf8; background: rgba(56,  189, 248, 0.10); border-color: rgba(56,  189, 248, 0.35); }
.badge--info::before    { background: #38bdf8; }

.badge--warning { color: #fb923c; background: rgba(251, 146, 60,  0.10); border-color: rgba(251, 146, 60,  0.35); }
.badge--warning::before { background: #fb923c; }

.badge--success { color: #4ade80; background: rgba(74,  222, 128, 0.10); border-color: rgba(74,  222, 128, 0.35); }
.badge--success::before { background: #4ade80; }

.badge--danger  { color: #f87171; background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.35); }
.badge--danger::before  { background: #f87171; }

.badge--muted   { color: #94a3b8; background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.28); }
.badge--muted::before   { background: #94a3b8; }

/* ── COULEURS PAR CATÉGORIE ── */
.important .section-title { color: var(--important); }
.important .dot, .important .line { background: var(--important); }
.important .card::after { background: var(--important); }
.important .card:hover { border-color: var(--important); box-shadow: 0 6px 24px var(--important-glow); }

.perso .section-title { color: var(--perso); }
.perso .dot, .perso .line { background: var(--perso); }
.perso .card::after { background: var(--perso); }
.perso .card:hover { border-color: var(--perso); box-shadow: 0 6px 24px var(--perso-glow); }

.m1 .section-title { color: var(--m1); }
.m1 .dot, .m1 .line { background: var(--m1); }
.m1 .card::after { background: var(--m1); }
.m1 .card:hover { border-color: var(--m1); box-shadow: 0 6px 24px var(--m1-glow); }

.m2 .section-title { color: var(--m2); }
.m2 .dot, .m2 .line { background: var(--m2); }
.m2 .card::after { background: var(--m2); }
.m2 .card:hover { border-color: var(--m2); box-shadow: 0 6px 24px var(--m2-glow); }

/* ── FOOTER ── */
footer {
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}
