/* MAEBA – Réalisations : mises en scène des réalisations, filtres et visionneuse. Couleurs : palette Kadence. */
.mr-galerie { --mr-rayon: 16px; --mr-ombre: 0 22px 40px -28px rgba(15, 23, 42, .55); display: grid; gap: 28px; }

/* Filtres */
.mr-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mr-galerie button, .mr-boite button { text-transform: none; letter-spacing: normal; }
.mr-filtre { padding: 9px 18px; border: 1px solid var(--global-palette7); border-radius: 999px; background: var(--global-palette9); color: var(--global-palette4); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.mr-filtre:hover { border-color: var(--global-palette1); color: var(--global-palette1); }
.mr-filtre.is-actif { background: var(--global-palette1); border-color: var(--global-palette1); color: #fff; }

/* Grille */
.mr-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 30px 26px; grid-auto-flow: dense; }
.mr-carte { display: grid; gap: 12px; align-content: start; transition: opacity .35s ease, transform .35s ease; }
.mr-carte.is-cache { display: none; }
.mr-carte.mr-attente { opacity: 0; transform: translateY(24px); }
.mr-legende { display: grid; gap: 3px; padding: 0 4px; }
.mr-legende h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.mr-legende p { margin: 0; font-size: 14px; color: var(--global-palette5); }
.mr-type { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--global-palette1); }

/* Scène commune */
.mr-scene { all: unset; box-sizing: border-box; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--mr-rayon); overflow: hidden; cursor: zoom-in; box-shadow: var(--mr-ombre); }
.mr-scene:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 3px; }
.mr-decor { position: absolute; inset: 0; display: block; }
.mr-galerie img, .mr-boite img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.mr-protege { position: relative; }
.mr-decor.mr-protege { position: absolute; }
.mr-protege::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* Affiche au mur */
.mr-mur .mr-decor { background:
	radial-gradient(ellipse 70% 55% at 50% 8%, rgba(255, 255, 255, .75), transparent 70%),
	radial-gradient(circle at 20% 80%, rgba(0, 0, 0, .05) 0 2px, transparent 3px) 0 0 / 22px 22px,
	radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .35) 0 1.5px, transparent 2.5px) 0 0 / 17px 17px,
	linear-gradient(180deg, #e9e3d8 0%, #ddd5c7 70%, #cfc6b6 100%); }
.mr-affiche { position: absolute; left: 50%; top: 52%; height: 80%; transform: translate(-50%, -50%) rotate(var(--rot, -1deg)); background: #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .18), 0 20px 30px -14px rgba(0, 0, 0, .45); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.mr-affiche img { display: block; height: 100%; width: auto; max-width: none; }
.mr-affiche.mr-paysage { height: auto; width: 74%; }
.mr-affiche.mr-paysage img { width: 100%; height: auto; }
.mr-scotch { position: absolute; top: -9px; width: 54px; height: 18px; background: rgba(250, 245, 225, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); z-index: 4; }
.mr-scotch-g { left: -14px; transform: rotate(-38deg); }
.mr-scotch-d { right: -14px; transform: rotate(38deg); }
.mr-scene:hover .mr-affiche { transform: translate(-50%, -52%) rotate(0deg) scale(1.03); }

/* Banderole entre deux piquets */
.mr-piquets { grid-column: span 2; }
.mr-piquets .mr-scene { aspect-ratio: 8 / 3; }
.mr-piquets .mr-decor { background: linear-gradient(180deg, #cfe5fb 0%, #eef6ff 62%, #f6fafe 72%); }
.mr-piquets .mr-sol { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(180deg, #8bbf72, #5e8f4b); }
.mr-piquet { position: absolute; top: 14%; bottom: 10%; width: 1.4%; min-width: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(90deg, #6b4a2f, #a77b52 45%, #5b3d25); box-shadow: 4px 6px 8px -4px rgba(0, 0, 0, .4); z-index: 1; }
.mr-piquet-g { left: 6%; }
.mr-piquet-d { right: 6%; }
.mr-banderole { position: absolute; left: calc(6% + 1.4%); right: calc(6% + 1.4%); top: 22%; z-index: 2; transform-origin: 50% 0; box-shadow: 0 16px 22px -14px rgba(0, 0, 0, .45); }
.mr-banderole img { display: block; width: 100%; height: auto; }
.mr-banderole::before, .mr-banderole::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3%; border-top: 2px solid #4b5563; border-bottom: 2px solid #4b5563; z-index: 4; }
.mr-banderole::before { left: -3%; }
.mr-banderole::after { right: -3%; }

/* Kakémono sur son pied */
.mr-stand .mr-decor { background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 78%, #d1d5db 78%, #c4c8ce 100%); }
.mr-rollup { position: absolute; left: 50%; top: 5%; bottom: 13%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.mr-rollup-barre { width: 104%; height: 6px; border-radius: 3px; background: #374151; }
.mr-rollup-toile { flex: 1; min-height: 0; display: block; box-shadow: 0 16px 26px -16px rgba(0, 0, 0, .5); }
.mr-rollup-toile img { display: block; height: 100%; width: auto; max-width: none; }
.mr-rollup-pied { width: 118%; height: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #9ca3af, #4b5563); box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .45); }
.mr-stand .mr-sol { position: absolute; left: 30%; right: 30%; bottom: 9%; height: 10px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .25), transparent 70%); }
.mr-scene:hover .mr-rollup { transform: translateX(-50%) scale(1.03); }

/* Visuel dans un téléphone */
.mr-telephone .mr-decor { background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .22) 0 18%, transparent 19%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .14) 0 24%, transparent 25%), linear-gradient(135deg, var(--global-palette1), var(--global-palette2, #1e3a8a)); }
.mr-tel { position: absolute; left: 50%; top: 50%; height: 88%; aspect-ratio: 9 / 18.5; transform: translate(-50%, -50%) rotate(-4deg); display: flex; flex-direction: column; overflow: hidden; border: 7px solid #0f172a; border-radius: 26px; background: #fff; box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .6); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.mr-tel::before { content: ""; position: absolute; top: 4px; left: 50%; width: 32%; height: 9px; transform: translateX(-50%); border-radius: 9px; background: #0f172a; z-index: 5; }
.mr-tel-entete { display: flex; align-items: center; gap: 6px; padding: 18px 8px 6px; font-size: 9px; line-height: 1.1; color: #111827; }
.mr-avatar { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--global-palette1); color: #fff; font-weight: 800; font-size: 9px; }
.mr-compte { display: grid; min-width: 0; font-weight: 700; white-space: nowrap; }
.mr-compte, .mr-compte small { overflow: hidden; text-overflow: ellipsis; }
.mr-compte small { font-weight: 400; color: #6b7280; font-size: 8px; }
.mr-tel-image { display: block; }
.mr-tel-image img { display: block; width: 100%; height: auto; }
.mr-tel-actions { display: flex; gap: 8px; padding: 6px 8px; }
.mr-tel-actions svg { width: 13px; height: 13px; fill: none; stroke: #111827; stroke-width: 2; stroke-linejoin: round; }
.mr-scene:hover .mr-telephone .mr-tel, .mr-telephone .mr-scene:hover .mr-tel { transform: translate(-50%, -52%) rotate(0deg); }

/* Site sur écrans */
.mr-ecrans .mr-decor { background: radial-gradient(ellipse at 50% 120%, rgba(56, 189, 248, .25), transparent 60%), linear-gradient(160deg, #0f172a, #1e293b); }
.mr-portable { position: absolute; left: 50%; top: 9%; width: 78%; transform: translateX(-50%); }
.mr-ecran { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 9px solid #111827; border-bottom-width: 12px; border-radius: 10px 10px 0 0; background: #fff; }
.mr-ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 6s ease-in-out; }
.mr-scene:hover .mr-ecran img { object-position: bottom; }
.mr-clavier { display: block; height: 12px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #d1d5db, #9ca3af); box-shadow: 0 12px 18px -8px rgba(0, 0, 0, .6); }
.mr-tel-mini { left: auto; right: 6%; top: auto; bottom: 6%; height: 52%; transform: none; border-width: 5px; border-radius: 18px; }
.mr-tel-mini .mr-tel-image { height: 100%; }
.mr-tel-mini .mr-tel-image img { height: 100%; object-fit: cover; object-position: top; }

/* Événements et projets : viseur d'appareil photo */
.mr-photo .mr-decor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mr-scene:hover .mr-photo .mr-decor img, .mr-photo .mr-scene:hover img { transform: scale(1.05); }
.mr-viseur { position: absolute; inset: 0; z-index: 4; color: #fff; font: 600 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .35)); }
.mr-coin { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .95); }
.mr-coin-hg { top: 12px; left: 12px; border-top-width: 3px; border-left-width: 3px; }
.mr-coin-hd { top: 12px; right: 12px; border-top-width: 3px; border-right-width: 3px; }
.mr-coin-bg { bottom: 12px; left: 12px; border-bottom-width: 3px; border-left-width: 3px; }
.mr-coin-bd { bottom: 12px; right: 12px; border-bottom-width: 3px; border-right-width: 3px; }
.mr-mise-au-point { position: absolute; left: 50%; top: 50%; width: 46px; height: 34px; transform: translate(-50%, -50%); border: 1.5px solid rgba(255, 255, 255, .9); }
.mr-viseur::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) 66.66%, transparent calc(66.66% + .5px)), linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) 66.66%, transparent calc(66.66% + .5px)); }
.mr-scene:hover .mr-viseur::before { opacity: 1; }
.mr-rec { position: absolute; top: 18px; left: 46px; display: flex; align-items: center; gap: 6px; }
.mr-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.mr-batterie { position: absolute; top: 18px; right: 46px; width: 24px; height: 11px; border: 1.5px solid #fff; border-radius: 2px; }
.mr-batterie::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: #fff; }
.mr-batterie i { position: absolute; inset: 1.5px; right: 30%; background: #fff; }
.mr-reglages { position: absolute; bottom: 18px; left: 46px; }
.mr-date { position: absolute; bottom: 18px; right: 46px; }

/* Visionneuse */
.mr-boite { width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--global-palette9); color: var(--global-palette4); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.mr-boite::backdrop { background: rgba(10, 15, 28, .82); backdrop-filter: blur(4px); }
.mr-boite-cadre { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); max-height: 92vh; }
.mr-boite-image { margin: 0; display: grid; place-items: center; min-height: 0; padding: 18px; background: #0f172a; overflow: auto; }
.mr-boite-image img { display: block; max-width: 100%; max-height: calc(92vh - 36px); width: auto; height: auto; }
.mr-boite-infos { display: grid; align-content: start; gap: 10px; padding: 34px 28px; overflow: auto; }
.mr-boite-infos h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.mr-boite-meta { margin: 0; color: var(--global-palette5); }
.mr-boite-texte p { margin: 0 0 .7em; }
.mr-boite-vignettes { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-boite-vignettes button { all: unset; cursor: pointer; width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.mr-boite-vignettes button.is-actif { border-color: var(--global-palette1); }
.mr-boite-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.mr-boite-lien { justify-self: start; margin-top: 6px; padding: 11px 20px; border-radius: 10px; background: var(--global-palette1); color: #fff !important; text-decoration: none; font-weight: 600; }
.mr-boite-lien[hidden] { display: none; }
.mr-fermer, .mr-prec, .mr-suiv { position: absolute; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.mr-fermer { top: 12px; right: 12px; }
.mr-prec { left: 12px; top: 50%; transform: translateY(-50%); }
.mr-suiv { left: calc(61.5% - 56px); top: 50%; transform: translateY(-50%); }
.mr-mention { margin: 0; text-align: center; font-size: 13px; color: var(--global-palette6); }

@media (max-width: 860px) {
	.mr-boite-cadre { grid-template-columns: 1fr; overflow: auto; }
	.mr-boite-image img { max-height: 62vh; }
	.mr-suiv { left: auto; right: 12px; top: 31vh; }
	.mr-prec { top: 31vh; }
	.mr-boite-infos { padding: 22px 20px 28px; }
}
@media (max-width: 680px) {
	.mr-piquets { grid-column: auto; }
	.mr-piquets .mr-scene { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: no-preference) {
	.mr-piquets .mr-banderole { animation: mr-vent 7s ease-in-out infinite; }
	.mr-rec::before { animation: mr-clignote 1.4s steps(2, start) infinite; }
}
@keyframes mr-vent { 0%, 100% { transform: rotate(0deg) skewX(0deg); } 50% { transform: rotate(.35deg) skewX(-.6deg); } }
@keyframes mr-clignote { to { visibility: hidden; } }
