/* « Pour de vrai : à vous de raconter » (maj68, 13/11/2026) : la feuille de pour-de-vrai.html seulement, chargée
   après site.css. L'esprit des démos des années 1990 (scroller, barres de couleur, générique de fin), en CSS, sans
   image ni police de plus. Les bandes « écran » gardent leur fond noir dans tous les thèmes (comme les écrans du
   TO8) ; le reste suit les jetons du site, en clair comme en sombre. prefers-reduced-motion arrête tout. */

/* ---------- Le scroller : un bandeau qui défile, que l'on peut arrêter (case à cocher, sans script) ---------- */
.pdv-scroller {
  position: relative;
  margin: 1.5rem 0 0;
}

.pdv-scroller-pause {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pdv-scroller-bouton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--filet);
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre-2);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  cursor: pointer;
}

.pdv-scroller-bouton::before {
  content: "❚❚\00a0";
  content: "❚❚\00a0" / "";
}

.pdv-scroller-pause:checked + .pdv-scroller-bouton::before {
  content: "▶\00a0";
  content: "▶\00a0" / "";
}

.pdv-scroller-pause:focus-visible + .pdv-scroller-bouton {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pdv-scroller-bouton:hover {
  border-color: var(--accent);
  color: var(--accent-fort);
}

.pdv-scroller-bande {
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #ff2a1a, #ffff00, #00e000, #00ffff, #1a3cff, #ff00ff) border-box;
  border: 3px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pdv-scroller-piste {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0.7rem 0;
  font-family: var(--f-mono);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  animation: pdv-defile 38s linear infinite;
}

.pdv-scroller-texte {
  padding-right: 1.5rem;
  color: #ffff00;
  background: linear-gradient(90deg, #ffff00, #00ffff, #ff7bff, #7dff7d, #ffff00);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pdv-scroller:hover .pdv-scroller-piste,
.pdv-scroller:focus-within .pdv-scroller-piste,
.pdv-scroller:has(.pdv-scroller-pause:checked) .pdv-scroller-piste {
  animation-play-state: paused;
}

@keyframes pdv-defile {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- L'étincelle : une réplique en bulle, puis le prompt ---------- */
.pdv-replique {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: 14px 14px 14px 2px;
  background: var(--surface);
  font-family: var(--f-titre);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
}

.pdv-replique p {
  margin: 0;
}

.pdv-prompt {
  margin-top: 1.5rem;
}

.pdv-prompt .prompt-cadre {
  border-width: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--surface), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.pdv-petit {
  max-width: 44rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--encre-2);
  font-size: 0.9375rem;
}

.pdv-petit li + li {
  margin-top: 0.35rem;
}

/* ---------- Gentil Seeb : un personnage en pixels et sa bulle ---------- */
.pdv-gentil-scene {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 4px),
    #10131a;
  color: #f4f4f4;
}

.pdv-gentil-sprite {
  flex: none;
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}

.px-peau {
  fill: #f2c39b;
}

.px-cheveux {
  fill: #5a3a22;
}

.px-oeil {
  fill: #1b1b1b;
}

.px-joue {
  fill: #ff8a8a;
}

.px-bouche {
  fill: #8a2a1a;
}

.px-corps {
  fill: #00b8d4;
}

.px-coeur {
  fill: #ff2a6a;
  transform-origin: 14.5px 2px;
  animation: pdv-coeur 1.6s ease-in-out 3;  /* moins de 5 secondes : pas de mouvement qui dure */
}

@keyframes pdv-coeur {
  50% {
    transform: scale(1.25);
  }
}

.pdv-gentil-parole {
  display: grid;
  flex: 1 1 14rem;
  gap: 0.75rem;
  justify-items: start;
}

.pdv-gentil-bulle {
  position: relative;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 2px solid #00ffff;
  border-radius: 12px;
  background: #000;
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pdv-gentil-bulle[data-anime] {
  animation: pdv-pop 0.35s ease-out;
}

@keyframes pdv-pop {
  from {
    transform: scale(0.94);
  }
}

.pdv-gentil-bouton {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid #ffff00;
  border-radius: 6px;
  background: #1a3cff;
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.pdv-gentil-bouton:hover {
  background: #2f52ff;
}

.pdv-gentil-bouton:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 3px;
}

.pdv-gentil-bouton[hidden] {
  display: none;
}

.pdv-gentil-note {
  color: var(--encre-2);
  font-size: 0.875rem;
}

/* ---------- Le générique de fin, façon démo ---------- */
.pdv-generique {
  padding: clamp(1.5rem, 1rem + 3vw, 3rem) 1rem;
  border-radius: 8px;
  background:
    radial-gradient(1px 1px at 12% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 40%, #ffd 50%, transparent 51%),
    linear-gradient(#05060c, #0d1030);
  color: #e8ecff;
  text-align: center;
}

.pdv-generique-titre {
  margin: 0 0 1.25rem;
  color: #ffff00;
  font-family: var(--f-mono);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.pdv-generique-liste {
  display: grid;
  gap: 0.9rem;
  max-width: 30rem;
  margin: 0 auto;
}

.pdv-generique-liste dt {
  color: #00ffff;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pdv-generique-liste dd {
  margin: 0.15rem 0 0;
  font-size: 1.0625rem;
}

.pdv-generique-fin {
  margin: 1.75rem 0 0;
  color: #ff7bff;
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Le mouvement : jamais imposé ---------- */
@media (prefers-reduced-motion: reduce) {
  .pdv-scroller-piste {
    width: auto;
    white-space: normal;
    padding: 0.7rem 1rem;
    animation: none;
  }

  .pdv-scroller-texte[aria-hidden="true"],
  .pdv-scroller-bouton,
  .pdv-scroller-pause {
    display: none;
  }

  .px-coeur,
  .pdv-gentil-bulle[data-anime] {
    animation: none;
  }
}

@media print {
  .pdv-scroller {
    display: none;
  }
}
