/* Ajustements de production par-dessus le design system (sf.css + sf-app.css). */
:root { --side-max-h: 100vh; }
html, body { margin: 0; }
body { background: var(--bg, #fff); }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toasts .sf-toast { pointer-events: auto; animation: sf-toast-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes sf-toast-in { from { opacity: 0; transform: translateY(8px); } }
.sf-photo.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%) var(--surface); background-size: 200% 100%; animation: sf-shimmer 1.4s linear infinite; opacity: .85; }
@keyframes sf-shimmer { to { background-position: -200% 0; } }
.sf-photo a.sf-photo-open { position: absolute; inset: 0; z-index: 0; }
.sf-style input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sf-qitem { cursor: pointer; }
.sf-hidden-input { display: none; }
.sf-warn-list { margin: 0; padding-left: 18px; list-style: disc; }
.sf-app details.sf-fold > summary { cursor: pointer; }
[hidden] { display: none !important; }
.sf-head a.sf-link { display: inline-flex; align-items: center; gap: 4px; }
/* Bouton invisible qui ouvre l'aperçu d'une photo (sous la barre d'outils) */
.sf-photo-open { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.sf-photo-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* Aperçu plein écran */
.sf-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: rgba(12, 12, 14, .92); color: #fff; }
.sf-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.sf-lb-stage > img { max-width: min(100%, 900px); max-height: 100%; object-fit: contain; border-radius: 16px; background: #fff; }
.sf-lightbox .sf-btn { background: rgba(255, 255, 255, .94); color: #111113; }
.sf-lb-nav.next svg { transform: rotate(180deg); }
.sf-lb-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; }
.sf-lb-thumbs button { width: 52px; aspect-ratio: 2 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; flex: none; }
.sf-lb-thumbs button.on { border-color: #fff; opacity: 1; }
.sf-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .sf-lb-nav { display: none; } }
