/* CARDZ — styles globaux (aucun build requis) */

:root {
  --bg: #020617;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --indigo: #6366f1;
  --pink: #ec4899;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection { background: rgba(99, 102, 241, 0.35); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
fieldset { border: none; }
legend { padding: 0 0.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.925rem;
  padding: 0.7rem 1.4rem; transition: opacity .15s ease, background .15s ease,
    border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .92; }
.btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; margin-top: 1.4rem; padding: 1rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(90deg, var(--indigo), var(--pink));
  color: #fff; box-shadow: 0 10px 30px -12px rgba(99, 102, 241, .55);
}
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: #e2e8f0; opacity: 1; }
.btn-outline { border: 1px solid rgba(255,255,255,.18); color: #e2e8f0; }
.btn-outline:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.05); opacity: 1; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; opacity: 1; }
.btn-dashed {
  border: 1px dashed rgba(255,255,255,.22); border-radius: .8rem; color: #cbd5e1;
  font-weight: 500; font-size: .875rem; padding: .6rem 1.1rem;
}
.btn-dashed:hover { border-color: rgba(255,255,255,.45); color: #fff; }

.icon-xs { width: .8rem; height: .8rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Header / footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(2, 6, 23, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: .65rem; font-size: .8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--pink)); color: #fff;
}
.header-nav { display: flex; align-items: center; gap: .6rem; }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; text-align: center; }
.blob { position: absolute; border-radius: 999px; filter: blur(72px); pointer-events: none; }
.blob-a { top: -8rem; left: 50%; transform: translateX(-50%); width: 42rem; height: 24rem; background: rgba(99,102,241,.22); }
.blob-b { top: 10rem; right: -6rem; width: 18rem; height: 18rem; background: rgba(236,72,153,.12); }
.hero-inner { position: relative; padding: 5.5rem 1rem 6rem; }
.badge {
  display: inline-block; padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .78rem; letter-spacing: .02em; color: #cbd5e1;
}
.hero-title {
  margin: 1.6rem auto 0; max-width: 46rem;
  font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
}
.hero-sub { margin: 1.4rem auto 0; max-width: 36rem; color: var(--muted); font-size: 1.06rem; }
.cta-row { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.points {
  margin-top: 2.6rem; list-style: none; display: flex; flex-wrap: wrap;
  justify-content: center; gap: .8rem 2.2rem; color: var(--muted); font-size: .9rem;
}
.points li { display: inline-flex; align-items: center; gap: .5rem; }
.points svg { width: 1rem; height: 1rem; color: #34d399; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-tinted { border-top: 1px solid rgba(255,255,255,.04); }
.section-last { padding-top: 3rem; padding-bottom: 6rem; }
.section-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }

.grid-3 { margin-top: 3rem; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 1.1rem; padding: 1.6rem; transition: border-color .15s ease;
}
.feature-card:hover { border-color: rgba(255,255,255,.22); }
.feature-icon {
  display: inline-flex; width: 2.8rem; height: 2.8rem; border-radius: .85rem;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(236,72,153,.2)); color: #a5b4fc;
}
.feature-icon svg { width: 1.3rem; height: 1.3rem; }
.feature-card h3 { margin-top: 1rem; font-size: 1.03rem; font-weight: 600; }
.feature-card p { margin-top: .45rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.steps { margin-top: 3rem; display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; text-align: center; }
.step-num {
  display: inline-flex; width: 3.4rem; height: 3.4rem; border-radius: 999px;
  align-items: center; justify-content: center; font-weight: 800;
  border: 1px solid rgba(129,140,248,.35); background: rgba(99,102,241,.1); color: #a5b4fc;
}
.steps h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.steps p { margin-top: .4rem; color: var(--muted); font-size: .88rem; }

.cta-banner {
  border: 1px solid var(--border); border-radius: 1.6rem; text-align: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(99,102,241,.16), transparent),
    radial-gradient(60% 120% at 80% 100%, rgba(236,72,153,.13), transparent),
    var(--surface);
}
.cta-banner h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.cta-banner p { margin-top: .5rem; color: var(--muted); font-size: .92rem; }
.cta-banner .btn { margin-top: 1.6rem; }
.cta-banner svg { width: 1rem; height: 1rem; }

/* ---------- Formulaire ---------- */

.form-page { padding: 3.4rem 1rem 5rem; max-width: 52rem; }
.form-header { text-align: center; margin-bottom: 2.4rem; }
.form-header h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.form-header p { margin-top: .7rem; color: var(--muted); font-size: .95rem; }

.panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem 1.5rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px -22px rgba(0,0,0,.7);
}
.panel > legend {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #a5b4fc;
  background: rgba(99,102,241,.13);
  border: 1px solid rgba(129,140,248,.3);
  border-radius: 999px; padding: .26rem .85rem;
}

.field { margin-top: 1.15rem; }
.field:first-of-type { margin-top: .3rem; }
.field label, .field-label-strong {
  display: block; font-size: .8rem; font-weight: 600; color: #cbd5e1;
  margin-bottom: .5rem; letter-spacing: .01em; transition: color .15s ease;
}
.field:focus-within label { color: #a5b4fc; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .field { margin-top: 1rem; } }

.input,
#card-form input:not([type="radio"]):not([type="submit"]),
#card-form textarea,
#card-form select {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  background-color: #0b1224;
  background-image: linear-gradient(180deg, rgba(255,255,255,.035), transparent 65%);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: .7rem;
  color: #f8fafc;
  padding: .72rem .95rem;
  font-size: .92rem; font-family: inherit; line-height: 1.35;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.input:hover,
#card-form input:hover,
#card-form textarea:hover,
#card-form select:hover { border-color: rgba(148,163,184,.42); }

.input:focus,
#card-form input:focus,
#card-form textarea:focus,
#card-form select:focus {
  background-color: #101a33;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99,102,241,.22), inset 0 1px 2px rgba(0,0,0,.25);
}

.input::placeholder,
#card-form input::placeholder,
#card-form textarea::placeholder { color: #64748b; }

textarea.input, #card-form textarea { resize: vertical; min-height: 5rem; }

/* Chevron personnalisé sur les selects */
select.input, #card-form select {
  padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}
select.input option, #card-form select option { color: #f8fafc; background: #0b1224; }

/* Autofill Chrome/Safari : impose le thème sombre (sinon champs repeints en blanc) */
.input:-webkit-autofill,
#card-form input:-webkit-autofill,
#card-form textarea:-webkit-autofill,
#card-form select:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px #0b1224 inset;
  caret-color: #f8fafc;
  transition: background-color 999999s ease-out;
}

.social-row .select { max-width: 11rem; flex-shrink: 0; }

.socials-list { display: flex; flex-direction: column; gap: .7rem; }
.social-row { display: flex; gap: .55rem; }
.row-remove {
  flex-shrink: 0; width: 2.6rem; border-radius: .7rem;
  border: 1px solid rgba(148,163,184,.22); background: #0b1224; color: #94a3b8;
  font-size: 1.05rem;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.row-remove:hover { border-color: rgba(244,63,94,.55); color: #fda4af; background: #170e1c; }

.swatches { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); margin-top: .4rem; }
.swatch-item { cursor: pointer; }
.swatch {
  display: block; border: 1px solid var(--border); border-radius: .9rem;
  padding: .7rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.swatch-item input:checked + .swatch { border-color: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.swatch-item input:focus-visible + .swatch { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.swatch-color { display: block; height: 2.6rem; border-radius: .6rem; }
.swatch-name { display: block; margin-top: .5rem; font-size: .76rem; font-weight: 500; color: #cbd5e1; }

.form-error {
  border: 1px solid rgba(244,63,94,.32); background: rgba(244,63,94,.09);
  color: #fda4af; border-radius: .8rem; padding: .8rem 1rem; font-size: .88rem;
}

.success-panel {
  max-width: 30rem; margin: 0 auto; text-align: center;
  border: 1px solid rgba(52,211,153,.25); background: rgba(52,211,153,.06);
  border-radius: 1.5rem; padding: 2.4rem 1.6rem;
}
.success-panel h2 { color: #6ee7b7; font-size: 1.5rem; font-weight: 700; }
.success-panel > p { margin-top: .5rem; color: #cbd5e1; font-size: .92rem; }
.success-panel img { margin: 1.5rem auto 0; background: #fff; border-radius: .9rem; padding: .5rem; }
.success-panel code { display: block; margin-top: 1rem; color: #a5b4fc; font-size: .8rem; word-break: break-all; }
.success-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---------- Page carte ---------- */

.stage {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: 4.5rem 1rem 3rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g-from) 0%, var(--g-to) 100%);
  max-width: 28rem; margin: 0 auto;
}
.lang-float {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .3rem .8rem;
  backdrop-filter: blur(6px);
}
.lang-float:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.bizcard {
  position: relative; overflow: hidden; width: 100%;
  border-radius: 1.6rem; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07); backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.55);
  padding: 1.9rem;
}
.blob-card {
  position: absolute; top: -4rem; right: -4rem; width: 11rem; height: 11rem;
  border-radius: 999px; background: var(--accent); opacity: .22; filter: blur(48px);
}
.id-row { position: relative; display: flex; align-items: center; gap: 1rem; }
.avatar-wrap { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; }
.avatar {
  position: absolute; inset: 0; width: 5rem; height: 5rem;
  border-radius: 999px; object-fit: cover; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}
.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 62%, transparent));
}
.id-text { min-width: 0; }
.id-text h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: #fff; }
.id-title { margin-top: .15rem; font-size: .86rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.id-company { font-size: .84rem; color: rgba(255,255,255,.68); }

.bio { position: relative; margin-top: 1.15rem; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.82); }

.contacts { position: relative; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: .55rem; }
.contact-row { display: flex; align-items: center; gap: .65rem; font-size: .87rem; color: rgba(255,255,255,.92); }
.contact-row a:hover { color: #fff; text-decoration: underline; }
.contact-row > a, .contact-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pills { position: relative; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.07);
  border-radius: 999px; padding: .34rem .78rem;
  font-size: .74rem; font-weight: 500; color: rgba(255,255,255,.92); white-space: nowrap;
  transition: background .15s ease;
}
.pill:hover { background: rgba(255,255,255,.17); }

.actions { position: relative; margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.btn-accent { background: var(--accent); color: var(--btn-text); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); font-size: .86rem; padding: .68rem .9rem; }
.btn-glass {
  border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: .86rem; padding: .68rem .9rem;
}
.btn-glass:hover { background: rgba(255,255,255,.12); opacity: 1; }

.notice {
  width: 100%; margin-top: 1.3rem; text-align: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  border-radius: .9rem; padding: .65rem .9rem; font-size: .76rem; color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}

.qrwrap {
  margin-top: 1.4rem; width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: 1.3rem; padding: 1rem 1rem .9rem;
  display: flex; flex-direction: column; align-items: center;
}
.qr-title {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 600; color: #fff;
}
.qr-title svg { stroke: currentColor; }
.qr { margin-top: .7rem; width: 11rem; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-caption { margin-top: .55rem; font-size: .72rem; color: rgba(255,255,255,.78); }

.made-with { margin-top: 1.9rem; font-size: .74rem; color: rgba(255,255,255,.55); }
.made-with a { font-weight: 600; color: rgba(255,255,255,.85); }
.made-with a:hover { color: #fff; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 80dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2rem 1rem; gap: .4rem;
}
.notfound svg { width: 3.4rem; height: 3.4rem; color: #334155; }
.notfound h1 { margin-top: 1.2rem; font-size: 1.5rem; font-weight: 700; }
.notfound p { margin-top: .6rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.notfound .btn { margin-top: 1.7rem; }

/* ---------- Animations ---------- */

.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
