/* Infos du Mate et galerie privée (retours du 15/11/2026, voir js/mate-infos.js). */

/* Panneau « i » : icônes devant les libellés, apparition douce. */
.gm-ico { font-size: 18px !important; color: #7EC8F5; vertical-align: -4px; margin-right: 8px; opacity: .9; }
.gm-has-ico { display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important;
  white-space: nowrap; width: auto !important; min-width: max-content !important; max-width: none !important; }
.gm-panel-in { animation: gm-panel-in .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes gm-panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gm-panel-in { animation: none; } }

/* Galerie privée : vignettes (abonné) ou vignettes floutées avec cadenas (Free, visiteur). */
.gm-gal { order: 99; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 16px;
  background: rgba(13, 22, 40, .72); border: 1px solid rgba(255, 255, 255, .08); font-family: Poppins, sans-serif; color: #F5F7FB; }
.gm-gal-head { display: flex; align-items: center; gap: 2px; }
.gm-gal-head b { font-size: 14px; font-weight: 600; } .gm-gal-head small { margin-left: auto; color: #AAB6CA; font-size: 12px; }
.gm-gal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gm-gal-tile { aspect-ratio: 1; border-radius: 12px; border: 0; padding: 0; cursor: pointer; background: #22304A center / cover no-repeat;
  position: relative; overflow: hidden; color: #fff; font: 600 15px Poppins, sans-serif; transition: transform .15s ease; }
.gm-gal-tile:active { transform: scale(.95); }
.gm-gal-tile.locked { filter: blur(0); }
.gm-gal-tile.locked::before { content: ''; position: absolute; inset: -10px; background-image: inherit; background-size: cover; background-position: center; filter: blur(9px) brightness(.85) saturate(1.1); }
.gm-gal-tile.locked > span { position: relative; z-index: 1; font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.gm-gal-tile.more { background: rgba(55, 167, 238, .18); color: #9fd6f8; }
.gm-gal-tile.more.locked { background: rgba(170, 182, 202, .14); color: #C9D2E0; }
.gm-gal-lock { margin: 0; font-size: 12px; color: #FFB366; text-align: center; }
/* Dans la carte du swipe : version compacte (petites vignettes, mention sur la ligne du titre). */
.gm-gal.compact { margin-top: 8px; padding: 10px 12px; gap: 6px; }
.gm-gal.compact .gm-gal-row { grid-template-columns: repeat(auto-fill, 48px); }
.gm-gal.compact .gm-gal-tile { width: 48px; height: 48px; border-radius: 10px; font-size: 13px; }
.gm-gal.compact .gm-gal-tile.locked > span { font-size: 17px; }
.gm-gal.compact .gm-gal-lock { display: none; }
.gm-gal.compact.is-locked .gm-gal-head small { color: #FFB366; }
.gm-gal-host > :not(.gm-gal):not([data-b$=" Group_PrivateGalleryHeader"]) { display: none !important; }
.gm-gal-host > .gm-gal { margin-top: 6px; }

/* Visionneuse plein écran. */
#gm-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 8, 18, .94); display: flex; align-items: center; justify-content: center; }
#gm-lightbox[hidden] { display: none; }
#gm-lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 14px; object-fit: contain; animation: gm-panel-in .25s ease both; }
#gm-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }
#gm-lightbox .lb-x { top: 16px; right: 16px; } #gm-lightbox .lb-prev { left: 12px; } #gm-lightbox .lb-next { right: 12px; }
#gm-lightbox.single .lb-prev, #gm-lightbox.single .lb-next { display: none; }
#gm-lightbox .lb-n { position: absolute; bottom: 18px; color: #AAB6CA; font: 500 13px Poppins, sans-serif; }

/* Swipe sur PC (15/11/2026) : fond tiré de la photo du Mate affiché (flou, sombre), titre et raccourcis au-dessus de la
   carte, pour que l'écran ne soit plus un grand vide autour d'une carte isolée. */
#gm-swipe-bg { position: fixed; top: 0; bottom: 0; right: 0; left: var(--sb, 240px); z-index: 0; pointer-events: none; overflow: hidden; background: #0D1628; }
body.gm-desktop[data-page=index] .gm-page { background: transparent !important; position: relative; z-index: 1; }
#gm-swipe-bg[hidden] { display: none; }
#gm-swipe-bg i { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(46px) brightness(.38) saturate(1.2); opacity: 0; transition: opacity .7s ease; }
#gm-swipe-bg i.on { opacity: 1; }
#gm-swipe-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 22, 40, .85) 100%); }
#gm-swipe-head { position: fixed; top: 22px; left: var(--sb, 240px); right: 0; z-index: 3; text-align: center; font-family: Poppins, sans-serif; pointer-events: none; }
#gm-swipe-head[hidden] { display: none; }
#gm-swipe-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: #F5F7FB; }
#gm-swipe-head p { margin: 4px 0 0; font-size: 13px; color: #AAB6CA; }
#gm-swipe-head kbd { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 3px; border-radius: 6px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14); font: 600 11px Poppins, sans-serif; color: #F5F7FB; }

/* Barre du bas : l'icône de l'onglet choisi fait un petit rebond. */
.gm-nav-pop img { animation: gm-nav-pop .42s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes gm-nav-pop { 0% { transform: scale(1); } 35% { transform: scale(.82); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .gm-nav-pop img { animation: none; } }

/* Boutons du swipe et barre du bas : réaction au toucher, plus fluide. */
[data-b$=" Btn_Like"], [data-b$=" Btn_Dislike"], [data-b$=" Btn_ViewDetails"] { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1) !important; cursor: pointer; }
[data-b$=" Btn_Like"]:hover, [data-b$=" Btn_Dislike"]:hover, [data-b$=" Btn_ViewDetails"]:hover { transform: scale(1.06); }
[data-b$=" Btn_Like"]:active, [data-b$=" Btn_Dislike"]:active, [data-b$=" Btn_ViewDetails"]:active { transform: scale(.88); }
