/* card.css — Adenka vCard — Style Cartly dark */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0d0d0d;
  --dark:    #1a1a1a;
  --darker:  #111111;
  --teal:    #14b8a6;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,.55);
  --dim:     rgba(255,255,255,.25);
  --border:  rgba(255,255,255,.1);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0d0d0d;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

.vc-root { width: 100%; max-width: 400px; }

.vc-card {
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Hero ── */
.vc-hero {
  background: var(--darker);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Logo Adenka centré en haut */
.vc-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1.5rem;
}

.vc-brand-dot {
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 5px;
  flex-shrink: 0;
}

.vc-brand-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Photo carrée */
.vc-avatar {
  width: 110px; height: 110px;
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
}

.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.avatar-initials {
  width: 100%; height: 100%;
  background: #1e3a5f;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
  letter-spacing: .02em;
}

.vc-identity { text-align: center; }

.vc-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.vc-title {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.vc-dept {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

/* ── Rows ── */
.vc-body { padding: 0; }

.vc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--white);
  transition: background .12s;
}
.vc-row:last-child { border-bottom: none; }
.vc-row:hover { background: rgba(255,255,255,.04); }

.vc-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vc-icon-wrap i { font-size: 16px; color: var(--teal); }

.vc-row-content { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vc-row-label { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.vc-row-val   { font-size: 13.5px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Actions ── */
.vc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--darker);
}

.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 0;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  font-family: inherit; transition: opacity .15s;
  letter-spacing: .01em;
}
.btn:hover { opacity: .85; }
.btn i { font-size: 15px; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid var(--border); }

/* ── QR Code ── */
.vc-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--darker);
  gap: 12px;
}

.vc-qr-code {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}
.vc-qr-code svg {
  width: 140px; height: 140px;
  display: block;
}

.vc-qr-txt {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  line-height: 1.5;
}
.vc-qr-txt strong {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ── Footer ── */
.vc-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.2);
  margin-top: 12px;
  padding-bottom: 1rem;
}
.vc-footer a { color: var(--teal); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 420px) {
  body { padding: 0; align-items: stretch; }
  .vc-root { max-width: 100%; }
  .vc-card { border-radius: 0; border-left: none; border-right: none; }
}
