/* Générateur de QR code — styles préfixés .qrg pour ne pas toucher au thème.
   Couleurs reprises de Typographie : accent --gold, boutons --gold-btn / --btn-text, fond --site-bg. */
.qrg-page { background: var(--site-bg, transparent); }
.qrg { padding-top: 1.25rem; padding-bottom: 2.5rem; }

/* Héros : réglages du tableau de bord (admin/dashboard_hero.php), champs vides = Typographie */
.qrg-hero { background: linear-gradient(135deg, #020617, #1e3a8a); color: var(--td-hero-text, #fff); }
.qrg-hero.is-light { --td-hero-text: var(--c-title, #111c2d); }
.qrg-hero-inner { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.qrg-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td-acc1, var(--c-eyebrow, var(--gold, #93c5fd))); margin: 0 0 .4rem; }
.qrg-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; color: var(--td-hero-text, #fff); margin: 0 0 .45rem; }
.qrg-lead { color: inherit; opacity: .8; font-size: .95rem; line-height: 1.55; max-width: 720px; margin: 0 0 .9rem; }
.qrg-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.qrg-hero-links a, .qrg-privacy { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; text-decoration: none;
  color: inherit; background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.qrg-hero-links a:hover { color: inherit; background: color-mix(in srgb, currentColor 15%, transparent); }
.qrg-privacy { font-weight: 500; }
.qrg-privacy .bi { color: #22c55e; }

/* En-tête simple des autres pages du module (lot, mes QR, enregistrés) */
.qrg .qrg-head { max-width: 760px; margin-bottom: 1.5rem; }
.qrg .qrg-head h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .5rem; }
.qrg .qrg-lead { color: var(--warm-mid, #6c757d); opacity: 1; font-size: .95rem; margin-bottom: .6rem; }
.qrg .qrg-privacy { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; font-weight: 500; color: #1e6b45; background: #e9f6ef; border: 0; padding: .35rem .75rem; border-radius: 999px; margin: 0; }

.qrg-card { background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; padding: 1rem 1.1rem; }

/* Boutons Bootstrap du générateur : couleurs des boutons de Typographie */
.qrg .btn-dark { background: var(--gold-btn, var(--gold, #212529)); border-color: var(--gold-btn, var(--gold, #212529)); color: var(--btn-text, #fff); }
.qrg .btn-dark:hover, .qrg .btn-dark:focus { background: var(--gold-lt, var(--gold-btn, var(--gold, #000))); border-color: var(--gold-lt, var(--gold-btn, var(--gold, #000))); color: var(--btn-text, #fff); }
.qrg .btn-outline-dark { color: var(--gold, #212529); border-color: var(--gold, #212529); }
.qrg .btn-outline-dark:hover, .qrg .btn-outline-dark:focus { background: var(--gold, #212529); border-color: var(--gold, #212529); color: var(--btn-text, #fff); }
.qrg .btn-link { color: var(--gold, #0d6efd); }
.qrg .form-check-input:checked { background-color: var(--gold, #0d6efd); border-color: var(--gold, #0d6efd); }
.qrg .form-control:focus, .qrg .form-select:focus { border-color: color-mix(in srgb, var(--gold, #0d6efd) 50%, #fff); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--gold, #0d6efd) 20%, transparent); }
.qrg .form-range { accent-color: var(--gold, #0d6efd); }
.qrg .form-range::-webkit-slider-thumb { background: var(--gold, #0d6efd); }
.qrg .form-range::-moz-range-thumb { background: var(--gold, #0d6efd); }

/* Sélecteur de type */
.qrg-types { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.qrg-type { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; font-size: .8rem; font-weight: 600; color: #3a4252; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.qrg-type i { font-size: .95rem; }
.qrg-type:hover { border-color: var(--gold, #9aa5b8); }
.qrg-type.is-active { background: var(--gold-btn, var(--gold, #111c2d)); border-color: var(--gold-btn, var(--gold, #111c2d)); color: var(--btn-text, #fff); }
.qrg-type:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }

.qrg .form-label { font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.qrg .form-control-color { width: 2.6rem; height: 2.3rem; padding: .2rem; }
.qrg [hidden] { display: none !important; }

/* Design */
.qrg-design { margin-top: 1rem; border-top: 1px solid var(--rule, #dee2e6); }
.qrg-design details { border-bottom: 1px solid var(--rule, #dee2e6); }
.qrg-design summary { padding: .6rem 0; font-size: .92rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; }
.qrg-design summary::-webkit-details-marker { display: none; }
.qrg-design summary::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: auto; transition: transform .2s; font-size: .8rem; }
.qrg-design details[open] summary::after { transform: rotate(180deg); }
.qrg-design details > .row { padding-bottom: .8rem; }
.qrg-design summary .bi { color: var(--gold, inherit); }

/* Aperçu */
.qrg-preview { text-align: center; }
.qrg-canvas { aspect-ratio: 1; max-width: 300px; margin: 0 auto; border-radius: 8px;
  background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.qrg-canvas.is-crisp clipPath[id^="clip-path-dot-color"] { shape-rendering: crispEdges; }
.qrg-canvas svg, .qrg-canvas canvas { width: 100% !important; height: auto !important; display: block; }
.qrg-empty { aspect-ratio: 1; max-width: 300px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #9aa5b8; border: 2px dashed var(--rule, #dee2e6); border-radius: 8px; padding: 1.5rem; font-size: .9rem; }
.qrg-empty i { font-size: 3rem; }
.qrg-info { font-size: .75rem; color: var(--warm-mid, #6c757d); margin: .75rem 0 .25rem; min-height: 1em; }
.qrg-warn { list-style: none; padding: 0; margin: 0 0 .5rem; text-align: left; }
.qrg-warn li { font-size: .8rem; color: #8a5b1e; background: #fdf3e0; border-radius: 6px; padding: .4rem .6rem; margin-top: .35rem; }
.qrg-warn li::before { content: "\F33A"; font-family: "bootstrap-icons"; margin-right: .4rem; }
.qrg-dl { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: .7rem; }
.qrg-dl .btn { min-width: 58px; padding: .35rem .65rem; font-size: .85rem; }
.qrg-hint { font-size: .72rem; color: var(--warm-mid, #6c757d); margin: .55rem 0 0; }
.qrg-raw { text-align: left; margin-top: .75rem; font-size: .8rem; }
.qrg-raw summary { cursor: pointer; color: var(--warm-mid, #6c757d); }
.qrg-raw pre { white-space: pre-wrap; word-break: break-all; background: #f6f7f9; border-radius: 6px; padding: .6rem; margin: .4rem 0 0; font-size: .75rem; max-height: 200px; overflow: auto; }

/* FAQ */
.qrg-faq { max-width: 760px; margin-top: 2rem; }
.qrg-faq h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.qrg-faq details { border-bottom: 1px solid var(--rule, #dee2e6); padding: .6rem 0; font-size: .92rem; }
.qrg-faq summary { font-weight: 600; cursor: pointer; }
.qrg-faq p { margin: .5rem 0 0; color: var(--warm-mid, #6c757d); }

@media (max-width: 991.98px) {
  .qrg-preview { position: static; }
}

/* Option QR dynamique */
.qrg-mine-link { margin: .75rem 0 0; font-size: .9rem; }
.qrg-dyn { margin-top: 1rem; padding: .9rem 1rem; background: #f6f7f9; border-radius: 10px; }
.qrg-dyn .form-check-label { font-size: .9rem; }
.qrg-dyn-body { margin-top: .8rem; font-size: .9rem; }
.qrg-dyn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .9rem; }
.qrg-dyn-status { font-size: .85rem; color: var(--warm-mid, #6c757d); word-break: break-all; }

/* Liste « Mes QR codes » */
.qrg-list { display: grid; gap: .9rem; }
.qrg-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 1.1rem; align-items: center; }
.qrg-thumb { width: 88px; height: 88px; }
.qrg-thumb svg { width: 100%; height: 100%; display: block; }
.qrg-item-title { font-size: 1.05rem; margin: 0 0 .25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.qrg-item-main p { margin: 0 0 .15rem; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrg-item-short a { font-weight: 600; }
.qrg-item-target a { color: var(--warm-mid, #6c757d); }
.qrg-item-meta { color: #9aa5b8; font-size: .78rem !important; }
.qrg-badge { font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: #eef0f3; color: #3a4252; }
.qrg-badge-on { background: #e9f6ef; color: #1e6b45; }
.qrg-badge-off { background: #fdecea; color: #a23a2f; }
.qrg-item-stats { display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
.qrg-item-stats div { text-align: center; }
.qrg-item-stats strong { display: block; font-size: 1.3rem; line-height: 1.1; }
.qrg-item-stats span { font-size: .72rem; color: var(--warm-mid, #6c757d); }
.qrg-item-stats .qrg-item-last { flex-basis: 100%; text-align: right; font-size: .72rem; color: #9aa5b8; }
.qrg-item-actions { display: flex; flex-direction: column; gap: .35rem; }

@media (max-width: 767.98px) {
  .qrg-item { grid-template-columns: 72px minmax(0, 1fr); }
  .qrg-thumb { width: 72px; height: 72px; }
  .qrg-item-stats { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .qrg-item-stats .qrg-item-last { flex-basis: auto; text-align: left; }
  .qrg-item-actions { grid-column: 1 / -1; flex-direction: row; }
}

/* ── Statistiques ── */
.qrs {
  --series-1: #2a78d6;
  --series-1-hover: #1c5cab;
  --grid: #ececea;
  --axis: #c9c8c3;
  --text-secondary: #52514e;
  --text-muted: #77766f;
  --good: #1e7d4f;
  --bad: #b3261e;
}
.qrs-back { margin: 0 0 1rem; font-size: .9rem; }
.qrs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.qrs-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .35rem; }
.qrs-sub { margin: 0; font-size: .88rem; color: var(--text-secondary); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; }
.qrs-sub a { font-weight: 600; }
.qrs-sub .qrs-target { font-weight: 400; color: var(--text-secondary); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qrs-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.qrs-periods { display: inline-flex; flex-wrap: wrap; background: #f1f2f4; border-radius: 10px; padding: 3px; gap: 2px; }
.qrs-periods a { padding: .35rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.qrs-periods a:hover { color: #111c2d; }
.qrs-periods a.is-active { background: #fff; color: #111c2d; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.qrs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.qrs-tile { background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.qrs-tile-label { font-size: .8rem; color: var(--text-secondary); }
.qrs-tile-value { font-size: 1.9rem; font-weight: 600; line-height: 1.15; color: #111c2d; }
.qrs-tile-small { font-size: 1.05rem; padding: .45rem 0 .2rem; }
.qrs-tile-delta { font-size: .78rem; color: var(--text-muted); }
.qrs-tile-delta.up { color: var(--good); }
.qrs-tile-delta.down { color: var(--bad); }

.qrs h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .9rem; }
.qrs-chart-card { margin-bottom: 1rem; }
.qrs-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.qrs-chart { width: 100%; min-height: 240px; }
.qrs-chart-sm { min-height: 180px; }
.qrs-chart svg { display: block; overflow: visible; }
.qrs-bar { fill: var(--series-1); }
.qrs-gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.qrs-axis { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.qrs-tick { font-size: 11px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.qrs-hit { fill: transparent; cursor: default; }
.qrs-hit.is-hover { fill: rgba(17, 28, 45, .05); }
.qrs-table { max-height: 320px; overflow: auto; margin-top: .75rem; }
.qrs-table table { font-size: .85rem; font-variant-numeric: tabular-nums; margin: 0; }

.qrs-tip { position: fixed; z-index: 2000; pointer-events: none; background: #111c2d; color: #fff; border-radius: 8px; padding: .45rem .65rem; font-size: .78rem; line-height: 1.35; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 240px; }
.qrs-tip strong { font-size: .9rem; }
.qrs-tip span { color: #c9d1de; }
.qrs-tip[hidden] { display: none; }

.qrs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qrs-wide { grid-column: 1 / -1; }
.qrs-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.qrs-bars li { display: grid; grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) auto; align-items: center; gap: .7rem; font-size: .85rem; }
.qrs-bars-name { color: #111c2d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrs-bars-track { height: 12px; }
.qrs-bars-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.qrs-bars-val { color: var(--text-secondary); font-variant-numeric: tabular-nums; font-size: .8rem; white-space: nowrap; }
.qrs-empty i { font-size: 2.4rem; color: #9aa5b8; }
.qrs-note { margin-top: 1rem; font-size: .78rem; color: var(--text-muted); }

@media (max-width: 767.98px) {
  .qrs-grid { grid-template-columns: minmax(0, 1fr); }
  .qrs-tile-value { font-size: 1.6rem; }
}

/* ── Génération en lot ── */
.qrl-step { margin-bottom: 1rem; }
.qrl-step h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; }
.qrl-num { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold, #111c2d); color: var(--btn-text, #fff); font-size: .8rem; }
.qrl-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.qrl-mode { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; padding: .75rem .85rem; cursor: pointer; }
.qrl-mode:has(input:checked) { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrl-mode input { margin-top: .25rem; accent-color: var(--gold, #111c2d); }
.qrl-mode strong { display: block; font-size: .9rem; }
.qrl-mode small { color: var(--warm-mid, #6c757d); font-size: .78rem; }
.qrl-template { font-size: .85rem; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.qrl-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.6rem 1rem; border: 2px dashed var(--rule, #dee2e6); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.qrl-drop i { font-size: 2rem; color: #9aa5b8; }
.qrl-drop small { color: var(--warm-mid, #6c757d); font-size: .78rem; }
.qrl-drop:hover, .qrl-drop.is-over { border-color: var(--gold, #111c2d); background: #f6f7f9; }
.qrl-paste { margin-top: .8rem; font-size: .88rem; }
.qrl-paste summary { cursor: pointer; color: var(--warm-mid, #6c757d); margin-bottom: .5rem; }
.qrl-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.qrl-summary { font-size: .9rem; margin-bottom: .6rem; }
.qrl-warn { color: #8a5b1e; }
.qrl-table-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--rule, #dee2e6); border-radius: 8px; }
.qrl-table { margin: 0; font-size: .8rem; }
.qrl-table th { position: sticky; top: 0; background: #f6f7f9; font-weight: 600; }
.qrl-table td { vertical-align: top; }
.qrl-cell-data { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--warm-mid, #6c757d); }
.qrl-cell-status { color: #1e6b45; white-space: nowrap; }
.qrl-table tr.is-error td { color: #a23a2f; }
.qrl-side { position: sticky; top: calc(var(--nav-height, 64px) + 1rem); }
.qrl-sample { display: flex; gap: 1rem; align-items: center; }
.qrl-sample .qrg-canvas { width: 120px; min-width: 120px; margin: 0; }
.qrl-progress { margin-top: .8rem; }
@media (max-width: 991.98px) { .qrl-side { position: static; } }
.qrl-table td:nth-child(2) { white-space: nowrap; }

/* Aide QR dynamique */
.qrg-howto { margin-top: .6rem; font-size: .85rem; }
.qrg-howto summary { cursor: pointer; color: var(--gold, #004ac6); font-weight: 600; }
.qrg-howto ol, .qrg-dyn-next ol { padding-left: 1.2rem; margin: .6rem 0 .4rem; }
.qrg-howto li, .qrg-dyn-next li { margin-bottom: .35rem; }
.qrg-howto-note { margin: .4rem 0 0; color: #8a5b1e; background: #fdf3e0; border-radius: 6px; padding: .45rem .6rem; }
.qrg-dyn-next { margin-top: .9rem; padding: .8rem .9rem; background: #e9f6ef; border-radius: 8px; font-size: .85rem; }
.qrg-dyn-next p { margin: 0; color: #1e6b45; }
.qrg-tips { margin-bottom: .9rem; font-size: .88rem; }
.qrg-tips summary { cursor: pointer; font-weight: 600; }
.qrg-tips ul { margin: .7rem 0 0; padding-left: 1.2rem; }
.qrg-tips li { margin-bottom: .3rem; }

/* « Mes QR codes » : barre de recherche / filtres / tri, outils */
.qrm-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.qrm-search { position: relative; flex: 1 1 260px; }
.qrm-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #9aa5b8; pointer-events: none; }
.qrm-search .form-control { padding-left: 2.2rem; }
.qrm-toolbar .form-select { width: auto; flex: 0 1 190px; }
.qrm-count { font-size: .82rem; color: var(--warm-mid, #6c757d); margin-left: auto; white-space: nowrap; }
.qrm-none { text-align: center; color: var(--warm-mid, #6c757d); padding: 2rem 0; }
.qrg-item[hidden] { display: none !important; }
.qrg-item-tools { display: flex; gap: .35rem; }
.qrg-item-tools > .btn, .qrg-item-tools .dropdown > .btn { flex: 1; }
.qrg-item-tools .dropdown { flex: 1; display: flex; }
.qrg-item-tools .dropdown-item small { margin-left: .35rem; }
.qrg-type-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 600; color: #3a4252; background: #eef0f3; border-radius: 999px; padding: .05rem .5rem; margin-right: .35rem; }
@media (max-width: 767.98px) {
  .qrm-toolbar .form-select { flex: 1 1 140px; }
  .qrm-count { margin-left: 0; }
  .qrg-item-tools { flex: 1 1 100%; }
  .qrg-item-actions { flex-wrap: wrap; }
}
.qrm-adopt { margin-bottom: .9rem; background: #fdf3e0; border-color: #f0d9a8; font-size: .9rem; }
.qrm-adopt p { margin: 0 0 .4rem; }
.qrm-adopt ul { margin: 0 0 .8rem; padding-left: 1.2rem; }

/* Enregistrer dans mon compte */
.qrg-save { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule, #dee2e6); text-align: left; }
.qrg-save-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.qrg-save-row .form-control { flex: 1 1 100%; min-width: 0; }
.qrg-save-row .btn { flex: 1; white-space: nowrap; }
.qrg-help { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: #f5a524; color: #3d2600; font-weight: 800; font-size: .95rem; line-height: 1; cursor: pointer; }
.qrg-help:focus-visible { outline: 2px solid #8a5b1e; outline-offset: 2px; }
.qrg-save-warn { margin-top: .6rem; background: #fdf3e0; border: 1px solid #f0d9a8; border-radius: 8px; padding: .65rem .8rem; font-size: .82rem; color: #5c3d10; }
.qrg-save-warn p { margin: 0 0 .35rem; }
.qrg-save-warn p:last-child { margin: 0; }
.qrg-save-warn i { color: #c07a12; }
.qrg-save-status { font-size: .8rem; color: var(--warm-mid, #6c757d); margin: .45rem 0 0; min-height: 1em; }
.qrg-save-anon { font-size: .85rem; color: var(--warm-mid, #6c757d); margin: 0; }

/* Mes QR enregistrés */
.qrv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.qrv-card { display: flex; flex-direction: column; gap: .7rem; }
.qrv-card[hidden] { display: none !important; }
.qrv-thumb { display: block; width: 150px; height: 150px; margin: 0 auto; border-radius: 8px;
  background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.qrv-thumb svg { width: 100%; height: 100%; display: block; }
.qrv-thumb.is-crisp clipPath[id^="clip-path-dot-color"] { shape-rendering: crispEdges; }
.qrv-body { min-width: 0; flex: 1; }
.qrv-title { font-size: 1rem; margin: 0 0 .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrv-sum { font-size: .82rem; color: var(--warm-mid, #6c757d); margin: 0 0 .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrv-actions { display: flex; gap: .35rem; }
.qrv-actions > .btn:first-child { flex: 1; }

/* Modèles prêts à l'emploi */
.qrg-presets { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .8rem 0 .7rem; border-bottom: 1px solid var(--rule, #dee2e6); }
.qrg-presets-label { font-size: .8rem; font-weight: 700; margin-right: .2rem; }
.qrg-presets-label .bi { color: var(--gold, inherit); }
.qrg-presets-pro { padding-top: .6rem; }
.qrg-presets-pro .qrg-presets-label { min-width: 5.6rem; }
.qrg-preset { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem .3rem .35rem; font-size: .78rem; font-weight: 600; color: #3a4252; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; cursor: pointer; }
.qrg-preset > span { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: linear-gradient(135deg, var(--p1) 50%, var(--p2) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.qrg-preset:hover { border-color: var(--gold, #9aa5b8); }
.qrg-preset.is-active { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-preset:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
#qrg-mystyle { font-size: .78rem; margin-left: .2rem; }

/* Cadres */
.qrg-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
.qrg-frame-opt { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem .3rem; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; font-size: .72rem; font-weight: 600; text-align: center; cursor: pointer; position: relative; }
.qrg-frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qrg-frame-opt:has(input:checked) { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-frame-opt:has(input:focus-visible) { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
.qrg-frame-ico { position: relative; width: 34px; height: 42px; display: block; }
.qrg-frame-ico i { position: absolute; left: 7px; top: 7px; width: 20px; height: 20px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 6px 6px; border-radius: 2px; }
.qrg-frame-ico.f-none i { top: 11px; }
.qrg-frame-ico.f-box { background: #111; border-radius: 5px; }
.qrg-frame-ico.f-box::after, .qrg-frame-ico.f-box-top::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; background: #fff; border-radius: 2px; bottom: 6px; }
.qrg-frame-ico.f-box-top { background: #111; border-radius: 5px; }
.qrg-frame-ico.f-box-top i { top: 15px; }
.qrg-frame-ico.f-box-top::after { bottom: auto; top: 6px; }
.qrg-frame-ico.f-bubble::before { content: ""; position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border: 2px solid #111; border-radius: 5px; box-sizing: border-box; }
.qrg-frame-ico.f-bubble i { left: 7px; top: 7px; }
.qrg-frame-ico.f-bubble::after, .qrg-frame-ico.f-pill::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 7px; background: #111; border-radius: 4px; }
.qrg-frame-ico.f-pill i { top: 4px; }


/* Aperçu avec cadre : image non carrée */
.qrg-canvas.is-framed { aspect-ratio: auto; background: none; }

/* Barre d'arguments (héros) */
.qrg-args { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 .9rem; padding: 0; font-size: .85rem; font-weight: 600; }
.qrg-args li { display: inline-flex; align-items: center; gap: .35rem; }
.qrg-args:not(:has(li:not([hidden]))) { display: none; }

/* Galerie d'exemples */
.qrg-gallery { margin-bottom: 1.4rem; }
.qrg-gallery h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .7rem; display: flex; align-items: center; gap: .45rem; }
.qrg-gallery h2 .bi { color: var(--gold, #f59e0b); }
.qrg-gallery-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: .6rem; overflow-x: auto; padding: .2rem .1rem .6rem; scroll-snap-type: x mandatory; }
.qrg-ex { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .55rem .45rem .5rem; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; font: inherit; color: inherit; }
.qrg-ex:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .1); border-color: var(--gold, #9aa5b8); }
.qrg-ex.is-active { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-ex:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
.qrg-ex-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.qrg-ex-thumb svg { max-width: 100%; max-height: 64px; width: auto; height: auto; display: block; }
.qrg-ex-label { font-size: .72rem; font-weight: 600; line-height: 1.25; text-align: center; display: block; }
.qrg-ex-label .bi { margin-right: .2rem; }
.qrg-ex-label .bi { color: var(--gold, inherit); }
.qrg-ex-zoom { position: fixed; z-index: 1080; left: 0; top: 0; width: 240px; padding: .8rem; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .22); pointer-events: none; opacity: 0; visibility: hidden; transform: scale(.85); transform-origin: center bottom; transition: opacity .15s, transform .15s, visibility .15s; text-align: center; }
.qrg-ex-zoom.is-on { opacity: 1; visibility: visible; transform: none; }
.qrg-ex-zoom svg { display: block; width: 100%; height: auto; max-height: 280px; }
.qrg-ex-zoom span { display: block; margin-top: .5rem; font-size: .82rem; font-weight: 700; color: #1f2937; }
@media (prefers-reduced-motion: reduce) { .qrg-ex, .qrg-ex-zoom { transition: none; } .qrg-ex:hover { transform: none; } }

/* Mise en situation */
.qrg-views { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin: 0 0 .8rem; }
.qrg-views button { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; font: inherit; font-size: .75rem; font-weight: 600; color: #3a4252; background: #f3f4f6; border: 0; border-radius: 999px; cursor: pointer; }
.qrg-views button.is-active { background: var(--gold-btn, var(--gold, #111c2d)); color: var(--btn-text, #fff); }
.qrg-views button:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
.qrg-mock { max-width: 360px; margin: 0 auto; }
.mk { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.mk img { display: block; width: 100%; height: auto; }
/* Affiche sur un mur */
.mk-poster { background: linear-gradient(160deg, #e7e2d8, #d6cfc2); }
.mk-sheet { width: 62%; aspect-ratio: 1 / 1.414; background: #fff; box-shadow: 0 18px 30px -12px rgba(0,0,0,.35); display: flex; flex-direction: column; transform: rotate(-1.5deg); }
.mk-band { background: var(--gold, #111c2d); color: var(--btn-text, #fff); padding: 9% 8% 7%; }
.mk-band span { display: block; font-weight: 800; font-size: .95rem; line-height: 1.1; }
.mk-band small { font-size: .6rem; opacity: .85; }
.mk-lines { padding: 7% 8% 0; display: grid; gap: 5px; }
.mk-lines i { display: block; height: 5px; border-radius: 3px; background: #e5e7eb; }
.mk-lines i.s { width: 60%; }
.mk-poster .mk-qr { width: 44%; margin: auto 8% 8% auto; }
/* Chevalet sur une table */
.mk-table { background: linear-gradient(180deg, #f3efe8 0 62%, transparent 62%); flex-direction: column; justify-content: flex-end; }
.mk-tent { position: relative; z-index: 1; width: 58%; background: #fff; border-radius: 6px 6px 2px 2px; padding: 6% 6% 5%; text-align: center; box-shadow: 0 14px 22px -10px rgba(0,0,0,.4); margin-bottom: -4%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mk-tent span { font-size: .7rem; font-weight: 800; line-height: 1.2; }
.mk-tent small { font-size: .55rem; color: #6b7280; }
.mk-tent .mk-qr { width: 78%; }
.mk-wood { width: 100%; height: 30%; background: repeating-linear-gradient(90deg, #a16207 0 18px, #92400e 18px 22px, #a16207 22px 40px); }
/* Carte de visite sur un bureau */
.mk-desk { background: radial-gradient(circle at 30% 20%, #475569, #1e293b); }
.mk-bcard { width: 82%; aspect-ratio: 85 / 55; background: #fff; border-radius: 6px; box-shadow: 0 20px 30px -10px rgba(0,0,0,.6); display: flex; align-items: center; gap: 6%; padding: 6%; transform: rotate(-4deg); }
.mk-bcard-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-bcard-txt b { font-size: .85rem; }
.mk-bcard-txt span { font-size: .6rem; color: var(--gold, #6b7280); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.mk-bcard-txt i { display: block; height: 4px; border-radius: 2px; background: #e5e7eb; }
.mk-bcard-txt i.s { width: 70%; }
.mk-bcard .mk-qr { width: 38%; }
/* Écran de téléphone */
.mk-phone-wrap { background: linear-gradient(135deg, #e0e7ff, #f5f3ff); }
.mk-phone { width: 46%; aspect-ratio: 9 / 18; background: #0f172a; border-radius: 22px; padding: 6px; box-shadow: 0 20px 30px -10px rgba(15,23,42,.5); position: relative; }
.mk-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 30%; height: 8px; border-radius: 6px; background: #0f172a; z-index: 1; }
.mk-app { height: 100%; background: #fff; border-radius: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10%; text-align: center; }
.mk-app span { font-size: .72rem; font-weight: 800; }
.mk-app small { font-size: .5rem; color: #6b7280; margin-bottom: 6%; }
.mk-app .mk-qr { width: 92%; }

/* Compteur de confiance (héros) */
.qrg-args .qrg-count .bi { color: var(--td-acc1, var(--gold, #22c55e)); }
.qrg-args .qrg-count[hidden] { display: none; }

/* Parcours en 3 étapes */
.qrg-steps { list-style: none; display: flex; gap: .4rem; margin: 0 0 1rem; padding: 0; counter-reset: none; }
.qrg-steps li { flex: 1; position: relative; }
.qrg-steps li + li::before { content: ""; position: absolute; left: -.4rem; right: 100%; top: 50%; height: 2px; background: var(--rule, #dee2e6); }
.qrg-steps button { width: 100%; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .6rem; font: inherit; font-size: .85rem; font-weight: 700; color: #6b7280; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 999px; cursor: pointer; }
.qrg-steps button span { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #eef0f3; color: #3a4252; font-size: .75rem; }
.qrg-steps .is-current button { color: var(--ink, #111c2d); border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-steps .is-current button span { background: var(--gold, #111c2d); color: var(--btn-text, #fff); }
.qrg-steps .is-done button span { background: #16a34a; color: #fff; font-size: 0; }
.qrg-steps .is-done button span::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: .9rem; }
.qrg-steps button:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
@media (max-width: 575.98px) { .qrg-steps button { font-size: .75rem; padding: .45rem .3rem; } }

/* Note de lisibilité */
.qrg-score { max-width: 300px; margin: .2rem auto .4rem; text-align: left; }
.qrg-score-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; }
.qrg-score-row b { font-variant-numeric: tabular-nums; }
.qrg-score-bar { height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; margin: .3rem 0 .2rem; }
.qrg-score-bar span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.qrg-score small { display: block; font-size: .72rem; color: var(--warm-mid, #6c757d); }
.qrg-score.is-ok .qrg-score-bar span { background: #16a34a; } .qrg-score.is-ok strong, .qrg-score.is-ok .bi { color: #15803d; }
.qrg-score.is-mid .qrg-score-bar span { background: #f59e0b; } .qrg-score.is-mid strong, .qrg-score.is-mid .bi { color: #b45309; }
.qrg-score.is-ko .qrg-score-bar span { background: #dc2626; } .qrg-score.is-ko strong, .qrg-score.is-ko .bi { color: #b91c1c; }

/* « Et après ? » */
.qrg-after { position: relative; margin-top: .9rem; padding: .85rem 1rem .6rem; text-align: left; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; font-size: .82rem; }
.qrg-after-title { margin: 0 1.5rem .5rem 0; font-weight: 700; color: #15803d; }
.qrg-after ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.qrg-after li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .4rem; line-height: 1.45; }
.qrg-after li > .bi { color: #15803d; margin-top: .1rem; }
.qrg-after .btn-link { font-size: inherit; }
.qrg-after-x { position: absolute; top: .4rem; right: .4rem; border: 0; background: none; color: #6b7280; padding: .25rem; cursor: pointer; }

/* Test au téléphone */
.qrg-testlayer { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, .7); }
.qrg-testlayer[hidden] { display: none; }
.qrg-testbox { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border-radius: 16px; padding: 1.5rem; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.qrg-testbox h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; }
.qrg-test-img { width: min(340px, 80vw); margin: 0 auto 1rem; }
.qrg-test-img svg { width: 100% !important; height: auto !important; display: block; }
.qrg-testbox ol { text-align: left; font-size: .88rem; padding-left: 1.2rem; margin: 0 0 .6rem; }
.qrg-test-note { font-size: .78rem; color: #6b7280; margin: 0; }
.qrg-test-x { position: absolute; top: .6rem; right: .6rem; border: 0; background: none; font-size: 1.1rem; color: #6b7280; cursor: pointer; padding: .3rem; }
.qrv-thumb.is-framed, .qrg-thumb.is-framed { background: none; }

/* Vignettes des nouveaux cadres */
.qrg-frame-ico.f-ticket { background: #111; border-radius: 5px; }
.qrg-frame-ico.f-ticket::before { content: ""; position: absolute; left: -4px; right: -4px; top: 29px; height: 8px; background: radial-gradient(circle at 4px 4px, #fff 3.5px, transparent 4px) left / 8px 8px no-repeat, radial-gradient(circle at 4px 4px, #fff 3.5px, transparent 4px) right / 8px 8px no-repeat; }
.qrg-frame-ico.f-ticket::after { content: ""; position: absolute; left: 7px; right: 7px; top: 32px; border-top: 2px dashed rgba(255,255,255,.7); }
.qrg-frame-ico.f-ribbon i { top: 3px; }
.qrg-frame-ico.f-ribbon::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 9px; background: #111; clip-path: polygon(0 20%, 12% 20%, 12% 0, 88% 0, 88% 20%, 100% 20%, 94% 60%, 100% 100%, 88% 100%, 12% 100%, 0 100%, 6% 60%); }
.qrg-frame-ico.f-corners::before { content: ""; position: absolute; left: 3px; top: 3px; width: 28px; height: 28px;
  background: linear-gradient(#111, #111) top left / 7px 2px, linear-gradient(#111, #111) top left / 2px 7px, linear-gradient(#111, #111) top right / 7px 2px, linear-gradient(#111, #111) top right / 2px 7px,
              linear-gradient(#111, #111) bottom left / 7px 2px, linear-gradient(#111, #111) bottom left / 2px 7px, linear-gradient(#111, #111) bottom right / 7px 2px, linear-gradient(#111, #111) bottom right / 2px 7px; background-repeat: no-repeat; }
.qrg-frame-ico.f-corners::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-phone { background: #111; border-radius: 7px; }
.qrg-frame-ico.f-phone i { top: 9px; }
.qrg-frame-ico.f-phone::before { content: ""; position: absolute; left: 13px; top: 3px; width: 8px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.6); }
.qrg-frame-ico.f-phone::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-polaroid { background: #fff; border: 1px solid #cbd5e1; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.qrg-frame-ico.f-polaroid i { left: 6px; top: 4px; }
.qrg-frame-ico.f-polaroid::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-arrow i { top: 18px; }
.qrg-frame-ico.f-arrow::before { content: ""; position: absolute; left: 8px; right: 8px; top: 2px; height: 3px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-arrow::after { content: "\F128"; font-family: "bootstrap-icons"; position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 11px; line-height: 1; color: #111; }
.qrg-frame-ico.f-circle i { left: 7px; top: 8px; width: 20px; height: 20px; }
.qrg-frame-ico.f-circle::before { content: ""; position: absolute; left: -1px; top: 2px; width: 36px; height: 36px; border: 3px solid #111; border-radius: 50%; box-sizing: border-box; }
.qrg-frame-ico.f-circle::after { content: ""; position: absolute; left: 11px; right: 11px; top: 31px; height: 2px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-tag { background: #111; border-radius: 3px 3px 5px 5px; clip-path: polygon(0 18%, 28% 0, 72% 0, 100% 18%, 100% 100%, 0 100%); }
.qrg-frame-ico.f-tag i { top: 10px; }
.qrg-frame-ico.f-tag::before { content: ""; position: absolute; left: 14px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.qrg-frame-ico.f-tag::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-stamp { background: #111; -webkit-mask: radial-gradient(circle 2.5px at 50% 50%, transparent 98%, #000) -3px -3px / 6px 6px, linear-gradient(#000, #000) center / calc(100% - 6px) calc(100% - 6px) no-repeat; mask: radial-gradient(circle 2.5px at 50% 50%, transparent 98%, #000) -3px -3px / 6px 6px, linear-gradient(#000, #000) center / calc(100% - 6px) calc(100% - 6px) no-repeat; }
.qrg-frame-ico.f-stamp::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-stamp i { top: 6px; }

/* Pictogrammes prêts à l'emploi (logo) */
.qrg-pictos { display: flex; flex-wrap: wrap; gap: .3rem; }
.qrg-picto { padding: 0; width: 2.1rem; height: 2.1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #3a4252; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.qrg-picto:hover { border-color: var(--gold, #9aa5b8); color: var(--gold, #111c2d); transform: translateY(-1px); }
.qrg-picto.is-active { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); color: var(--gold, #111c2d); }
.qrg-picto:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }

/* UTM, taille d'impression */
.qrg-utm > summary { font-size: .85rem; font-weight: 600; cursor: pointer; padding: .3rem 0; }
.qrg-utm > summary .bi { color: var(--gold, inherit); margin-right: .2rem; }
.qrg-print-info { margin: .2rem 0 0; font-size: .8rem; color: #5b6474; }
.qrg-print-info .bi { color: var(--gold, inherit); }

/* Copier, planche A4 */
.qrg-dl-more { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.qrg-sheet { margin-top: .5rem; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; padding: .35rem .7rem; background: #fff; }
.qrg-sheet > summary { font-size: .85rem; font-weight: 600; cursor: pointer; }
.qrg-sheet > summary .bi { color: var(--gold, inherit); margin-right: .2rem; }
.qrg-sheet-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0 .2rem; font-size: .85rem; }
.qrg-sheet-row select { width: auto; flex: 1 1 11rem; }

/* Format du code : QR, Data Matrix, Aztec, PDF417 */
.qrg-seg label { position: relative; margin: 0; cursor: pointer; }
.qrg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.qrg-seg label > span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; font-size: .78rem; font-weight: 600; color: #3a4252; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.qrg-seg input:checked + span { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); color: var(--gold, #111c2d); }
.qrg-seg input:focus-visible + span { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }

/* PDF / Images : source et envoi */
.qrg-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.qrg-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.1rem; border: 2px dashed var(--rule, #cbd5e1); border-radius: 12px; background: #fafbfc; color: #3a4252; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.qrg-drop:hover, .qrg-drop:focus-within { border-color: var(--gold, #94a3b8); background: #fff; }
.qrg-drop .bi { font-size: 1.5rem; color: var(--gold, #64748b); }
.qrg-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qrg-upload-status { margin-top: .5rem; font-size: .85rem; }
.qrg-upload-status .bi-check-circle-fill { color: #16a34a; }
.qrg-upload-anon { font-size: .88rem; padding: .7rem .9rem; border-radius: 10px; background: #f8fafc; border: 1px solid var(--rule, #dee2e6); margin: 0; }

/* Aide sur les formats : bulle au survol + fenêtre « Quel format choisir ? » */
.qrg-symbox { max-width: 680px; text-align: left; }
.qrg-symbox h2 { text-align: center; }
.qrg-symbox h2 .bi { color: var(--gold, inherit); }
.qrg-sym-intro { font-size: .88rem; color: #5b6474; text-align: center; margin: -.4rem 0 1rem; }
.qrg-sym-cards { display: grid; gap: .7rem; }
.qrg-sym-card { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: start; padding: .8rem; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; }
.qrg-sym-card.is-reco { border-color: #86efac; background: #f0fdf4; }
.qrg-sym-card.is-current { box-shadow: inset 0 0 0 2px var(--gold, #111c2d); }
.qrg-sym-img { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; border: 1px solid #eef0f3; overflow: hidden; }
.qrg-sym-img svg, .qrg-sym-img canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.qrg-sym-card h3 { font-size: .98rem; font-weight: 800; margin: 0 0 .25rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.qrg-sym-badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .45rem; border-radius: 999px; background: #16a34a; color: #fff; }
.qrg-sym-card p { font-size: .84rem; margin: 0 0 .35rem; }
.qrg-sym-use { color: #334155; }
.qrg-sym-use .bi { color: var(--gold, #16a34a); margin-right: .2rem; }
.qrg-sym-warn { color: #92400e; }
.qrg-sym-warn .bi { margin-right: .2rem; }
.qrg-sym-card .btn { margin-top: .2rem; }
@media (max-width: 480px) { .qrg-sym-card { grid-template-columns: 64px 1fr; } .qrg-sym-img { width: 64px; height: 64px; } }
.qrg-frame-ico.f-bag { background: linear-gradient(#111, #111) 0 9px / 100% 33px no-repeat; border-radius: 0 0 5px 5px; }
.qrg-frame-ico.f-bag::before { content: ""; position: absolute; left: 10px; top: 0; width: 10px; height: 9px; border: 2.5px solid #111; border-bottom: 0; border-radius: 7px 7px 0 0; }
.qrg-frame-ico.f-bag i { top: 13px; }
.qrg-frame-ico.f-bag::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-clap { background: linear-gradient(#111, #111) 0 11px / 100% 31px no-repeat; border-radius: 0 0 4px 4px; }
.qrg-frame-ico.f-clap::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 6px; background: repeating-linear-gradient(-55deg, #111 0 4px, #fff 4px 8px); border: 1px solid #111; transform: rotate(-9deg); transform-origin: left bottom; }
.qrg-frame-ico.f-clap i { top: 14px; }
.qrg-frame-ico.f-clap::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-notepad { background: #fffdf7; border: 1px solid #cbd5e1; border-top: 5px solid #111; border-radius: 3px; }
.qrg-frame-ico.f-notepad::before { content: ""; position: absolute; left: 3px; right: 3px; top: -9px; height: 7px; background: radial-gradient(circle, #9ca3af 1.6px, transparent 2px) 0 0 / 6px 7px repeat-x; }
.qrg-frame-ico.f-notepad i { top: 3px; }
.qrg-frame-ico.f-notepad::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 5px; height: 3px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-coupon { border: 1.5px dashed #111; border-radius: 4px; }
.qrg-frame-ico.f-coupon::before { content: "\F528"; font-family: "bootstrap-icons"; position: absolute; left: 3px; top: -8px; font-size: 10px; line-height: 1; color: #111; background: #fff; transform: rotate(-90deg); }
.qrg-frame-ico.f-coupon i { left: 6px; top: 4px; }
.qrg-frame-ico.f-coupon::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 7px; border-radius: 2px; background: #111; }
.qrg-frame-ico.f-gift { background: linear-gradient(#111, #111) 2px 15px / 30px 27px no-repeat, linear-gradient(90deg, #111 0 14px, #fff 14px 20px, #111 20px) 0 10px / 34px 6px no-repeat; border-radius: 0; }
.qrg-frame-ico.f-gift::before { content: ""; position: absolute; left: 9px; top: 1px; width: 16px; height: 9px; background: radial-gradient(ellipse at 25% 60%, transparent 2px, #111 2.5px, #111 4px, transparent 4.5px), radial-gradient(ellipse at 75% 60%, transparent 2px, #111 2.5px, #111 4px, transparent 4.5px); }
.qrg-frame-ico.f-gift i { left: 7px; top: 18px; width: 20px; height: 17px; }
.qrg-frame-ico.f-gift::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 2px; background: #fff; }
.qrg-frame-ico.f-bubble-top::before { content: ""; position: absolute; left: 3px; top: 11px; width: 28px; height: 28px; border: 2px solid #111; border-radius: 5px; box-sizing: border-box; }
.qrg-frame-ico.f-bubble-top i { left: 7px; top: 15px; }
.qrg-frame-ico.f-bubble-top::after { content: ""; position: absolute; left: 6px; right: 6px; top: 1px; height: 7px; background: #111; border-radius: 4px; }

/* ═══ Éditeur : onglets sur la largeur à gauche (Contenu, Modèles, Format…), aperçu à droite ═══ */
.qrg-editor { --qrg-top: calc(var(--nav-height, 64px) + .75rem); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.qrg-editor-form { display: contents; }
.qrg-col { min-width: 0; }
.qrg-col-title { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #5b6474; margin: 0 0 .7rem; }
.qrg-col-title .bi { color: var(--gold, inherit); font-size: 1rem; }
@media (min-width: 992px) {
  .qrg-editor { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
  .qrg-col-style { grid-column: 1; }
  .qrg-col-preview { grid-column: 2; position: sticky; top: var(--qrg-top); }
  .qrg-col-preview .qrg-col { max-height: calc(100vh - var(--qrg-top) - 1rem); overflow-y: auto; overscroll-behavior: contain; }
}
.qrg-col::-webkit-scrollbar, .qrg-dpanels::-webkit-scrollbar { width: 6px; }
.qrg-col::-webkit-scrollbar-thumb, .qrg-dpanels::-webkit-scrollbar-thumb { background: #d6dbe3; border-radius: 3px; }

/* Types de contenu : grille compacte */

/* Onglets du style */
.qrg-design { margin-top: 0; border-top: 0; }
.qrg-dtabs { display: flex; gap: .2rem; margin: 0 0 .8rem; padding: .25rem; background: #f3f5f8; border-radius: 11px; overflow-x: auto; scrollbar-width: none; flex: none; }
.qrg-dtabs::-webkit-scrollbar { display: none; }
.qrg-dtabs button { flex: 1 1 0; min-width: 0; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem .15rem; font: inherit; font-size: .7rem; font-weight: 700; color: #5b6474; background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.qrg-dtabs button .bi { font-size: 1rem; }
.qrg-dtabs button:hover { color: var(--ink, #111c2d); }
.qrg-dtabs button.is-active { background: #fff; color: var(--gold, #111c2d); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.qrg-dtabs button:focus-visible { outline: 2px solid var(--gold, #004ac6); outline-offset: 1px; }
.qrg-dpanel[hidden] { display: none; }
.qrg-dpanel > .row { padding-bottom: .4rem; }
.qrg-dpanel .qrg-presets:first-child { padding-top: 0; }
.qrg-dpanel-intro { font-size: .82rem; color: #5b6474; margin: 0 0 .7rem; }

/* Onglet Format : cartes */
.qrg-syms { display: grid; gap: .45rem; }
.qrg-syms label { position: relative; margin: 0; cursor: pointer; }
.qrg-syms input { position: absolute; opacity: 0; pointer-events: none; }
.qrg-syms label > span { display: grid; grid-template-columns: 2rem 1fr; column-gap: .6rem; align-items: center; padding: .6rem .75rem; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.qrg-syms label > span .bi { grid-row: span 2; font-size: 1.4rem; color: #5b6474; text-align: center; }
.qrg-syms b { font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.qrg-syms em { font-style: normal; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .05rem .4rem; border-radius: 999px; background: #16a34a; color: #fff; }
.qrg-syms small { font-size: .76rem; color: #5b6474; line-height: 1.35; }
.qrg-syms label:hover > span { border-color: var(--gold, #94a3b8); }
.qrg-syms input:checked + span { border-color: var(--gold, #111c2d); box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-syms input:checked + span .bi { color: var(--gold, #111c2d); }
.qrg-syms input:focus-visible + span { outline: 2px solid var(--gold, #004ac6); outline-offset: 2px; }
@media (max-width: 767.98px) { .qrg-dtabs { gap: .1rem; padding: .2rem; } .qrg-dtabs button { flex: 0 0 auto; font-size: .68rem; padding: .3rem .55rem; } .qrg-dtabs button .bi { font-size: .95rem; } }

/* ═══ Mode « une seule hauteur » (grand écran) : hero compact + éditeur à la hauteur restante ═══ */
@media (min-width: 1200px) and (min-height: 620px) {
  .qrg-hero { padding-top: .9rem !important; padding-bottom: .9rem !important; }
  .qrg-hero .qrg-kicker { display: none; }
  .qrg-hero h1 { font-size: 1.45rem; margin: 0 0 .15rem; }
  .qrg-hero .qrg-lead { font-size: .84rem; margin: 0 0 .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .qrg-hero .qrg-args { display: none; }
  .qrg-hero .qrg-hero-links a { padding: .22rem .65rem; font-size: .76rem; }
  .qrg-hero .dhs { padding: .55rem .8rem; font-size: .8rem; }
  .qrg { padding-top: .75rem; padding-bottom: .75rem; }
  .qrg.is-fit .qrg-editor { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .qrg.is-fit .qrg-col-style, .qrg.is-fit .qrg-col-preview { position: static; height: 100%; min-height: 0; }
  .qrg.is-fit .qrg-col-style { display: flex; flex-direction: column; overflow: hidden; }
  .qrg.is-fit .qrg-col-style .qrg-dpanels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .3rem; }
  .qrg.is-fit .qrg-col-preview { display: flex; flex-direction: column; }
  .qrg.is-fit .qrg-col-preview .qrg-col { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  .qrg.is-fit .qrg-col { padding: .8rem .9rem; }
  .qrg.is-fit .qrg-col-title { margin-bottom: .55rem; }
  .qrg.is-fit .qrg-views { flex-wrap: nowrap; gap: .2rem; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; flex: none; }
  .qrg.is-fit .qrg-views::-webkit-scrollbar { display: none; }
  .qrg.is-fit .qrg-views button { padding: .25rem .45rem; font-size: .7rem; white-space: nowrap; }
  .qrg.is-fit .qrg-canvas { max-width: min(280px, calc(100vh - 540px)); min-width: 160px; }
}
/* Galerie d'exemples dans l'onglet Modèles */
.qrg-dpanel .qrg-gallery { margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule, #dee2e6); }
.qrg-dpanel .qrg-gallery h3 { font-size: .8rem; margin: 0 0 .4rem; display: flex; align-items: center; gap: .35rem; }
.qrg-dpanel .qrg-gallery h3 small { font-weight: 500; color: #8a93a3; }
.qrg-dpanel .qrg-gallery-row { grid-auto-columns: 86px; padding-bottom: .4rem; }
.qrg-dpanel .qrg-ex { padding: .4rem .3rem; gap: .3rem; }
.qrg-dpanel .qrg-ex-thumb { height: 52px; }
.qrg-dpanel .qrg-ex-thumb svg { max-height: 52px; }
.qrg-dpanel .qrg-ex-label { font-size: .66rem; }
@media (min-width: 768px) {
  .qrg-dtabs button { flex-direction: row; justify-content: center; gap: .35rem; padding: .5rem .3rem; font-size: .8rem; }
  .qrg-dtabs button .bi { font-size: .95rem; }
}
/* Onglet Contenu : types sur la largeur */
.qrg-dpanel-content .qrg-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .3rem; margin-bottom: .9rem; }
.qrg-dpanel-content .qrg-type { justify-content: flex-start; padding: .35rem .55rem; font-size: .76rem; border-radius: 9px; white-space: nowrap; }
/* Cadres plus compacts sur la largeur : les 20 tiennent sans défiler */
@media (min-width: 992px) {
  .qrg-dpanel .qrg-frames { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .3rem; }
  .qrg-dpanel .qrg-frame-opt { flex-direction: row; justify-content: flex-start; gap: .4rem; padding: .3rem .4rem; font-size: .68rem; line-height: 1.15; text-align: left; }
  .qrg-dpanel .qrg-frame-ico { transform: scale(.72); margin: -6px -5px; flex: none; }
}
.qrg-picto img { width: 1.6rem; height: 1.6rem; display: block; }

/* Pictogramme libre et couleurs de la pastille */
.qrg-picto-custom { margin-top: .6rem; }
.qrg-picto-custom .form-text { margin-top: .25rem; }
.qrg-picto-colors { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; font-size: .82rem; }
.qrg-picto-color { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; }
.qrg-picto-color input[type=color] { width: 2.2rem; height: 1.9rem; padding: .15rem; }
.qrg-picto-color input:disabled { opacity: .4; }

/* Sous-titres des onglets, exemples d'icônes */
.qrg-subtitle { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #5b6474; margin: .35rem 0 .1rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule, #eef0f3); }
.qrg-ichips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .74rem; }
.qrg-ichips > span { color: #8a93a3; }
.qrg-ichips button { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; font: inherit; font-size: .72rem; color: #3a4252; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 999px; cursor: pointer; }
.qrg-ichips button:hover { border-color: var(--gold, #94a3b8); color: var(--gold, #111c2d); }

/* Exemples complets : une ligne sous le hero */
.qrg-gallery-top { display: flex; align-items: center; gap: .9rem; margin: 0 0 .75rem; padding: .45rem .6rem; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; }
.qrg-gallery-top h2 { flex: none; display: flex; flex-direction: column; gap: .05rem; margin: 0; font-size: .86rem; font-weight: 800; max-width: 130px; }
.qrg-gallery-top h2 small { font-size: .68rem; font-weight: 500; color: #8a93a3; line-height: 1.25; }
.qrg-gallery-top .qrg-gallery-row { flex: 1; min-width: 0; grid-auto-columns: 158px; gap: .4rem; padding: .1rem .1rem .35rem; }
.qrg-gallery-top .qrg-ex { flex-direction: row; justify-content: flex-start; gap: .45rem; padding: .3rem .45rem; border-radius: 10px; text-align: left; }
.qrg-gallery-top .qrg-ex-thumb { width: 40px; height: 40px; flex: none; }
.qrg-gallery-top .qrg-ex-thumb svg { max-height: 40px; }
.qrg-gallery-top .qrg-ex-label { font-size: .7rem; text-align: left; }
@media (max-width: 575.98px) { .qrg-gallery-top { flex-direction: column; align-items: stretch; } .qrg-gallery-top h2 { max-width: none; flex-direction: row; align-items: baseline; gap: .4rem; } }
.qrg-gallery-top .qrg-gallery-row { scrollbar-width: thin; }

/* Sélecteur d'icônes */
.qrg-iconbox { max-width: 760px; text-align: left; display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.qrg-iconbox h2 { text-align: center; }
.qrg-icon-search { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; font-size: .85rem; }
.qrg-icon-search input[type=search] { flex: 1; }
.qrg-icongrid { flex: 1; min-height: 200px; overflow-y: auto; display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .35rem; padding: .1rem; }
.qrg-icongrid button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .25rem .4rem; background: #fff; border: 1px solid var(--rule, #e5e7eb); border-radius: 10px; cursor: pointer; color: #111827; font: inherit; }
.qrg-icongrid button:hover, .qrg-icongrid button:focus-visible { border-color: var(--gold, #111c2d); color: var(--gold, #111c2d); outline: none; box-shadow: inset 0 0 0 1px var(--gold, #111c2d); }
.qrg-icongrid button span { font-size: .62rem; color: #6b7280; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrg-icon-count { margin: .5rem 0 0; font-size: .78rem; color: #6b7280; }
.qrg-icon-load { grid-column: 1 / -1; color: #6b7280; font-size: .85rem; }

/* ═══ Sections en accordéon ═══ */
.qrg-dpanels > details.qrg-dpanel { border: 1px solid var(--rule, #e5e7eb); border-radius: 10px; margin-bottom: .4rem; background: #fff; }
.qrg-dpanels > details.qrg-dpanel > summary { padding: .6rem .85rem; font-size: .9rem; font-weight: 700; border-radius: 10px; }
.qrg-dpanels > details.qrg-dpanel > summary:hover { background: #f8fafc; }
.qrg-dpanels > details.qrg-dpanel[open] > summary { color: var(--gold, #111c2d); border-bottom: 1px solid var(--rule, #eef0f3); border-radius: 10px 10px 0 0; }
.qrg-dpanel-body { padding: .75rem .85rem .6rem; }
.qrg-dpanel-body > .row { padding-bottom: 0; }

/* Exemples : une ligne, sans titre ni défilement, vignettes plus grandes */
.qrg-gallery-top { display: block; padding: .5rem; }
.qrg-gallery-top .qrg-gallery-row { display: flex; gap: .4rem; overflow: visible; padding: 0; }
.qrg-gallery-top .qrg-ex { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: .3rem; padding: .45rem .25rem .4rem; text-align: center; }
.qrg-gallery-top .qrg-ex-thumb { width: 100%; height: 66px; }
.qrg-gallery-top .qrg-ex-thumb svg { max-height: 66px; }
.qrg-gallery-top .qrg-ex-label { font-size: .68rem; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qrg-gallery-top .qrg-ex-label .bi { display: none; }
@media (max-width: 991.98px) { .qrg-gallery-top .qrg-gallery-row { overflow-x: auto; } .qrg-gallery-top .qrg-ex { flex: 0 0 104px; } }

/* Aperçu toujours visible */
@media (min-width: 992px) {
  .qrg-col-preview { align-self: start; position: sticky; top: var(--qrg-top); }
  .qrg-col-preview .qrg-col { max-height: calc(100vh - var(--qrg-top) - 1rem); overflow-y: auto; overscroll-behavior: contain; }
  .qrg-canvas { max-width: min(300px, calc(100vh - 470px)); min-width: 170px; }
}
.qrg-mini { position: fixed; right: 14px; bottom: 90px; z-index: 1040; width: 84px; height: auto; padding: 6px; background: #fff; border: 1px solid var(--rule, #dee2e6); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 23, 42, .25); cursor: pointer; }
.qrg-mini[hidden] { display: none; }
.qrg-mini svg { display: block; width: 100%; height: auto; }
@media (min-width: 992px) { .qrg-mini { display: none !important; } }

/* Enregistrer dans mon compte : bloc repliable comme la planche A4 */
.qrg-save { margin-top: .5rem; padding-top: 0; border-top: 0; }
.qrg-save-box { text-align: left; }
.qrg-save-inner { padding: .5rem 0 .2rem; }
.qrg-save-inner .qrg-save-anon { margin: 0; font-size: .85rem; }

/* Colonne aperçu : pas de défilement interne (la page défile, l'aperçu reste collé en haut) */
.qrg-col-preview .qrg-col { max-height: none !important; overflow: visible !important; }
.qrg-dpanels > details.qrg-save { margin-top: 0; padding-top: 0; border-top: 1px solid var(--rule, #e5e7eb); }
.qrg-sep { width: 1px; height: 1.6rem; background: var(--rule, #dee2e6); margin: 0 .2rem; }

/* ═══ Formulaire compact : champs en petite taille ═══ */
.qrg-design .form-control, .qrg-design .form-select { font-size: .82rem; padding: .3rem .55rem; min-height: calc(1.5em + .6rem + 2px); border-radius: 8px; }
.qrg-design .form-select { padding-right: 2rem; background-position: right .5rem center; }
.qrg-design textarea.form-control { min-height: 0; }
.qrg-design .form-control[type=file] { padding: .25rem .5rem; }
.qrg-design .form-control-color { width: 2.1rem; height: 1.95rem; min-height: 0; padding: .15rem; }
.qrg-design .form-label { font-size: .68rem; margin-bottom: .2rem; }
.qrg-design .form-text { font-size: .72rem; margin-top: .2rem; }
.qrg-design .form-check { font-size: .82rem; min-height: 0; margin-bottom: 0; }
.qrg-design .form-range { height: 1.1rem; }
.qrg-design .input-group-sm > .form-control, .qrg-design .btn-sm { font-size: .78rem; }
.qrg-design .row.g-2 { --bs-gutter-y: .45rem; }
.qrg-dpanel-content .qrg-type { padding: .3rem .5rem; font-size: .74rem; }

/* Colonne de droite : onglets Aperçu / Planche A4 / Enregistrer */
.qrg-rtabs { display: flex; gap: .2rem; margin: 0 0 .8rem; padding: .25rem; background: #f3f5f8; border-radius: 11px; }
.qrg-rtabs button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .45rem .3rem; font: inherit; font-size: .78rem; font-weight: 700; color: #5b6474; background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.qrg-rtabs button:hover { color: var(--ink, #111c2d); }
.qrg-rtabs button.is-active { background: #fff; color: var(--gold, #111c2d); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.qrg-rtabs button[hidden] { display: none; }
.qrg-rpanel[hidden] { display: none; }
.qrg-rpanel[data-rpanel="planche"], .qrg-rpanel[data-rpanel="enregistrer"] { text-align: left; }
.qrg-rpanel .qrg-sheet-row { padding-top: 0; }
.qrg-rthumb { width: 120px; margin: 0 auto .8rem; }
.qrg-rthumb:empty { display: none; }
.qrg-rthumb svg { display: block; width: 100%; height: auto; }
.qrg-rthumb img { display: block; width: 100%; height: auto; }

/* Onglet Avancé (colonne de droite) : champs compacts, deux par ligne */
.qrg-rpanel .form-control, .qrg-rpanel .form-select { font-size: .82rem; padding: .3rem .55rem; min-height: calc(1.5em + .6rem + 2px); border-radius: 8px; }
.qrg-rpanel .form-select { padding-right: 2rem; background-position: right .5rem center; }
.qrg-rpanel .form-label { font-size: .68rem; margin-bottom: .2rem; }
.qrg-rpanel .form-text { font-size: .72rem; }
.qrg-rpanel .form-range { height: 1.1rem; }
.qrg-rpanel .row.g-2 { --bs-gutter-y: .45rem; }
@media (min-width: 992px) {
  .qrg-rpanel .row > .col-md-4, .qrg-rpanel .row > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .qrg-rpanel .row > .col-md-4:nth-child(3) { flex-basis: 100%; max-width: 100%; }
}

/* Onglet Mes QR */
.qrg-my { text-align: left; }
.qrg-mylist { display: grid; gap: .4rem; max-height: 60vh; overflow-y: auto; padding-right: .2rem; }
.qrg-my-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: .6rem; padding: .4rem .5rem; border: 1px solid var(--rule, #e5e7eb); border-radius: 10px; background: #fff; }
.qrg-my-thumb { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.qrg-my-thumb svg, .qrg-my-thumb canvas { max-width: 52px; max-height: 52px; width: auto !important; height: auto !important; }
.qrg-my-txt { min-width: 0; display: flex; flex-direction: column; }
.qrg-my-txt b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrg-my-txt small { font-size: .7rem; color: #6b7280; }
.qrg-my-item .btn { font-size: .74rem; padding: .2rem .5rem; white-space: nowrap; }
.qrg-my-empty { font-size: .84rem; color: #6b7280; margin: .4rem 0; }
.qrg-mylinks { font-size: .78rem; margin: .7rem 0 0; }
.qrg-rtabs button { font-size: .74rem; padding: .45rem .2rem; }
