/* 16 Lenses — feuille de partage et boucle d'invitation (partage.js). */
html.pt-ouvert { overflow: hidden; }
.pt-voile { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 8, .72); backdrop-filter: blur(6px); animation: pt-in .2s ease; }
@keyframes pt-in { from { opacity: 0; } }
.pt-feuille { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; padding: 22px; border-radius: 24px; background: #0d0c11; border: 1px solid color-mix(in srgb, var(--c) 45%, #ffffff1a); box-shadow: 0 30px 80px -30px #000, 0 0 60px -30px var(--c); animation: pt-monte .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pt-monte { from { transform: translateY(16px); opacity: 0; } }
.pt-x { all: unset; position: absolute; top: 10px; right: 14px; cursor: pointer; font-size: 26px; line-height: 1; color: #a99fad; padding: 4px 8px; }
.pt-x:hover, .pt-x:focus-visible { color: #fff; }
.pt-apercu { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #09080b; box-shadow: 0 0 0 1px #ffffff14; }
.pt-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pt-in .4s ease; }
.pt-charge { width: 100%; height: 100%; background: linear-gradient(110deg, #0d0c11 30%, color-mix(in srgb, var(--c) 18%, #0d0c11) 50%, #0d0c11 70%); background-size: 200% 100%; animation: pt-brille 1.2s linear infinite; }
@keyframes pt-brille { to { background-position: -200% 0; } }
.pt-sur { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #fff); }
.pt-msg { margin: 0 0 18px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.3; color: #f3eee6; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-principal:disabled { opacity: .6; }
.pt-copier { all: unset; cursor: pointer; font-size: 14px; color: #cfc4d3; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.pt-copier:hover, .pt-copier:focus-visible { color: #fff; }
.pt-info { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: #a99fad; }
.pt-statut { margin: 8px 0 0; font-size: 13px; color: #cfc4d3; min-height: 1em; word-break: break-all; }

.pt-invite { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; max-width: 760px; margin: 84px auto 0; padding: 14px 18px 14px 14px; border-radius: 20px; background: linear-gradient(130deg, color-mix(in srgb, var(--c) 16%, #0d0c11), #0d0c11 70%); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); position: relative; z-index: 3; }
.pt-invite img { width: 96px; height: 128px; object-fit: cover; object-position: 50% 15%; border-radius: 14px; }
.pt-invite p { margin: 0 0 10px; line-height: 1.5; }
.pt-invite b { color: var(--c); font-weight: 600; }

.pt-duo { text-align: center; max-width: 760px; margin-left: auto !important; margin-right: auto !important; padding: 28px 22px !important; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--d) 50%, transparent) !important; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--d) 16%, transparent), transparent 70%); }
.pt-duo-faces { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-duo-faces img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--c); }
.pt-duo-faces img + em + img { box-shadow: 0 0 0 2px var(--d); }
.pt-duo-faces em { font-style: normal; font-size: 24px; color: #a99fad; }
.pt-duo h2 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-weight: 500; margin: 4px 0 10px; }
.pt-duo h2 em { color: var(--d); }
.pt-duo .btns { justify-content: center; }

@media (max-width: 700px) {
  .pt-voile { place-items: end center; padding: 0; }
  .pt-feuille { grid-template-columns: 1fr; gap: 14px; border-radius: 22px 22px 0 0; max-height: 92vh; padding: 18px 16px 22px; }
  .pt-apercu { width: 52%; margin: 0 auto; }
  .pt-msg { font-size: 19px; margin-bottom: 14px; }
  .pt-actions .btn { flex: 1 1 100%; justify-content: center; }
  .pt-invite { grid-template-columns: 72px 1fr; margin: 128px 12px 0; }
  .pt-invite img { width: 72px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .pt-voile, .pt-feuille, .pt-apercu img, .pt-charge { animation: none; } }
