/* Otoolia — Agrandir une image pour la décalquer (styles limités à .dq / .dq-*) */
.dq-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .2em; }
.dq-grid { display: grid; gap: var(--ot-space); grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: var(--ot-space); }
@media (min-width: 900px) { .dq-grid { grid-template-columns: 340px minmax(0, 1fr); } .dq-view { position: sticky; top: 72px; } }
.dq-grid > * { min-width: 0; }
.dq-side { display: flex; flex-direction: column; gap: 18px; }
.dq-side h2 { font-size: 1.02rem; margin: 0 0 8px; }
.dq-drop { border: 2px dashed var(--ot-border); border-radius: var(--ot-radius); background: var(--ot-surface); padding: 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dq-drop:hover, .dq-drop.is-over, .dq-drop:focus-visible { border-color: var(--ot-brand); background: color-mix(in srgb, var(--ot-brand) 6%, var(--ot-surface)); }
.dq-drop strong { display: block; }
.dq-drop small { color: var(--ot-text-soft); display: block; margin-top: 2px; }
.dq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.dq-f { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--ot-text-soft); }
.dq-f[hidden] { display: none; }
.dq-f .ot-input, .dq-f .ot-select { min-height: 40px; padding: 4px 8px; font-size: 1rem; width: 100%; }
.dq-f input[type=range] { width: 100%; accent-color: var(--ot-brand); }
.dq-ck { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.35; margin: 2px 0; }
.dq-ck input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ot-brand); }
.dq-ck--grid { align-items: center; flex-wrap: wrap; }
.dq-ck .ot-input { width: 70px; min-height: 32px; padding: 2px 6px; }
.dq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dq-chips button { border: 1px solid var(--ot-border); background: var(--ot-surface); color: var(--ot-text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.dq-chips button[aria-pressed="true"] { background: var(--ot-brand); border-color: var(--ot-brand); color: var(--ot-brand-ink); }
.dq-tips p { font-size: .84rem; color: var(--ot-text-soft); margin: 6px 0 0; }
.dq-tips p[hidden] { display: none; }
.dq-view { display: flex; flex-direction: column; gap: 12px; }
.dq-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; min-height: 52px; }
.dq-stat b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; white-space: nowrap; }
.dq-stat span { font-size: .8rem; color: var(--ot-text-soft); }
.dq-fig { position: relative; height: clamp(300px, 62vh, 700px); border-radius: var(--ot-radius); background: color-mix(in srgb, var(--ot-brand) 9%, var(--ot-surface-2, #eef)); }
.dq-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dq-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dq-msg { font-size: .86rem; color: var(--ot-text-soft); }
.dq-err { color: var(--ot-danger) !important; font-size: .88rem; }
.dq-crop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dq-crop .ot-btn { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.dq-crop .ot-btn[aria-pressed="true"] { background: var(--ot-brand); color: var(--ot-brand-ink); border-color: var(--ot-brand); }
.dq-fig.is-crop canvas { cursor: crosshair; touch-action: none; }
