/* Profil public créateur (page vitrine, 23 oct 2026) — règles communes au
   cadre : variables du feed dérivées de l'accent, masquage des sections
   Customize-ZIC, visionneuse de médias (.zh-pp-carousel*, rendue par
   _public_media_lightbox.html) et verrou de défilement.
   Lot de nettoyage L9 : carte de face, pile d'actions, statistiques, onglets
   Photos / Vidéos / Tous, zone « Bientôt », état vide, bande des faces et
   accroche de l'ancienne page retirés. */

/* Page vitrine (23 oct 2026) : la coquille d'application (fond fixe plein
   écran, nav fixe + --zh-pp-nav-offset, .zh-pp-main / .zh-pp-shell /
   .zh-pp-content bornés à 100dvh, défilement interne) est RETIRÉE : la page
   défile normalement. Fond, gouttières et vitrine : public-profile-page.css. */

/* L'accent est injecté inline sur .zh-pp-page (--pp-accent-*) ; on en dérive les
   variables existantes du feed (le header dérive les siennes dans son CSS). */
.zh-pp-page {
  --zh-ppf-purple: var(--pp-accent-2, #a855f7);
}

/* Sections customize-zic : l'attribut [hidden] doit TOUJOURS masquer, même si la
   classe de la section impose un display (grid/flex) — sinon le toggle est ignoré. */
[data-pp-section][hidden] { display: none !important; }

/* Carrousel masqué (état vide) : évite le bandeau noir résiduel (flex / min-height). */
.zh-pp-carousel[hidden] {
  display: none !important;
  flex: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.zh-pp-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  flex: 1;
  min-height: 300px;
}

.zh-pp-carousel-chev {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--pp-overlay, rgba(17, 17, 17, 0.06));
  color: var(--pp-text-muted, #333);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.zh-pp-carousel-chev:hover:not(:disabled) {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

.zh-pp-carousel-chev:disabled {
  opacity: 0.35;
  cursor: default;
}

.zh-pp-carousel-viewport {
  flex: 1;
  min-width: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--pp-border, rgba(0, 0, 0, 0.1));
  background: #0a0a0a;
  box-shadow: 0 4px 14px var(--pp-shadow-soft, rgba(0, 0, 0, 0.08));
}

.zh-pp-carousel-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 280px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.zh-pp-carousel-track::-webkit-scrollbar {
  display: none;
}

.zh-pp-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.zh-pp-carousel-img {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vh);
  object-fit: contain;
  vertical-align: middle;
}

.zh-pp-carousel-video {
  width: 100%;
  max-height: min(420px, 52vh);
  object-fit: contain;
  background: #000;
}

.zh-pp-carousel-embed {
  width: 100%;
  max-height: min(420px, 52vh);
  min-height: 220px;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-pp-carousel-embed-frame {
  width: 100%;
  height: min(420px, 52vh);
  min-height: 220px;
  border: 0;
  background: #000;
}

/* ─── Verrou de défilement unique (js/zic-scroll-lock.js) ─────────── */
/* Classe posée sur <body> par ZicScrollLock tant qu'une couche (lightbox,
   modales article / album, visionneuse…) est ouverte ; elle ne tombe qu'à la
   fermeture de la DERNIÈRE. Jamais d'overflow sur <html> : body deviendrait
   la zone de défilement et l'en-tête / les onglets collants décrocheraient.
   Gouttière stable : pas de saut horizontal quand la barre de défilement
   disparaît sous le verrou. */
body.zh-sl-locked {
  overflow: hidden;
}

html.zh-public-profile-page {
  scrollbar-gutter: stable;
}
