/* Tap Card — shared styles for the public card and the editor preview.
   Committed dark identity with a pink→blue range. */
:root {
  --bg: #131312;
  --bg-2: #1b1b1a;
  --panel: #1f1f1e;
  --fg: #f3f2ef;
  --muted: #a6a39c;
  --line: rgba(255,255,255,0.13);
  --pink: #ff57a8;
  --pink-soft: #ff9ccf;
  --blue: #4f84ff;
  --blue-soft: #58c7ff;
  --violet: #b15cff;
  --grad: linear-gradient(135deg, #ff57a8 0%, #b15cff 50%, #4f84ff 100%);
  --shadow: 0 2px 6px rgba(0,0,0,.5), 0 24px 50px -20px rgba(0,0,0,.8);
  --font-display: "Times New Roman", Times, serif;
  --font-body: "Times New Roman", Times, serif;
  --font-mono: "Times New Roman", Times, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(90% 55% at 50% -5%, rgba(255,87,168,.30) 0%, transparent 55%),
    radial-gradient(95% 65% at 50% 103%, rgba(79,132,255,.24) 0%, transparent 55%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.015) 0 2px, transparent 2px 5px),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.tc-wrap { max-width: 460px; margin: 0 auto; }
.tc-sheet {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  min-height: 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 34px;
}

/* Cover + avatar */
.tc-cover { height: 190px; position: relative; background: linear-gradient(135deg, #2a1a30 0%, #161e2e 100%); display: grid; place-items: center; overflow: hidden; }
.tc-cover.tc-cover-bare { height: 95px; }
.tc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-cover-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 8vw, 40px); letter-spacing: .01em;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink) 32%, var(--violet) 60%, var(--blue) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; padding: 0 20px; text-shadow: 0 2px 24px rgba(177,92,255,.32); }
.tc-avatar-shell { display: flex; justify-content: center; margin-top: -76px; position: relative; z-index: 2; }
.tc-avatar-ring { border-radius: 50%; padding: 5px; background: var(--grad); box-shadow: 0 10px 26px -8px rgba(0,0,0,.7), 0 0 36px -6px rgba(177,92,255,.5); }
.tc-avatar { width: 140px; height: 140px; border-radius: 50%; background: #eef0f5; color: #3a3a46; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 50px; border: 5px solid var(--bg); }
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.tc-identity { text-align: center; padding: 16px 24px 6px; }
.tc-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 7vw, 32px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 4px; text-wrap: balance; word-break: break-word; }
.tc-role { font-size: 16px; color: var(--fg); font-weight: 600; margin: 0; }
.tc-role .co { color: var(--muted); font-weight: 400; }
.tc-tagline { font-size: 14px; color: var(--muted); margin: 10px auto 0; max-width: 36ch; }

/* Disc button grid — flex-centered so any count stays balanced */
.tc-grid { list-style: none; margin: 0 auto; padding: 22px 20px 6px; max-width: 370px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 12px; }
.tc-cell { width: 70px; display: flex; }
.tc-cell a, .tc-cell button { width: 100%; appearance: none; background: none; border: none; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; color: var(--fg); padding: 0; }
.tc-disc { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -3px rgba(0,0,0,.55); transition: transform .12s, box-shadow .12s; }
.tc-cell a:hover .tc-disc, .tc-cell button:hover .tc-disc { transform: translateY(-3px); box-shadow: 0 8px 20px -4px rgba(177,92,255,.55); }
.tc-disc svg { width: 28px; height: 28px; }
.tc-cap { font-size: 12.5px; color: var(--fg); text-align: center; }

/* Gold/grad CTAs */
.tc-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px 6px; }
.tc-cta { appearance: none; border: none; cursor: pointer; background: var(--grad); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; padding: 14px 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: filter .15s, transform .08s; box-shadow: 0 6px 18px -6px rgba(177,92,255,.6); }
.tc-cta:hover { filter: brightness(1.06); }
.tc-cta:active { transform: translateY(1px); }
.tc-cta svg { width: 18px; height: 18px; }
.tc-cta.share-ink { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, var(--grad) border-box; border: 2px solid transparent; color: #fff; box-shadow: none; }
.tc-cta.share-ink::after { content: ""; position: absolute; inset: 2px; border-radius: 10px; background: var(--grad); mix-blend-mode: multiply; pointer-events: none; }
.tc-cta.share-ink:hover { filter: brightness(1.12); }
@media (max-width: 360px) { .tc-ctas { grid-template-columns: 1fr; } }

/* QR */
.tc-qr-zone { margin: 18px 20px 4px; padding: 16px; display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s; }
.tc-qr-zone.flash { box-shadow: 0 0 0 3px var(--pink); }
.tc-qr-tile { flex: 0 0 auto; background: #fff; border-radius: 12px; padding: 9px; width: 108px; height: 108px; display: grid; place-items: center; }
.tc-qr-tile svg { width: 100%; height: 100%; display: block; }
.tc-qr-copy h2 { font-family: var(--font-display); font-size: 15px; margin: 0 0 4px; }
.tc-qr-copy p { margin: 0; font-size: 12.5px; color: var(--muted); }

.tc-section-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 30px 0 16px; }

/* About accordions */
.tc-about { border: 1px solid var(--line); border-radius: 14px; margin: 0 20px; overflow: hidden; }
.tc-about details { border-bottom: 1px solid var(--line); }
.tc-about details:last-child { border-bottom: none; }
.tc-about summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 4px 16px 16px; font-weight: 600; font-size: 15.5px; }
.tc-about summary::-webkit-details-marker { display: none; }
.tc-plus { width: 22px; height: 22px; flex: 0 0 auto; position: relative; }
.tc-plus::before, .tc-plus::after { content: ""; position: absolute; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.tc-plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.tc-plus::after { left: 10px; top: 2px; bottom: 2px; width: 2px; }
.tc-about details[open] .tc-plus::after { transform: rotate(90deg); opacity: 0; }
.tc-about-body { padding: 0 16px 18px 38px; color: var(--muted); font-size: 14px; white-space: pre-line; }

/* Résumé jobs */
.tc-resume { white-space: normal; }
.tc-job { padding: 13px 0; border-top: 1px dashed var(--line); }
.tc-job:first-child { border-top: none; padding-top: 2px; }
.tc-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tc-job-role { font-weight: 600; color: var(--fg); font-size: 14.5px; }
.tc-job-dates { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.tc-job-co { color: var(--pink-soft); font-size: 13px; margin-top: 2px; font-weight: 600; }
.tc-job-sum { color: var(--muted); font-size: 13px; margin-top: 6px; white-space: pre-line; }

/* Gallery */
.tc-gallery { padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-shot { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--panel); }
.tc-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact form */
.tc-contact { padding: 0 20px; }
.tc-contact input { width: 100%; font-family: var(--font-body); font-size: 15px; color: #1a1a1a; background: #fff; border: none; border-radius: 10px; padding: 13px 14px; margin-bottom: 10px; }
.tc-contact input::placeholder { color: #8a8a8a; }
.tc-contact .tc-cta { width: 100%; }
.tc-contact-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; min-height: 1.2em; }
.tc-contact-note a { color: var(--pink-soft); }

/* Add to phone */
.tc-addphone { text-align: center; padding: 0 20px; }
.tc-addphone p { color: var(--fg); font-size: 15px; margin: 0 0 14px; }
.tc-addphone .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-instru { margin: 14px 2px 0; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: left; }

/* Share */
.tc-share { padding: 0 20px; }
.tc-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tc-share-row a { width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--grad); display: grid; place-items: center; color: #fff; text-decoration: none; transition: filter .15s, transform .12s; box-shadow: 0 4px 12px -4px rgba(177,92,255,.5); }
.tc-share-row a:hover { filter: brightness(1.08); transform: translateY(-2px); }
.tc-share-row svg { width: 22px; height: 22px; }
.tc-share-note { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.tc-foot { text-align: center; font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; padding: 28px 20px; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
