/* Image en Base64 : styles propres à l'outil. */
.o-image-base64 [hidden] { display: none !important; }
.o-image-base64-onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.o-image-base64-onglets .btn { flex: 1 1 200px; min-height: 46px; font-weight: 600; }
.atelier .o-image-base64-onglets .btn[aria-selected="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-image-base64-local { margin: 12px 0 16px; color: var(--ok-texte); background: var(--ok-fond); padding: 8px 12px; border-radius: var(--rayon-petit); font-size: .92rem; }
.o-image-base64-depot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border: 2px dashed var(--bord); border-radius: var(--rayon); background: var(--surface-2); text-align: center; transition: border-color .15s, background-color .15s; }
.o-image-base64-depot.o-image-base64-survol { border-color: var(--marque); background: var(--surface); }
.o-image-base64-depot p { margin: 0; }
.o-image-base64-depot-titre { font-size: 1.15rem; font-weight: 700; }
.o-image-base64-formats { color: var(--texte-2); font-size: .88rem; line-height: 1.45; max-width: 60ch; }
.o-image-base64-choisir { position: relative; min-height: 46px; padding-inline: 22px; cursor: pointer; }
.o-image-base64-choisir input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.o-image-base64-choisir:focus-within { outline: 3px solid var(--marque-fort); outline-offset: 2px; }
.o-image-base64-message { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-image-base64-groupe { margin: 18px 0 0; padding: 12px 14px 8px; border: 1px solid var(--bord); border-radius: var(--rayon); min-width: 0; }
.o-image-base64-groupe legend { padding: 0 6px; font-weight: 700; }
.o-image-base64 .reglages select, .o-image-base64 .reglages input[type="number"] { min-height: 44px; }
.o-image-base64 .reglages label.case { align-self: start; }
.o-image-base64-note { margin: 10px 0 4px; color: var(--texte-2); font-size: .88rem; }
.o-image-base64-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.o-image-base64-actions .btn { min-height: 44px; }
.o-image-base64-resume { display: block; margin-top: 10px; font-weight: 600; overflow-wrap: anywhere; }
.o-image-base64-resume:empty { display: none; }
.o-image-base64-bloc { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--bord); }
.o-image-base64-bloc h2 { margin: 6px 0 10px; font-size: 1.2rem; }
.o-image-base64-liste { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.o-image-base64-liste li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); min-width: 0; }
.o-image-base64-tete { display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.o-image-base64-vignette, .o-image-base64-cadre { display: flex; align-items: center; justify-content: center; border: 1px solid var(--bord); border-radius: var(--rayon-petit); overflow: hidden;
  background-color: #fff; background-image: linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%), linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.o-image-base64-vignette { flex: 0 0 72px; width: 72px; height: 72px; }
.o-image-base64-vignette img, .o-image-base64-cadre img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.o-image-base64-infos { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.o-image-base64-infos strong { overflow-wrap: anywhere; }
.o-image-base64-infos span { color: var(--texte-2); font-size: .86rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.o-image-base64-retirer { flex: 0 0 auto; min-width: 40px; min-height: 40px; font-size: 1.2rem; line-height: 1; }
.o-image-base64-alerte { margin: 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-size: .9rem; }
.o-image-base64 textarea { width: 100%; box-sizing: border-box; font-family: var(--mono); font-size: .85rem; line-height: 1.4; padding: 8px 10px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface-2); color: var(--texte); resize: vertical; word-break: break-all; }
.o-image-base64-champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.o-image-base64-champ textarea { font-weight: 400; min-height: 120px; }
.o-image-base64-etat { display: block; margin-top: 12px; overflow-wrap: anywhere; }
.o-image-base64-etat.o-image-base64-erreur { padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-image-base64-decode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.o-image-base64-cadre { height: 260px; }
.o-image-base64-cadre img { min-width: 16px; min-height: 16px; image-rendering: pixelated; }
.o-image-base64-infos-dec ul { margin: 0 0 14px; padding-left: 1.2em; overflow-wrap: anywhere; }
.o-image-base64-infos-dec li { margin-bottom: 4px; }
@media (max-width: 640px) {
  .o-image-base64-decode { grid-template-columns: 1fr; }
  .o-image-base64-cadre { height: 200px; }
  .o-image-base64-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .o-image-base64-depot { transition: none; } }
