/* Page des réalisations (front.js). Couleurs du thème multi si présentes (--m-*), sinon valeurs de Multi. */
.realisations { --r-marine: var(--m-marine, #002D62); --r-bleu: var(--m-bleu, #00AFEF); --r-gris: var(--m-gris, #F2F5F8); --r-bordure: var(--m-bordure, #DFE5E8); }
.realisations [hidden] { display: none !important; }
.realisations__outils { margin-bottom: 28px; }
.realisations__filtres, .realisations__sous-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.realisations__sous-filtres { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--r-bordure); }
.realisations button[data-cat] {
	border: 2px solid var(--r-marine); background: #fff; color: var(--r-marine); padding: 9px 18px; cursor: pointer;
	font-family: var(--m-titres, Montserrat, Arial, sans-serif); font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em;
	transition: background-color .2s, color .2s, border-color .2s;
}
.realisations__sous-filtres button[data-cat] { border-width: 1px; border-color: var(--r-bordure); padding: 6px 14px; font-size: 0.75rem; }
.realisations button[data-cat]:hover { border-color: var(--r-bleu); color: var(--r-bleu); }
.realisations button[data-cat].est-actif { background: var(--r-marine); border-color: var(--r-marine); color: #fff; }
.realisations__sous-filtres button[data-cat].est-actif { background: var(--r-bleu); border-color: var(--r-bleu); }
.realisations__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.realisations__recherche { flex: 1 1 320px; max-width: 520px; padding: 12px 14px; border: 1px solid #C9D3DA; font: inherit; }
.realisations__recherche:focus { outline: none; border-color: var(--r-bleu); box-shadow: 0 0 0 3px rgba(0, 175, 239, .2); }
.realisations__compte { color: var(--m-texte, #5F727F); font-weight: 600; }

.realisations__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.realisations__photo { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--r-gris); }
.realisations__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.realisations__photo:hover img, .realisations__photo:focus-visible img { transform: scale(1.06); }
.realisations__legende {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
	background: linear-gradient(to top, rgba(0, 27, 61, .85), rgba(0, 27, 61, 0)); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.realisations__photo:hover .realisations__legende, .realisations__photo:focus-visible .realisations__legende { opacity: 1; transform: none; }
@media (hover: none) { .realisations__legende { opacity: 1; transform: none; } }
.realisations__aucun { text-align: center; padding: 40px 0; }
.realisations__suite { text-align: center; margin-top: 32px; }
.realisations__plus { cursor: pointer; }

/* Légende de la visionneuse */
.pswp__legende {
	position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(760px, calc(100% - 32px));
	padding: 12px 18px; background: rgba(0, 27, 61, .78); color: #fff; text-align: center; border-radius: 4px; font-size: 0.9375rem; line-height: 1.45;
}
.pswp__legende:empty { display: none; }
.pswp__legende strong { display: block; font-size: 1.0625rem; }
.pswp__legende span { display: block; margin-top: 4px; opacity: .9; }
.pswp__legende em { display: block; margin-top: 4px; font-style: normal; font-size: 0.8125rem; color: #7fd8ff; text-transform: uppercase; letter-spacing: .05em; }
