/* ===== Projets de Stands – front ===== */

/* Bloc infos */
.ps-infos { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0 0 32px; padding: 22px 0; border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); }
.ps-infos__item { margin: 0; }
.ps-infos dt { font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; opacity: .55; margin: 0 0 4px; font-weight: 400; }
.ps-infos dd { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0; }

/* Image mise en avant */
.ps-hero { margin: 0 0 14px; overflow: hidden; animation: ps-fade .8s ease both; }
.ps-hero a, .ps-hero img { display: block; width: 100%; height: auto; }

/* Galerie : les images apparaissent en cascade à l'ouverture de la page */
.ps-galerie { display: grid; grid-template-columns: repeat(var(--ps-cols, 3), 1fr); gap: 14px; margin: 0 0 40px; }
.ps-galerie a { display: block; overflow: hidden; aspect-ratio: 4 / 3; opacity: 0; animation: ps-up .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--i, 0) * 90ms); }
.ps-galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ps-galerie a:hover img, .ps-hero a:hover img { transform: scale(1.04); }
.ps-hero img { transition: transform .8s ease; }

@keyframes ps-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }

/* Grille des projets [stands] */
.ps-grille { display: grid; grid-template-columns: repeat(var(--ps-cols, 3), 1fr); gap: 24px; }
.ps-carte { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #111; color: #fff !important; text-decoration: none !important; opacity: 0; animation: ps-up .7s ease forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.ps-carte img, .ps-carte__vide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ps-carte:hover img { transform: scale(1.06); }
.ps-carte__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 4px; }
.ps-carte__client { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.ps-carte__titre { font-size: 20px; line-height: 1.25; font-weight: 600; color: #fff; }
.ps-carte__meta { font-size: 14px; opacity: .85; }

@media (max-width: 999px) { .ps-galerie, .ps-grille { grid-template-columns: repeat(min(2, var(--ps-cols, 3)), 1fr); } }
@media (max-width: 690px) { .ps-galerie, .ps-grille { grid-template-columns: 1fr; } .ps-infos { gap: 14px 28px; } }
@media (prefers-reduced-motion: reduce) { .ps-galerie a, .ps-carte, .ps-hero { animation: none; opacity: 1; } }

/* Lightbox */
.ps-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(10,10,10,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ps-lb.is-open { opacity: 1; visibility: visible; }
.ps-lb__fig { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.ps-lb__fig img { max-width: 90vw; max-height: 82vh; width: auto; height: auto; display: block; margin: 0 auto; }
.ps-lb__fig figcaption { color: #ddd; font-size: 14px; margin-top: 10px; }
.ps-lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 16px; opacity: .7; transition: opacity .2s; }
.ps-lb button:hover { opacity: 1; }
.ps-lb__close { top: 10px; right: 14px; }
.ps-lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ps-lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
.ps-lb__count { position: absolute; top: 24px; left: 26px; color: #aaa; font-size: 14px; }
