/* QRCode POCKIX : feuille de style (mobile d'abord) */

@font-face { font-family: Geist; src: url(../fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #111111;
  --lime: #D4FF3A;
  --bg: #F5F5F2;
  --card: #FFFFFF;
  --line: #E4E4DF;
  --line-strong: #D6D6D0;
  --muted: #5E5E58;
  --muted-2: #3D3D38;
  --on-dark: #C9C9C2;
  --on-dark-muted: #A3A39B;
  --dark-line: #4A4A45;
  --soft: #F0F0EB;
  --radius: 20px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero :focus-visible, .actions :focus-visible, .note--dark :focus-visible { outline-color: var(--lime); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Bandeau noir ---------- */

.hero { background: var(--ink); color: #FFFFFF; border-radius: 0 0 28px 28px; padding-bottom: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand__dot { fill: var(--lime); }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-muted); margin-left: -4px; }
.topbar__nav { display: flex; gap: 18px; }
@media (max-width: 519px) { .topbar__nav a:first-child { display: none; } }
.topbar__nav a { color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 0; }
.topbar__nav a:hover { color: var(--lime); }

.hero__body { padding-top: 10px; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumb a { color: var(--on-dark-muted); text-decoration: none; }
.crumb a:hover { color: #FFFFFF; }
.crumb [aria-current] { color: var(--lime); }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.h1 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; max-width: 16ch; }
.hl { color: var(--lime); }
.hero__intro { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--on-dark); max-width: 36rem; }

.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 22px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; background: transparent; color: #FFFFFF; border: 1px solid var(--dark-line);
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tab[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }

/* ---------- Cartes et champs ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.tool { margin-top: 16px; }
.tool__grid { display: grid; gap: 16px; }
.tool__left { display: grid; gap: 12px; align-content: start; min-width: 0; }
/* Mobile : champ, aperçu, puis personnalisation */
@media (max-width: 899px) {
  .tool__grid { gap: 12px; }
  .tool__left, .tool__right { display: contents; }
  .tool .form { order: 1; }
  .tool .preview { order: 2; }
  .tool .custom { order: 3; }
}

.form { padding: 16px; }
.panel { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field__help { font-size: 12px; line-height: 1.4; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.input {
  width: 100%; height: 50px; padding: 0 14px; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #FAFAF8; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.input::placeholder { color: #8A8A82; }
.input:focus { outline: none; border-color: var(--ink); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(212, 255, 58, 0.55); }
.input--area { height: auto; min-height: 50px; padding: 13px 14px; resize: vertical; line-height: 1.4; }
.input-wrap { position: relative; }
.input--pw { padding-right: 96px; }
.input-wrap__btn { position: absolute; right: 4px; top: 3px; height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 13px; font-weight: 600; border-radius: 10px; }
.input-wrap__btn:hover { background: var(--soft); }

.seg { display: grid; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px;
  border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15;
  transition: background .15s, color .15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

.tip { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.tip svg { flex: none; margin-top: 1px; }
.tip p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted-2); }

/* Personnalisation */
.custom__sum {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px;
  font-size: 15px; font-weight: 600; list-style: none; cursor: pointer;
}
.custom__sum::-webkit-details-marker { display: none; }
.custom__sum::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.custom[open] > .custom__sum::after { content: "\2212"; }
.custom__body { display: grid; gap: 18px; padding: 2px 16px 18px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 44px; height: 44px; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch__dot {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--c); border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px var(--line);
  transition: box-shadow .15s; pointer-events: none;
}
.swatch input[type="radio"]:checked ~ .swatch__dot { box-shadow: 0 0 0 2px var(--ink); }
.swatch input[type="radio"]:focus-visible ~ .swatch__dot { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--lime); }
.swatch--noir { --c: #111111; }
.swatch--bleu { --c: #1E3FD0; }
.swatch--vert { --c: #0D6B4A; }
.swatch--brique { --c: #8C2F1B; }
.swatch--violet { --c: #5B2A86; }
.swatch--custom { --c: #FFFFFF; }
.swatch--custom .swatch__dot { border: 1px dashed #A8A8A0; font-size: 20px; color: var(--muted); }
.swatch--custom.is-set .swatch__dot { border: 3px solid #FFFFFF; color: transparent; }
.swatch--custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; z-index: 1; }

.color-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; cursor: pointer; }
.color-line input { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: #FFFFFF; cursor: pointer; }

.logo-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.logo-line__name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px;
  border-radius: 14px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--accent { background: var(--lime); color: var(--ink); font-weight: 700; font-size: 16px; }
.btn--accent:hover:not(:disabled) { background: #C3F01F; color: var(--ink); }
.btn--ghost { background: transparent; color: #FFFFFF; border-color: var(--dark-line); }
.btn--ghost:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.btn--line { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
.btn--line:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--text { background: transparent; color: var(--ink); text-decoration: underline; padding: 0 10px; }
.btn--sm { min-height: 44px; font-size: 14px; border-radius: 12px; padding: 0 16px; cursor: pointer; }
.btn--icon { width: 54px; padding: 0; flex: none; }
.btn--grow { flex: 1; }

/* ---------- Aperçu ---------- */

.tool__right { min-width: 0; }
.preview { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.preview__stage { width: 100%; max-width: 260px; aspect-ratio: 1; padding: 10px; border-radius: 14px; background: #FFFFFF; }
.preview__stage[data-bg="transparent"] { background: repeating-conic-gradient(#ECECE7 0 25%, #FFFFFF 0 50%) 0 0 / 16px 16px; }
.preview__stage[data-bg="white"] { box-shadow: inset 0 0 0 1px var(--line); }
.preview__qr svg { width: 100%; height: auto; }
.preview__qr.is-empty { opacity: .14; filter: grayscale(1); }
.preview__msg { margin: 0; min-height: 0; font-size: 14px; font-weight: 500; color: var(--muted-2); }
.preview__msg:empty { display: none; }
.preview__msg.is-error { color: #B3261E; }
.preview__test { margin: 0; font-size: 12px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 13px; border-radius: 999px;
  background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}
.alert {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: #FFF4E5; border: 1px solid #F3C98B; color: #6B3B00; font-size: 13px; line-height: 1.4;
}
.alert svg { flex: none; margin-top: 1px; color: #B35C00; }

/* Barre de téléchargement : fixée en bas sur mobile */
.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--ink);
}
.actions .btn { min-height: 54px; }
.actions .btn--ghost:not(.btn--icon) { width: 72px; padding: 0; flex: none; }

/* ---------- Sections éditoriales ---------- */

.section { padding-top: 52px; }
.h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.lead { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--muted-2); max-width: 44rem; }
.sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head .h2 { margin: 0; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: var(--ink); border-radius: 6px; padding: 4px 7px; }

.compare { display: grid; gap: 12px; }
.compare__col { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.compare__col--us { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.compare__label { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare__col--us .compare__label { color: var(--lime); }
.compare__flow { margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.list li::before { content: "\00D7"; position: absolute; left: 2px; top: -1px; font-weight: 700; color: #B3261E; font-size: 18px; }
.list--ok li::before { content: "\2713"; color: #1F7A4D; font-size: 15px; top: 1px; }
.compare__col--us .list--ok li::before, .note--dark .list--ok li::before { color: var(--lime); }
.note--dark .list li { color: #FFFFFF; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; font-size: 15px; line-height: 1.5; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 13px;
}

.uses { display: grid; gap: 10px; }
.use {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s;
}
.use strong { font-size: 16px; }
.use span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.use:hover { border-color: var(--ink); color: var(--ink); }
.use--page { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.use--page span { color: var(--on-dark); }
.use--page strong::after { content: " \2192"; color: var(--lime); }
.use--page:hover { color: #FFFFFF; border-color: var(--lime); }

.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.45; }
.tips__n { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.chips-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list li { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }

.note { padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.note p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); }
.note .note__eyebrow { margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.note--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.note--dark p { color: var(--on-dark); }
.note--dark .note__eyebrow { color: var(--lime); }

.faq { display: grid; gap: 8px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px;
  font-size: 15px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 16px 16px; }
.faq__a p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 11px 16px; transition: background .15s, border-color .15s; }
.pill:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.prose p { font-size: 15px; line-height: 1.6; color: var(--muted-2); max-width: 44rem; margin: 0 0 14px; }
.prose .h2 { margin-top: 36px; }
.prose .h2:first-child { margin-top: 0; }
.prose .list { max-width: 44rem; }

/* ---------- Affichette ---------- */

.poster { display: grid; gap: 14px; }
.poster__stage { display: flex; justify-content: center; padding: 24px; border-radius: var(--radius); background: #E9E9E3; }
.poster__stage canvas { width: 100%; max-width: 260px; height: auto; border-radius: 4px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14); }
.poster__side { padding: 16px; display: grid; gap: 14px; align-content: start; }
.poster__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.poster__btns .btn { padding: 0 10px; }

/* ---------- Pied de page ---------- */

.section--others { padding-top: 52px; }
.footer { margin-top: 52px; border-top: 1px solid var(--line); padding: 26px 0 130px; font-size: 13px; color: var(--muted); }
.footer__in { display: grid; gap: 8px; }
.footer p { margin: 0; }
.footer strong { color: var(--ink); }
.footer a { color: var(--muted); }
.footer__legal { font-size: 12px; line-height: 1.5; max-width: 44rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }

/* ---------- Écrans larges ---------- */

@media (min-width: 640px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .hero { padding-bottom: 32px; border-radius: 0 0 36px 36px; }
  .topbar { padding-top: 20px; padding-bottom: 20px; }
  .hero__body { padding-top: 28px; }
  .h1 { font-size: 60px; max-width: 18ch; }
  .hero__intro { font-size: 18px; margin-top: 18px; }
  .tabs { margin: 30px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }

  .tool { margin-top: 28px; }
  .tool__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .tool__right { position: sticky; top: 20px; }
  .form { padding: 22px; }
  .custom__sum { padding: 0 22px; }
  .custom__body { padding: 2px 22px 22px; }

  .actions { position: static; padding: 0; margin-top: 12px; background: transparent; }
  .actions .btn--ghost { color: var(--ink); border-color: var(--ink); background: #FFFFFF; }
  .actions .btn--ghost:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
  .actions :focus-visible { outline-color: var(--ink); }

  .section, .section--others { padding-top: 80px; }
  .h2 { font-size: 34px; margin-bottom: 18px; }
  .lead { font-size: 17px; }
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding-left: 0; padding-top: 48px; }
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
  .faq { max-width: 820px; }
  .note { padding: 32px; max-width: 820px; }

  .poster { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .poster__stage { padding: 40px; }
  .poster__stage canvas { max-width: 340px; }
  .poster__side { padding: 22px; }

  .footer { margin-top: 80px; padding-bottom: 40px; }
}
