/* Scanolo — système visuel « planche d'étiquettes ». Mobile-first : base 360 px, media queries min-width uniquement. */
@import url("/static/fonts/fonts.css");

:root {
  --bg: #ECEBE4; --surface: #FFFFFF; --surface-2: #F6F5F0; --surface-3: #EFEEE8;
  --ink: #10211F; --ink-2: #4A5553; --ink-3: #6B7573; --line: #D9D8D0; --line-2: #E8E7E0;
  --primary: #0E5B63; --primary-hover: #0A474E; --primary-soft: #DDEFF0; --primary-ink: #FFFFFF;
  --beam: #E0247A; --beam-soft: #FBE4EE;
  --ok: #1F7A4D; --ok-soft: #DDF3E6; --warn: #8A5A00; --warn-soft: #FFF3D6; --danger: #B3261E; --danger-soft: #FBE1DE; --info: #0E5B63; --info-soft: #DDEFF0;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-sticker: 16px; --r-control: 10px; --r-pill: 999px;
  --shadow-sticker: 0 1px 0 rgba(16,33,31,.05), 0 10px 28px -14px rgba(16,33,31,.28);
  --shadow-float: 0 20px 50px -20px rgba(16,33,31,.35);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --container: 1180px; --sidebar-w: 260px;
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 420ms; --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface-3); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--ink); color: #E6F0EE; padding: var(--space-4); border-radius: var(--r-control); overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--beam); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; }
.muted { color: var(--ink-2); } .small { font-size: 14px; } .tiny { font-size: 13px; color: var(--ink-3); }
.lead { font-size: 18px; color: var(--ink-2); }
.hide-sm { display: none; } .only-sm { display: inline-flex; }
@media (min-width: 768px) { .hide-sm { display: initial; } .only-sm { display: none !important; } }
@media (min-width: 768px) { h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 20px; } }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row-between { justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.grid > *, .hero-grid > *, .feature-row > *, .designer > * { min-width: 0; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-sidebar { grid-template-columns: 1fr 340px; align-items: start; } }
.section { padding: var(--space-7) 0; }
@media (min-width: 768px) { .section { padding: var(--space-8) 0; } }
.section-head { max-width: 680px; margin-bottom: var(--space-6); }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
@media (min-width: 768px) { .section-head h2 { font-size: 32px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-3); }

/* ---------- sticker (card) ---------- */
.card { background: var(--surface); border-radius: var(--r-sticker); box-shadow: var(--shadow-sticker); border: 1px solid rgba(16,33,31,.06); position: relative; }
.card-body { padding: var(--space-5); }
.card-header { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 17px; }
.card-footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--r-sticker) var(--r-sticker); }
.card-soft { background: var(--surface-2); box-shadow: none; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); color: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-control); border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); white-space: nowrap; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: #C9C8BF; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(16,33,31,.06); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8F1E17; color: #fff; }
.btn-beam { background: var(--beam); color: #fff; }
.btn-beam:hover { background: #B71B62; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(16,33,31,.2); border-top-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font-weight: 600; }
.inline { display: inline; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke-width: 2; }
.icon-logo { width: 28px; height: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > label, .field-label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input:hover, .select:hover, .textarea:hover { border-color: #BDBCB3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A5553' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input-group { display: flex; } .input-group .input { border-radius: var(--r-control) 0 0 var(--r-control); } .input-group .btn { border-radius: 0 var(--r-control) var(--r-control) 0; }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.checkbox, .radio { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; min-height: 44px; padding: 8px 0; }
.checkbox input, .radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #C9C8BF; position: relative; transition: background var(--dur-fast); flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--primary); } .switch input:checked::after { transform: translateX(18px); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
legend { font-weight: 700; font-size: 15px; margin-bottom: var(--space-3); padding: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.color-input { display: flex; align-items: center; gap: 10px; }
.color-input input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* choice tiles (type de code, formes) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); cursor: pointer; min-height: 88px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile:hover { border-color: #BDBCB3; }
.tile:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--primary-soft); }
.tile:has(input:focus-visible) { outline: 3px solid var(--beam); outline-offset: 2px; }
.tile .icon { color: var(--primary); width: 24px; height: 24px; }
.tile strong { font-size: 15px; } .tile span { font-size: 13px; color: var(--ink-3); }
.tile-sm { min-height: 56px; flex-direction: row; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--primary); }

/* ---------- badges, chips, alerts, banners ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; line-height: 1.4; }
.badge .icon { width: 14px; height: 14px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-danger { background: var(--danger-soft); color: var(--danger); } .badge-muted { background: var(--surface-3); color: var(--ink-3); } .badge-primary { background: var(--primary-soft); color: var(--primary); } .badge-beam { background: var(--beam-soft); color: #A81759; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; min-height: 40px; }
.chip[aria-current="true"], .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-control); font-size: 15px; margin-bottom: var(--space-4); border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-info { background: var(--info-soft); color: #0A474E; border-color: #BFE0E3; }
.alert-ok, .alert-success { background: var(--ok-soft); color: #14563A; border-color: #B9E3C9; }
.alert-warn, .alert-warning { background: var(--warn-soft); color: #6B4600; border-color: #F1D89A; }
.alert-danger, .alert-error { background: var(--danger-soft); color: #8F1E17; border-color: #F2BDB7; }
.banner { padding: 10px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner-info { background: var(--primary-soft); color: #0A474E; } .banner-warn { background: var(--warn-soft); color: #6B4600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.table tbody tr:hover { background: #FBFBF8; }

/* ---------- tabs, dropdown, pagination, breadcrumb, stepper ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: var(--space-5); scrollbar-width: none; }
.tab { padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); padding: 6px; z-index: 40; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; background: none; border: 0; text-align: left; color: var(--ink); text-decoration: none; font-size: 14.5px; cursor: pointer; min-height: 40px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .is-danger { color: var(--danger); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--space-5); counter-reset: step; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.stepper li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper li.is-active { color: var(--primary); border-bottom-color: var(--primary); } .stepper li.is-active::before { background: var(--primary); color: #fff; }
.stepper li.is-done { color: var(--ink); border-bottom-color: var(--ok); } .stepper li.is-done::before { background: var(--ok); color: #fff; }

/* ---------- KPI, meter, empty, skeleton, toast, modal ---------- */
.kpi { padding: var(--space-4) var(--space-5); }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.kpi-delta { font-size: 13px; font-weight: 700; margin-top: 6px; } .kpi-delta.up { color: var(--ok); } .kpi-delta.down { color: var(--danger); }
.meter { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.meter-bar { display: block; height: 100%; background: var(--primary); border-radius: 999px; width: 0; transition: width var(--dur-slow) var(--ease); }
.meter-bar.is-warn { background: var(--warn); } .meter-bar.is-full { background: var(--danger); }
.empty { text-align: center; padding: var(--space-7) var(--space-5); max-width: 460px; margin: 0 auto; }
.empty .icon { width: 44px; height: 44px; color: var(--primary); margin: 0 auto var(--space-4); }
.empty h2, .empty h3 { font-size: 20px; } .empty p { color: var(--ink-2); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, #E4E3DC 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; min-height: 1em; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.toasts { position: fixed; bottom: 16px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 900; pointer-events: none; }
@media (min-width: 640px) { .toasts { left: auto; width: 360px; } }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-float); font-size: 14.5px; display: flex; gap: 10px; align-items: center; animation: rise var(--dur-slow) var(--ease); }
.toast-ok { border-left: 4px solid #4CC98A; } .toast-danger { border-left: 4px solid #F08C84; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal { border: 0; border-radius: var(--r-sticker); padding: 0; max-width: min(92vw, 480px); width: 100%; box-shadow: var(--shadow-float); background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgba(16,33,31,.5); backdrop-filter: blur(2px); }
.modal-body { padding: var(--space-5); } .modal-body h2 { font-size: 20px; }
.modal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* ---------- QR preview & sticker with beam (signature) ---------- */
.qr-preview { position: relative; background: var(--surface); border-radius: var(--r-sticker); box-shadow: var(--shadow-sticker); padding: var(--space-4); display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1; }
.qr-preview svg { width: 100%; height: 100%; }
.qr-preview.is-loading::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); z-index: 1; }
.beam { position: absolute; left: 6%; right: 6%; height: 2px; background: var(--beam); box-shadow: 0 0 10px 1px rgba(224,36,122,.55); border-radius: 2px; top: 8%; opacity: 0; pointer-events: none; }
.qr-preview.is-loading .beam, .hero-sticker:hover .beam, .hero-sticker.is-scanning .beam, .code-thumb:hover .beam { opacity: 1; animation: beam 1.6s var(--ease) infinite; }
@keyframes beam { 0% { top: 8%; opacity: .2; } 10% { opacity: 1; } 50% { top: 90%; } 90% { opacity: 1; } 100% { top: 8%; opacity: .2; } }
.code-thumb { position: relative; width: 72px; height: 72px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line-2); padding: 4px; overflow: hidden; flex: none; }
.code-thumb svg { width: 100%; height: 100%; }
.code-card { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); }
.code-card-main { min-width: 0; flex: 1; }
.code-card-name { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card-url { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.short-url { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; background: var(--surface-2); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 10px; overflow-wrap: anywhere; }

/* ---------- pricing ---------- */
.pricing-toggle { display: inline-flex; background: var(--surface-3); padding: 4px; border-radius: var(--r-pill); gap: 4px; }
.pricing-toggle button, .pricing-toggle label { border: 0; background: none; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.pricing-toggle [aria-pressed="true"], .pricing-toggle .is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.plan-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.plan-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0; }
.plan-price { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.plan-price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; } .plan-card li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan-card li.off { color: var(--ink-3); } .plan-card li.off .icon { color: var(--line); }
.plan-featured { border: 2px solid var(--primary); }
.plan-featured .plan-tag { position: absolute; top: -12px; left: var(--space-5); background: var(--beam); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); letter-spacing: .04em; text-transform: uppercase; }
.plan-current { border-color: var(--ok); }

/* ---------- marketing: header, hero, footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(236,235,228,.85); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid rgba(16,33,31,.06); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--space-4); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-3) var(--space-4) var(--space-5); flex-direction: column; gap: 4px; box-shadow: var(--shadow-float); }
.site-nav.is-open { display: flex; }
.site-nav a { padding: 12px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.site-nav-cta { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-2); }
.site-nav-cta .btn { justify-content: center; }
.site-nav-login { font-weight: 700; }
@media (min-width: 1024px) {
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; background: none; border: 0; padding: 0; box-shadow: none; }
  .site-nav a { padding: 8px 12px; font-size: 15px; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(16,33,31,.05); }
  .site-nav-cta { flex-direction: row; margin: 0 0 0 var(--space-4); padding: 0; border: 0; align-items: center; gap: 12px; }
}
.hero { padding: var(--space-7) 0 var(--space-6); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { font-size: 18px; max-width: 540px; }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 768px) { .hero { padding: var(--space-8) 0 var(--space-7); } .hero h1 { font-size: 44px; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-8); } .hero h1 { font-size: 54px; } .hero .lead { font-size: 20px; } }
.hero-sticker { position: relative; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-float); padding: var(--space-5); max-width: 420px; margin: 0 auto; overflow: hidden; transform: rotate(-1.2deg); }
.hero-sticker::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 60px; height: 60px; background: linear-gradient(135deg, transparent 50%, var(--surface-3) 50%); transform: rotate(0); border-radius: 0 0 22px 0; }
.hero-sticker .qr-preview { box-shadow: none; padding: 0; border-radius: 0; aspect-ratio: auto; }
.hero-sticker .qr-preview svg { width: 100%; height: auto; }
.hero-form { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-4); }
.hero-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: var(--space-3); font-family: var(--font-mono); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: var(--space-5); font-size: 14px; color: var(--ink-2); }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; } .hero-trust .icon { width: 16px; height: 16px; color: var(--ok); }
.promise { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise .card-body { display: flex; flex-direction: column; gap: 10px; }
.promise .icon { width: 28px; height: 28px; color: var(--primary); }
.promise h3 { font-size: 17px; margin: 0; }
.promise p { color: var(--ink-2); font-size: 15px; }
.feature-row { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-8); } .feature-row.is-flipped > :first-child { order: 2; } }
.feature-row h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.feature-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; } .feature-list .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.usecase-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase-card { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.usecase-card .icon { width: 26px; height: 26px; color: var(--primary); }
.usecase-card h3 { font-size: 17px; margin: 0; } .usecase-card p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.usecase-card .arrow { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.prose { max-width: 720px; } .prose h2 { margin-top: var(--space-6); } .prose h3 { margin-top: var(--space-5); } .prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--space-4) 0; } .prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .prose th { background: var(--surface-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--primary); flex: none; } .faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 14px; }
.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: var(--space-6) var(--space-5); text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 24px; letter-spacing: -.02em; } .cta-band p { color: #C9D6D3; } .cta-band .row { justify-content: center; }
@media (min-width: 768px) { .cta-band { padding: var(--space-8); } .cta-band h2 { font-size: 32px; } }
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--surface); }
.footer { margin-top: var(--space-8); border-top: 1px solid var(--line); padding: var(--space-7) 0 var(--space-6); font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; } @media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-col { display: flex; flex-direction: column; gap: 8px; } .footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 4px; }
.footer-col a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; } .footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-eu { display: flex; gap: 6px; align-items: center; } .footer-eu .icon { width: 16px; height: 16px; }
.lang-switch { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; } .lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-5) var(--space-4); gap: var(--space-5); }
.auth-brand { font-size: 22px; }
.auth-card { width: 100%; max-width: 440px; padding: var(--space-6) var(--space-5); }
.auth-card h1 { font-size: 24px; }
.auth-foot { font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--sidebar-w)); background: var(--ink); color: #DCE7E4; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease); z-index: 120; }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-float); }
.scrim { position: fixed; inset: 0; background: rgba(16,33,31,.5); z-index: 110; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px; }
.sidebar-brand .brand { color: #fff; } .sidebar-brand .btn-ghost { color: #DCE7E4; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; overflow-y: auto; }
.sidebar-link { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: #C0CFCB; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; }
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-link.is-active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--beam); }
.sidebar-sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 4px; }
.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 12px; }
.usage { font-size: 13px; color: #C0CFCB; } .usage-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 700; color: #fff; } .usage-upgrade { color: #F49BC6; text-decoration: none; font-weight: 700; } .usage-upgrade:hover { color: #fff; }
.usage .meter { background: rgba(255,255,255,.12); } .usage .meter-bar { background: var(--beam); } .usage-hint { margin-top: 6px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sidebar-user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.sidebar-user .btn-ghost { color: #C0CFCB; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; background: rgba(236,235,228,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(16,33,31,.06); }
.topbar-title { font-weight: 700; font-size: 17px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.main { padding: var(--space-4); flex: 1; max-width: 1240px; width: 100%; }
.main > h1:first-child { font-size: 26px; margin-bottom: var(--space-4); }
@media (min-width: 768px) { .main { padding: var(--space-6); } }
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 0; height: 100dvh; transform: none; width: var(--sidebar-w); flex: none; }
  .scrim { display: none !important; }
  .topbar { padding: 12px 32px; }
}
.page-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.page-head h1 { margin: 0; font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--space-4); }
.filters .input { min-height: 42px; max-width: 320px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.chart { width: 100%; height: auto; } .chart .bar { fill: var(--primary); } .chart .bar:hover { fill: var(--primary-hover); } .chart .axis { stroke: var(--line); } .chart text { font-size: 11px; fill: var(--ink-3); font-family: var(--font-body); }
.stat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.stat-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.stat-list .meter { grid-column: 1 / -1; height: 6px; }
.designer { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .designer { grid-template-columns: 1fr 360px; align-items: start; } .designer-preview { position: sticky; top: 80px; } }
.designer-preview .qr-preview { max-width: 360px; margin: 0 auto; }
.warnings { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-direction: column; gap: 6px; }
.repeat-row { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: end; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); }
.repeat-row .field { margin-bottom: 0; }
.danger-zone { border-color: var(--danger-soft); } .danger-zone .card-header { color: var(--danger); }
.api-key { font-family: var(--font-mono); background: var(--ink); color: #E6F0EE; padding: 12px 14px; border-radius: 10px; overflow-wrap: anywhere; font-size: 14px; }
.error-page { text-align: center; padding: var(--space-9) var(--space-4); }
.error-code { font-family: var(--font-display); font-size: 72px; font-weight: 600; color: var(--line); margin: 0; letter-spacing: -.04em; }
.error-page .row { justify-content: center; }

/* ---------- utilities ---------- */
.text-center { text-align: center; } .w-full { width: 100%; } .mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.gap-2 { gap: var(--space-2); } .flex-1 { flex: 1; } .nowrap { white-space: nowrap; } .break { overflow-wrap: anywhere; }
.ok { color: var(--ok); } .danger { color: var(--danger); } .warn { color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .beam { display: none; }
}
@media print { .sidebar, .topbar, .site-header, .footer, .btn, .toasts { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* ---------- polish après QA (KPI en sticker, stepper span, cartes de codes) ---------- */
.kpi { background: var(--surface); border-radius: var(--r-sticker); box-shadow: var(--shadow-sticker); border: 1px solid rgba(16,33,31,.06); display: flex; flex-direction: column; }
.kpi-value, .kpi-label { display: block; }
.stepper span.tile-sm { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 0 0 10px; border: 0; border-bottom: 3px solid var(--line); border-radius: 0; background: none; min-height: 0; }
.stepper span.tile-sm.ok { color: var(--primary); border-bottom-color: var(--primary); }
a.code-card { text-decoration: none; color: inherit; background: var(--surface); border-radius: var(--r-sticker); box-shadow: var(--shadow-sticker); border: 1px solid rgba(16,33,31,.06); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.code-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.code-card p { margin: 0; }
.code-card-meta .hint { font-size: 13px; color: var(--ink-3); }

/* ---------- cibles tactiles ≥ 44 px, textes ≥ 13 px (QA #22/#23) ---------- */
.badge { font-size: 13px; }
.usage-upgrade, .usage-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.sidebar-user .btn-ghost { min-height: 44px; }
.site-nav a { min-height: 44px; }
.link-btn, .table a, .card a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.prose a, .footer-col a, .breadcrumb a, .stat-list a, .lang-switch a { min-height: 0; display: inline; }
.footer-col a { display: inline-flex; min-height: 32px; }
@media (min-width: 1024px) { .site-nav a { min-height: 40px; } }

/* ---------- retours propriétaire 2026-09-06 ---------- */
.site-nav a.btn-primary { color: #fff; background: var(--primary); }
.site-nav a.btn-primary:hover { color: #fff; background: var(--primary-hover); }
.checkbox > span { flex: 1; line-height: 1.45; }
.checkbox > span a { display: inline; min-height: 0; }
.help { border: 0; padding: 0; margin: 4px 0 0; }
.help summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: var(--primary); font-weight: 600; list-style: none; min-height: 32px; }
.help summary::-webkit-details-marker { display: none; }
.help summary .icon { width: 16px; height: 16px; }
.help p { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.color-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-field input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; flex: none; }
.color-field .input-hex { width: 120px; font-family: var(--font-mono); text-transform: uppercase; }
.color-field .swatches { width: 100%; }
.swatch[title]::after { content: ""; }
.warnings .badge-muted { background: var(--surface-3); color: var(--ink-2); }
.plan-price[data-yearly] small { display: inline; }

/* palette de couleurs prédéfinies (color.js) */
.swatch[data-swatch="#10211F"] { background: #10211F; }
.swatch[data-swatch="#0E5B63"] { background: #0E5B63; }
.swatch[data-swatch="#1D4ED8"] { background: #1D4ED8; }
.swatch[data-swatch="#1F7A4D"] { background: #1F7A4D; }
.swatch[data-swatch="#B45309"] { background: #B45309; }
.swatch[data-swatch="#B3261E"] { background: #B3261E; }
.swatch[data-swatch="#6D28D9"] { background: #6D28D9; }
.swatch[data-swatch="#E0247A"] { background: #E0247A; }
.swatch[data-swatch="#7C4A1E"] { background: #7C4A1E; }
.swatch[data-swatch="#4A5553"] { background: #4A5553; }
.swatch[data-swatch="#FFFFFF"] { background: #FFFFFF; }
.swatch { border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); width: 32px; height: 32px; padding: 0; cursor: pointer; border-radius: 50%; }
.swatch:focus-visible { outline: 3px solid var(--beam); }

/* abonnement : cartes de plans alignées */
.plans-grid { align-items: stretch; }
.plans-grid .plan-card { padding: var(--space-5); height: 100%; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; } .plan-features .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; flex: none; }
.plan-cta { margin-top: auto; padding-top: var(--space-3); }
.plan-card .plan-price small { display: inline; }

/* ---------- retours propriétaire, série 2 ---------- */
.sidebar-foot { gap: 14px; }
.sidebar-foot .btn-upgrade { width: 100%; justify-content: center; }
.sidebar-user { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.sidebar-user-name { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.sidebar-user-email { font-size: 12.5px; color: #8FA3A0; overflow-wrap: anywhere; }
.sidebar-user form { width: 100%; } .sidebar-user .btn-ghost { width: 100%; justify-content: center; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: var(--space-4); }
.filters-bar .field { margin: 0; flex: 1 1 160px; } .filters-bar .input, .filters-bar .select { min-height: 42px; } .filters-bar .btn { min-height: 42px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.form-inline .field { margin: 0; flex: 1 1 200px; } .form-inline .btn { min-height: 46px; }
.preselect-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.preselect-bar .btn { flex: none; }
.pricing-toggle-lg { padding: 6px; margin: 4px 0 var(--space-4); }
.pricing-toggle-lg button { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.pricing-toggle-lg [aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pricing-toggle-lg [aria-selected="true"] .badge { background: var(--beam); color: #fff; }
.password-field { position: relative; }
.password-field .input { padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.otp-boxes { display: flex; gap: 8px; justify-content: space-between; }
.otp-box { width: 100%; max-width: 56px; min-height: 60px; text-align: center; font-family: var(--font-mono); font-size: 26px; font-weight: 500; padding: 0; }
.otp-box::placeholder { color: var(--line); }
.qr-preview.is-placeholder svg { opacity: .28; filter: grayscale(1); }
.qr-preview.is-placeholder::after { content: attr(data-placeholder-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transform: rotate(-18deg); pointer-events: none; }
.warnings { flex-direction: row; flex-wrap: wrap; }
.warnings .badge { white-space: normal; text-align: left; line-height: 1.35; padding: 6px 10px; }
.swatch-custom { background: conic-gradient(#E0247A, #B45309, #1F7A4D, #1D4ED8, #6D28D9, #E0247A); position: relative; }
.swatch-custom::after { content: "…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); line-height: 1; }
.chart .bar { fill: var(--primary); } .chart .bar:hover { fill: var(--primary-hover); } .chart .axis { stroke: var(--line); stroke-width: 1; } .chart .axis-label, .chart .chart-max { font-size: 11px; fill: var(--ink-3); font-family: var(--font-body); }
.chart-empty { text-align: center; color: var(--ink-3); font-size: 14px; padding: var(--space-4); }
.plans-grid.grid-4 { grid-template-columns: 1fr; } @media (min-width: 768px) { .plans-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1200px) { .plans-grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }
.plan-ttc { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.docs-grid { display: grid; gap: var(--space-4); } @media (min-width: 768px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
.docs-cat h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 8px; }
.docs-cat a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.docs-cat a:hover { color: var(--primary); }
.doc-answer { background: var(--primary-soft); border-radius: 12px; padding: var(--space-4) var(--space-5); margin: var(--space-4) 0; }
.doc-answer h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin: 0 0 6px; }
.doc-steps { counter-reset: st; list-style: none; padding: 0; } .doc-steps li { position: relative; padding-left: 40px; margin-bottom: 10px; } .doc-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
/* finitions série 2 : ligne TTC sous le prix, barre de filtres sur une ligne */
.plan-ttc, .plan-price .plan-ttc { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 0; line-height: 1.4; color: var(--ink-3); margin-top: 6px; }
.filters-bar .field, .filters-bar .select { flex: 1 1 120px; } .filters-bar .input { flex: 2 1 200px; } .filters-bar .btn { flex: none; }
/* correction : la base flex ne doit porter que sur les conteneurs .field, pas sur l'input (sinon hauteur en colonne) */
.filters-bar .input, .filters-bar .select { flex: none; width: 100%; }
.filters-bar .field:has(.input) { flex: 2 1 220px; }
.filters-bar > .select { width: auto; flex: 1 1 120px; }

/* ---------- retours propriétaire, série 3 ---------- */
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .pricing-toggle { margin-top: var(--space-4); }
.field-msg { font-size: 14px; line-height: 1.4; padding: 6px 0 0; color: var(--ink-3); width: 100%; }
.field-msg.is-error { color: var(--danger); font-weight: 600; } .field-msg.is-warn { color: var(--warn); font-weight: 600; }
.warnings { margin-top: 0; }
.plan-card { height: 100%; } .plan-card > .btn, .plan-card > .plan-cta { margin-top: auto; }
.grid > .plan-card { align-self: stretch; }
.card .docs-cat a, .docs-cat a { display: flex !important; width: 100%; }
.turnstile { margin: 4px 0 var(--space-5); }
.turnstile .cf-turnstile { min-height: 65px; }
.filters-bar .input, .filters-bar .select, .filters-bar .btn { min-height: 46px; }
.plan-cta .btn.is-disabled { opacity: 1; background: var(--ok-soft); color: var(--ok); border-color: transparent; cursor: default; }

.filters-bar .input, .filters-bar .select, .filters-bar .btn { height: 46px; min-height: 46px; box-sizing: border-box; }

/* cases à cocher : le texte est un seul bloc, les liens restent en ligne */
.checkbox > span { display: inline; flex: 1; } .checkbox > span a { display: inline !important; min-height: 0 !important; }
