/* Woolive — « Pour toi » (30/09/2026) : un Short par écran. Ordinateur : colonne centrée 9:16 + rail d'actions à
   droite + commentaires en panneau (façon YouTube Shorts). Téléphone : plein écran, actions par-dessus la vidéo,
   commentaires en feuille qui monte (façon TikTok). */
.pt-corps { height: 100dvh; overflow: hidden; }
.pt-corps > .wl-pied { display: none; }
.pt { position: relative; flex: 1; min-height: 0; height: calc(100dvh - var(--barre-h, 71px)); background: var(--sombre); }
.pt-fil { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.pt-fil::-webkit-scrollbar { display: none; }
.pt-slide { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; scroll-snap-align: start; scroll-snap-stop: always; }

.pt-cadre { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 120px); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); isolation: isolate; cursor: pointer; }
.pt-cadre video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.pt-flou { position: absolute; inset: -10%; z-index: 0; background: #111 center / cover no-repeat; filter: blur(30px) brightness(.6); }
.pt-cadre::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.pt-pause { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pt-pause svg { fill: #fff; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.pt-slide.en-pause .pt-pause { opacity: .9; }
.pt-infos { position: absolute; left: 14px; right: 70px; bottom: 18px; z-index: 4; display: grid; justify-items: start; gap: 6px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pt-auteur { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; }
.pt-auteur .wl-av { width: 34px; height: 34px; font-size: 14px; border-width: 2px; }
.pt-suivre { padding: 5px 14px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; text-shadow: none; }
.pt-suivre.abonne { background: rgba(255,255,255,.2); }
.pt-titre { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-titre:empty, .pt-desc:empty { display: none; }
.pt-desc { margin: 0; font-size: 13.5px; opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-son { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.pt-barre { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(255,255,255,.2); }
.pt-barre i { display: block; height: 100%; width: 0; background: var(--citron); }
.pt-coeurs { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pt-coeurs i { position: absolute; transform: translate(-50%, -50%) rotate(var(--r)); color: var(--rose); animation: pt-coeur .9s ease-out forwards; }
.pt-coeurs i svg { fill: var(--rose); filter: drop-shadow(0 6px 20px rgba(255,79,163,.7)); }
@keyframes pt-coeur { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.2); opacity: 0; } 20% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -140%) rotate(var(--r)) scale(1); opacity: 0; } }

/* rail d'actions */
.pt-rail { align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 20px; }
.pt-rail-av .wl-av { width: 48px; height: 48px; font-size: 20px; border: 2px solid #fff; }
.pt-b { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--encre); cursor: pointer; font-weight: 700; font-size: 12.5px; }
.pt-b span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--creme2); transition: background .15s, transform .15s; }
.pt-b:hover span { background: var(--violet-clair); transform: scale(1.06); }
.pt-b.aime span { background: rgba(255,79,163,.2); color: var(--rose); }
.pt-b.aime svg { fill: var(--rose); }
.pt-b.pop span { animation: pt-pop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes pt-pop { 40% { transform: scale(1.3); } }

/* flèches précédent / suivant (ordinateur) */
.pt-nav { position: absolute; right: 24px; top: 50%; z-index: 8; display: grid; gap: 10px; transform: translateY(-50%); }
.pt-nav button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--creme2); color: var(--encre); cursor: pointer; }
.pt-nav button:hover { background: var(--violet); color: #fff; }
#b-prec svg { transform: rotate(180deg); }

/* commentaires : panneau à droite */
.pt-com { position: absolute; top: 16px; bottom: 16px; right: 16px; z-index: 9; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column;
  border-radius: 20px; background: var(--papier); box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; animation: pt-glisse .22s ease; }
@keyframes pt-glisse { from { transform: translateX(30px); opacity: 0; } }
.pt-com-fermer { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--creme2); color: var(--encre); cursor: pointer; }
#com-module { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#com-module .pf-com-tete { padding-right: 56px; padding-top: 16px; }
.com-ouvert .pt-nav { display: none; }
@media (min-width: 1100px) { .com-ouvert .pt-slide { padding-right: 440px; } }

.pt-vide { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.pt-vide b { color: var(--citron); }
.pt-vide h1 { font-family: var(--titre); margin: 0; }
.pt-vide p { margin: 0 0 10px; color: var(--encre2); max-width: 420px; }
.pt-toast { position: fixed; left: 50%; bottom: 90px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 20px; border-radius: 999px; background: var(--citron); color: var(--sombre); font-weight: 700; transition: .25s; }
.pt-toast.vu { opacity: 1; transform: translate(-50%, 0); }
.pt-toast.erreur { background: var(--rose); color: #fff; }

/* ── téléphone : plein écran, tout par-dessus la vidéo ── */
@media (max-width: 760px) {
  .pt-corps .wl-barre { display: none; }
  .pt { height: calc(100dvh - var(--nav-bas, 0px)); }
  .pt-slide { padding: 0; gap: 0; }
  .pt-cadre { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .pt-rail { position: absolute; right: 8px; bottom: 90px; z-index: 7; gap: 14px; padding: 0; }
  .pt-b { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
  .pt-b span { width: 46px; height: 46px; background: rgba(0,0,0,.35); }
  .pt-infos { bottom: 22px; right: 76px; }
  .pt-nav { display: none; }
  .pt-com { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 72dvh; border-radius: 22px 22px 0 0; animation: pt-monte .25s ease; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes pt-monte { from { transform: translateY(40%); opacity: 0; } }
  .pt-com::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--creme2); }
}
.pt-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pt-titre, .pt-desc { flex-basis: 100%; }

/* ══ audit du 30/09/2026 ══ */
/* « S'abonner » : 30 px de haut -> zone de toucher portée à 42 px sans changer le dessin */
.pt-suivre { position: relative; }
.pt-suivre::before { content: ""; position: absolute; inset: -6px -4px; }
/* signaler : plus discret que les autres actions */
.pt-b-signal span { width: 40px; height: 40px; }
.pt-b-signal { opacity: .8; }
.pt-b-signal:hover { opacity: 1; }
.pt-b:focus-visible span, .pt-nav button:focus-visible, .pt-son:focus-visible { outline: 3px solid var(--citron); outline-offset: 2px; }
.pt-nav button:hover { background: var(--violet-plein, #7c4dea); }

/* squelette du premier chargement */
.pt-squelette .pt-cadre { background: linear-gradient(110deg, #16112a 30%, #221a3d 50%, #16112a 70%) 0 0 / 300% 100%; animation: pt-brille 1.4s linear infinite; cursor: default; }
.pt-squelette .pt-cadre::after { display: none; }
.pt-squelette .pt-cadre span { position: absolute; left: 16px; display: block; border-radius: 999px; background: rgba(255,255,255,.1); }
.pt-sq-av { bottom: 74px; width: 34px; height: 34px; }
.pt-sq-l1 { bottom: 48px; width: 55%; height: 12px; }
.pt-sq-l2 { bottom: 26px; width: 38%; height: 12px; }
.pt-squelette .pt-rail span { display: block; width: 50px; height: 50px; border-radius: 50%; background: var(--creme2); }
@keyframes pt-brille { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .pt-squelette .pt-cadre { animation: none; } }

/* encart de présentation (visiteur sans compte) */
.pt-accueil { position: absolute; z-index: 10; top: 14px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); display: grid; gap: 8px;
  padding: 16px 44px 14px 18px; border-radius: 20px; background: rgba(34,27,61,.96); color: var(--encre); box-shadow: 0 16px 44px rgba(0,0,0,.55); animation: pt-glisse-bas .3s ease; }
@keyframes pt-glisse-bas { from { transform: translate(-50%, -14px); opacity: 0; } }
.pt-accueil-logo { font: 800 20px/1 var(--titre); letter-spacing: -.5px; }
.pt-accueil-logo i { font-style: normal; color: var(--citron); }
.pt-accueil p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--encre2); }
.pt-accueil-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.pt-accueil .wl-legal { font-size: 12px; gap: 2px 10px; opacity: .85; }
.pt-accueil-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--encre2); cursor: pointer; }
.pt-accueil-x:hover { background: var(--creme2); color: var(--encre); }
@media (max-width: 760px) {
  .pt-accueil { top: calc(10px + env(safe-area-inset-top)); }
  .pt-accueil .wl-bouton { padding: 10px 16px; }
  /* iPhone : la feuille des commentaires remonte au-dessus du clavier (--clavier : barre.js) */
  .pt-com { bottom: var(--clavier, 0px); max-height: calc(100dvh - var(--clavier, 0px) - 10px); }
}
