/* Créer un GIF animé : styles propres à l'outil. */
.o-gif [hidden] { display: none !important; }
.o-gif-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-gif-depot.o-gif-survol { border-color: var(--marque); background: var(--surface); }
.o-gif-depot p { margin: 0; }
.o-gif-depot-titre { font-size: 1.15rem; font-weight: 700; }
.o-gif-formats { color: var(--texte-2); font-size: .88rem; line-height: 1.45; max-width: 62ch; }
.o-gif-local { color: var(--ok-texte); background: var(--ok-fond); padding: 6px 12px; border-radius: var(--rayon-petit); font-size: .9rem; }
.o-gif-choisir { position: relative; min-height: 46px; padding-inline: 22px; cursor: pointer; }
.o-gif-choisir input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.o-gif-choisir:focus-within { outline: 3px solid var(--marque-fort); outline-offset: 2px; }
.o-gif-message { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-gif-bloc { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--bord); min-width: 0; }
.o-gif-bloc h2 { margin: 6px 0 10px; font-size: 1.2rem; }
.o-gif-liste { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.o-gif-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); }
.o-gif-liste li.o-gif-erreur { border-color: var(--erreur-texte); }
.o-gif-liste li.o-gif-erreur .o-gif-infos { color: var(--erreur-texte); }
.o-gif-vignette { width: 56px; height: 56px; object-fit: cover; border-radius: var(--rayon-petit); background: var(--surface-2); flex: none; }
.o-gif-ligne-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.o-gif-ligne-texte strong { overflow-wrap: anywhere; }
.o-gif-infos { color: var(--texte-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.o-gif-duree { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--texte-2); }
.o-gif-duree input { width: 92px; min-height: 40px; }
.o-gif-ligne-actions { display: flex; gap: 6px; }
.o-gif-ligne-actions .btn { min-width: 42px; min-height: 42px; padding-inline: 8px; font-size: 1.1rem; line-height: 1; }
.o-gif-groupe { margin: 18px 0 0; padding: 12px 14px 8px; border: 1px solid var(--bord); border-radius: var(--rayon); min-width: 0; }
.o-gif-groupe legend { padding: 0 6px; font-weight: 700; }
.o-gif .reglages select, .o-gif .reglages input[type="number"] { min-height: 44px; }
.o-gif .reglages input:disabled, .o-gif .reglages select:disabled { opacity: .5; }
.o-gif-note { margin: 10px 0 4px; color: var(--texte-2); font-size: .88rem; }
.o-gif-resume { margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.o-gif-resume:empty { display: none; }
.o-gif-estimation, .o-gif-etat { display: block; margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.o-gif-estimation:empty, .o-gif-etat:empty { display: none; }
.o-gif-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.o-gif-progres progress { width: 100%; height: 14px; margin-top: 12px; accent-color: var(--marque); }
.o-gif-vues { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.o-gif-cadre { display: flex; align-items: center; justify-content: center; min-height: 160px; max-height: 420px; padding: 6px; border: 1px solid var(--bord); border-radius: var(--rayon-petit);
  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: 20px 20px; background-position: 0 0, 10px 10px; overflow: hidden; }
.o-gif-cadre canvas, .o-gif-cadre img { display: block; max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; }
.o-gif-lecteur { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.o-gif-lecteur .btn { min-height: 42px; min-width: 96px; }
.o-gif-lecteur .btn[aria-pressed="true"] { border-color: var(--marque); }
.o-gif-poids { margin: 10px 0; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .o-gif-actions .btn { flex: 1 1 100%; }
  .o-gif-liste li { align-items: flex-end; }
  .o-gif-ligne-texte { flex-basis: calc(100% - 70px); }
}
@media (prefers-reduced-motion: reduce) { .o-gif-depot { transition: none; } }
