/* =====================================================================
   QRLive - interface
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #070b16;
  --bg-soft: #0a1020;
  --panel: rgba(16, 24, 42, .74);
  --panel-solid: #0e1526;
  --panel-2: #121b30;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #eef2ff;
  --muted: #93a0bd;
  --muted-2: #64748b;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, .16);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --input: #0a1120;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f5fb;
  --bg-soft: #eef1f9;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #ffffff;
  --panel-2: #f7f9fe;
  --line: rgba(15, 23, 42, .09);
  --line-strong: rgba(15, 23, 42, .16);
  --text: #0f172a;
  --muted: #5b6b85;
  --muted-2: #7c8aa3;
  --accent-soft: rgba(124, 92, 255, .1);
  --input: #f7f9fd;
  --shadow: 0 20px 50px rgba(30, 41, 70, .12);
  color-scheme: light;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-family: var(--mono); }
.hidden { display: none !important; }

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid rgba(124, 92, 255, .8);
  outline-offset: 2px;
  border-radius: 8px;
}
html { scrollbar-color: rgba(148, 163, 184, .35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .28); border: 3px solid transparent; background-clip: content-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .5); background-clip: content-box; }

/* ------------------------------- fond ------------------------------- */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #5b3df5; top: -240px; left: -140px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #0e7490; bottom: -260px; right: -120px; opacity: .38; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: #db2777; top: 40%; left: 55%; opacity: .13; }
html[data-theme="light"] .aurora i { opacity: .22; }

/* ------------------------------ topbar ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(18px, calc((100vw - 1560px) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 10px 26px rgba(124, 92, 255, .45);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.brand-name b { font-weight: 800; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-ver { font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; border-radius: 6px; }

.tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
html[data-theme="light"] .tab:hover { background: rgba(15, 23, 42, .05); }
.tab.active { color: var(--text); background: var(--accent-soft); border-color: rgba(124, 92, 255, .32); }

.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.url-pill {
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 240px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--muted); font-size: 12px; font-weight: 600;
  overflow: hidden; white-space: nowrap;
}
.url-pill:hover { color: var(--text); border-color: var(--line-strong); }
.url-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex-shrink: 0; }
.url-pill span:last-child { overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.ico-moon { display: none; }
html[data-theme="light"] .ico-moon { display: block; }
html[data-theme="light"] .ico-sun { display: none; }

/* ------------------------------- main ------------------------------- */

main { max-width: 1560px; margin: 0 auto; padding: 22px 18px 70px; }
.tab-panel { display: none; animation: fade .25s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
}
.panel h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.panel p { margin: 0; }

.panel-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.panel-head.compact { margin-bottom: 0; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 16px rgba(124, 92, 255, .4);
}

.gen-grid {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.preview-panel { position: sticky; top: 86px; }

/* ------------------------------ champs ------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input[type="text"], .field input[type="url"], .field input[type="number"],
.field input[type="password"], .field input[type="tel"], .field input[type="datetime-local"],
.field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--input); color: var(--text);
  font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(124, 92, 255, .65); box-shadow: 0 0 0 3px rgba(124, 92, 255, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px !important; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .field { margin-bottom: 10px; }
.row2 .grow { grid-column: 1 / -1; }
.form-fields { margin-top: 14px; }
.form-fields .row2 { grid-template-columns: 1fr 1fr; }

.check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); padding: 4px 0 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; margin-top: 8px !important; }
.hint code { font-size: 11px; color: var(--muted); }

.color-field .color-input {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--input);
}
.color-input input[type="color"] { width: 28px; height: 28px; padding: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 7px; }
.color-input code { font-size: 11px; color: var(--muted); text-transform: uppercase; }

.range-field > span { display: flex; justify-content: space-between; align-items: baseline; }
.range-field b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 255, .55), rgba(34, 211, 238, .4)), rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -6.5px; border-radius: 50%;
  background: linear-gradient(150deg, #a78bfa, var(--accent) 55%, #4f46e5);
  border: 2px solid var(--panel-solid);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .55), 0 6px 14px -4px rgba(0, 0, 0, .75);
  transition: transform .12s;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(.96); }
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 255, .55), rgba(34, 211, 238, .4)), rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(150deg, #a78bfa, var(--accent) 55%, #4f46e5);
  border: 2px solid var(--panel-solid);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .55), 0 6px 14px -4px rgba(0, 0, 0, .75);
}

/* ------------------------------ boutons ----------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--text);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, filter .15s, box-shadow .15s;
}
html[data-theme="light"] .btn { background: #fff; }
.btn:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-strong); }
html[data-theme="light"] .btn:hover { background: #f8faff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary, .btn:not(.ghost):not(.danger):not(.tiny) { }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5b8cff 55%, var(--accent-2));
  border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(91, 108, 255, .35);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
html[data-theme="light"] .btn.ghost { background: #fff; }
.btn.danger { color: #fff; background: linear-gradient(135deg, #f43f5e, #fb7185); border-color: transparent; }
.btn.tiny { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn.tiny svg { width: 14px; height: 14px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.icon-only { padding: 11px; }

/* ---------------------------- types de QR --------------------------- */

.type-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.type-group-title {
  flex: 0 0 100%; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin: 12px 0 2px;
}
.type-group-title:first-child { margin-top: 0; }
.type-btn {
  flex: 1 1 calc(25% - 6px); min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 3px 8px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--muted);
  font-size: 10px; font-weight: 600; line-height: 1.15; text-align: center;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
html[data-theme="light"] .type-btn { background: #fff; }
.type-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.type-btn.active {
  color: var(--text); border-color: rgba(124, 92, 255, .55); background: var(--accent-soft);
  box-shadow: 0 10px 24px -16px rgba(124, 92, 255, 1), inset 0 0 0 1px rgba(124, 92, 255, .18);
}
.type-btn svg { width: 20px; height: 20px; }
.type-btn .mono {
  width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.type-btn.active .mono { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

/* ------------------------------ aperçu ------------------------------ */

.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.export-tools { display: flex; align-items: center; gap: 6px; }

.size-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--input);
  border: 1px solid var(--line);
}
.size-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.size-pill select {
  padding: 4px 22px 4px 4px !important;
  font-size: 11.5px;
  font-weight: 600;
  border: none !important;
  background-color: transparent !important;
  color: var(--text);
  cursor: pointer;
}

.qr-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 6px 0;
  cursor: pointer;
}
.qr-stage.empty .checker { display: none; }
.qr-error.info {
  display: flex; align-items: center; justify-content: center;
  padding: 30px 20px; border-style: dashed;
  background: rgba(255, 255, 255, .025); border-color: var(--line-strong); color: var(--muted);
}
html[data-theme="light"] .qr-error.info { background: #fbfcff; }
.qr-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.qr-empty svg { width: 34px; height: 34px; color: var(--muted-2); opacity: .75; margin-bottom: 4px; }
.qr-empty b { font-size: 13px; color: var(--text); letter-spacing: -.01em; }
.qr-empty span { font-size: 12px; color: var(--muted-2); line-height: 1.5; max-width: 300px; }

.checker {
  position: relative; z-index: 1;
  padding: 14px; border-radius: 24px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  max-width: 100%;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease;
  overflow: hidden;
}
.checker:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 85px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
html[data-theme="light"] .checker {
  background: linear-gradient(158deg, #ffffff, #edf1fa 60%);
  box-shadow: 0 30px 60px -30px rgba(30, 41, 70, .45), inset 0 1px 0 #fff;
}
.checker.transparent {
  background-image:
    linear-gradient(45deg, rgba(148, 163, 184, .18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, .18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, .18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, .18) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-color: var(--bg-soft);
}
#qrCanvas { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 12px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55); }

.qr-hover-download {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.qr-hover-download svg {
  width: 32px;
  height: 32px;
  color: var(--accent-2);
}
.checker:hover .qr-hover-download {
  opacity: 1;
}

.qr-error {
  width: 100%; padding: 26px 18px; border-radius: 14px; text-align: center;
  background: rgba(251, 113, 133, .1); border: 1px dashed rgba(251, 113, 133, .45);
  color: #ffc2cc; font-size: 13px; line-height: 1.5;
}

.preview-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .chip { background: #fff; }
.chip b { color: var(--text); }
.chip.pro {
  color: #99f6e4;
  border-color: rgba(45, 212, 191, .3);
  background: rgba(45, 212, 191, .08);
}
.chip.pro svg { width: 12px; height: 12px; color: #2dd4bf; }

/* -------------------- Bouton Télécharger l'image Hero ------------------- */

.download-cta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 12px;
}

.btn-download-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #6366f1, #4f46e5 48%, #06b6d4);
  color: #fff;
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, .48), inset 0 1px 0 rgba(255, 255, 255, .25);
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn-download-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 40px -4px rgba(99, 102, 241, .62), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-download-hero:active {
  transform: translateY(0);
}

.dl-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
  flex-shrink: 0;
}
.dl-icon-circle svg {
  width: 20px;
  height: 20px;
}

.btn-dl-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}
.btn-dl-title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.btn-dl-sub {
  font-size: 11px;
  opacity: .88;
  font-weight: 500;
  margin-top: 1px;
}

.format-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.format-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.format-pills {
  display: flex;
  gap: 6px;
  flex: 1;
}
.format-pill {
  flex: 1;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
  transition: all .14s ease;
}
.format-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .06);
}
.format-pill.active {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(99, 102, 241, .55);
  box-shadow: 0 0 12px -2px rgba(99, 102, 241, .4);
}
html[data-theme="light"] .format-pill.active {
  color: #4f46e5;
  background: rgba(99, 102, 241, .12);
}

.preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-actions .btn { flex: 1; }
.preview-actions .icon-only { flex: 0 0 auto; }

.content-preview {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  max-height: 76px; overflow: auto; word-break: break-all; line-height: 1.5;
}
.content-preview:empty { display: none; }

.scan-tip { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.scan-tip svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.scan-tip b { color: var(--muted); }

/* -------------------------- personnalisation ------------------------ */

.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.preset {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 11px; font-weight: 600; color: var(--muted);
  transition: color .15s, border-color .15s, transform .12s, background .15s;
}
.preset:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); background: rgba(255, 255, 255, .06); }
.preset:active { transform: translateY(0); }
.preset i {
  width: 17px; height: 17px; border-radius: 50%; display: block;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .35);
}

.group { border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 0; }
.group summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none;
}
.group summary::-webkit-details-marker { display: none; }
.group summary:hover { color: var(--text); }
.group summary svg { width: 15px; height: 15px; transition: transform .2s; }
.group[open] summary { color: var(--text); }
.group[open] summary svg { transform: rotate(180deg); }
.group-body { padding: 2px 0 8px; }

.logo-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.logo-preview {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0;
  border: 1px dashed var(--line-strong); background: var(--input);
  display: grid; place-items: center; overflow: hidden; color: var(--muted-2);
}
.logo-preview svg { width: 22px; height: 22px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-actions { display: flex; flex-direction: column; gap: 5px; }
.logo-actions .btn { justify-content: flex-start; }

.quick-logos-row { margin: 10px 0 14px; }
.sub-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.quick-logo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.qlogo-pill {
  padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--input); color: var(--muted); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.qlogo-pill:hover {
  color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

/* ---------------------------- fichiers ------------------------------ */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 680px; line-height: 1.5; }

.files-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 20px 14px; margin-bottom: 12px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: rgba(255, 255, 255, .02); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone.big { padding: 34px 16px; }
.dropzone:hover, .dropzone.drag { border-color: rgba(124, 92, 255, .7); background: var(--accent-soft); }
.dropzone svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 4px; }
.dropzone b { font-size: 13.5px; }
.dropzone span { font-size: 11.5px; color: var(--muted-2); }

.upload-progress { margin-bottom: 10px; }
.upload-progress .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.upload-progress .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.upload-progress span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }

.file-result { padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); font-size: 12px; line-height: 1.6; }
.file-result b { display: block; color: var(--text); word-break: break-all; }
.file-result code { color: var(--muted); font-size: 11px; word-break: break-all; }

.storage-ring { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.ring {
  --pct: 0;
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255, 255, 255, .08) 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel-solid); }
.ring span { position: relative; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.storage-info { display: flex; flex-direction: column; gap: 2px; }
.storage-info b { font-size: 18px; letter-spacing: -.02em; }
.storage-info span { font-size: 11.5px; color: var(--muted); }

.stat-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.stat-mini div { padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stat-mini b { display: block; font-size: 16px; letter-spacing: -.02em; }
.stat-mini span { font-size: 10.5px; color: var(--muted); }

.list-panel { padding-bottom: 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.list-head h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.count { font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 999px; }
.search input { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); font-size: 12.5px; min-width: 190px; outline: none; }

.items { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
html[data-theme="light"] .item { background: #fff; }
.item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
html[data-theme="light"] .item:hover { background: #f8faff; }
.item-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-soft); color: #b7a9ff; border: 1px solid rgba(124, 92, 255, .25);
}
html[data-theme="light"] .item-ico { color: var(--accent); }
.item-ico svg { width: 20px; height: 20px; }
.item-ico.img { color: #6ee7b7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); }
.item-ico.pdf { color: #fda4af; background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .25); }
.item-ico.vid { color: #93c5fd; background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .25); }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.item-sub span { display: inline-flex; align-items: center; gap: 4px; }
.item-sub svg { width: 12px; height: 12px; }
.item-sub .exp { color: var(--warn); }
.item-sub .exp.soon { color: var(--danger); }
.item-sub .exp.never { color: var(--ok); }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-action {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); display: grid; place-items: center;
}
.icon-action:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }
.icon-action.danger:hover { color: var(--danger); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.icon-action.dl-btn {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(124, 92, 255, .32);
}
.icon-action.dl-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.item-ico.item-thumb {
  padding: 0;
  overflow: hidden;
  background: #000;
  border-color: var(--line-strong);
}
.item-ico.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.icon-action svg { width: 15px; height: 15px; }
.empty-state { padding: 34px 16px; text-align: center; color: var(--muted-2); font-size: 13px; }
.empty-state svg { width: 38px; height: 38px; margin-bottom: 8px; opacity: .5; }
.empty-state b { display: block; color: var(--muted); margin-bottom: 3px; }

.upload-queue { display: flex; flex-direction: column; gap: 8px; }
.upload-row { padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 12px; }
.upload-row .top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.upload-row .top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row .top span { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.upload-row .bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.upload-row.done .bar i { background: var(--ok); }
.upload-row.error .bar i { background: var(--danger); }

/* ------------------------------- liens ------------------------------ */

.link-form { margin-bottom: 16px; }
.link-form h2 { margin-bottom: 14px; }
.link-form > .btn { margin-top: 2px; }
.short-box { margin-top: 14px; padding: 12px; border-radius: 13px; border: 1px dashed rgba(124, 92, 255, .4); background: rgba(124, 92, 255, .06); }
.short-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.short-head b { display: block; font-size: 12.5px; }
.short-head span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.short-result { margin-top: 10px; font-size: 12px; }
.short-result code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 11.5px; word-break: break-all; }
.short-result .inline-actions { margin-top: 7px; }

/* ------------------------------ scanner ----------------------------- */

.scanner-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.scanner-panel .camera {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #05070d; border: 1px solid var(--line); display: grid; place-items: center;
}
#scanVideo { width: 100%; height: 100%; object-fit: cover; display: none; }
#scanVideo.on { display: block; }
.camera-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 12.5px; text-align: center; padding: 20px; }
.scan-frame { position: absolute; inset: 14%; pointer-events: none; }
.scan-frame i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent-2); }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-frame::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #22d3ee, #6366f1, transparent);
  box-shadow: 0 0 16px #22d3ee, 0 0 4px #fff;
  border-radius: 999px;
  top: 4%;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}
@keyframes scanLaser {
  0% { top: 4%; opacity: 0.4; }
  100% { top: 96%; opacity: 1; }
}
.scanner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.scanner-actions .btn { flex: 1; }
.scan-result-panel h2 { margin-bottom: 12px; }
.scan-result { min-height: 190px; display: flex; flex-direction: column; gap: 10px; }
.scan-result.empty { align-items: center; justify-content: center; color: var(--muted-2); font-size: 12.5px; text-align: center; }
.empty-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.empty-ico svg { width: 24px; height: 24px; }
.scan-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); color: var(--ok); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.scan-content { padding: 11px 12px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; line-height: 1.6; word-break: break-all; max-height: 190px; overflow: auto; }
.scan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scan-actions .btn { flex: 1; }

/* ----------------------------- réglages ----------------------------- */

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.settings-grid .panel h2 { margin-bottom: 8px; }
.settings-grid .panel > .hint:first-of-type { margin: 0 0 12px !important; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.key-row { display: flex; gap: 6px; }
.key-row input { flex: 1; font-family: var(--mono); font-size: 12px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.kv:first-of-type { margin-top: 10px; }
.kv code { font-size: 11px; color: var(--text); max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.steps code { font-size: 11px; color: var(--text); background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 8px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, .55)); min-height: 3px; transition: height .3s; }
.chart .bar.dl { background: linear-gradient(180deg, var(--accent-2), rgba(124, 92, 255, .4)); }
.chart .lbl { font-size: 9px; color: var(--muted-2); }
.totals { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.totals b { color: var(--text); font-size: 16px; display: block; }

/* ------------------------------ modale ------------------------------ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px;
  background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px);
}
.modal {
  width: 100%; max-width: 400px; padding: 24px;
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 20px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.modal-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: #b7a9ff; margin-bottom: 14px; }
html[data-theme="light"] .modal-ico { color: var(--accent); }
.modal-ico svg { width: 23px; height: 23px; }
.modal h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.modal p { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions .btn { flex: 1; }

/* ------------------------------ toasts ------------------------------ */

.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 11px 15px;
  border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); font-size: 12.5px; font-weight: 500;
  animation: toastIn .25s ease; max-width: 340px;
}
.toast.ok { border-color: rgba(52, 211, 153, .4); }
.toast.err { border-color: rgba(251, 113, 133, .45); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------------------- responsive ---------------------------- */

@media (max-width: 1240px) {
  .gen-grid { grid-template-columns: 320px minmax(0, 1fr); }
  .style-panel { grid-column: 1 / -1; }
  .style-panel .group-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .style-panel .group-body > .check, .style-panel .group-body > .hint, .style-panel .group-body > .btn { grid-column: 1 / -1; }
  .style-panel .logo-row { grid-column: 1 / -1; }
  .preview-panel { position: static; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .tabs { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 8px 11px; font-size: 12.5px; }
  .url-pill { max-width: 150px; }
  main { padding: 16px 12px 60px; }
  .gen-grid { grid-template-columns: 1fr; }
  .files-top, .scanner-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .preview-panel { order: -1; }
  #qrCanvas { max-width: 340px; }
  .qr-stage { min-height: 260px; }
  .style-panel .group-body { display: block; }
  .page-head h1 { font-size: 22px; }
  .item { flex-wrap: wrap; }
  .item-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 520px) {
  .brand-ver { display: none; }
  .url-pill { display: none; }
  .type-btn { flex: 1 1 calc(25% - 6px); }
  .preview-actions .btn { flex: 1 1 44%; }
  .preview-actions .icon-only { display: none; }
  .export-tools select { display: none; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .row2 { grid-template-columns: 1fr; }
  .row2 .grow { grid-column: auto; }
  .checker { padding: 10px; border-radius: 18px; }
  #qrCanvas { max-width: 100%; }
}

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

/* =====================================================================
   Finitions — niveau production
   ===================================================================== */

:root {
  --radius: 20px;
  --ring: 0 0 0 3px rgba(124, 92, 255, .26);
}
html[data-theme="light"] { --ring: 0 0 0 3px rgba(124, 92, 255, .2); }

::selection { background: rgba(124, 92, 255, .35); color: #fff; }

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
  border-radius: 10px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .32) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .28);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .45); background-clip: padding-box; }

/* ------------------------------ topbar ------------------------------ */

.topbar {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 34px rgba(3, 6, 14, .35);
}
.brand-mark { transition: transform .2s ease; }
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-2deg); }
.brand-name { font-size: 19.5px; }

/* -------------------------------- hero ------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(124, 92, 255, .15), rgba(34, 211, 238, .06) 46%, transparent 76%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
html[data-theme="light"] .hero {
  background:
    linear-gradient(120deg, rgba(124, 92, 255, .1), rgba(34, 211, 238, .06) 46%, transparent 76%),
    var(--panel-solid);
}
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .3), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, .3);
  background: rgba(124, 92, 255, .13);
  color: #c9beff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-theme="light"] .hero-eyebrow { color: #5b46c9; }
.hero-eyebrow svg { width: 13px; height: 13px; }
.hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.hero-points {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 134px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}
html[data-theme="light"] .hero-points li { background: #fff; }
.hero-points b { display: block; font-size: 11.5px; letter-spacing: -.01em; }
.hero-points span { display: block; margin-top: 1px; font-size: 10px; color: var(--muted-2); }
.hp-ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #c3b6ff;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, .25);
}
html[data-theme="light"] .hp-ico { color: var(--accent); }
.hp-ico svg { width: 15px; height: 15px; }

/* ------------------------------ panneaux ---------------------------- */

.panel { transition: border-color .18s ease, box-shadow .18s ease; }
.preview-panel { box-shadow: 0 28px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.qr-stage { position: relative; }
.qr-stage::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .24), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.qr-stage:not(.empty)::before { opacity: 1; }

/* ------------------------------- boutons ---------------------------- */

.btn { border-radius: 12px; font-weight: 650; letter-spacing: -.01em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { box-shadow: 0 12px 28px rgba(91, 108, 255, .38); }
.btn.danger:hover { filter: brightness(1.06); }
.btn.tiny { font-weight: 650; }

/* ---------------------------- types de QR --------------------------- */

/* (styles de base dans la section « types de QR ») */

/* ------------------------------- listes ----------------------------- */

.item { padding: 12px 13px; transition: border-color .15s, background .15s, transform .15s; }
.item:hover { transform: translateY(-1px); }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
}
html[data-theme="light"] .empty-state { background: #fbfcff; }

/* ---------------------------- chargement ---------------------------- */

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.sk {
  background: linear-gradient(90deg, rgba(148, 163, 184, .08) 25%, rgba(148, 163, 184, .18) 37%, rgba(148, 163, 184, .08) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 7px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-ico { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sk-line { height: 9px; border-radius: 6px; }
.sk-line.short { width: 46%; }
.sk-line.tiny { width: 26%; }

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

.site-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1560px;
  margin: 28px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(124, 92, 255, .35);
}
.foot-mark svg { width: 16px; height: 16px; }
.foot-left b { display: block; font-size: 12.5px; color: var(--text); letter-spacing: -.01em; }
.foot-left span { display: block; font-size: 10.5px; color: var(--muted-2); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.foot-links a { color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-note { margin: 0; font-size: 10.5px; color: var(--muted-2); }

/* ------------------------------- modales ---------------------------- */

.modal { animation: modalIn .22s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal-ico.danger {
  color: #ffb3c0;
  background: rgba(251, 113, 133, .12);
  border: 1px solid rgba(251, 113, 133, .3);
}
.modal p code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  font-size: 11.5px;
}
.modal-actions .btn { min-height: 44px; }

/* -------------------------------- toasts ---------------------------- */

.toast { border-left: 3px solid var(--ok); backdrop-filter: blur(10px); }
.toast.err { border-left-color: var(--danger); }

/* ------------------------------ responsive -------------------------- */

@media (max-width: 1240px) {
  .hero { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-points { width: 100%; }
  .hero-points li { flex: 1; }
}

@media (max-width: 900px) {
  .hero { padding: 18px; }
  .hero h1 { font-size: 21px; }
  .hero-points { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-points li { min-width: 0; padding: 9px 10px; }
  .site-foot { gap: 12px; }
  .foot-links { order: 3; width: 100%; margin-left: 0; }
  .foot-note { order: 4; width: 100%; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 12.5px; }
  .hero-points { grid-template-columns: 1fr; gap: 7px; }
  .hero-points li { padding: 9px 11px; }
  .site-foot { padding: 16px 2px 0; }
}

