/* ==============================
   Encarts QR — correctifs UX/UI
   À ajouter après encarts-qr.css
   ============================== */

/* Stepper 3 étapes */
.qr-stepper {
  grid-template-columns: repeat(3, 1fr);
}
.qr-stepper__item {
  background: none;
  border: none;
  padding: 0;
}

/* Utilitaires légers utilisés par le nouveau JS */
.eqr-mt6 { margin-top: 6px; }
.eqr-mt8 { margin-top: 8px; }
.eqr-mt12 { margin-top: 12px; }
.eqr-mt16 { margin-top: 16px; }
.eqr-mt20 { margin-top: 20px; }
.eqr-mb12 { margin-bottom: 12px; }
.eqr-mb16 { margin-bottom: 16px; }
.eqr-p16 { padding: 16px; }
.eqr-gap6 { gap: 6px; }
.eqr-gap8 { gap: 8px; }
.eqr-gap12 { gap: 12px; }
.eqr-flex { display: flex; }
.eqr-flex-center { display: flex; align-items: center; }
.eqr-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eqr-flex-wrap { display: flex; flex-wrap: wrap; }
.eqr-text-center { text-align: center; }
.eqr-text-right { text-align: right; }
.eqr-fs12 { font-size: 12px; }
.eqr-fs24 { font-size: 24px; }
.eqr-opacity50 { opacity: .5; cursor: not-allowed; }
.eqr-skeleton-h80 { height: 80px; }
.eqr-skeleton-h40 { height: 40px; }
.eqr-skeleton-h120 { height: 120px; }
.eqr-btn-small { min-height: 32px; padding: 0 10px; font-size: 12px; }

/* Bloc pédagogique plus concret */
.qr-benefit-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.qr-benefit-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, .12);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
}
.qr-benefit-item strong {
  font: 700 13px/18px var(--qr-font);
  color: var(--qr-neutral-900);
}
.qr-benefit-item span {
  font: 500 13px/18px var(--qr-font);
  color: var(--qr-neutral-700);
}

/* Étape 1 / 2 */
.eqr-step-grid {
  margin-top: 16px;
}
.qr-choice-card,
.qr-angle-card,
.qr-headline-card,
.qr-template-card,
.qr-export-card {
  text-align: left;
}
.qr-choice-card__title {
  font: 700 15px/22px var(--qr-font);
  color: var(--qr-neutral-900);
  margin-bottom: 6px;
}
.qr-angle-card__example {
  margin-top: 8px;
  font: 600 12px/16px var(--qr-font);
  color: var(--qr-primary-700);
}
.eqr-stack-top {
  margin-top: 12px;
}

/* Couleurs */
.eqr-color-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.eqr-color-group {
  display: grid;
  gap: 6px;
}
.eqr-color-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eqr-color-fields .qr-hex-input {
  min-width: 0;
}

/* Preview canvas */
.qr-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
}
.qr-live-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.qr-preview-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255,255,255,.94);
}
.qr-preview-overlay.is-visible {
  display: flex;
}
.qr-preview-skeleton {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
}
.qr-preview-skeleton__headline,
.qr-preview-skeleton__line,
.qr-preview-skeleton__qr {
  border-radius: 12px;
  background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 37%, #f8fafc 63%);
  background-size: 400% 100%;
  animation: qr-shimmer 1.4s linear infinite;
}
.qr-preview-skeleton__headline {
  width: 72%;
  height: 22px;
}
.qr-preview-skeleton__line {
  width: 86%;
  height: 14px;
}
.qr-preview-skeleton__line--short {
  width: 58%;
}
.qr-preview-skeleton__qr {
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  margin-top: 8px;
}
.qr-preview-error {
  max-width: 240px;
  text-align: center;
  font: 600 13px/19px var(--qr-font);
  color: var(--qr-danger-700);
}

/* Templates */
.qr-template-card__canvas-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--qr-neutral-100);
  background: var(--qr-neutral-25);
}
.qr-template-thumb {
  display: block;
  width: 100%;
  height: auto;
}
.qr-template-card__label {
  font-weight: 700;
  color: var(--qr-neutral-800);
}

/* Empty / error */
.qr-empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

/* Menu burger — submenu vertical propre */
#encarts-qr-submenu,
#flyers-qr-submenu {
  list-style: none;
}
#encarts-qr-submenu > li,
#flyers-qr-submenu > li {
  display: block;
}

@media (max-width: 767px) {
  .eqr-color-row,
  .eqr-step-grid {
    grid-template-columns: 1fr;
  }
}
