:root {
  --g-bg: #070707;
  --g-ink: #f3eee6;
  --g-mute: #9a9388;
  --g-line: #1c1b19;
  --g-gold: #c4a574;
  --g-pink: #ff4f93;
  --g-paper: #10100e;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: auto;
}
html, body.guest {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--g-bg);
  color: var(--g-ink);
  color-scheme: dark;
}
body.guest {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: clip;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}
body.guest [hidden] { display: none !important; }
body.guest ::selection { background: color-mix(in srgb, var(--g-gold) 35%, black); color: #fff; }
body.guest a { color: inherit; }
body.guest img { max-width: 100%; display: block; }
body.guest .tile img { max-width: none; }
body.guest button, body.guest a.pink-btn, body.guest a.ghost-btn {
  font: inherit;
  cursor: pointer;
}

.g-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: calc(14px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 14px max(28px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--g-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--g-line);
}
.g-top .app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g-ink);
}
.g-top .app-brand svg { width: 20px; height: 20px; opacity: 1; }
.g-top .app-brand img { width: 26px; height: 26px; object-fit: cover; border-radius: 7px; background: #fff; flex: none; }
.tc-link {
  text-decoration: none;
  color: var(--g-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.tc-link:hover { color: var(--g-ink); }

.g-stage {
  width: min(1680px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 88px;
}
.breizh-bg { display: none; }
body:is(.mark-breizh, .mark-stmalo, .mark-north) .breizh-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
body:is(.mark-breizh, .mark-stmalo, .mark-north) .g-stage,
body:is(.mark-breizh, .mark-stmalo, .mark-north) .g-colophon {
  position: relative;
  z-index: 1;
}
body:is(.mark-breizh, .mark-stmalo, .mark-north) .breizh-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}
body:is(.mark-breizh, .mark-stmalo, .mark-north) .breizh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0.22) 32%, rgba(7, 7, 7, 0.4));
}
body:is(.mark-breizh, .mark-stmalo, .mark-north) .tile,
body:is(.mark-breizh, .mark-stmalo, .mark-north) .shot,
body:is(.mark-breizh, .mark-stmalo, .mark-north) .video-reel video,
body:is(.mark-breizh, .mark-stmalo, .mark-north) #lightbox::backdrop {
  background-color: #070707;
}
@media (prefers-reduced-motion: reduce) {
  body:is(.mark-breizh, .mark-stmalo, .mark-north) .breizh-bg video { display: none; }
}
.g-intro {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.guest-kicker {
  margin: 0 0 18px;
  color: var(--g-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}
.g-intro h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.guest-lead {
  margin: 22px auto 0;
  max-width: 34ch;
  color: var(--g-mute);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}
.guest-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 0;
  color: var(--g-ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.guest-meta span + span::before {
  content: "·";
  margin-right: 28px;
  color: var(--g-gold);
}
#count { display: none; }
.price-note, .pay-note {
  margin: 16px 0 0;
  color: var(--g-mute);
  font-size: 13px;
  line-height: 1.5;
}
.pay-note { color: var(--g-gold); }

.guest-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
body.guest .video-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--g-gold);
  background:
    linear-gradient(180deg, rgba(196, 165, 116, 0.22), rgba(196, 165, 116, 0.06));
  color: var(--g-gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
body.guest .video-open:hover {
  background: var(--g-gold);
  color: #14120e;
}
body.guest .video-open-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-gold);
  display: grid;
  place-items: center;
  flex: none;
}
body.guest .video-open-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #14120e;
}
body.guest .video-open:hover .video-open-play { background: #14120e; }
body.guest .video-open:hover .video-open-play::before {
  border-color: transparent transparent transparent var(--g-gold);
}
.g-admin {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 22px auto 0;
  padding: 12px;
  width: 100%;
  max-width: 980px;
  border: 1px solid rgba(196, 165, 116, 0.28);
  background: rgba(12, 12, 12, 0.88);
  text-align: center;
}
body.is-admin .g-admin { display: flex; }
/* Barre admin flottante : toujours accessible, même au milieu de 800 photos. */
body.is-admin.guest .g-admin {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 70;
  width: calc(100% - 16px);
  max-width: 980px;
  margin: 0;
  padding: 8px 10px;
  gap: 6px 8px;
  max-height: 62vh;
  overflow: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.is-admin.guest { padding-bottom: 170px; }
body.is-admin.guest .g-admin:not(.is-open) .g-adv { display: none; }
body.is-admin.guest .g-admin .ghost-btn,
body.is-admin.guest .g-admin .pink-btn,
body.is-admin.guest .g-admin .danger-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
}
.g-admin-goto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g-admin-goto input {
  width: 70px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #3a342c;
  background: #111;
  color: #f4efe7;
  font: inherit;
  text-align: center;
}
#g-admin-count { font-size: 13px; }
body.guest .tile-wrap.is-flash {
  outline: 4px solid var(--g-gold);
  outline-offset: -4px;
  animation: pf-flash 1.4s ease-out 1;
}
@keyframes pf-flash {
  0% { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}
.g-admin[hidden] { display: none !important; }
.g-admin-hint {
  width: 100%;
  margin: 0 0 4px;
  color: #c4a574;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.g-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  justify-content: center;
}
.g-admin-filter {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #3a342c;
  border-radius: 99px;
  background: #111;
  color: #cfc8bc;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.g-admin-filter.is-on {
  border-color: var(--g-gold);
  color: var(--g-gold);
}
.g-admin-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfc8bc;
  font-size: 13px;
}
.g-admin .ai-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfc8bc;
  font-size: 12px;
}
.g-admin .ai-style select {
  min-height: 40px;
  border: 1px solid #3a342c;
  background: #111;
  color: #f4efe7;
  font: inherit;
}
body.guest .tile-wrap.is-picked {
  outline: 2px solid var(--g-gold);
  outline-offset: -2px;
}
body.guest .tile-wrap.is-dragging {
  opacity: 0.35;
}
body.guest .tile-wrap.is-drop-target {
  outline: 3px solid var(--g-gold);
  outline-offset: -3px;
  filter: brightness(1.15);
}
body.pf-dragging {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}
body.pf-dragging .g-admin {
  opacity: 0.25;
  pointer-events: none;
}
.pf-drag-hint {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border: 1px solid var(--g-gold);
  background: rgba(10, 10, 10, 0.92);
  color: #f4efe7;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
.pf-drag-hint[hidden] { display: none; }
.pf-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--g-gold);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  opacity: 0.92;
}
#slideshow.is-on {
  border-color: var(--g-gold);
  color: var(--g-gold);
}
body.slideshow-on #lightbox::backdrop {
  background: #000;
}
body.slideshow-on #lightbox.slideshow-view .qr-card {
  padding: 0;
  gap: 0;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000;
}
body.slideshow-on #lightbox.slideshow-view .qr-card > :not(.light-close-bar):not(#light-image):not(.light-zoom) {
  display: none !important;
}
body.slideshow-on #lightbox.slideshow-view .light-close-bar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 12;
  margin: 0;
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(0, 0, 0, 0.45);
  color: #c4a574;
  backdrop-filter: blur(6px);
}
body.slideshow-on #light-image {
  display: block !important;
  width: 100%;
  height: 100dvh;
  height: 100svh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  object-fit: contain;
  background: #000;
  animation: slideFade 0.4s ease, slideshowKen 2.5s ease-out;
}
@keyframes slideFade {
  from { opacity: 0.25; }
  to { opacity: 1; }
}
@keyframes slideshowKen {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}
body.guest .pink-btn,
body.guest .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
body.guest .pink-btn {
  border: 1px solid var(--g-ink);
  background: var(--g-ink);
  color: #111;
}
body.guest .pink-btn:hover { background: var(--g-gold); border-color: var(--g-gold); }
body.guest .ghost-btn {
  border: 1px solid #3a3834;
  background: transparent;
  color: var(--g-ink);
}
body.guest .ghost-btn:hover { border-color: var(--g-gold); color: var(--g-gold); }
body.guest .danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #ff6b6b;
  border-radius: 0;
  background: transparent;
  color: #ff8f8f;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
body.guest .danger-btn:hover { background: #ff6b6b; color: #111; }
body.guest .danger-btn[hidden] { display: none !important; }
body.guest:not(.is-admin) #light-delete { display: none !important; }
body.guest .quiet {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--g-mute);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
body.guest .light-close-bar {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 20;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--g-gold);
  background: #16140f;
  color: var(--g-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body.guest .light-dl {
  display: inline-block;
  margin: 14px 0 8px;
  padding: 0;
  min-height: 0;
  text-decoration: none;
  border-bottom: 1px solid var(--g-gold);
  color: var(--g-gold);
}

body.gated {
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  overscroll-behavior: none;
  background: #050507;
}
body.gated .g-top,
body.gated .g-stage,
body.gated .g-colophon,
body.gated .cart-bar { visibility: hidden; pointer-events: none; }

#gate.gate-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100svh;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(circle at 50% 38%, #1a1f24 0%, #050507 72%);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  touch-action: manipulation;
}
#gate.gate-splash[hidden] { display: none !important; }
.gate-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3.5vw, 28px);
  width: min(100%, 560px);
  flex: 0 0 auto;
}
.gate-hermine {
  width: min(200px, 42vw, 32dvh);
  flex: 0 1 auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  box-shadow: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.gate-hermine img,
.gate-breizh-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}
.gate-logo {
  display: block;
  width: min(200px, 42vw, 32dvh);
  flex: 0 1 auto;
  perspective: 900px;
  -webkit-perspective: 900px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.gate-logo-scene {
  display: block;
  padding: 6% 5%;
}
.gate-logo-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  filter: drop-shadow(0 0 34px rgba(245, 200, 0, 0.12));
}
.gate-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.gate-logo-glare,
.gate-logo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  -webkit-mask-image: url(/assets/teamcuts-logo.webp?v=3);
  mask-image: url(/assets/teamcuts-logo.webp?v=3);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.gate-logo-glare {
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
  transform: translateZ(2px);
}
.gate-logo-shine {
  background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 62%);
  background-size: 260% 100%;
  animation: gate-shine 4s linear infinite;
  transform: translateZ(3px);
}
@keyframes gate-shine {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
.gate-hint {
  margin: 2px 0 18px;
  color: rgba(245, 200, 0, 0.3);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gate-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(280px, calc(100vw - 32px));
  flex: 0 0 auto;
}
.gate-code-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 200, 0, 0.55);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
#gate.gate-splash input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 0 12px;
  border: 1px solid rgba(245, 200, 0, 0.35);
  border-radius: 0;
  background: transparent;
  color: #f0ede6;
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
#gate.gate-splash input:focus {
  outline: none;
  border-color: #f5c800;
}
.gate-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  padding: 0 20px;
  border: 1px solid rgba(245, 200, 0, 0.5);
  background: transparent;
  color: #f5c800;
  font-family: "Arial Narrow", "Arial Black", Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: hover) {
  .gate-enter:hover,
  .gate-enter:focus-visible {
    background: rgba(245, 200, 0, 0.08);
    border-color: #f5c800;
  }
}
.gate-fine {
  margin: 14px 0 0;
  max-width: 22ch;
  color: rgba(240, 237, 230, 0.72);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
#gate #gate-error {
  min-height: 1.2em;
  margin: 0 0 8px;
  color: #ffb4b4;
  font-size: 13px;
}
body.kb-open .gate-logo,
body.kb-open .gate-hermine { width: min(96px, 28vw, 18dvh); }
body.kb-open .gate-hermine { border-radius: 12px; }
body.kb-open .gate-hint { display: none; }
body.kb-open .gate-fine { margin-top: 10px; font-size: 12px; }
body.kb-open #gate.gate-splash {
  justify-content: flex-start;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
}
@media (max-height: 740px) {
  .gate-logo,
  .gate-hermine { width: min(160px, 38vw, 28dvh); }
  .gate-hint { margin-bottom: 12px; }
}
@media (max-height: 620px) {
  .gate-logo,
  .gate-hermine { width: min(120px, 34vw, 24dvh); }
  .gate-hint { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #gate.gate-splash {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 28px;
  }
  .gate-marks { width: auto; }
  .gate-logo,
  .gate-hermine { width: min(132px, 28vh, 28vw); }
  .gate-hint { display: none; }
  .gate-ui { width: min(260px, 46vw); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-logo-shine { animation: none; }
}

.load-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
  background: rgba(196, 165, 116, 0.18);
}
.load-rail i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6e5a32, #f3e6c4, #c4a574);
  box-shadow: 0 0 10px rgba(234, 215, 168, 0.55);
  transition: width 0.34s cubic-bezier(.22, 1, .36, 1);
}
.load-rail[hidden] { display: none !important; }
.load-rail.is-busy i,
body.guest-loading .load-rail.is-busy i {
  width: 28% !important;
  transition: none;
  animation: loadSlide 1.05s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes loadSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(430%); }
}
@media (prefers-reduced-motion: reduce) {
  .load-rail i { transition: none; }
  .load-rail.is-busy i,
  body.guest-loading .load-rail.is-busy i { animation: none; width: 55% !important; }
}

.guest-empty { margin: 80px 0 40px; text-align: center; }
.guest-empty p {
  margin: 0;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--g-gold);
}
.guest-empty h2 {
  margin: 16px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
}

body.guest .photo-grid.guest-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  width: 100%;
  text-align: left;
}
body.guest .guest-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}
body.guest .guest-row.is-ell {
  display: grid;
  align-items: stretch;
  height: auto;
}
body.guest .guest-row.is-ell .tile-wrap {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
body.guest .guest-row.is-hero .tile-wrap {
  width: 100%;
  height: 100%;
}
body.guest .tile-wrap {
  position: relative;
  opacity: 1;
  transform: none;
}
body.guest .tile {
  position: relative;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  contain: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--g-bg);
  color: var(--g-mute);
  cursor: pointer;
}
body.guest .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pf-fx, 50%) var(--pf-fy, 50%);
  image-rendering: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  display: block;
  background: #0a0a0a;
}
body.guest .tile-focus {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(196, 165, 116, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #c4a574;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
body.guest.focus-open {
  overflow: hidden;
}
body.guest .focus-edit {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto auto auto auto;
  align-items: stretch;
  justify-items: center;
  background: rgba(5, 5, 5, 0.94);
  padding:
    max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  gap: 10px;
}
body.guest .focus-edit[hidden] { display: none !important; }
body.guest .focus-stage-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
body.guest .focus-stage {
  --ar: 1.5;
  --pf-fx: 50%;
  --pf-fy: 50%;
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  height: 240px;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #c4a574;
  overflow: hidden;
  background: #0a0a0a;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
body.guest .focus-stage.is-drag { cursor: grabbing; }
body.guest .focus-stage img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pf-fx, 50%) var(--pf-fy, 50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
body.guest .focus-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #c4a574;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
body.guest .focus-turn,
body.guest .focus-pad,
body.guest .focus-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: min(520px, 100%);
}
body.guest .focus-pad {
  flex-direction: column;
  align-items: center;
}
body.guest .focus-pad-mid {
  display: flex;
  gap: 8px;
  justify-content: center;
}
body.guest .focus-turn .ghost-btn,
body.guest .focus-pad .ghost-btn {
  min-height: 44px;
  min-width: 44px;
}
body.guest .focus-status {
  margin: 0;
  color: #c4a574;
  font-size: 13px;
  text-align: center;
}
body.guest .focus-status.is-error { color: #ff8f8f; }
body.guest .focus-actions {
  justify-content: flex-end;
}
.quality-pill {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: auto;
  padding: 3px 5px 2px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #000;
}
.quality-pill.owned { background: transparent; color: var(--g-gold); }
.quality-pill.carted { color: var(--g-gold); }
.quality-pill.ai { color: #ff9ec8; letter-spacing: 0.18em; }
body.guest .tile-ref {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #f6f1ea;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
#light-ref {
  margin: 0;
  text-align: center;
  color: var(--g-gold, #c4a574);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.mark-stmalo .tile::after,
body.mark-stmalo .shot:not(.shot-free)::after,
body.mark-stmalo .light-zoom::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 3;
  width: 22%;
  max-width: 38px;
  aspect-ratio: 5 / 6;
  background: url("/assets/hermine-mark.png?v=4") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
body.mark-stmalo .shot:not(.shot-free)::after,
body.mark-stmalo .light-zoom::after {
  width: 48px;
  max-width: 56px;
  right: 8px;
  bottom: 8px;
  opacity: 0.48;
}
body.mark-stmalo .light-zoom::after {
  z-index: 7;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  width: 56px;
  max-width: 64px;
  opacity: 0.62;
}
body.mark-stmalo .tile-wrap.ratio-9-16 .tile::after,
body.mark-stmalo .tile-wrap.ratio-v .tile::after {
  width: 34%;
  max-width: 40px;
  right: 4px;
  bottom: 6px;
}
body.mark-stmalo .shot.ratio-9-16:not(.shot-free)::after,
body.mark-stmalo .shot.ratio-v:not(.shot-free)::after {
  width: 22%;
  max-width: 56px;
  right: 6px;
  bottom: 8px;
}
body.mark-north .tile::after,
body.mark-north .shot:not(.shot-free)::after,
body.mark-north .light-zoom::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 3;
  width: 16%;
  max-width: 28px;
  aspect-ratio: 828 / 701;
  background: url("/assets/north-con-mark.png?v=1") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
body.mark-north .shot:not(.shot-free)::after,
body.mark-north .light-zoom::after {
  width: 36px;
  max-width: 42px;
  right: 8px;
  bottom: 8px;
  opacity: 0.48;
}
body.mark-north .light-zoom::after {
  z-index: 7;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  width: 42px;
  max-width: 48px;
  opacity: 0.62;
}
body.mark-north .tile-wrap.ratio-9-16 .tile::after,
body.mark-north .tile-wrap.ratio-v .tile::after {
  width: 26%;
  max-width: 30px;
  right: 4px;
  bottom: 6px;
}
body.mark-north .shot.ratio-9-16:not(.shot-free)::after,
body.mark-north .shot.ratio-v:not(.shot-free)::after {
  width: 16%;
  max-width: 42px;
  right: 6px;
  bottom: 8px;
}
.title-banner {
  display: block;
  width: min(980px, 96vw);
  max-width: 100%;
  height: auto;
  margin: 4px auto 8px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.title-banner[hidden] { display: none !important; }
body.mark-breizh #title { display: none; }
body.mark-breizh .title-banner { display: block; }
body.mark-stmalo #title { display: none; }
body.mark-stmalo .title-banner { display: block; }
body.mark-north #title { display: none; }
body.mark-north .title-banner { display: block; }

.tile-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  min-width: 0;
  flex: 0 0 auto;
}
.tile-wrap.ratio-16-9,
.tile-wrap.ratio-h {
  aspect-ratio: 3 / 2;
}
.tile-wrap.ratio-9-16,
.tile-wrap.ratio-v {
  aspect-ratio: 2 / 3;
}
body.guest .guest-row .tile-wrap {
  height: 100%;
  aspect-ratio: auto;
  contain: none;
}
body.guest .tile-wrap .tile {
  width: 100%;
  height: 100%;
}
.tile-cart {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--g-bg) 55%, transparent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile-cart.on { color: var(--g-gold); }
.tile-wrap.in-cart .tile { outline: 1px solid var(--g-gold); }
.tile-del {
  display: none;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(12, 12, 12, 0.78);
  color: #ff8f8f;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.guest.is-admin .tile-del { display: inline-flex; align-items: center; justify-content: center; }
body.guest:not(.is-admin) .tile-del { display: none !important; }
.tile-del:hover { background: #ff6b6b; color: #111; }

.cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--g-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--g-line);
}
.cart-bar[hidden] { display: none !important; }
.cart-bar p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cart-bar .pink-btn,
.cart-bar .ghost-btn { min-height: 44px; }

.g-colophon,
.tc-credit {
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--g-mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 0;
}
.g-colophon a,
.tc-credit a {
  color: inherit;
  text-decoration: none;
}
.g-colophon a:hover,
.tc-credit a:hover { color: var(--g-gold); }

body.guest dialog {
  border: 0;
  padding: 0;
  background: #050505;
  color: var(--g-ink);
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}
html:has(body.guest.lightbox-open),
body.guest.lightbox-open {
  overflow: hidden;
}
body.guest.lightbox-open .g-top {
  visibility: hidden;
  pointer-events: none;
}
body.guest #lightbox {
  z-index: 1000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.guest #lightbox::backdrop {
  background: #050505;
}
body.guest #lightbox.zoom-open .qr-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  justify-content: stretch;
  align-items: stretch;
}
body.guest #lightbox.zoom-open .qr-card > :not(.light-zoom) {
  display: none !important;
}
body.guest .light-zoom {
  position: absolute;
  inset: 0;
  z-index: 20;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
body.guest .light-zoom[hidden] { display: none !important; }
body.guest .light-zoom-back {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  right: max(6px, env(safe-area-inset-right));
  z-index: 3;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #c4a574;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #c4a574;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
body.guest .light-zoom-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
body.guest #lightbox.zoom-open #light-zoom-img,
body.guest #light-zoom-img {
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  background: #000;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
body.guest .light-zoom-dl {
  position: absolute;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%);
  z-index: 6;
  min-height: 64px;
  min-width: min(360px, calc(100% - 28px));
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: #c4a574;
  color: #16120c;
  font: 700 22px/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
body.guest .light-zoom-dl[hidden] { display: none !important; }
body.guest .light-zoom-tag {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(max(22px, env(safe-area-inset-bottom) + 18px) + 78px);
  z-index: 6;
  margin: 0;
  text-align: center;
  color: #fff;
  font: 600 15px/1.35 Outfit, system-ui, sans-serif;
  text-shadow: 0 1px 8px #000, 0 0 2px #000;
  pointer-events: none;
}
body.guest .light-zoom-tag[hidden] { display: none !important; }
body.guest .light-zoom-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  text-align: center;
  color: #c4a574;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
}
body.guest .light-zoom-wm {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -32deg,
      transparent 0 70px,
      rgba(255, 255, 255, 0.14) 70px 71px,
      transparent 71px 140px
    );
}
body.guest .light-zoom-wm::before,
body.guest .light-zoom-wm::after {
  content: 'PICFLOW  ·  APERÇU';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-28deg);
  white-space: nowrap;
  font-size: clamp(22px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
body.guest .light-zoom-wm::before { top: 28%; }
body.guest .light-zoom-wm::after { top: 62%; }
body.guest .light-zoom-wm[hidden] { display: none !important; }
@media (orientation: landscape) and (max-height: 560px) {
  body.guest .light-zoom-back {
    top: max(4px, env(safe-area-inset-top));
    right: max(4px, env(safe-area-inset-right));
    padding: 6px 12px;
    font-size: 11px;
  }
  body.guest .light-zoom-cap {
    bottom: max(4px, env(safe-area-inset-bottom));
    font-size: 10px;
  }
}
body.guest #lightbox .qr-card {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: calc(52px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: auto;
  scrollbar-width: none;
}
body.guest #lightbox .qr-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body.guest #light-compare {
  --shot-w: 16;
  --shot-h: 9;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body.guest #lightbox.is-vert #light-compare {
  --shot-w: 9;
  --shot-h: 16;
}
body.guest .compare-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
body.guest .compare-pane figcaption {
  margin: 8px 0 0;
  text-align: center;
  color: var(--g-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.guest .paid-note {
  display: none;
  margin: 6px 0 0;
  max-width: 36ch;
  text-align: center;
  color: #efeae2;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
body.guest.mark-breizh .paid-note,
body.guest.mark-stmalo .paid-note,
body.guest.mark-north .paid-note {
  display: block;
}
body.guest .paid-note a {
  color: #c4a574;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.guest #light-compare.solo-hd .pane-free { display: none !important; }
body.guest .hd-tag {
  margin: 10px 0 0;
  max-width: 34ch;
  text-align: center;
  color: #fff;
  font: 600 14px/1.35 Outfit, system-ui, sans-serif;
  text-shadow: 0 1px 6px #000;
}
body.guest .hd-tag[hidden] { display: none !important; }
body.guest .hd-dl {
  margin-top: 12px;
  min-height: 56px;
  min-width: min(280px, 100%);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #c4a574;
  color: #16120c;
  font: 700 18px/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
body.guest .shot {
  position: relative;
  display: block;
  width: min(46vw, 900px, calc((100dvh - 200px) * var(--shot-w) / var(--shot-h)));
  max-width: 100%;
  aspect-ratio: var(--shot-w) / var(--shot-h);
  height: auto;
  padding: 0;
  border: 1px solid #c4a574;
  border-radius: 10px;
  background: #111;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
body.guest #lightbox.is-vert .shot {
  width: min(32vw, 480px, calc((100dvh - 190px) * var(--shot-w) / var(--shot-h)));
}
body.guest .shot-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
body.guest .shot,
body.guest #lightbox {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
body.guest .solo-pane {
  width: min(1100px, 100%);
  margin: 0;
}
body.guest #light-compare .shot img,
body.guest #light-free-img,
body.guest #light-paid-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #111;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
body.guest #light-image,
body.guest #light-hd-img,
body.guest #light-hd,
body.guest #light-wm {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1800px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  background: #111;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
body.guest #light-compare[hidden],
body.guest #light-solo[hidden],
body.guest #light-image[hidden] { display: none !important; }
body.guest #lightbox .empty-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  flex: 0 0 auto;
}
body.guest #lightbox .empty-actions .ghost-btn,
body.guest #lightbox .empty-actions .pink-btn,
body.guest #lightbox .empty-actions .danger-btn {
  padding: 0 16px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
body.guest .solo-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--g-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.guest #light-swipe-hint {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
}
body.guest #light-preview {
  min-width: 0;
}
@media (max-width: 900px) {
  body.guest #prev,
  body.guest #next { display: none !important; }
  body.guest #light-swipe-hint { display: block; }
  body.guest #lightbox .qr-card {
    justify-content: center;
    gap: 8px;
    padding-top: calc(50px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body.guest #lightbox .empty-actions {
    width: min(100%, 440px);
  }
  body.guest #light-cart,
  body.guest #light-preview,
  body.guest #light-original { flex: 1 1 0; }
  body.guest #lightbox .empty-actions .ghost-btn,
  body.guest #lightbox .empty-actions .pink-btn,
  body.guest #lightbox .empty-actions .danger-btn {
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  body.guest .compare-pane figcaption {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  body.guest #lightbox.is-horiz #light-compare {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  body.guest #lightbox.is-horiz .shot {
    width: min(92vw, 640px, calc(((100dvh - 248px) / 2) * var(--shot-w) / var(--shot-h)));
  }
  body.guest #lightbox.is-vert #light-compare {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  body.guest #lightbox.is-vert .shot {
    width: min(46vw, calc((100dvh - 210px) * var(--shot-w) / var(--shot-h)));
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  body.guest #lightbox.is-horiz #light-compare,
  body.guest #lightbox.is-vert #light-compare {
    flex-direction: row;
    gap: 10px;
  }
  body.guest #lightbox.is-horiz .shot {
    width: min(46vw, calc((100dvh - 132px) * var(--shot-w) / var(--shot-h)));
  }
  body.guest #lightbox.is-vert .shot {
    width: min(24vw, calc((100dvh - 124px) * var(--shot-w) / var(--shot-h)));
  }
  body.guest #light-swipe-hint { display: none; }
  body.guest #lightbox .qr-card {
    padding-top: calc(46px + env(safe-area-inset-top, 0px));
    gap: 6px;
  }
}
body.guest #lightbox.is-vert #light-compare.solo-hd .shot,
body.guest #lightbox.is-horiz #light-compare.solo-hd .shot,
body.guest #light-compare.solo-hd .shot {
  width: min(94vw, 980px, calc((100dvh - 340px) * var(--shot-w) / var(--shot-h)));
}

@media (hover: none) {
  body.guest .tile img,
  body.guest .tile:hover img {
    transform: none;
    transition: none;
    filter: none;
  }
  .g-top,
  .cart-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--g-bg);
  }
  body.mark-stmalo .tile::after,
  body.mark-north .tile::after {
    filter: none;
  }
}

@media (max-width: 980px) {
  .g-top { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); min-height: 56px; }
  .g-top .app-brand { letter-spacing: 0.12em; font-size: 12px; min-height: 44px; }
  .tc-link { letter-spacing: 0.14em; min-height: 44px; display: inline-flex; align-items: center; }
  .g-stage {
    width: 100%;
    padding: 12px 0 calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .g-intro { margin: 0 12px 18px; }
  .title-banner { width: 100%; }
  body.guest .guest-chapter { padding: 28px 12px 16px; }
  body.guest .guest-chapter::before {
    font-size: 16px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }
  body.guest .guest-chapter .gc-title {
    font-size: clamp(26px, 8vw, 36px);
    -webkit-text-stroke: 1px #000;
  }
  body.guest .photo-grid.guest-grid { gap: 6px; }
  body.guest .tile { aspect-ratio: auto; }
  body.guest .guest-row.is-ell .tile-wrap,
  body.guest .guest-row.is-hero .tile-wrap {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  body.guest .photo-grid.guest-grid { gap: 4px; }
}

@media (max-width: 430px) {
  body.guest .photo-grid.guest-grid { gap: 6px; }
  .guest-meta { letter-spacing: 0.08em; gap: 8px 12px; }
  .guest-meta span + span::before { margin-right: 12px; }
}

body.guest .focus-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px auto 0;
  color: #c4a574;
  font-size: 12px;
}
body.guest .focus-zoom input[type=range] { width: min(46vw, 260px); accent-color: #c4a574; }
body.guest .focus-zoom .ghost-btn { min-width: 40px; }
body.guest .focus-zoom #focus-zoom-val { min-width: 48px; text-align: left; }
/* Photo choisie (admin) : cadre doré + voile + coche, visibles par-dessus l'image. */
body.guest .tile-wrap.is-picked {
  outline: none;
}
body.guest .tile-wrap.is-picked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 4px solid var(--g-gold);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.55);
  background: rgba(196, 165, 116, 0.22);
}
body.guest .tile-wrap.is-picked::before {
  content: "\2713";
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 15px;
  background: var(--g-gold);
  color: #0a0a0a;
  font-size: 17px;
  font-weight: 700;
}
/* « Tout sélectionner » toujours visible dans la barre flottante. */
body.is-admin.guest .g-admin .g-admin-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  color: #f4efe7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
body.is-admin.guest .g-admin .g-admin-all input { width: 16px; height: 16px; accent-color: #c4a574; cursor: pointer; }
/* Histoire de photographie : chapitres et apparition douce au défilement. */
body.guest .guest-chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 58px 12px 30px;
  text-align: center;
  box-sizing: border-box;
}
/* Petite ligne japonaise au-dessus du titre (comme le « ジャパンエキスポ » du logo Japan Expo). */
body.guest .guest-chapter::before {
  content: attr(data-jp);
  font-family: "Zen Antique", serif;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  line-height: 1.2;
  color: #f1ead9;
  opacity: 0.95;
}
/* Titre en calligraphie pinceau, blanc, penché — style logo Japan Expo. */
body.guest .guest-chapter .gc-title {
  display: block;
  max-width: 100%;
  color: #fff;
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  font-size: clamp(34px, 7.2vw, 74px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: none;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #000, 0 0 22px rgba(255, 255, 255, 0.14);
}
body.guest .guest-chapter .gc-top::after { content: " "; }
/* Filet rouge « soleil levant » sous le titre. */
body.guest .guest-chapter::after {
  content: "";
  width: min(240px, 52%);
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, #d6202e 25%, #d6202e 75%, transparent);
  border-radius: 2px;
}
body.guest .guest-chapter .gc-sub {
  color: var(--g-gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
body.guest .tile-wrap,
body.guest .guest-chapter {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.guest .tile-wrap.pf-pre,
body.guest .guest-chapter.pf-pre {
  opacity: 0;
  transform: translateY(26px);
}
@media (prefers-reduced-motion: reduce) {
  body.guest .tile-wrap,
  body.guest .guest-chapter { transition: none; }
  body.guest .tile-wrap.pf-pre,
  body.guest .guest-chapter.pf-pre { opacity: 1; transform: none; }
}
/* Téléphone : barre admin compacte sur une seule rangée défilante (garde la grille visible). */
@media (max-width: 700px) {
  body.is-admin.guest .g-admin:not(.is-open) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    bottom: max(6px, env(safe-area-inset-bottom));
    width: calc(100% - 12px);
    padding: 6px;
  }
  body.is-admin.guest .g-admin:not(.is-open)::-webkit-scrollbar { display: none; }
  body.is-admin.guest .g-admin:not(.is-open) > * { flex: 0 0 auto; white-space: nowrap; }
  body.is-admin.guest .g-admin.is-open {
    max-height: 55dvh;
    bottom: max(6px, env(safe-area-inset-bottom));
  }
  body.is-admin.guest { padding-bottom: 84px; }
}

/* Logo Breizh Con' en filigrane derrière chaque titre de chapitre. */
body.guest .guest-chapter { position: relative; isolation: isolate; }
body.guest .guest-chapter .gc-logo {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: -1;
  height: clamp(190px, 31vw, 300px);
  width: auto;
  max-width: none;
  opacity: 0.24;
  transform: translate(-50%, -50%) rotate(-7deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  filter: drop-shadow(0 0 26px rgba(255, 196, 40, 0.28));
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  animation: pf-logo-float 9s ease-in-out infinite;
}
body.guest .guest-chapter.pf-pre .gc-logo {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-16deg) scale(0.8);
}
@keyframes pf-logo-float {
  0%, 100% { translate: 0 -4px; }
  50% { translate: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  body.guest .guest-chapter .gc-logo { animation: none; transition: none; }
  body.guest .guest-chapter.pf-pre .gc-logo { opacity: 0.24; transform: translate(-50%, -50%) rotate(-7deg); }
}
/* Le logo reste entièrement dans le chapitre (jamais coupé par les photos). */
body.guest .guest-chapter {
  justify-content: center;
  min-height: clamp(210px, 30vw, 290px);
  padding-block: 36px 26px;
}
body.guest .guest-chapter .gc-logo {
  top: 50%;
  height: 92%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
}
/* Logo un peu plus présent. */
body.guest .guest-chapter .gc-logo { opacity: 0.34; }
@media (prefers-reduced-motion: reduce) { body.guest .guest-chapter.pf-pre .gc-logo { opacity: 0.34; } }

/* Logo complet (tête visible) : posé à droite du titre, face tournée vers lui, sans masque qui coupe. */
body.guest .guest-chapter .gc-logo {
  left: auto;
  right: 1.5%;
  top: 50%;
  height: 94%;
  opacity: 0.4;
  -webkit-mask-image: none;
  mask-image: none;
  transform: translate(0, -50%) rotate(-4deg);
  filter: drop-shadow(0 0 22px rgba(255, 196, 40, 0.3));
}
body.guest .guest-chapter.pf-pre .gc-logo {
  opacity: 0;
  transform: translate(24px, -50%) rotate(-14deg) scale(0.82);
}
@media (prefers-reduced-motion: reduce) {
  body.guest .guest-chapter.pf-pre .gc-logo { opacity: 0.4; transform: translate(0, -50%) rotate(-4deg); }
}
/* Grand écran : titre décalé à gauche, logo en emblème à droite (aucun chevauchement des lettres). */
@media (min-width: 900px) {
  body.guest .guest-chapter { padding-right: 240px; }
}
@media (max-width: 899px) {
  body.guest .guest-chapter .gc-logo { opacity: 0.3; }
}
/* Téléphone : petit emblème en haut à droite, la tête du rat reste bien visible. */
@media (max-width: 899px) {
  body.guest .guest-chapter .gc-logo {
    top: 6px;
    right: 6px;
    height: clamp(104px, 34vw, 140px);
    opacity: 0.42;
    transform: rotate(-4deg);
  }
  body.guest .guest-chapter.pf-pre .gc-logo {
    opacity: 0;
    transform: translate(14px, 0) rotate(-14deg) scale(0.82);
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  body.guest .guest-chapter.pf-pre .gc-logo { opacity: 0.42; transform: rotate(-4deg); }
}
/* Retour au logo centré derrière le titre (tête visible, sans masque), avec opacité douce. */
@media (min-width: 900px) {
  body.guest .guest-chapter { padding-right: 12px; }
}
body.guest .guest-chapter .gc-logo {
  left: 50%;
  right: auto;
  top: 50%;
  height: 94%;
  opacity: 0.22;
  -webkit-mask-image: none;
  mask-image: none;
  transform: translate(-50%, -50%) rotate(-5deg);
  filter: drop-shadow(0 0 24px rgba(255, 196, 40, 0.28));
}
body.guest .guest-chapter.pf-pre .gc-logo {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-15deg) scale(0.8);
}
@media (max-width: 899px) {
  body.guest .guest-chapter .gc-logo {
    top: 50%;
    right: auto;
    height: 92%;
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(-5deg);
  }
  body.guest .guest-chapter.pf-pre .gc-logo {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.guest .guest-chapter.pf-pre .gc-logo { opacity: 0.22; transform: translate(-50%, -50%) rotate(-5deg); }
}

body.guest #videos {
  z-index: 1000;
  background: #050505;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.guest #videos .video-card {
  width: min(1100px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #050505;
  text-align: center;
}
body.guest #videos .video-card h2 { margin: 0 0 8px; }
body.guest #video-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 18px auto 0;
}
body.guest .video-part { display: block; }
body.guest .video-part + .video-part {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(196, 165, 116, 0.35);
}
body.guest .video-part h3 {
  margin: 0 0 6px;
  color: var(--g-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
body.guest .video-part .price-note { margin: 0 0 14px; }
body.guest .video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
}
body.guest .video-reel video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 9 / 16;
  background: #111;
  object-fit: cover;
  object-position: center;
}
body.guest .video-reel p {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
body.guest .video-del {
  margin-top: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #ff6b6b;
  background: transparent;
  color: #ff8f8f;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
body.guest .video-del:disabled { opacity: 0.5; cursor: default; }
body.guest .video-reel .pink-btn { display: inline-flex; }

@media (max-width: 700px) {
  .guest-actions { margin-top: 16px; }
  body.guest .guest-chapter { padding: 28px 12px 16px; }
  body.guest .guest-chapter::before {
    font-size: 16px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }
  body.guest .guest-chapter .gc-title {
    font-size: clamp(26px, 8vw, 36px);
    -webkit-text-stroke: 1px #000;
  }
  body.guest .video-open {
    width: 100%;
    max-width: 420px;
    min-height: 54px;
  }
  .g-intro .guest-lead { margin-top: 16px; }
  body.guest #videos .video-card {
    width: 100%;
    padding-top: calc(58px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    padding-left: 0;
    padding-right: 0;
  }
  body.guest #videos .guest-kicker,
  body.guest #videos .video-card h2,
  body.guest #videos .price-note {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }
  body.guest #videos .guest-kicker { margin-bottom: 6px; }
  body.guest #videos .video-card h2 { font-size: 1.65rem; margin-bottom: 4px; }
  body.guest #videos .price-note {
    margin-top: 6px;
    font-size: 12px;
  }
  body.guest #video-list {
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }
  body.guest .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding-inline: 12px;
  }
  body.guest .video-reel video { max-height: none; }
  body.guest .video-reel p {
    padding-inline: 0;
    font-size: 12px;
  }
}