/* Nouveau moteur PlanParty — compléments discrets au-dessus des layouts d'origine.
   Rien ici ne change le gabarit 750 px : visionneuse, info flash, replis photos. */

/* Info flash : défilement vertical (remplace le <marquee> d'origine). */
.pp-flash {
    height: 150px;
    overflow: hidden;
    position: relative;
}
.pp-flash-defile {
    position: absolute;
    width: 100%;
    animation: pp-defilement 25s linear infinite;
}
.pp-flash:hover .pp-flash-defile {
    animation-play-state: paused;
}
@keyframes pp-defilement {
    0%   { top: 100%; }
    100% { top: -100%; }
}

/* Album : une photo manquante devient une case grise, la page ne casse jamais. */
.pp-album img.pp-manquante,
.pp-photo-indisponible {
    display: inline-block;
    width: 120px;
    height: 90px;
    background: #d8d8d8;
    color: #666;
    font: 10px/90px Verdana, Arial, sans-serif;
    text-align: center;
    border: 1px solid #bbb;
}

/* Album : vignette centrée dans sa case et légende dessous. La règle
   « .texte IMG { float: left } » des layouts faisait passer la légende
   (nouvelle avec l'administration) à côté des vignettes étroites. */
.pp-album .pp-photo img {
    float: none;
    margin: 0;
    vertical-align: bottom;
}

/* Images d'éléments d'interface introuvables (boutons hérités) : masquées. */
img.pp-cachee {
    display: none;
}

/* Visionneuse plein écran (aucune dépendance). */
.pp-visionneuse {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}
.pp-visionneuse img {
    max-width: 94vw;
    max-height: 84vh;
    box-shadow: 0 0 24px #000;
}
.pp-visionneuse .pp-legende-plein {
    color: #eee;
    font: 12px Verdana, Arial, sans-serif;
    margin-top: 10px;
    text-align: center;
    max-width: 90vw;
}
.pp-visionneuse .pp-legende-plein a {
    color: #9cf;
}
.pp-visionneuse button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    font: bold 28px/1 Verdana, Arial, sans-serif;
    cursor: pointer;
    padding: 16px;
    opacity: 0.8;
}
.pp-visionneuse button:hover {
    opacity: 1;
}
.pp-visionneuse .pp-fermer { top: 8px; right: 8px; }
.pp-visionneuse .pp-precedente { left: 2px; top: 50%; transform: translateY(-50%); }
.pp-visionneuse .pp-suivante { right: 2px; top: 50%; transform: translateY(-50%); }
