
/* Widget "pendule à témoin" (prénom + photo optionnelle) — partagé par
   /fr/pendule-faire-revenir-une-personne/ et /fr/pendule-rupture/.
   Le JS (penduleretour.js) est commun ; les verdicts sont configurés par page
   via window.PR_CONFIG. */
.pr-app { max-width: 600px; margin: 0 auto 10px; text-align: center; }
.pr-app h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 6px; }
.pr-sub { color: #6b5b7a; font-size: 1rem; margin: 0 0 16px; }
.pr-prenom-box { margin: 0 auto 14px; max-width: 340px; text-align: left; }
.pr-prenom-box label { display: block; font-weight: 600; color: #5a4a6e; font-size: .9rem; margin-bottom: 5px; }
.pr-prenom-box .pr-hint { font-weight: 400; color: #8a7a9a; font-size: .8rem; }
#prPrenomInput {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d8c8e8;
  font-family: inherit; font-size: 1.05rem; box-sizing: border-box;
}
.pr-prenom-box.shake { animation: pr-shake .5s; }
@keyframes pr-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-7px); }
  40%,80% { transform: translateX(7px); }
}
.pr-stage {
  position: relative;
  width: 100%; max-width: 340px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a1b3d 0%, #160d22 100%);
  box-shadow: 0 10px 30px rgba(80, 40, 120, 0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.pr-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.pr-stage.has-photo .pr-photo { opacity: 1; }
.pr-temoin {
  position: relative; z-index: 2;
  padding: 0 18px;
  color: #f3e8ff;
  text-shadow: 0 0 18px rgba(216, 133, 199, .55);
}
.pr-temoin .pr-temoin-pre { display: block; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #cbb6e0; margin-bottom: 8px; }
.pr-temoin .pr-temoin-name { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 2.1rem; line-height: 1.15; word-break: break-word; }
.pr-stage.has-photo .pr-temoin { display: none; }
.pr-pendulum {
  display: none;
  position: absolute;
  top: -4px; left: 50%;
  height: 82%; width: auto;
  transform: translateX(-50%);
  transform-origin: top center;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
  will-change: transform;
}
.pr-photo-add { margin: 0 0 14px; }
.pr-photo-add .pr-pick {
  cursor: pointer;
  display: inline-block;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(148, 31, 57, 0.08);
  border: 1px solid #d8c8e8;
  color: #7a3a4e; font-weight: 600; font-size: .85rem;
  margin: 0 4px;
}
.pr-privacy { font-size: .8rem; color: #7a6a89; background: #f6f0ff; border-radius: 8px; padding: 6px 12px; display: inline-block; margin-bottom: 16px; }
#prQuestion {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #d8c8e8;
  font-family: inherit; font-size: 1rem; margin-bottom: 14px; box-sizing: border-box;
  min-height: 70px; resize: vertical;
}
.pr-app .btn-custom { margin: 4px; }
.pr-app .is-disabled { opacity: .5; cursor: not-allowed; }
.pr-result {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 4, 16, 0.84);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pr-result.show { display: flex; }
.pr-result-card {
  background: linear-gradient(160deg, #2c1c40 0%, #3c1f34 100%);
  border: 1px solid rgba(216, 133, 199, 0.45);
  border-radius: 20px;
  padding: 30px 26px;
  width: 100%; max-width: 360px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: pr-pop .32s ease;
}
.pr-result-emoji { font-size: 2.8rem; line-height: 1; margin-bottom: 6px; }
.pr-result-label { color: #cbb6e0; font-size: 1.05rem; margin-bottom: 10px; }
.pr-result-answer { font-size: 3.4rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; line-height: 1.05; }
.pr-result-answer.yes { color: #34d399; text-shadow: 0 0 22px rgba(52,211,153,.5); }
.pr-result-answer.soon { color: #f5c542; text-shadow: 0 0 22px rgba(245,197,66,.5); }
.pr-result-answer.no { color: #ff5a6e; text-shadow: 0 0 22px rgba(255,90,110,.5); }
.pr-result-answer.unclear { color: #f5c542; text-shadow: 0 0 22px rgba(245,197,66,.45); font-size: 2.2rem; }
.pr-result-sub { color: #e6d8f5; font-size: 1.02rem; line-height: 1.4; margin-bottom: 22px; }
@keyframes pr-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 600px) {
  .pr-app h1 { font-size: 1.35rem; }
  .pr-temoin .pr-temoin-name { font-size: 1.8rem; }
}
