/* Zoom des photos métiers : compatible tactile, clavier et thème clair/sombre. */
.obina-photo-zoom-anchor:not(.vitrine-hero-photo) { position: relative; }
.obina-photo-enlargeable { cursor: zoom-in; }
.obina-photo-zoom-trigger {
  position: absolute; z-index: 5; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 9px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(9,25,41,.88); color: #fff;
  border-radius: 50%; box-shadow: 0 2px 10px #0005;
  cursor: zoom-in;
  transition: transform .16s ease, background-color .16s ease;
}
.obina-photo-zoom-trigger svg { width: 22px; height: 22px; }
.obina-photo-zoom-trigger:hover { background:#163c62; transform:scale(1.07); }
.obina-photo-zoom-trigger:focus-visible { outline: 3px solid #f0ba58; outline-offset: 3px; }
body.obina-zoom-is-open { overflow:hidden; }
.obina-photo-viewer[hidden] { display:none !important; }
.obina-photo-viewer {
  position:fixed; inset:0; z-index:2147483000;
  display:flex; flex-direction:column;
  color:#f5f4ee; background:rgba(2,9,18,.97);
  padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom);
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.obina-photo-viewer__header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));
  gap:16px; border-bottom:1px solid #ffffff26;
}
.obina-photo-viewer__header p { margin:0; font-size:clamp(15px,2vw,19px); font-weight:650; line-height:1.4; }
.obina-photo-viewer button { color:#fff; background:#172b42; border:1px solid #8193a8; font:inherit; border-radius:12px; cursor:pointer; min-height:44px; }
.obina-photo-viewer button:hover { background:#29445f; }
.obina-photo-viewer button:focus-visible { outline:3px solid #f0ba58; outline-offset:3px; }
.obina-photo-viewer button:disabled { color:#b8c0ca; opacity:.45; cursor:not-allowed; }
.obina-photo-viewer__close { display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 15px; font-weight:700; }
.obina-photo-viewer__close span { font-size:26px; line-height:1; }
.obina-photo-viewer__stage {
  flex:1; min-height:100px; position:relative;
  display:grid; place-items:center; overflow:hidden;
  touch-action:none; user-select:none; -webkit-user-select:none; outline-offset:-3px;
}
.obina-photo-viewer__stage:focus-visible { outline:3px solid #f0ba58; }
.obina-photo-viewer__image {
  max-width:100%; max-height:100%; width:auto; height:auto;
  object-fit:contain; pointer-events:none; user-select:none;
  -webkit-user-drag:none; transform-origin:center center; will-change:transform;
}
.obina-photo-viewer__footer {
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:10px max(16px,env(safe-area-inset-right)) 13px max(16px,env(safe-area-inset-left));
  border-top:1px solid #ffffff26; flex-wrap:wrap;
}
.obina-photo-viewer__hint { margin:0; font-size:12px; color:#dde2e9; line-height:1.5; }
.obina-photo-viewer__buttons { display:flex; gap:8px; align-items:center; }
.obina-photo-viewer__buttons button { padding:7px 15px; font-weight:700; }
.obina-photo-viewer__buttons button[data-zoom-minus], .obina-photo-viewer__buttons button[data-zoom-plus] { font-size:23px; width:44px; padding:0; }
.obina-photo-viewer__buttons output { font-size:13px; min-width:48px; text-align:center; font-variant-numeric:tabular-nums; }
@media (max-width:600px) {
  .obina-photo-zoom-trigger {top:10px; right:10px; width:42px; height:42px;}
  .obina-photo-viewer__header {padding:9px 12px;}
  .obina-photo-viewer__header p {font-size:14px;}
  .obina-photo-viewer__footer {padding:9px 12px 12px; justify-content:center;}
  .obina-photo-viewer__hint {text-align:center; width:100%; font-size:11px;}
}
@media (prefers-reduced-motion:reduce) { .obina-photo-zoom-trigger { transition:none; } }
