/* Outil · QR code : seulement ce qui lui est propre (le reste vient de app/kit.css).
   Préfixe des classes : qr- */

/* Mise en page : la structure commune .outil-colonnes (app/kit.css).
   Téléphone : l'aperçu, la vérification et l'export, puis les réglages. Ordinateur : aperçu à gauche, réglages à droite. */
.qr .outil-fixe { align-items: center; }

/* Aperçu : le code carré ; un damier derrière un fond transparent (comme Texte SVG) */
.qr-zone { width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; overflow: hidden;
  outline: 1px solid var(--filet); outline-offset: -1px; }   /* un filet : un fond noir reste visible sur le fond de l'app */
.qr-zone.transparent { background-color: #e9e6df; background-image: conic-gradient(#d9d5cc 25%, transparent 0 50%, #d9d5cc 0 75%, transparent 0); background-size: 16px 16px; }
@media (min-width: 960px) { .qr-zone { width: min(100%, 52vh, 460px); } }
.qr-apercu { width: 100%; height: 100%; }
.qr-apercu svg { display: block; width: 100%; height: 100%; }

/* Se scanne bien / ne se scanne pas ; les alertes de couleur dessous */
.qr-etat { margin: 0; min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font: var(--valeur); letter-spacing: .06em; color: var(--texte2); }
.qr-etat svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.qr-etat.ok { color: var(--papier); }
.qr-etat.ko { color: var(--peche); }
.qr-alerte { display: flex; flex-direction: column; gap: 4px; text-align: center; text-wrap: balance; }
.qr-alerte:empty { display: none; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.qr-actions .pastille:hover { translate: none; }

.qr-texte { min-height: 64px; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }

/* Styles : une pastille de la couleur (ou du dégradé) sur son fond, et la couleur des yeux autour */
.qr-style { display: inline-flex; align-items: center; gap: 10px; }
.qr-style i { width: 12px; height: 12px; border-radius: 50%; margin-left: 2px; }

/* Ce qui n'apparaît qu'avec un réglage (deuxième couleur, angle, couleur des yeux, du fond, taille du logo) */
.qr-sous { margin-top: var(--dans-groupe); }
.qr-sous[hidden], .qr-changer[hidden] { display: none; }
.qr-changer { cursor: pointer; }
.qr-changer:hover { translate: none; }

/* Une couleur : la pastille (le sélecteur du système) et son HEX */
.qr-couleur { display: flex; align-items: center; gap: 10px; }
.qr-couleur input[type="color"] { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--filet); -webkit-appearance: none; appearance: none; overflow: hidden; }
.qr-couleur input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.qr-couleur input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--filet); }
.qr-couleur input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.qr-couleur input[type="color"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.qr-hex { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
