/* build 2026-11-04-v3 */
/* ============================================================

   FONTS

   ============================================================ */
@font-face {
  font-family: 'Work';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/font/Work-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Work';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/font/Work-Bold.woff2') format('woff2');
}

/* ════════════════════════════════════════════════════════════
   lightbox-controls.css — commandes communes photo / vidéo
   À charger APRÈS la feuille de style principale.

   Barre vidéo : #lb-video-wrap .fbp-row
   Barre photo : #lb-photo-bar (créée par lightbox.js, posée en bas de l'image)
   Les deux ont la même structure et partagent TOUS les styles ci-dessous :
     [lecture][durée]  [Commenter]  ····  [vitesse][taille/qualité ⬇][volume][plein écran]
   Photo : [Commenter] ···· [taille ⬇]
════════════════════════════════════════════════════════════ */
/* ============================================================
   MENU DU HAUT — verre « neutre » (ni clair ni sombre)
   Pas de bandeau : les contrôles flottent sur la carte, mais partagent le même
   verre gris translucide + flou + liseré clair, lisible sur fond clair comme sombre.
   [4lbum | 🔍 Rechercher…] ················ [compte][☰]
   ============================================================ */
/* ============================================================
   v2 — collé en haut/aux bords, burger fin et régulier, recherche bornée
   ============================================================ */
/* ============================================================
   v3 — recherche ouverte d'office (desktop) / repliée sur la loupe (mobile),
        burger collé au coin haut-droit
   ============================================================ */
:root {
  --bg: #141414;
  --surface: #1a1a1a;
  --surface2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.52);
  --accent: #e8c97a;
  --radius: 10px;
  --font: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --c1: #3498db;
  --c2: #1abc9c;
  --c3: #3dc97a;
  --red: #ff6b6b;
  --surf: rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --volt: #c8f135;
  --ink: #0a0a0f;
  --lbc-size: 40px; /* hauteur / largeur minimale de chaque contrôle */
  --lbc-icon: 22px;
  --lbc-gap: 4px;
  --glass-bg: rgba(112,112,120,.36);
  --glass-bg-hover: rgba(112,112,120,.52);
  --glass-border: rgba(255,255,255,.34);
  --glass-shadow: 0 2px 14px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.28);
  --glass-blur: blur(18px) saturate(1.7);
  --header-height: 36px;
  --ctl-h: 36px;
  --search-w: 400px;
} /* largeur de la barre desktop (avant : 280px, ouverte au focus à 460px) */

html {
  scrollbar-color: black #333;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #333;
}

::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 10px;
  border: 2px solid #555;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body:not(.slider-page) {
  display: block !important;
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
  padding-top: var(--header-height, 56px);
  background: #07080f;
  color: #fff;
  font-family: 'Work', -apple-system, sans-serif;
}

body:has(.absolute-header) {
  padding-top: 0 !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-like {
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 54px;
}

.header-like h1 {
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================

   HEADER RIGHT / ACCOUNT MENU

   ========================================================== */
.header-right {
  margin-left: auto;
}

.no-underline {
  text-decoration: none;
}

/* ============================================================

   NAVIGATION DESKTOP CLASSIQUE (.nav-center)

   ============================================================ */
.nav-center {
  display: flex;
  align-items: center;
  gap: 25px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Work', -apple-system, sans-serif;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
  font-family: 'Work', -apple-system, sans-serif;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #1abc9c);
  border-radius: 2px;
}

/* ============================================================

   UTILITAIRES MOBILES (Séparateurs & Liens couleurs)

   ============================================================ */
.mobile-section-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
  opacity: 0.4;
}

.mobile-link--section {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  margin: 4px 0;
}

.mobile-link--whatsapp {
  color: #25d366;
}

.mobile-link--linkedin {
  color: #0077b5;
}

/* ============================================================

   VARIABLES GLOBALES & RESET (variables déjà fusionnées dans le :root en tête de fichier)

   ============================================================ */
body.no-scroll {
  overflow: hidden !important;
}

.mm-legal {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  margin-top: 64px;
}

.mm-legal a {
  font-size: .75rem;
  font-weight: 500;
  color: wheat;
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s ease, color .2s ease;
}

.mm-legal a:hover,
.mm-legal a:focus-visible {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

/* ============================================================

   HEADER GLOBAL

   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  font-family: 'Work', -apple-system, sans-serif;
}

.absolute-header {
  position: absolute !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .header-h1 {
    display: none;
  }
}

/* Titre H1 central discret */
.header-h1 {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.77);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30vw;
  letter-spacing: .92px;
  font-family: 'Work', -apple-system, sans-serif;
}

.header-h1 a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================

   LOGO

   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Work', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}

.logo-part-2 {
  color: #fff;
  transition: color 0.3s ease;
  font-size: 1.13em;
}

.logo-ext {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.album-logo {
  color: gold;
  font-size: 13px;
}

.logo:hover .logo-part-2 {
  color: #3498db;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.logo:hover .logo-part-2.lab {
  color: var(--volt);
  text-shadow: 0 0 10px rgba(200, 241, 53, 0.4);
}

.logo:hover .logo-part-2.album {
  color: #e8c97a;
  text-shadow: 0 0 10px rgba(232, 201, 122, 0.4);
}

.logo:hover .logo-ext {
  color: #fff;
}

@keyframes lightning-strike {
  0%,
  85%,
  90%,
  95% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  88% {
    transform: scale(1.5) translateY(-2px);
    opacity: .7;
  }
  92% {
    transform: scale(1.4) translateY(-1px);
    opacity: .8;
  }
}

/* ============================================================

   ANIMATIONS & DROPDOWNS COMMUNS (Lang & Section Switcher)

   ============================================================ */
.section-switcher,
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  --dropdown-gap: 12px;
  height: max-content !important;
}

.section-switcher::after,
.lang-selector::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--dropdown-gap);
}

.section-dropdown,
.lang-dropdown {
  position: absolute;
  top: calc(100% + var(--dropdown-gap));
  left: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 130px;
  z-index: 1400;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-dropdown {
  right: auto;
  left: 0;
}

@media (hover: hover) {
  .section-switcher:hover .section-dropdown,
  .lang-selector:hover .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

.section-switcher.open .section-dropdown,
.lang-selector.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ============================================================

   SECTION SWITCHER SPECIFIC

   ============================================================ */
.section-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.section-trigger:hover {
  transform: scale(1.05);
}

.label-agency {
  background: linear-gradient(130deg, var(--c1), var(--c2));
  color: #fff;
}

.label-lab {
  background: var(--volt);
  color: black !important;
}

.label-album {
  background: #e8c97a !important;
  color: black !important;
}

/* Items du section-dropdown (fusion des deux déclarations d'origine) */
.section-dropdown a {
  padding: 8px 12px;
  text-decoration: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 1.3s ease-in-out, background 1.3s ease-in-out;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 5px;
}

.section-dropdown a:hover {
  background: rgba(255,255,255,0.05);
  padding-left: 16px;
}

.section-dropdown a.current {
  opacity: 1;
  border: 2.6px solid white;
}

/* Hover : pleine opacité + couleur de la section */
.section-dropdown a.label-agency:hover {
  opacity: 1;
  background: linear-gradient(130deg, var(--c1), var(--c2));
}

.section-dropdown a.label-lab:hover {
  opacity: 1;
  background: var(--volt);
  color: black;
}

.section-dropdown a.label-album:hover {
  opacity: 1;
  background: #e8c97a;
  color: black;
}

/* ============================================================

   LANG SELECTOR SPECIFIC

   ============================================================ */
/* .lang-trigger : fusion des deux déclarations d'origine (la 2e gagnait déjà en cascade sur padding/border-radius/color/transition) */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  cursor: pointer;
  background: rgba(255,255,255,.70);
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

.lang-code {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  padding: 2px 4px;
  border-radius: 3px;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  background: rgba(0, 0, 0, .64);
  color: white;
  transform: translateY(-1px);
}

.lang-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-chevron {
  flex-shrink: 0;
  color: #333;
  opacity: 0.8;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.18s ease, opacity 0.18s ease;
}

.lang-trigger:hover .lang-chevron,
.lang-trigger[aria-expanded="true"] .lang-chevron {
  color: white;
  opacity: 1;
  transform: rotate(180deg);
}

.lang-selector.open .lang-trigger .lang-chevron {
  color: white;
  opacity: 1;
  transform: rotate(180deg);
}

/* Langue actuellement sélectionnée dans le dropdown (fusion des deux déclarations .lang-dropdown a.current) */
.lang-dropdown a.current {
  background: black;
  color: wheat !important;
  font-weight: 600;
  pointer-events: none;
}

.lang-dropdown a.current .lang-code {
  color: wheat;
}

/* ============================================================

   BURGER — bouton rond aligné sur le style avatar / loupe

   ============================================================ */
.burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1002;
  transition: background .2s ease;
  cursor: pointer;
}

.burger-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.burger-icon {
  position: relative;
}

.burger-line {
  position: absolute;
  background: #fff;
}

/* ============================================================

   MENU MOBILE — panneau plein écran qui glisse de haut en bas

   ============================================================ */
body.mm-open {
  overflow: hidden;
}

body.mm-open .site-header {
  position: fixed !important;
}

.mm-panel {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(39, 26, 13, 0.39);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.65,0,.35,1), visibility 0s linear .5s;
  backdrop-filter: blur(39px);
  -webkit-backdrop-filter: blur(39px);
}

.mm-panel.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .5s cubic-bezier(.65,0,.35,1), visibility 0s linear 0s;
  z-index: 999;
}

/* .mm-inner : fusion des deux déclarations d'origine (width:100% ajouté par la 2e) */
.mm-inner {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 0;
  width: 100%;
}

.mm-view[hidden] {
  display: none;
}

@media (min-width: 900px) {
  /* Fusion des deux media queries 900px sur .mm-inner */
  .mm-inner {
    max-width: 630px;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.mm-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid white;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: padding-left .2s ease, color .2s ease;
  text-decoration: none;
}

.mm-link:hover,
.mm-link:focus-visible {
  color: var(--accent);
  padding-left: 8px;
}

.mm-link:focus-visible {
  outline: none;
}

.mm-link-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-link-count {
  font-size: .85rem;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,.06);
  padding: 4px 11px;
  border-radius: 999px;
  min-width: 2.2em;
  text-align: center;
  flex-shrink: 0;
}

.mm-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,.3);
}

.mm-link-admin {
  display: none;
}

body.is-admin .mm-link-admin {
  display: flex;
}

/* vue "Lieux" / "Langue" */
.mm-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: wheat;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 4px;
  margin-bottom: 4px;
}

.mm-back:hover {
  color: #fff;
}

.mm-cat-item .mm-link-count {
  background: rgba(232,201,122,.12);
  color: var(--accent);
}

.mm-footer {
  flex-shrink: 0;
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESEAUX SOCIAUX — BASE & HOVER ELASTIQUE
   ============================================================ */
.bio-socials,
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bio-socials a,
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.bio-socials a svg,
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  max-width: 18px;
  max-height: 18px;
}

.bio-socials a:hover,
.social-icon:hover {
  transform: translateY(-4px) scale(1.12);
  filter: brightness(1.15);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   COULEURS OFFICIELLES DES RÉSEAUX SOCIAUX (14 Réseaux)
   ============================================================ */
/* Instagram */
.social-instagram,
[data-social="instagram"],
.bio-socials a[href*="instagram.com"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* LinkedIn */
.social-linkedin,
.social-li,
[data-social="linkedin"],
.bio-socials a[href*="linkedin.com"] {
  background: #0a66c2;
}

/* WhatsApp */
.social-whatsapp,
.social-wa,
[data-social="whatsapp"],
.bio-socials a[href*="wa.me"],
.bio-socials a[href*="whatsapp.com"] {
  background: #25d366;
}

/* Facebook */
.social-facebook,
.social-fb,
[data-social="facebook"],
.bio-socials a[href*="facebook.com"] {
  background: #1877f2;
}

/* X / Twitter */
.social-x,
[data-social="x"],
.bio-socials a[href*="x.com"],
.bio-socials a[href*="twitter.com"] {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* TikTok */
.social-tiktok,
[data-social="tiktok"],
.bio-socials a[href*="tiktok.com"] {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* YouTube */
.social-youtube,
[data-social="youtube"],
.bio-socials a[href*="youtube.com"],
.bio-socials a[href*="youtu.be"] {
  background: #ff0000;
}

/* Pinterest */
.social-pinterest,
[data-social="pinterest"],
.bio-socials a[href*="pinterest.com"] {
  background: #e60023;
}

/* Reddit */
.social-reddit,
[data-social="reddit"],
.bio-socials a[href*="reddit.com"] {
  background: #ff4500;
}

/* Snapchat (icône noire sur fond jaune officiel) */
.social-snapchat,
[data-social="snapchat"],
.bio-socials a[href*="snapchat.com"] {
  background: #fffc00;
  color: #000000;
}

/* Twitch */
.social-twitch,
[data-social="twitch"],
.bio-socials a[href*="twitch.tv"] {
  background: #9146ff;
}

/* Telegram */
.social-telegram,
[data-social="telegram"],
.bio-socials a[href*="t.me"],
.bio-socials a[href*="telegram.org"] {
  background: #229ed9;
}

/* Discord */
.social-discord,
[data-social="discord"],
.bio-socials a[href*="discord.com"],
.bio-socials a[href*="discord.gg"] {
  background: #5865f2;
}

/* GitHub */
.social-github,
[data-social="github"],
.bio-socials a[href*="github.com"] {
  background: #24292e;
}

/* ───────────────────────────────────────

   FOOTER

─────────────────────────────────────── */
.site-footer {
  position: relative !important;
  z-index: 10 !important;
  border-top: 1px solid var(--border) !important;
  background: rgba(0,0,0,.6) !important;
  backdrop-filter: blur(12px) !important;
  padding: 64px 0 0;
  font-family: 'Work', -apple-system, sans-serif;
  margin-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(130deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Work', -apple-system, sans-serif;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.fsoc {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all .25s;
  text-decoration: none;
}

.fsoc:hover {
  border-color: var(--c1);
  color: #fff;
  background: rgba(52,152,219,.1);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.39;
  padding: 0;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .22s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Work', -apple-system, sans-serif;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0 !important;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  font-family: 'Work', -apple-system, sans-serif;
  text-align: center;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .faq-q {
    font-size: 14px;
  }
}

/* ============================================================

   BARRE DE RECHERCHE (autocomplétion photos / vidéos / catégories)

   ============================================================ */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.site-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background .15s;
  background-color: rgba(39, 26, 13, 0.39);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

.site-search-toggle:hover {
  color: white;
  background-color: rgba(0, 0, 0, 0.64);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.site-search-panel {
  display: flex;
  flex-direction: column;
}

.site-search-field {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(39, 26, 13, 0.39);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  height: 40px;
}

.ss-field-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255,255,255,.92);
  padding: 0;
}

.ss-field-submit:hover {
  color: #fff;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  height: 38px;
  letter-spacing: .39px;
}

.site-search-input::placeholder {
  color: rgba(255,255,255,.92);
}

.site-search-clear {
  flex-shrink: 0;
  border: none;
  background: none;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 8px;
}

.site-search-clear:hover {
  color: #fff;
}

.site-search-close {
  display: none;
  flex-shrink: 0;
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(420px,70vh);
  overflow-y: auto;
  background: rgba(24,24,24,.97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  padding: 6px;
  z-index: 1210;
}

.ss-group + .ss-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ss-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  padding: 4px 8px;
}

.ss-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
}

.ss-item:hover,
.ss-item.is-active {
  background: rgba(255,255,255,.1);
}

.ss-ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
}

.ss-thumb {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.08);
}

.ss-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ss-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ss-sub {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ss-empty {
  padding: 12px 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

@media (min-width: 900px) {
  /* Desktop : champ centré dans le header */
  .site-header {
    padding: 0 10px;
  }

  .site-search-toggle {
    display: none;
  }

  .site-search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-search-panel {
    position: relative;
  }

  .site-search-field {
    width: 320px;
  }
}

/* ============================================================

   MENU MOBILE — PAYS / VILLES

   ============================================================ */
.mm-country {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mm-country:last-child {
  border-bottom: none;
}

.mm-country-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mm-country-summary::-webkit-details-marker {
  display: none;
}

.mm-country-summary::marker {
  content: '';
}

.mm-country-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .25s ease;
  opacity: .6;
}

.mm-country[open] > .mm-country-summary::after {
  transform: rotate(45deg);
}

.mm-country-flag {
  font-size: 20px;
  line-height: 1;
}

.mm-country-name {
  font-weight: 600;
  flex: 1;
}

.mm-country-count {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.mm-city-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 10px 30px;
  animation: mm-fade-in .18s ease;
}

@keyframes mm-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .mm-city-item / .mm-city-thumb* / .mm-city-info / .mm-city-name / .mm-city-count :

   fusion des 3 déclarations d'origine (valeurs finales conservées, identiques au dernier état en cascade) */
.mm-city-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 6px;
  background: none;
  border: none;
  border-radius: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.mm-city-item:hover,
.mm-city-item:focus-visible {
  background: rgba(255,255,255,0.06);
}

.mm-city-thumbs {
  display: flex;
  flex-shrink: 0;
}

.mm-city-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid #1c1c1e; /* couleur de fond du panneau */
  margin-left: -30px;
}

.mm-city-thumb:first-child {
  margin-left: 0;
}

.mm-city-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mm-city-name {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-city-count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================

   MENU MOBILE — ARBRE CONTINENT / PAYS / ÉTAT (mm-node)

   ============================================================ */
.mm-node {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mm-node:last-child {
  border-bottom: none;
}

.mm-node-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 14px 4px;
}

.mm-node-summary::-webkit-details-marker {
  display: none;
}

.mm-node-summary::marker {
  content: '';
}

.mm-node-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .25s ease;
  opacity: .6;
}

.mm-node[open] > .mm-node-summary::after {
  transform: rotate(45deg);
}

.mm-node-icon {
  font-size: 20px;
  line-height: 1;
}

.mm-node-name {
  font-weight: 600;
  flex: 1;
}

.mm-node-count {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.1);
  padding: 2px 9px;
  border-radius: 999px;
}

.mm-node-children {
  padding-left: 16px;
  animation: mm-fade-in .18s ease;
}

/* Réglages visuels par profondeur : continent (0) > pays (1) > état (2) */
.mm-node-depth-0 > .mm-node-summary {
  font-size: 16px;
  padding: 16px 4px;
}

.mm-node-depth-0 > .mm-node-summary .mm-node-icon {
  font-size: 22px;
}

.mm-node-depth-1 > .mm-node-summary {
  font-size: 14px;
  padding: 13px 4px;
}

.mm-node-depth-1 > .mm-node-summary .mm-node-icon {
  font-size: 18px;
}

.mm-node-depth-1 > .mm-node-summary .mm-node-name {
  font-weight: 500;
}

.mm-node-depth-1 > .mm-node-summary .mm-node-count {
  font-size: 11px;
  background: rgba(255,255,255,0.07);
}

.mm-node-depth-2 > .mm-node-summary {
  font-size: 13px;
  padding: 11px 4px;
}

.mm-node-depth-2 > .mm-node-summary .mm-node-name {
  font-weight: 600;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3em;
}

.mm-node-depth-2 > .mm-node-summary .mm-node-name::before {
  content: "▸";
  font-size: 1.3em;
  opacity: .7;
  display: inline-block;
  transition: transform .2s ease;
}

.mm-node-depth-2.open > .mm-node-summary .mm-node-name::before {
  transform: rotate(90deg);
}

/* ---------- Lien "Se connecter" (utilisateur non loggé) ---------- */
.account-login-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
  background: var(--gold, #c9a227);
  color: black;
}

.account-login-link:hover {
  color: black;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
  opacity: .92;
}

#stats-bar {
  position: relative;
  z-index: 900;
  display: flex;
  gap: 18px;
  margin: auto;
  flex-wrap: wrap;
}

.stat.active {
  text-decoration: none !important;
  color: #e8c97a;
  font-weight: 900;
}

#overlay-text .stat.active {
  font-weight: normal;
  color: white;
}

#overlay-text .stat {
  font-size: 13px;
}

.stat {
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
}

.stat b {
  color: var(--text);
  font-weight: normal;
}

/* ── Barre d'outils publique (dans le flux, rangée dans #sticky-shell par public.js) ──
   Filtres · Photos · Vidéos à gauche, vue album/à plat + zoom à droite. Ne flotte plus sur les images. */
#grid-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 12px;
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#grid-toolbar #grid-zoom-ctrl {
  position: static;
}

#grid-toolbar > #grid-zoom-ctrl,
#grid-toolbar > .alb-dock {
  margin-left: auto;
} /* tout à droite */

.fb-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fb-stat {
  position: relative;
  cursor: pointer;
}

.fb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}

.fb-stat-pill svg {
  opacity: .85;
  flex: none;
}

.fb-stat-pill b {
  font-weight: 500;
}

.fb-stat:hover .fb-stat-pill {
  background: rgba(40,40,40,.65);
}

.fb-stat.active .fb-stat-pill {
  color: black;
  border-color: rgba(232,201,122,.7);
  background: rgba(232,201,122,.64);
}

.fb-stat.active #s-videos-count,
.fb-stat.active #s-photos {
  color: black;
}

/* ── Dropdown vidéos (même charte blur) ── */
.stat-has-menu {
  position: relative;
}

.stat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  z-index: 60;
  min-width: 230px;
  padding: 4px;
  background: rgba(20,20,20,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

/* pont invisible : évite de perdre le survol entre la pill et le menu */
.stat-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.stat-has-menu:hover .stat-dropdown,
.stat-has-menu:focus-within .stat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.stat-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  color: #fff;
}

.stat-dropdown-item:hover,
.stat-dropdown-item.active {
  background: rgba(232,201,122,.16);
}

.stat-dropdown-item .sd-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.stat-dropdown-item small {
  font-size: 10px;
  opacity: .6;
}

.stat-dropdown-item b {
  color: #e8c97a;
}

@media (max-width: 600px) {
  .fb-stat-pill {
    gap: 5px;
  }
}

/* #main : fusion des deux déclarations d'origine (position/min-height ajoutés par la 2e) */
#main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min(var(--map-h, 420px), 85vh) 1fr;
  transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1);
  flex: 1;
  position: relative;
  min-height: 100vh;
}

#map-wrap {
  isolation: isolate;
  position: relative;
  z-index: 499;
  border-bottom: 1px solid var(--border);
}

#map {
  width: 100%;
  height: 100%;
}

#main.map-dragging {
  transition: none;
}

.map-resize-handle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1100;
  width: 52px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(39, 26, 13, 0.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  opacity: .7;
  cursor: ns-resize;
  touch-action: none; /* le drag vertical ne fait pas défiler la page */
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, background .15s;
}

/* zone tactile élargie, invisible */
.map-resize-handle::before {
  content: "";
  position: absolute;
  inset: -14px -16px 0;
}

.map-resize-handle:hover,
.map-resize-handle:focus-visible,
#main.map-dragging .map-resize-handle {
  opacity: 1;
  background: rgba(39, 26, 13, 0.85);
}

.map-resize-handle:focus-visible {
  outline: 2px solid var(--accent, #e8c97a);
  outline-offset: 1px;
}

.map-resize-handle svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform .2s;
}

.map-resize-handle[data-dir="up"] svg {
  transform: rotate(180deg);
}

@media (pointer: coarse) {
  .map-resize-handle {
    width: 64px;
    height: 24px;
    opacity: .85;
  }
}

/* On cible spécifiquement votre contrôle Leaflet */
.leaflet-control-reset.leaflet-control {
  position: absolute !important;
  top: auto !important;
  bottom: 64px !important;
  right: 20px !important;
  margin-right: 9px;
}

/* Pour que le "bottom: 30px" fonctionne correctement par rapport à la carte,
   il faut que son conteneur parent prenne toute la hauteur */
.leaflet-top.leaflet-right {
  bottom: 0 !important;
}

#map-overlay {
  z-index: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(39, 26, 13, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  border-radius: var(--radius);
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
  flex: 0 0 auto; /* ne se compresse pas quand la place manque */
}

#map-overlay b {
  color: var(--accent);
  font-weight: normal;
}

/* Overlay carte : [↺]  [icône] nombre  [icône] nombre  | dans la zone
   - AUCUN fond sur les compteurs : lisibilité par contour (halo sombre fin) autour de textes / icônes blancs,
     sur carte claire comme sombre ;
   - un seul conteneur flex centré verticalement : bouton ↺, icônes, nombres et libellé partagent le même axe. */
#overlay-text,
#map-info-top #overlay-text {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1.2;
  overflow: visible;             /* ne coupe pas les halos / l'anneau du bouton */
  padding: 2px 3px;
}

#overlay-text .ov-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

#overlay-text .ov-nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* compteur Photos / Vidéos = bouton : un clic filtre sur ce type, un second clic désélectionne */
#overlay-text .ov-n {
  pointer-events: auto;          /* #map-overlay est en pointer-events: none */
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  min-height: 24px;
  margin: 0;
  padding: 2px 8px 2px 6px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .65), 0 0 7px rgba(0, 0, 0, .4);
  transition: background .15s, border-color .15s, color .15s;
}

#overlay-text .ov-n:hover:not(:disabled):not(.is-on) {
  background: rgba(20, 14, 8, .26);
  border-color: rgba(255, 255, 255, .8);
}

#overlay-text .ov-n:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* état actif : pastille pleine ambre (anneau doré) ; texte et icône restent blancs, comme à l'état normal
   (blanc sur #9a6f12 ≈ 4,5:1) — pas de croix, le fond suffit à indiquer la sélection */
#overlay-text .ov-n.is-on {
  background: #9a6f12;
  border-color: var(--accent, #e8c97a);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

#overlay-text .ov-n svg {
  display: block;
  width: 1.3em;
  height: 1.3em;
  flex: none;
  color: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .95)) drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}

#overlay-text .ov-n b {
  position: relative;
  top: .04em;                    /* centrage optique des chiffres sur l'axe des icônes */
  margin: 0;
  color: inherit;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
}

#overlay-text .ov-n.is-zero:not(.is-on) {
  opacity: .55;
  cursor: default;
}

#overlay-text .ov-zone {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .6);
  box-shadow: -1px 0 0 rgba(0, 0, 0, .3);
  color: #fff;
  font-size: .9em;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .65), 0 0 7px rgba(0, 0, 0, .4);
}

/* bouton ↺ (réinitialiser la vue) : à gauche des compteurs, anneau blanc + voile sombre très discret */
#overlay-text .ov-slot {
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 0;
}

#overlay-text .ov-reset {
  pointer-events: auto;          /* #map-overlay est en pointer-events: none */
  box-sizing: border-box;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgba(20, 14, 8, .26);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .3);
  transition: background .15s, border-color .15s, color .15s;
}

#overlay-text .ov-reset svg {
  display: block;
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9));
}

#overlay-text .ov-reset:hover {
  background: rgba(20, 14, 8, .5);
  border-color: var(--accent, #e8c97a);
  color: var(--accent, #e8c97a);
}

#overlay-text .ov-reset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#map-overlay-row {
  white-space: nowrap;
}

#map-overlay,
#overlay-text {
  white-space: nowrap; /* une seule ligne, jamais de retour à la ligne */
}

/* bouton reset cluster */
#reset-btn {
  flex: 0 0 auto;
  display: none;
  padding: 5px 13px;
  background: rgba(232, 201, 122, 0.1);
  border: 1px solid rgba(232, 201, 122, 0.3);
  border-radius: 20px;
  color: #e8c97a;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

/* ══ PIN (photo unique, animée) ══════════════════════════ */
#grid-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#grid-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#grid-title {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

#grid-title b {
  color: var(--text);
  font-weight: normal;
}

#load-more-wrap {
  display: none;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  text-align: center;
}

#scroll-sentinel {
  height: 1px;
  flex-shrink: 0;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 3px;
  padding: 3px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
}

#grid img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

#grid .thumb {
  pointer-events: auto;
  cursor: pointer;
}

.thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface2);
  position: relative;
}

/* ══════════════════════════════════════════════════════════

   ÉTAT CHARGEMENT (commun aux deux vues)

══════════════════════════════════════════════════════════ */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s;
  opacity: 0;
}

.thumb:hover img {
  transform: scale(1.06);
}

.thumb-geo {
  display: none;
} /* remplacé par les badges .thumb-missing */

.magic-badge {
  background: rgba(0,0,0,.45);
  color: #e8c97a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ══ BASE LIGHTBOX ═══════════════════════════════════════════════════════ */
body.lb-open {
  overflow: hidden;
}

/* ══ LIGHTBOX : BARRE D'ICÔNES (haut droite, façon iCloud) ══ */
/* Décalage depuis le bord droit : à ajuster selon la largeur de ton bouton #lb-close */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  --lb-toolbar-right: 64px;
}

#lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox > [data-premium] {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox #lb-img {
  opacity: 1 !important;
  transition: none !important;
}

/* ══ META ════════════════════════════════════════════════════════════════ */
/* Ligne 1 : catégorie — ligne 2 : date, vues, badge */
.lb-meta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.lb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-cat {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color .15s;
  pointer-events: auto;
}

.lb-cat:hover {
  color: #e8c97a;
  text-decoration: underline;
  text-decoration-color: rgba(232,201,122,.4);
}

.lb-category {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}

.lb-date {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.lb-badge {
  flex-shrink: 0;
  white-space: nowrap;
  display: block;
}

.lb-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-hit {
  position: relative;
  display: inline-block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  cursor: help;
  pointer-events: auto;
}

.lb-hit::before {
  content: "" !important;
}

/* Tooltip (ouvre vers le bas à droite) */
.lb-hit[data-tooltip]:hover::after,
.lb-hit[data-tooltip].active::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background-color: #1e293b;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 9999;
  pointer-events: none;
}

.lb-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.lb-description {
  font-size: 1.13em;
  color: rgba(255,255,255,0.88);
  margin: 4px 0 8px;
  line-height: 1.64;
  width: 264px;
  max-width: 264px;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ══ ATTRIBUT HIDDEN ═════════════════════════════════════════════════════ */
[hidden] {
  display: none !important;
}

/* ══ BULLES ══════════════════════════════════════════════════════════════ */
#lb-bubbles {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 0 10px 8px;
  max-height: 220px;
  overflow: hidden;
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  pointer-events: auto;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

#lb-bubbles::-webkit-scrollbar {
  width: 6px;
}

#lb-bubbles::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.lb-bubble {
  pointer-events: auto;
  max-width: 100%;
  align-self: flex-end;
  text-align: left;
  padding: 8px 13px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
  animation: bubble-in .3s ease both;
}

.lb-bubble.lb-bubble--right {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: rgba(0,0,0,.55);
}

.lb-bubble:hover {
  background: rgba(0,0,0,.75);
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lb-bubble-author {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 2px;
}

.lb-bubble-text {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.45;
  word-break: break-word;
}

.lb-bubble-date {
  font-size: 12px;
  color: #e0c070;
  margin-left: 8px;
  display: inline;
  margin-bottom: 8px;
  font-style: italic;
}

/* ══ TRIGGER COMMENTAIRES ════════════════════════════════════════════════ */
#lb-comment-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#lb-comment-count-tag {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e8c97a;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  min-width: 22px;
  border-radius: 12px;
  line-height: 22px;
  text-align: center;
  padding: 0 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
  pointer-events: none;
}

#lb-comment-count-tag.visible {
  display: block;
  animation: popIn .3s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#lb-comment-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 40px;
  color: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .2s, background .2s;
  backdrop-filter: blur(8px);
}

#lb-comment-btn:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.11);
}

#lb-comment-icon {
  animation: icon-breathe 3.2s ease-in-out infinite;
}

@keyframes icon-breathe {
  0%,
  100% {
    opacity: .55;
    transform: scale(1);
  }
  50% {
    opacity: .85;
    transform: scale(1.07);
  }
}

#lb-comment-label {
  font-size: 11px;
}

/* ══ NAV ═════════════════════════════════════════════════════════════════ */
#lb-close,
.lb-nav-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

#lb-close {
  position: fixed;
  top: 14px;
  right: 16px;
  color: rgba(255,255,255,.6);
  font-size: 24px;
  cursor: pointer;
  background: rgba(0,0,0,.35);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: color .15s;
}

#lb-close:hover {
  color: #fff;
}

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -20px;
  z-index: 182;
}

#lb-prev {
  left: 12px;
}

#lb-next {
  right: 12px;
}

.lb-nav-btn {
  background: rgba(0,0,0,.35);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  padding: 0;
}

.lb-nav-btn:hover {
  background: rgba(0,0,0,.6);
  color: #fff;
}

/* ══ PREMIUM LOCK ════════════════════════════════════════════════════════ */
[data-premium] {
  transition: filter .5s var(--lc-ease, ease), opacity .5s var(--lc-ease, ease);
}

.lab-premium-locked {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.lab-premium-reveal {
  animation: lp-reveal .8s var(--lc-ease, ease) both;
}

@keyframes lp-reveal {
  from {
    filter: blur(4px);
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mode vidéo : désactive le verrou et ses clics */
#lightbox.is-video .lab-premium-lock {
  display: none !important;
  pointer-events: none !important;
}

#lb-video {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.lab-premium-lock {
  position: absolute;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0d0f1c;
  border: 1px solid var(--lc-border, rgba(255,255,255,.05));
  border-top: 1px solid rgba(201,168,76,.18);
  border-radius: var(--radius, 4px);
  box-shadow: 0 0 0 1px rgba(201,168,76,.06), 0 16px 48px rgba(0,0,0,.5);
  transition: opacity .4s, transform .4s var(--lc-ease, ease);
}

.lab-premium-lock.lp-removing {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
}

.lab-premium-lock::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lc-accent, #c9a84c), transparent);
  opacity: .5;
  border-radius: 2px 2px 0 0;
}

.lp-inner {
  padding: 32px 36px 28px;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lc-accent, #c9a84c);
  margin: 0 0 14px;
}

.lp-heading {
  margin: 0 0 10px;
  font-size: clamp(17px,3vw,22px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--lc-text, #ccc8bf);
  letter-spacing: -.01em;
}

.lp-sub {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gold-pale, #e8d5a0);
  max-width: 480px;
}

.lp-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0;
}

.lp-input {
  flex: 1 1 180px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.39);
  border-radius: var(--lc-radius, 4px);
  color: #efefef;
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.lp-input::placeholder {
  color: var(--lc-muted, #5e5a55);
}

.lp-input:focus {
  border-color: var(--lc-accent, #c9a84c);
  box-shadow: 0 0 0 3px var(--lc-accent-glow, rgba(201,168,76,.18));
}

input#lp-flostarica-bonus-email::placeholder {
  color: #ccc8bf;
}

.lp-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;
  background: var(--lc-accent, #c9a84c);
  border: none;
  border-radius: var(--lc-radius, 4px);
  color: var(--black, #111);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
}

.lp-btn:hover:not(:disabled) {
  background: #e0c070;
  box-shadow: 0 4px 18px rgba(201,168,76,.28);
  transform: translateY(-1px);
}

.lp-btn.lp-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 171, 224, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.lp-btn:active:not(:disabled) {
  transform: translateY(0);
}

.lp-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.lp-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lc-muted, #5e5a55);
  transition: color .2s;
}

.lp-msg--success {
  color: var(--lc-success, #7abf9e);
}

.lp-msg--error {
  color: var(--lc-error, #d4849e);
}

.lp-privacy {
  margin: 10px 0 0;
  line-height: 1.5;
  color: wheat;
  opacity: .69;
  font-size: .82em;
}

/* ══ DIVERS (fusion des déclarations dupliquées) ══════════════════════════ */
#loading {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-family: var(--font);
  font-size: 12px;
  margin-top: 64px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

#loading.hidden {
  display: none;
  margin-top: 64px;
}

#error-msg {
  display: none;
  padding: 24px;
  font-family: var(--font);
  font-size: 12px;
  color: #e24b4a;
  text-align: center;
}

.leaflet-tile {
  filter: brightness(0.80) contrast(1.15) saturate(1.39);
}

.marker-cluster {
  background: transparent !important;
}

.marker-cluster div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  /* ══ RESPONSIVE (fusion des media queries dupliquées) ═══════════════════════ */
  .lp-inner {
    padding: 24px 20px 20px;
  }

  .lp-form-row {
    flex-direction: column;
  }

  .lp-input,
  .lp-btn {
    width: 100%;
    flex: none;
  }
}

/* ── Liste des avantages ─────────────────────────────── */
.lp-benefits {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.lp-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--gold-pale, #e8d5a0);
}

.lp-benefit-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .18);
  border-radius: 50%;
}

.lp-benefit-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 520px) {
  .lp-benefits {
    margin-bottom: 18px;
    gap: 8px;
  }

  .lp-benefits li {
    font-size: 14px;
    gap: 10px;
  }

  .lp-benefit-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main {
    transition: none;
  }

  #lb-comment-icon {
    animation: none;
  }

  [data-premium],
  .lab-premium-lock,
  .lp-btn,
  .lp-input,
  .lab-premium-reveal,
  .lp-removing {
    transition: none;
    animation: none;
  }
}

#lb-bottom {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 15px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 16px 12px;
  box-sizing: border-box;
  z-index: 10;
  pointer-events: none;
}

#lb-meta {
  margin-top: 1.3%;
  position: fixed;
  top: 0;
  left: 2%;
  max-width: 90vw;
  white-space: nowrap;
  text-align: left;
  background: rgba(0, 0, 0, .45);
  border-radius: 3px;
  padding: 4px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  pointer-events: none;
  z-index: 171;
}

.lb-comments-wrapper {
  width: 100%;
  max-width: var(--img-w, 100%);
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  box-sizing: border-box;
}

.lb-simple-form {
  width: 100%;
  display: flex;
  gap: 0;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 8px;
}

.lb-simple-form input[type="text"],
.lb-simple-form textarea {
  background: rgba(255,255,255,.04);
  border: none;
  border-right: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  color: rgba(255,255,255,.8);
  font-size: 16px;
  padding: 8px 12px;
  font-family: inherit;
  outline: none;
  transition: background .15s;
}

.lb-simple-form input[type="text"] {
  width: 110px;
  flex-shrink: 0;
}

.lb-simple-form textarea {
  flex: 1 1 0;
  min-width: 0;
  resize: none;
  height: 34px;
  line-height: 1.4;
}

.lb-simple-form input[type="text"]:focus,
.lb-simple-form textarea:focus {
  background: rgba(255,255,255,.07);
}

.lb-simple-form input[type="text"]::placeholder,
.lb-simple-form textarea::placeholder {
  color: rgba(255,255,255,.64);
}

.lb-simple-form button {
  flex-shrink: 0;
  font-size: 16px;
  padding: 8px 16px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
  height: 34px;
  align-self: center;
}

.lb-simple-form button:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.lb-premium-notice {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  padding: 6px 0 10px;
  flex-shrink: 0;
}

.lb-comments-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.lb-comment {
  padding: 8px 0;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.lb-comment:last-child {
  border-bottom: none;
}

.lb-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: inline;
  margin-bottom: 4px;
}

.lb-comment-date {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-left: 8px;
  display: inline;
  margin-bottom: 8px;
}

.lb-comment-text {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin-top: 3px;
}

#lb-comments-section {
  width: 100%;
  max-width: 680px;
  margin-top: 20px;
  padding: 0 16px 30px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Corrections critiques ── */
#lb-comments-layer {
  position: absolute;
  bottom: 64px;
  right: 3%;
  width: 82%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 20;
}

#lb-comment-trigger,
#lb-bubbles .lb-bubble {
  pointer-events: auto;
}

/* #lb-inner : fusion des deux déclarations d'origine (flex/min-height ajoutés par la 2e,

   height/flex-direction conservés de la 1re car non réécrits par la 2e) */
#lb-inner {
  height: 100dvh;
  flex-direction: column;
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

@media (min-width: 969px) {
  /* css public */
  /* [data-premium] plein écran (sélecteur distinct de "#lightbox > [data-premium]" plus haut) */
  .lb-comments-wrapper {
    max-width: var(--img-w, 64%) !important;
  }
}

@media (max-width: 968px) {
  .lab-premium-lock {
    width: 90%;
    max-width: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
  }

  .lb-comments-wrapper {
    max-width: 92% !important;
  }
}

/* pills mois */
.fb-month {
  height: 28px;
  letter-spacing: 0.05em;
}

.fb-month:disabled,
.fb-month[style*="pointer-events: none"] {
  opacity: 0.92;
  cursor: default;
}

/* ── Barre info carte ───────────────────────────────────── */
#map-info-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  min-height: 38px;
}

#reset-btn:hover {
  background: rgba(232, 201, 122, 0.2);
  border-color: rgba(232, 201, 122, 0.6);
}

.thumb.map-highlight {
  box-shadow: inset 0 0 0 3px #e8c97a;
  transition: box-shadow 0.2s ease;
}

/* ── Loader bas de page ──────────────────────────────────── */
#_bottom_loader {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px 0 16px;
  font-family: var(--font);
  font-size: 11px;
  color: #777;
  letter-spacing: 0.08em;
}

/* ── Message fin de galerie ──────────────────────────────── */
#_end_msg {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px 28px;
  font-family: var(--font);
  color: #666;
  letter-spacing: 0.05em;
  text-align: center;
}

#_end_msg span {
  font-size: 12px;
  color: #999;
}

#_end_refresh {
  margin-top: 4px;
  padding: 8px 20px;
  background: rgba(232, 201, 122, 0.1);
  border: 1px solid rgba(232, 201, 122, 0.3);
  border-radius: 20px;
  color: #e8c97a;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#_end_refresh:hover {
  background: rgba(232, 201, 122, 0.22);
  border-color: rgba(232, 201, 122, 0.6);
}

/* ── Spinner chargement bas de page ────────────────────── */
.bl-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(232, 201, 122, 0.85);
  border-radius: 50%;
  animation: _blspin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes _blspin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Barre filtres année/mois ───────────────────────────── */
#filter-bar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px;
  height: 42px;
  user-select: none;
  -webkit-user-select: none;
}

#filter-bar::-webkit-scrollbar {
  display: none;
}

/* ── Sélecteur d'année ── */
.fb-year-wrap {
  align-items: center;
  flex-shrink: 0;
}

.fb-year-select {
  -moz-appearance: none;
  background: rgba(255,255,255,0.06);
  height: 28px;
  white-space: nowrap;
}

.fb-year-select option {
  background: #1a1a1a;
  background-color: #2a2a2a;
  color: #fff;
}

.fb-year-select:hover {
  background: rgba(255,255,255,0.09);
}

.fb-year-arrow {
  transition: color 0.15s ease;
}

/* Quand une année est sélectionnée : croix cliquable pour reset */
.fb-year-arrow.fb-year-clear {
  pointer-events: auto;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.fb-year-arrow.fb-year-clear:hover {
  color: #ff5c57;
}

/* ── Boutons mois ── */
.fb-month {
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  padding: 5px 12px;
  margin-right: 4px;
  font-size: 13px;
  font-family: inherit;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fb-month:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.fb-month.active {
  background: #fff;
  border-color: #fff;
  color: #0e0e0e;
  font-weight: 500;
}

/* rangée du haut : cluster-hint + reset-btn */
#map-info-top {
  width: 100%;
  color: #888;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
}

span#overlay-text {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

/* ── Navigation catégories (breadcrumb swipeable) ───────── */
#cat-nav {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: rgba(10,10,10,0.6);
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px;
  height: 36px;
  user-select: none;
  -webkit-user-select: none;
}

#cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-right: 8px;
}

.cat-breadcrumb-item {
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.cat-breadcrumb-item:hover {
  color: #fff;
}

.cat-breadcrumb-sep {
  color: #777;
  font-size: 12px;
  padding: 0 2px;
  flex-shrink: 0;
}

.cat-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin: 0 8px;
}

.cat-pill {
  flex-shrink: 0;
  padding: 3px 11px;
  height: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  color: #eaeaea;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  margin-right: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cat-flag {
  font-size: 12px;
}

.cat-pill:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.cat-pill.active {
  background: rgba(232,201,122,0.2);
  border-color: rgba(232,201,122,0.6);
  color: #f2db9a;
}

.cat-pill-count {
  color: #ccc;
  font-size: 9px;
  background: rgba(255,255,255,0.15);
  padding: 1px 5px;
  border-radius: 10px;
}

.cat-pill.active .cat-pill-count {
  color: #fff;
  background: rgba(232,201,122,0.3);
}

/* ── Sticky shell ── */
#sticky-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg, #111);
  border-bottom: 1px solid rgba(255,255,255,.07);
  z-index: 200;
}

#sticky-shell.filters-open #filters-panel {
  z-index: -1;
  grid-template-rows: 1fr;
}

#sticky-shell.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#sticky-placeholder {
  display: none;
}

#sticky-shell.fixed ~ #sticky-placeholder {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   CARTE-MOIS (album) — insérée dans #grid avant le média le plus récent du mois
   Bande fine sur toute la largeur de la grille (grid-column: 1 / -1), sans média, non cliquable.
   Une couleur par mois (via data-month="AAAA-M", M = 0..11).
   Tailles fixes (px) : la bande ne dépend plus du zoom des colonnes.
══════════════════════════════════════════════════════════ */
.month-card {
  --h: 220;
  --mc: hsl(var(--h) 78% 62%);
  position: relative;
  grid-column: 1 / -1; /* occupe toute la ligne : les albums/photos du mois repartent à la ligne suivante */
  height: 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 75%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 44%, transparent) 0%, color-mix(in srgb, var(--mc) 18%, transparent) 36%, transparent 78%);
  box-shadow: inset 3px 0 0 var(--mc); /* repère de couleur franc à gauche */
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  animation: month-band-in .3s var(--ease, cubic-bezier(.22, 1, .36, 1)) both;
}

/* Une teinte par mois (data-month="AAAA-M", M = 0..11), pas de 30–50° d'un mois au suivant :
   l'ordre des mois se lit d'un coup d'œil, et décembre → janvier reste voisin. */
.month-card[data-month$="-0"] {
  --h: 218;
} /* janvier   : bleu glacier */

.month-card[data-month$="-1"] {
  --h: 192;
} /* février   : cyan */

.month-card[data-month$="-2"] {
  --h: 165;
} /* mars      : menthe */

.month-card[data-month$="-3"] {
  --h: 135;
} /* avril     : vert tendre */

.month-card[data-month$="-4"] {
  --h: 100;
} /* mai       : vert prairie / citron vert */

.month-card[data-month$="-5"] {
  --h: 52;
} /* juin      : jaune soleil */

.month-card[data-month$="-6"] {
  --h: 34;
} /* juillet   : ambre */

.month-card[data-month$="-7"] {
  --h: 18;
} /* août      : orange */

.month-card[data-month$="-8"] {
  --h: 2;
} /* septembre : rouge */

.month-card[data-month$="-9"] {
  --h: 335;
} /* octobre   : framboise */

.month-card[data-month$="-10"] {
  --h: 295;
} /* novembre  : prune */

.month-card[data-month$="-11"] {
  --h: 262;
} /* décembre  : violet nuit */

/* filet fin en bas, même dégradé : prolonge la couleur sans « boîte » */
.month-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mc), transparent 70%);
  opacity: .7;
  pointer-events: none;
}

.month-card-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px 0 16px;
  min-width: 0;
}

.month-card-month {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: capitalize;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  white-space: nowrap; /* toujours sur une seule ligne */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-card-year {
  flex: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  background: color-mix(in srgb, var(--mc) 34%, transparent);
  border: 1px solid rgba(255, 255, 255, .28);
  border-color: color-mix(in srgb, var(--mc) 70%, transparent);
}

.month-card-rule {
  display: none;
} /* plus de filet : les drapeaux ont leurs pastilles */

.month-card-flags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-left: 6px;
  font-size: 22px; /* taille de référence des drapeaux (la pastille = 1.5em du drapeau) */
  line-height: 1;
  pointer-events: auto; /* la rangée porte l'infobulle « Pays visités » */
}

.month-card-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14); /* pastille translucide : pas de disque blanc sur fond sombre */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: .78em;
  line-height: 1;
  transition: background .12s, transform .12s;
}

.month-card-flag:hover {
  background: rgba(255, 255, 255, .26);
  transform: translateY(-1px);
}

.month-card-more {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  opacity: .85;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

@keyframes month-card-pop {
  /* conservée : utilisée par .country-card */
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes month-band-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .month-card {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════
   CARTE-PAYS — insérée dans #grid à chaque changement de pays
   Couleur = couleur dominante du drapeau officiel (--cc posée par le JS).
   data-tone="light" (jaune, bleu ciel…) → texte sombre.
══════════════════════════════════════════════════════════ */
.country-card {
  --cc: #3a3f4b;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  container-type: inline-size;
  background: var(--cc); /* repli sans color-mix */
  background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 86%, #fff), color-mix(in srgb, var(--cc) 74%, #000));
  color: #fff;
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  animation: month-card-pop .45s var(--ease, cubic-bezier(.22, 1, .36, 1)) both;
}

.country-card[data-tone="light"] {
  color: #1d1d1f;
}

.country-card::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.country-card::after {
  content: '';
  position: absolute;
  inset: 4.5%;
  border: 1.5px solid currentColor;
  opacity: .28;
  border-radius: 2px;
  pointer-events: none;
}

.country-card-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
  padding: 9cqw;
  text-align: center;
}

.country-card-flag {
  font-size: 36px; /* repli sans container queries */
  font-size: 34cqw;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .28));
}

.country-card-name {
  font-family: var(--font);
  font-size: 13px;
  font-size: 11.5cqw;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.country-card[data-tone="light"] .country-card-name {
  text-shadow: none;
}

@container (max-width: 90px) {
  .country-card-inner {
    padding: 4cqw;
  }

  .country-card-name {
    font-size: 13cqw;
    -webkit-line-clamp: 2;
  }

  .country-card-count {
    display: none;
  }
}

/* Compteur de villes + infobulle (survol desktop / tap tactile) */
.country-card.has-cities {
  pointer-events: auto;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'><path d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z' fill='%23e8c97a' stroke='%23111' stroke-width='1.6' stroke-linejoin='round'/><circle cx='12' cy='10' r='2.6' fill='%23111'/></svg>") 14 26, pointer;
}

.country-card-count {
  margin-top: 1cqw;
  padding: 1.6cqw 4cqw;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  font-family: var(--font);
  font-size: 9px;
  font-size: 7.5cqw;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.country-card[data-tone="light"] .country-card-count {
  background: rgba(0, 0, 0, .12);
  color: #1d1d1f;
}

.city-tip {
  position: fixed;
  z-index: 9990;
  min-width: 150px;
  max-width: min(280px, calc(100vw - 16px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24, 24, 28, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
  color: #fff;
  font-family: var(--font);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transition: opacity .15s ease, transform .15s ease;
  visibility: hidden;
}

.city-tip.show {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

/* pont invisible entre la carte et l'infobulle : le pointeur ne « tombe » pas dans le vide */
.city-tip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
}

.city-tip[data-side="top"]::before {
  top: 100%;
}

.city-tip[data-side="bottom"]::before {
  bottom: 100%;
}

.city-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-tip-flag {
  font-size: 20px;
  line-height: 1;
}

.city-tip-title {
  font-size: 14px;
  font-weight: 700;
}

.city-tip-sub {
  margin: 4px 0 8px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.city-tip-list {
  list-style: none;
  max-height: min(260px, 45vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-tip-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
}

.city-tip-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-tip-list li b {
  flex: none;
  font-size: 11px;
  color: var(--accent);
}

/* bouton « Afficher plus » de l'infobulle des villes */
.city-tip-list li.city-tip-more {
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  padding: 0;
  background: none;
}

.city-tip-item {
  cursor: pointer;
}

.city-tip-item:hover span {
  text-decoration: underline;
}

.city-tip-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.month-card-flag[role="link"] {
  cursor: pointer;
}

.month-card-flags.has-countries,
.month-card-flag {
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════

   VUE GRILLE

══════════════════════════════════════════════════════════ */
#grid.view-grid {
  gap: 3px;
}

#grid.view-grid .thumb {
  background: #111;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 !important;
}

#grid.view-grid .thumb img {
  display: block;
  transition: opacity .25s;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ══════════════════════════════════════════════════════════

   VUE MAÇONNERIE

══════════════════════════════════════════════════════════ */
#grid.view-masonry {
  position: relative;
  display: block;
  min-height: 450px;
}

#grid.view-masonry .thumb {
  position: absolute;
  transition: none;
  overflow: hidden;
  background: #111;
}

#grid.view-masonry .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  transition: opacity .25s;
}

.thumb img.loaded {
  opacity: 1;
}

/* ── Icône vidéo sur le thumb (style Instagram) ── */
.thumb-video-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.thumb-video-icon svg {
  display: block;
  transform: translateX(1px);
}

/* Vidéo dans la lightbox : même comportement que l'image */
/* Vidéo dans la lightbox : remplit l'écran, le côté le plus long à 100 % */
#lightbox #lb-video {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain; /* garde le ratio, pas de déformation */
  border-radius: 0; /* le radius s'appliquerait au cadre plein écran, pas à l'image */
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════

   BOUTON TOGGLE GRILLE / MAÇONNERIE

══════════════════════════════════════════════════════════ */
.fb-view-toggle {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0 12px;
  height: 100%;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .65;
  transition: opacity .2s, background .2s;
}

.fb-view-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .05);
}

.fb-view-toggle svg {
  pointer-events: none;
}

@keyframes pinch-hint-fade {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(.85);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.pinch-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 9999;
  animation: pinch-hint-fade 1.8s ease forwards;
}

/* ══ VIEW TOGGLE ═════════════════════════════════════════ */
/* ── Liste déroulante années ── */
.fb-year-wrap {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.fb-year-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 3px 20px 3px 13px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fb-year-select:hover {
  border-color: #888;
}

.fb-year-select:focus {
  border-color: #e8c97a;
  box-shadow: 0 0 0 2px rgba(232, 201, 122, 0.2);
}

.fb-year-select option:disabled {
  color: #777;
  font-style: italic;
}

.fb-year-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 12px;
}

.thumb-comments {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 5px 2px 4px;
  border-radius: 3px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.thumb-comments svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  fill: #fff;
  opacity: 0.85;
}

#stat-geo-missing[data-count="0"] {
  display: none;
}

#share-panel {
  position: fixed;
  top: 126px;
  left: 0;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#share-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  white-space: nowrap;
  z-index: 1;
}

#share-toggle:hover {
  background: rgba(0,0,0,.9);
}

#share-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,.7);
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  max-width: 0;
  transition: max-width .3s ease, padding .3s ease;
  padding: 0;
}

#share-icons.share-open {
  max-width: 290px;
  padding: 4px 6px;
  border-radius: 13px;
  margin-left: 2.6px;
}

#share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 36px;
  color: #fff;
  opacity: .75;
  text-decoration: none;
  border-radius: 4px;
  flex-shrink: 0;
}

#share-icons a:hover {
  opacity: 1;
  background: rgba(255,255,255,.1);
}

.fb-share {
  position: relative;
  margin-bottom: 8px !important;
}

.fb-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}

.fb-share-btn:hover,
.fb-share.open .fb-share-btn {
  background: rgba(40,40,40,.65);
}

.fb-share.open .fb-share-btn {
  border-color: rgba(232,201,122,.7);
}

.fb-share-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 6px;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(20,20,20,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.fb-share.open .fb-share-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fb-share-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  color: #fff;
  opacity: .8;
  border-radius: 8px;
  text-decoration: none;
}

.fb-share-menu a:hover {
  opacity: 1;
  background: rgba(232,201,122,.16);
}

.map-header {
  position: absolute;
  z-index: 900;
  display: flex;
  align-items: center;
}

.map-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}

.map-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  color: white;
}

.logo-flostarica {
  height: 39px;
  width: auto;
  flex-shrink: 0;
  position: absolute;
  left: 9px;
}

.album-title {
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  margin-left: 33px;
}

.map-logo:hover .album-title {
  color: white !important;
}

.bio-wrap {
  position: relative;
}

.bio-wrap:hover {
  cursor: pointer;
}

.bio-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #111;
}

.bio-sub {
  font-size: 12px;
  color: black;
  margin: 0 0 10px;
}

.bio-text {
  font-size: 13px;
  color: #0a0a0a;
  line-height: 1.6;
  margin: 0 0 14px;
}

.bio-socials {
  display: flex;
  gap: 10px;
}

.bio-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  color: white;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.bio-socials a:hover {
  color: white;
  border-color: rgba(0,0,0,.3);
}

.bio-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ══ ANIMATIONS PIN ═══════════════════════════════════════ */
/* ══ CLUSTER SCATTER (pile de photos) ═══════════════════ */
/* ══ CLUSTER ICON (bulle + badge count) ══════════════════ */
.pin-outer {
  position: relative;
  width: var(--pin-w);
  height: var(--pin-h);
}

.pin-drop {
  width: 100%;
  height: 100%;
  animation: pinDrop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.pin-hop {
  position: relative;
  width: 100%;
  height: 100%;
  animation: pinHop 1.8s ease-in-out .6s infinite;
}

.pin-outer:hover .pin-hop {
  animation-play-state: paused;
}

.pin-photo-fill {
  position: absolute !important;
  top: 0;
  left: 0;
  width: var(--pin-w);
  height: var(--pin-h);
  object-fit: cover;
  display: block;
  background: #333;
  z-index: 2999 !important;
}

.pin-outline {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3000;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55));
}

[data-premium] {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; /* ← ancre les absolus */
}

#lb-img {
  max-width: 100vw;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 1;
  opacity: 1 !important;
  transition: none !important;
  transform-origin: center center;
  will-change: transform;
}

#lb-bottom > * {
  pointer-events: auto;
}

#lb-bottom::before {
  content: '';
  top: -21px;
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  pointer-events: none;
  z-index: -1;
}

html body #lightbox #lb-inner #lb-img {
  opacity: 1 !important;
  transition: none !important;
  visibility: visible !important;
}

.stat-clickable {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.stat-clickable:hover {
  opacity: 0.75;
}

.stat-clickable.active {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.lp-btn--ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8d4e8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lp-btn--ghost::before {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='M11 11l7-7M15 4l3 3M18 8l3-3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='M11 11l7-7M15 4l3 3M18 8l3-3'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.7;
}

.lp-btn--ghost:hover {
  background: rgba(184, 171, 224, 0.1);
  border-color: rgba(184, 171, 224, 0.35);
}

.lp-btn--ghost:active {
  transform: translateY(1px);
  background: rgba(184, 171, 224, 0.06);
}

.lp-btn--ghost:focus-visible {
  outline: 2px solid #b8abe0;
  outline-offset: 2px;
}

.lp-btn--ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#lightbox #lb-inner #lb-img {
  min-height: 100%;
}

@keyframes pinDrop {
  0% {
    transform: translateY(-300px);
    opacity: 0;
  }
  60% {
    transform: translateY(15px);
    opacity: 1;
  }
  80% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pinHop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.cluster-scatter {
  position: relative;
  width: var(--scatter-size);
  height: var(--scatter-size);
}

.cluster-scatter-photo {
  position: absolute;
  top: var(--pos-top);
  left: var(--pos-left);
  width: var(--pos-size);
  height: var(--pos-size);
  border-radius: 9%;
  background-image: var(--pos-bg);
  background-size: cover;
  background-position: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  z-index: var(--pos-z);
}

.cluster-icon {
  position: relative;
  width: var(--icon-size);
  height: var(--icon-size);
}

.cluster-icon-circle {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 9%;
  background: var(--icon-color, transparent);
  background-image: var(--icon-bg, none);
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.cluster-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: var(--badge-size);
  height: var(--badge-size);
  border-radius: calc(var(--badge-size) / 2);
  background: var(--badge-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--badge-font);
  padding: 0 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  border: 1.5px solid rgba(255, 255, 255, .85);
}

/* ══ Carte : album ouvert → photos de l'album accentuées, autres atténuées + périmètre ══
   (classes posées par public.js : photoIcon / iconCreateFunction / drawAlbumZone) */
.fb-pm {
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* icône lecture des vidéos (même rendu que .thumb-play-center de la grille) : en haut à droite */
.fb-pm { position: relative; }

.fb-pm-play {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: .92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
  pointer-events: none;
}

.fb-pm--album {
  border: 3px solid var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 201, 122, .28), 0 3px 10px rgba(0, 0, 0, .55) !important;
}

.fb-pm--dim {
  opacity: .5;
  filter: grayscale(.75) brightness(.85);
  transform: scale(.72);
  border-color: rgba(255, 255, 255, .3) !important;
  box-shadow: none !important;
}

/* au survol, une photo hors album se « réveille » pour rester lisible / cliquable */
.leaflet-marker-icon:hover .fb-pm--dim {
  opacity: .95;
  filter: none;
  transform: scale(.9);
}

/* clusters : ≥ 1 photo de l'album = halo doré ; sans photo de l'album = atténué */
.fb-cl--dim {
  opacity: .5;
  filter: grayscale(.75) brightness(.85);
}

.fb-cl--album {
  filter: drop-shadow(0 0 5px rgba(232, 201, 122, .85));
}

/* ══ Marqueurs d'albums ══
   vignette de couverture + étiquette de comptage sur le bord bas.
   Album seul : anneau jaune, étiquette blanche. Groupe : anneau blanc + pile de cartes, étiquette jaune.
   Contrastes : #141414 sur blanc ≈ 17:1, #1a1405 sur --accent ≈ 11:1 (WCAG AA/AAA). */
.fb-alb-mk {
  --ring: var(--accent);
  position: relative;
  width: var(--s);
  height: var(--s);
  font-family: var(--font);
  transition: transform .18s var(--ease), opacity .25s var(--ease), filter .25s var(--ease);
}

.fb-alb-grp {
  --ring: #fff;
}

.fb-alb-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 9%;
  background: #2a2a2a center / cover no-repeat;
  border: 2.5px solid var(--ring);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .45);
}

/* pile de cartes derrière la vignette : signale « plusieurs albums » par la forme, pas seulement par la couleur */
.fb-alb-layer {
  position: absolute;
  inset: 0;
  border-radius: 9%;
  background: #f4f1ea;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .35);
}

.fb-alb-layer--1 { z-index: 1; transform: translate(5px, -4px) rotate(5deg); }
.fb-alb-layer--2 { z-index: 0; transform: translate(10px, -8px) rotate(10deg); opacity: .7; }

/* étiquette de comptage */
.fb-alb-pill {
  position: absolute;
  left: 50%;
  bottom: -11px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: #fff;
  color: #141414;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .4);
}

.fb-alb-grp .fb-alb-pill {
  background: var(--accent);
  color: #1a1405;
}

.fb-alb-pill svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.fb-alb-pill .alb-ico {
  display: inline-flex;
  flex: none;
}

/* survol / focus clavier : la vignette se soulève ; focus = double anneau blanc + sombre visible sur toute carte */
.leaflet-marker-icon:hover .fb-alb-mk,
.leaflet-marker-icon:focus-visible .fb-alb-mk {
  transform: translateY(-2px) scale(1.05);
}

.leaflet-marker-icon:has(.fb-alb-mk):focus {
  outline: none;
}

.leaflet-marker-icon:focus-visible .fb-alb-cover {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #141414, 0 3px 10px rgba(0, 0, 0, .45);
}

/* album ouvert : les autres albums s'effacent mais redeviennent nets au survol / focus */
.fb-alb-mk.fb-cl--dim {
  opacity: .6;
  filter: grayscale(.6);
}

.leaflet-marker-icon:hover .fb-alb-mk.fb-cl--dim,
.leaflet-marker-icon:focus-visible .fb-alb-mk.fb-cl--dim {
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .fb-alb-mk { transition: none; }
  .leaflet-marker-icon:hover .fb-alb-mk,
  .leaflet-marker-icon:focus-visible .fb-alb-mk { transform: none; }
}

/* infobulle des marqueurs / clusters d'albums : nom (ou nombre d'albums) + photos / vidéos */
.fb-alb-tip { font-family: var(--font); font-size: 13px; line-height: 1.35; }
.fb-alb-tip-t { font-weight: 700; margin-bottom: 2px; }
.fb-alb-tip-r { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.fb-alb-tip-n { display: inline-flex; align-items: center; gap: 5px; }
.fb-alb-tip-n svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.fb-alb-tip-n b { font-variant-numeric: tabular-nums; }

/* périmètre de l'album (SVG dans le pane « fbAlbumZone », sous les marqueurs, jamais interactif) */
.leaflet-fbAlbumZone-pane {
  pointer-events: none;
}

.fb-album-zone {
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(232, 201, 122, .5));
  animation: fbZoneIn .6s var(--ease) both;
}

@keyframes fbZoneIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fb-pm { transition: none; }
  .fb-album-zone { animation: none; }
}

@media (max-width: 768px) {
  /* ══ Carte : hauteur réduite sur petits écrans + poignée de redimensionnement ══
   Les valeurs par défaut ci-dessous doivent rester synchronisées avec mapDefaultH() dans public.js */
  #main {
    --map-h: 260px;
  }

  /* Responsive */
  /* Centre la catégorie */
  .lb-cat {
    text-align: center;
  }

  /* Centre la ligne Date / Vues / Badges */
  .lb-right {
    justify-content: center;
  }

  /* Optionnel : centre la tooltip par rapport au texte des vues sur mobile */
  .lb-hit[data-tooltip]:hover::after,
  .lb-hit[data-tooltip].active::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #lb-close {
    position: fixed;
    top: 18px;
    right: 18px;
    color: rgba(255,255,255,.6);
    font-size: 24px;
    cursor: pointer;
    background: rgba(0,0,0,.35);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
  }

  #share-label {
    display: none;
  }

  #share-toggle {
    zoom: 1.3;
  }

  #lb-prev,
  #lb-next {
    display: none;
  }

  #lb-comments-layer {
    bottom: 64px;
  }

  .map-logo {
    padding: 10px 16px;
    gap: 10px;
    border-radius: 16px;
  }

  .logo-flostarica {
    height: 30px;
  }

  .album-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #main {
    --map-h: 220px;
  }

  .map-logo {
    padding: 8px 12px;
    gap: 8px;
  }
}

/* Assure le positionnement du conteneur parent */
.thumb-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Icône lecture façon Instagram : petit triangle blanc arrondi, en haut à droite, sans fond */
/* durée totale de la vidéo, à gauche de l'icône play */
.thumb-play-center {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
  z-index: 2;
  pointer-events: none;
  width: auto;
  gap: 5px;
}

.thumb-play-center svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.thumb-video-duration {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

@media (max-width: 600px) {
  .thumb-play-center {
    top: 5px;
    right: 5px;
    height: 16px;
  }

  .thumb-play-center svg {
    width: 16px;
    height: 16px;
  }

  .thumb-video-duration {
    font-size: 10px;
  }
}

/* Gradient bas pour la lisibilité du texte sans bande rigide */
.thumb-video-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Titre sur 1 ou 2 lignes proprement */
.thumb-video-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Tronque à 2 lignes si trop long */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ══ BOX « SE CONNECTER » : centrée, sur un overlay noir léger ══
   #lb-login-gate devient un calque plein écran qui centre son contenu.
   Les !important servent à écraser l'ancien positionnement (à droite de l'image). */
#lb-login-gate > *,
.lab-auth-overlay > .lab-premium-lock {
  pointer-events: auto !important;
  margin: auto;
  width: 100%;
  max-width: 500px;
}

/* Modale login ouverte : on bloque le scroll de la page derrière.
   html ET body (iOS/Safari ignore souvent overflow:hidden sur body seul). */
html:has(body.lab-auth-open) {
  overflow: hidden;
} /* le body est déjà géré plus bas */

.lab-auth-overlay {
  overscroll-behavior: contain;
} /* pas de scroll-chaining vers la page */

.lab-auth-close {
  position: fixed;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lab-auth-close:hover {
  background: rgba(255,255,255,.12);
}

body.lab-auth-open {
  overflow: hidden;
}

@media (max-width: 968px) {
  #map-overlay {
    font-size: 9px;
  }

  .album-logo {
    display: none;
  }
}

#grid-zoom-ctrl {
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mm-lang {
  padding: 12px 20px;
  border-top: 1px solid rgba(128,128,128,.25);
}

.mm-lang .lang-selector {
  position: relative;
}

.mm-lang .lang-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(128,128,128,.3);
  cursor: pointer;
  user-select: none;
}

.mm-lang .mm-lang-current {
  flex: 1;
  text-align: left;
}

.mm-lang .lang-chevron {
  transition: transform .2s;
}

.mm-lang .lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown : s'ouvre vers le haut, pleine largeur */
.mm-lang .lang-dropdown {
  display: none;
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  padding: 6px;
  border-radius: 12px;
  background: #fff; /* → ta couleur de fond de panneau */
  color: #111; /* → ta couleur de texte */
  border: 1px solid rgba(128,128,128,.3);
  box-shadow: 0 -8px 24px rgba(0,0,0,.15);
  z-index: 5;
}

.mm-lang .lang-selector.open .lang-dropdown {
  display: block;
}

.mm-lang .lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px; /* cible tactile ≥ 44px */
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.mm-lang .lang-dropdown a.current .lang-code {
  color: wheat;
  font-weight: 900;
}

.mm-lang .lang-code {
  min-width: 28px;
  opacity: .6;
  font-size: .85em;
}

.lb-toolbar {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: var(--lb-toolbar-right);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
}

/* Pied du panneau burger : langue + "Se connecter" côte à côte, centrés */
.mm-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
  background: var(--gold, #c9a227);
  color: black;
}

.mm-login-btn:hover {
  opacity: .77;
}

.lb-tb-slot {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lb-tb-slot:empty {
  display: none;
}

/* Boutons ronds */
.lb-tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: #fff;
  opacity: .9;
  transition: background .15s, opacity .15s, color .15s;
}

.lb-tb-btn:hover,
.lb-tb-btn[aria-expanded="true"] {
  background: rgba(255,255,255,.14);
  opacity: 1;
}

/* Vues : œil + nombre (tooltip au survol, au tap sur mobile) */
.lb-views {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 9px;
  border: 0;
  border-radius: 999px;
  cursor: default;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.lb-views:hover,
.lb-views.show {
  background: rgba(255,255,255,.1);
}

.lb-views svg {
  opacity: .9;
  flex: none;
}

.lb-views-tip {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
}

.lb-views:hover .lb-views-tip,
.lb-views.show .lb-views-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Séparateur fin entre vues et partage */
#lb-tb-views:not(:empty) + .lb-tb-share {
  margin-left: 2px;
  padding-left: 4px;
  border-left: 1px solid rgba(255,255,255,.14);
}

/* Menu de partage (sous le bouton, aligné à droite) */
.lb-tb-share {
  position: relative;
  display: flex;
}

.lb-tb-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.lb-tb-menu[hidden] {
  display: none;
}

.lb-tb-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  color: #fff;
  opacity: .85;
  border-radius: 9px;
  text-decoration: none;
}

.lb-tb-menu a:hover {
  opacity: 1;
  background: rgba(232,201,122,.16);
}

@media (max-width: 600px) {
  #lightbox {
    --lb-toolbar-right: 56px;
  }

  .lb-toolbar {
    height: 38px;
  }

  .lb-tb-btn,
  .lb-views {
    height: 32px;
  }

  .lb-tb-btn {
    width: 32px;
  }
}

/* Ancien affichage « N vues » dans #lb-meta : à supprimer de ton CSS (.lb-hit, .lb-hit::after, .lb-hit.active…) */
.lb-views-tip {
  width: 260px;
  line-height: 1.4;
  max-width: 300px;
  white-space: normal !important;
  overflow-wrap: break-word;
}

.mm-link-static {
  cursor: default;
  pointer-events: none;
}

.mm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(128,128,128,.25);
  font-weight: 600;
}

.mm-total[hidden] {
  display: none;
}

.mm-stats {
  display: flex;
  gap: 10px;
  margin: 6px 0 14px;
}

.mm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(128,128,128,.10);
  border: 1px solid rgba(128,128,128,.22);
  color: inherit;
  font: inherit;
  text-align: center;
}

.mm-stat:hover {
  background: rgba(128,128,128,.18);
}

.mm-stat-count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.mm-stat-label {
  font-size: 11.5px;
  opacity: .7;
  letter-spacing: .2px;
}

/* vignette vidéo */
.mm-thumb-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.mm-thumb-wrap.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.28);
  border-radius: inherit;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

#lb-login-gate,
.lab-auth-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 9999 !important; /* Maximum autorisé sans dépasser 999 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .55);
}

#lb-login-gate[hidden],
.lab-auth-overlay[hidden] {
  display: none !important;
} /* La popin de connexion reste visible en mode vidéo (la règle .is-video ne vise que le verrou premium sur l'image) */

#lightbox.is-video #lb-login-gate .lab-premium-lock,
#lightbox.is-video #lb-login-gate>* {
  display: block !important;
  pointer-events: auto !important;
}

/* ══ PLAYER VIDÉO ══ */
#lb-video-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

#lb-video-wrap #lb-video {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

#lb-video-wrap:not(.has-video) > :not(video) {
  display: none !important;
}

#lb-video-wrap.idle {
  cursor: none;
}

#lb-video-wrap.menu-open {
  cursor: default;
}

/* plein écran : le wrapper garde la barre */
#lb-video-wrap:fullscreen,
#lb-video-wrap:-webkit-full-screen {
  background: #000;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-video-wrap:fullscreen #lb-video,
#lb-video-wrap:-webkit-full-screen #lb-video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* barre de contrôle */
.fbp-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 30px 12px 8px;
  color: #fff;
  font: 500 13px/1 system-ui,-apple-system,sans-serif;
  background: linear-gradient(transparent,rgba(0,0,0,.78));
  transition: opacity .25s,transform .25s;
}

#lb-video-wrap.menu-open .fbp-ui {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.fbp-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fbp-time {
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: .9;
}

.fbp-btn {
  background: none;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}

.fbp-btn:hover {
  background: rgba(255,255,255,.16);
}

.fbp-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fbp-speed {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  border-radius: 18px;
  font: 600 12px/1 system-ui,sans-serif;
}

/* progression */
.fbp-seek {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.fbp-track {
  position: relative;
  width: 100%;
  height: 6.4px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  transition: height .12s;
}

.fbp-seek:hover .fbp-track,
#lb-video-wrap.dragging .fbp-track {
  height: 6px;
}

.fbp-buf,
.fbp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
}

.fbp-buf {
  background: rgba(255,255,255,.38);
}

.fbp-fill {
  background: #e8c97a;
}

.fbp-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #e8c97a;
  box-shadow: 0 0 5px rgba(0,0,0,.6);
  transform: scale(0);
  transition: transform .12s;
}

.fbp-seek:hover .fbp-thumb,
#lb-video-wrap.dragging .fbp-thumb {
  transform: scale(1);
}

.fbp-tip {
  position: absolute;
  bottom: 22px;
  left: 0;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.8);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  white-space: nowrap;
}

.fbp-seek:hover .fbp-tip,
#lb-video-wrap.dragging .fbp-tip {
  opacity: 1;
}

/* volume */
.fbp-volwrap {
  display: flex;
  align-items: center;
}

.fbp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  opacity: 0;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  cursor: pointer;
  background: linear-gradient(to right,#e8c97a var(--p,100%),rgba(255,255,255,.3) var(--p,100%));
  transition: width .2s,opacity .2s,margin .2s;
}

.fbp-volwrap:hover .fbp-vol,
.fbp-vol:focus {
  width: 72px;
  opacity: 1;
  margin: 0 8px 0 2px;
}

.fbp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8c97a;
  border: 0;
}

.fbp-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8c97a;
  border: 0;
}

/* gros bouton lecture, spinner, toast */
.fbp-big {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity .2s,transform .2s;
}

.fbp-big svg {
  width: 32px;
  height: 32px;
  margin-left: 3px;
}

#lb-video-wrap:not(.paused) .fbp-big {
  opacity: 0;
  pointer-events: none;
  transform: scale(.8);
}

.fbp-spin {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #e8c97a;
  animation: fbpSpin .8s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

#lb-video-wrap.loading .fbp-spin {
  opacity: 1;
}

#lb-video-wrap.loading .fbp-big {
  opacity: 0;
}

@keyframes fbpSpin {
  to {
    transform: rotate(360deg);
  }
}

.fbp-toast {
  position: absolute;
  z-index: 60;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font: 600 13px/1 system-ui,sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.fbp-toast.show {
  opacity: 1;
}

/* qualité : texte simple + icône download */
.fbp-q {
  position: relative;
  display: flex;
  align-items: center;
}

.fbp-q[hidden] {
  display: none;
}

.fbp-qt {
  background: none;
  border: 0;
  color: #fff;
  font: 600 13px/1 system-ui,-apple-system,sans-serif;
  height: 36px;
  padding: 0 4px 0 8px;
  cursor: pointer;
  opacity: .85;
  letter-spacing: .02em;
  transition: color .15s,opacity .15s;
}

.fbp-qt:hover,
.fbp-q.open .fbp-qt {
  opacity: 1;
  color: #e8c97a;
}

.fbp-qd svg {
  width: 20px;
  height: 20px;
}

.fbp-q.open .fbp-qd {
  color: #e8c97a;
}

/* infobulle qualité */
.fbp-qp {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 220px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(18,18,18,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  line-height: 1.2;
  z-index: 70;
}

.fbp-qp[hidden] {
  display: none;
}

.fbp-qp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.fbp-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  font: 500 13px/1 system-ui,sans-serif;
}

.fbp-qr:hover {
  background: rgba(255,255,255,.1);
}

.fbp-qr.cur .fbp-qn {
  color: #e8c97a;
}

.fbp-qr.off {
  opacity: .45;
  cursor: default;
}

.fbp-qn {
  font-weight: 600;
  min-width: 44px;
}

.fbp-qs {
  flex: 1;
  text-align: right;
  opacity: .6;
  font-size: 12px;
  white-space: nowrap;
}

.fbp-qb {
  background: none;
  border: 0;
  color: #fff;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fbp-qb:hover {
  background: rgba(255,255,255,.16);
}

.fbp-qb.lock {
  opacity: .35;
}

.fbp-qb svg {
  width: 18px;
  height: 18px;
}

.fbp-qtip {
  margin: 4px 2px 2px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  font: 400 12px/1.45 system-ui,sans-serif;
  color: #ddd;
}

.fbp-qtip[hidden] {
  display: none;
}

.fbp-qtip p {
  margin: 0 0 8px;
}

.fbp-qlink {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  font: 600 12px/1.2 system-ui,sans-serif;
  color: #e8c97a;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Barre photo ─────────────────────────────────────────── */
/* ── Barre photo fixe en bas de l'écran (identique à la barre vidéo .fbp-ui) ── */
#lb-photo-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--lbc-gap, 4px);
  padding: 30px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  font: 500 13px/1 system-ui, -apple-system, sans-serif;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  pointer-events: none;
  z-index: 60;
} /* au-dessus de #lb-comments-layer (20) et du formulaire */

#lb-photo-bar > * {
  pointer-events: auto;
}

#lb-photo-bar > .fbp-sp {
  pointer-events: none;
}

#lb-photo-bar[hidden] {
  display: none !important;
}

#lightbox.lb-zoomed #lb-photo-bar {
  display: none !important;
}

/* ── Rangée de commandes (vidéo + photo) ─────────────────── */
#lb-video-wrap .fbp-row {
  display: flex;
  flex-wrap: wrap; /* repli propre sur très petit écran, sans chevauchement */
  align-items: center;
  gap: 0 var(--lbc-gap);
  min-height: var(--lbc-size);
}

.fbp-sp {
  flex: 1 1 auto;
  min-width: 0;
}

/* Boutons du player + télécharger */
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--lbc-size);
  height: var(--lbc-size);
  min-width: var(--lbc-size);
  padding: 0;
  margin: 0;
  line-height: 1;
}

:is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-btn svg {
  width: var(--lbc-icon);
  height: var(--lbc-icon);
  display: block;
}

/* Vitesse : texte, largeur libre mais cible minimale respectée */
:is(#lb-video-wrap .fbp-row) .fbp-speed {
  width: auto;
  padding: 0 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Durée */
#lb-video-wrap .fbp-time {
  display: inline-flex;
  align-items: center;
  height: var(--lbc-size);
  padding: 0 6px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Volume */
#lb-video-wrap .fbp-volwrap {
  display: inline-flex;
  align-items: center;
  height: var(--lbc-size);
}

@media (pointer: coarse) {
  /* tactile */
  .fbp-seek {
    height: 30px;
  }

  .fbp-thumb {
    transform: scale(1);
  }

  .fbp-volwrap .fbp-vol {
    display: none;
  }

  .fbp-btn {
    width: 42px;
    height: 42px;
  }

  :root {
    --lbc-size: 44px;
  } /* cible tactile recommandée */

  #lb-video-wrap .fbp-vol {
    display: none;
  } /* le volume se règle au matériel */

  /* Écrans tactiles : les contrôles vidéo restent visibles en pause */
  #lb-video-wrap.paused.idle .fbp-ui {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  /* Pas de play / volume / temps par défaut */
  #lb-video-wrap .fbp-big,
  #lb-video-wrap .fbp-volwrap,
  #lb-video-wrap .fbp-time,
  #lb-video-wrap .fbp-row .fbp-m-hide {
    display: none !important;
  }

  /* Pastille de progression visible seulement pendant le glissement */
  #lb-video-wrap .fbp-seek .fbp-thumb {
    transform: scale(0);
  }

  #lb-video-wrap.dragging .fbp-seek .fbp-thumb {
    transform: scale(1);
  }

  /* Tooltip « 0:28 / 2:46 » au-dessus du doigt */
  #lb-video-wrap .fbp-tip {
    bottom: 26px;
  }

  #lb-video-wrap.fbp-m-show .fbp-m {
    opacity: 1;
  }

  #lb-video-wrap.fbp-m-show .fbp-m-btn {
    pointer-events: auto;
  }

  .fbp-m-play svg {
    margin-left: 3px;
  }
}

/* ── Taille / qualité : #lb-pq (même composant photo + vidéo) ─ */
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-q {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: var(--lbc-size);
}

:is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-q[hidden] {
  display: none;
}

:is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-qt {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--lbc-size);
  min-width: var(--lbc-size);
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 13px/1 system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

#lb-photo-bar .fbp-qp {
  overflow: visible;
} /* le panneau s'ouvre vers le haut, hors de la barre */

/* ── Bouton « Commenter » : même composant, même style ───── */
.fbp-cslot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--lbc-size);
}

/* ════════════════════════════════════════════════════════════════════
   COMMENTAIRES — formulaire + barre compacte (surcharges finales)
   Le formulaire reprend le style du bouton « Commenter » (verre, pilules,
   system-ui 600 13px, hover rgba(255,255,255,.16)). « Envoyer » reste jaune.
════════════════════════════════════════════════════════════════════ */
/* ── Bouton « Commenter » : toujours présent, tous appareils ── */
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-trigger {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  align-items: center;
  flex: 0 0 auto;
}

:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-btn {
  box-sizing: border-box;
  align-items: center;
  gap: 6px;
  height: var(--lbc-size);
  min-width: var(--lbc-size);
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: calc(var(--lbc-size) / 2);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  font: 600 13px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
  flex: 0 0 auto;
}

:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-btn:hover {
  background: rgba(255, 255, 255, .16);
}

#lb-comment-btn .lb-cm-icon {
  width: var(--lbc-icon);
  height: var(--lbc-icon);
}

#lb-comment-count-tag:empty {
  display: none;
}

/* Pastille de compteur rentrée pour ne pas être rognée au bord de l'écran */
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-count-tag {
  top: 0;
  right: -2px;
  height: 18px;
  min-width: 18px;
  line-height: 18px;
  font-size: 11px;
  padding: 0 5px;
}

@media (max-width: 600px) {
  /* ── Petits écrans : barre compacte sur UNE seule ligne ── */
  :root {
    --lbc-size: 36px;
    --lbc-icon: 20px;
    --lbc-gap: 2px;
  }

  #lb-photo-bar {
    padding: 24px 8px 6px;
  }

  .fbp-ui {
    padding: 24px 8px 6px;
  }

  #lb-video-wrap .fbp-row {
    flex-wrap: nowrap;
  } /* plus de retour à la ligne */

  #lb-video-wrap .fbp-time {
    padding: 0 4px;
    font-size: 12px;
    min-width: 0;
  }

  :is(#lb-video-wrap .fbp-row) .fbp-speed {
    padding: 0 4px;
    font-size: 12px;
    min-width: 0;
  }

  :is(#lb-video-wrap .fbp-row, #lb-photo-bar) .fbp-qt {
    padding: 0 4px;
    font-size: 12px;
  }

  /* Le libellé reste visible tant que la place le permet */
  #lb-comment-btn .lb-cm-label {
    display: inline;
    font-size: 12px;
  }

  :is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-btn {
    padding: 0 8px;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  /* Très petits écrans : icône seule, contrôles encore plus serrés */
  #lb-comment-btn .lb-cm-label {
    display: none;
  }

  :is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-btn {
    padding: 0 6px;
  }
}

@media (max-width: 360px) {
  :root {
    --lbc-size: 34px;
    --lbc-icon: 18px;
  }

  #lb-photo-bar,
  .fbp-ui {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* ── Garde-fous mobile : le bouton Commenter ne doit jamais disparaître ── */
#lb-comment-btn .lb-cm-icon,
#lb-comment-btn svg {
  display: block;
  flex: 0 0 auto;
  min-width: var(--lbc-icon);
  min-height: var(--lbc-icon);
}

/* Barres au-dessus de la zone système (barre d'adresse / geste iOS) */
#lb-photo-bar,
.fbp-ui {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

/* ── Croix de fermeture de la box « Se connecter » (lightbox) ── */
.lab-premium-lock .lp-inner {
  position: relative;
}

.lp-close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.lp-close:hover,
.lp-close:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

@media (max-width: 520px) {
  .lp-close {
    top: 15px;
    right: 12px;
  } /* Conteneur : porte le fond unique */
}

#lb-pq.fbp-q {
  display: inline-flex;
  align-items: center;
  gap: 0; /* pas d'espace entre les deux boutons */
  border-radius: 8px;
  transition: background .15s;
}

/* Fond unique quand on survole le label OU le bouton download */
#lb-pq.fbp-q:has(> .fbp-qt:hover, > .fbp-qd:hover) {
  background: rgba(255,255,255,.16);
}

/* Les deux boutons n'ont jamais de fond propre (annule .fbp-btn:hover) */
#lb-pq > .fbp-qt,
#lb-pq > .fbp-qd,
#lb-pq > .fbp-qt:hover,
#lb-pq > .fbp-qd:hover {
  background: transparent !important;
}

/* Le bouton principal et son icône restent blancs, y compris au survol */
#lb-pq > .fbp-qd,
#lb-pq > .fbp-qd:hover,
#lb-pq > .fbp-qd:hover .lb-dl-icon,
#lb-pq > .fbp-qd .lb-dl-icon {
  color: #fff !important;
  stroke: #fff !important;
}

/* Jaune uniquement pour l'icône de téléchargement dans la tooltip */
#lb-pq .fbp-qp .fbp-qb:hover,
#lb-pq .fbp-qp .fbp-qb:hover .lb-dl-icon {
  color: #ffd400; /* ton jaune */
  stroke: #ffd400;
}

/* ════════════════════════════════════════════════════════════
   PLAYER VIDÉO — barre de progression tout en bas (mobile + desktop)
   + mode mobile façon Instagram
════════════════════════════════════════════════════════════ */
/* Barre de progression collée en bas (bottom 0), commandes au-dessus.
   `order` rend le résultat indépendant de l'ordre du DOM. */
#lb-video-wrap .fbp-ui {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

#lb-video-wrap .fbp-ui > .fbp-row {
  order: 1;
  padding: 0 12px;
}

#lb-video-wrap .fbp-ui > .fbp-seek {
  order: 2;
  align-items: flex-end;
}

@media (max-width: 600px) {
  #lb-video-wrap .fbp-ui > .fbp-row {
    padding: 0 8px;
  }
}

@media (max-width: 360px) {
  #lb-video-wrap .fbp-ui > .fbp-row {
    padding: 0 4px;
  }
}

/* La pastille repose sur le bord bas (sinon sa moitié serait coupée par l'écran) */
#lb-video-wrap .fbp-seek .fbp-thumb {
  top: auto;
  bottom: 0;
  margin: 0 0 0 -7px;
}

/* Overlay mobile : invisible partout sauf tactile */
.fbp-m {
  display: none;
}

@media (pointer: coarse) {
  /* [volume] au-dessus de [play], centrés sur la vidéo */
  .fbp-m {
    position: absolute;
    z-index: 45;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    line-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
  }

  .fbp-m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .fbp-m-play {
    width: 68px;
    height: 68px;
  }

  .fbp-m-vol {
    width: 44px;
    height: 44px;
  }
}

/* ════════════════════════════════════════════════════════════
   BARRE DU BAS : toujours visible + actions [♡][Commenter][Repartager][Partager]
════════════════════════════════════════════════════════════ */
/* La barre vidéo ne se masque plus jamais (ni au repos, ni après play) */
#lb-video-wrap.idle .fbp-ui {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* La barre du haut ne garde que les vues : masquée si rien dedans */
.lb-toolbar:has(#lb-tb-views:empty) {
  display: none;
}

/* Boutons d'action dans la barre du bas */
.fbp-cslot {
  gap: var(--lbc-gap, 4px);
}

.fbp-cslot .lb-tb-btn {
  opacity: 1;
}

.fbp-cslot .lb-tb-share {
  position: static;
  display: inline-flex;
  align-items: center;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Menu de partage : s'ouvre vers le haut, calé sur la barre */
.fbp-cslot .lb-tb-menu {
  top: auto;
  bottom: calc(100% + 10px);
  left: 12px;
  right: auto;
  flex-wrap: wrap;
  max-width: calc(100vw - 24px);
}

/* Bouton Commenter : jamais masqué (même quand le formulaire s'ouvre) */
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-trigger,
:is(#lb-video-wrap .fbp-row, #lb-photo-bar) #lb-comment-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ══ FIN DE VIDÉO : POSTER DE LA SUIVANTE + CHOIX ═══════════
   À coller dans le CSS principal (lightbox.js l'injecte aussi tout seul).
   Délai du compte à rebours : --next-delay (posé en JS, 6400ms).
   Les posters s'adaptent au format : .is-portrait (9:16) ou .is-landscape (16:9). */
/* ══════════════════════════════════════════════════════════
   ALBUMS (villes) — vignette, infobulle, navigation de fin d'album,
   bouton « Vue album / Vue à plat », repères de niveau (points de couleur).
   À placer dans /css/albums.css : lié automatiquement par index.php.
   (Le style du survol — photos qui défilent + barre jaune — est injecté par albums.js.)
══════════════════════════════════════════════════════════ */
/* ── Vignette album : au repos, le nom de la ville et un seul chiffre ── */
.album-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface2);
  container-type: inline-size;
  isolation: isolate;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.album-card:focus-visible {
  box-shadow: inset 0 0 0 2px #e8c97a;
}

.album-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform .3s ease, opacity .2s;
  pointer-events: none;
}

.album-card > img.loaded {
  opacity: 1;
}

.album-card:hover > img,
.album-card:focus-visible > img {
  transform: scale(1.06);
}

/* voile léger : lisibilité du nom */
.album-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .12) 28%, rgba(0, 0, 0, 0) 55%), rgba(0, 0, 0, .24);
  pointer-events: none;
  transition: opacity .15s ease;
}

/* pendant le défilement des photos : le voile et le nom s'effacent (comme le bouton play des vidéos) */
.album-card.is-scrubbing::before {
  opacity: .12;
}

.album-card.is-scrubbing .album-card-center {
  opacity: 0;
}

/* icône « album » en haut à droite, discrète */
.album-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  justify-content: center;
  border-radius: 999px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
} /* ── Badge de la vignette d'album : boutons Photos / Vidéos ── */

.album-badge .album-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform .12s, background-color .12s, box-shadow .12s;
}

.album-badge .album-badge-pill svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.album-badge .album-badge-pill b {
  font-weight: 600;
}

.album-badge .album-badge-pill:hover,
.album-badge .album-badge-pill:focus-visible {
  background: rgba(232, 201, 122, .28);
  box-shadow: 0 0 0 1px #e8c97a;
  transform: translateY(-1px);
}

/* ── Page album : pastilles Photos / Vidéos avec compteur ── */
.album-info-stats .album-type-pill {
  cursor: pointer;
  transition: transform .12s, background-color .12s, box-shadow .12s;
}

.album-info-stats .album-type-pill:hover {
  box-shadow: 0 0 0 1px #e8c97a;
  transform: translateY(-1px);
}

.album-info-stats .album-type-pill b {
  font-weight: 600;
  margin-left: 2px;
}

.album-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* total (photos + vidéos), à gauche de l'icône Album */
.album-badge .album-total {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* nom de la ville au centre */
.album-card-center {
  transition: opacity .15s ease;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12cqw 8cqw;
  text-align: center;
  pointer-events: none;
}

.album-card-name {
  font-family: var(--font);
  font-size: 15px;
  font-size: clamp(13px, 11cqw, 18px); /* plage resserrée : les noms restent d'un format proche d'une vignette à l'autre */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 1px 10px rgba(0, 0, 0, .3);
}

/* bas de vignette : la période, visible seulement au survol */
.album-card-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: end center;
  padding: 14cqw 5cqw 5cqw;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.album-period {
  max-width: 100%;
  font-family: var(--font);
  font-size: 10px;
  font-size: clamp(9px, 5.6cqw, 12px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .85);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@container (max-width: 90px) {
  /* petites vignettes (zoom max) : nom seul */
  .album-card-stats {
    display: none;
  }

  .album-card-center {
    padding: 4cqw;
  }

  .album-card-name {
    font-size: clamp(11px, 14cqw, 14px);
    -webkit-line-clamp: 2;
  }

  .album-badge {
    min-width: 18px;
    height: 18px;
    top: 3px;
    right: 3px;
    padding: 0 4px;
    gap: 3px;
  }

  .album-badge svg {
    width: 11px;
    height: 11px;
  }

  .album-badge .album-total {
    font-size: 9px;
  }
}

/* ── Infobulle d'album : prolongement de la vignette ── */
.album-tip {
  --albtip-r: 12px;
  --albtip-edge: rgba(232, 201, 122, .72); /* liseré plus visible (était .45) */
  position: fixed;
  z-index: 9990; /* au-dessus des autres albums ; position: fixed → la grille ne bouge pas */
  box-sizing: border-box;
  padding: 10px 12px 8px;
  border-radius: 0 0 var(--albtip-r) var(--albtip-r);
  background: #191919; /* un peu moins noir */
  border: 1px solid var(--albtip-edge);
  border-top: 0; /* sans couture avec la vignette */
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
  cursor: pointer; /* partie haute cliquable : ouvre l'album (voir albTipClick) */
  color: #fff;
  font-family: var(--font);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* zone de tolérance invisible autour de la bulle : la souris peut dévier un peu en descendant vers les boutons */
.album-tip::before {
  content: '';
  position: absolute;
  inset: 0 -6px -14px -6px;
  z-index: -1;
}

.album-tip.is-up::before {
  inset: -14px -6px 0 -6px;
}

.album-tip.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* pas de place dessous : collée au bord haut de la vignette */
.album-tip.is-up {
  border-radius: var(--albtip-r) var(--albtip-r) 0 0;
  border-top: 1px solid var(--albtip-edge);
  border-bottom: 0;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .5), 0 -2px 8px rgba(0, 0, 0, .35);
  transform: translateY(5px);
  transform-origin: bottom center;
}

.album-tip.is-up.show {
  transform: none;
}

/* la vignette garde sa période visible et un liseré commun avec la bulle */
.album-card.is-tip-open .album-card-stats {
  opacity: 1;
}

.album-card.is-tip-open {
  z-index: 20;
  box-shadow: 0 0 22px rgba(0, 0, 0, .45);
} /* ombre portée autour de l'ensemble vignette + bulle */

.album-card.is-tip-open:focus-visible {
  box-shadow: inset 0 0 0 2px #e8c97a, 0 0 22px rgba(0, 0, 0, .45);
}

.album-card.is-tip-open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 1px solid rgba(232, 201, 122, .72);
  border-bottom: 0;
  pointer-events: none;
}

.album-card.is-tip-open.is-tip-up::after {
  border-bottom: 1px solid rgba(232, 201, 122, .72);
  border-top: 0;
}

.album-tip-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
}

.album-tip-head span:first-child:not(:last-child) {
  font-size: 17px;
  line-height: 1;
}

.album-tip-period {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: .65;
}

.album-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.album-tip-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: .92;
}

.album-tip-kind svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.album-tip-vals {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.album-tip-lvl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.album-tip-lvl b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* barre des 5 boutons (comme sur les photos) */
.album-tip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.album-tip-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  cursor: pointer;
  font: 600 12px/1 var(--font);
  font-variant-numeric: tabular-nums;
  opacity: .88;
  transition: background .12s, opacity .12s, color .12s;
}

.album-tip-btn:hover {
  background: rgba(255, 255, 255, .12);
  opacity: 1;
}

.album-tip-btn:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 1px;
}

.album-tip-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.album-tip-btn b {
  font-weight: 700;
}

.album-tip-btn.is-active {
  background: rgba(232, 201, 122, .2);
  color: #e8c97a;
  opacity: 1;
}

/* Compteur seul (connecté + 0 commentaire) : <span>, non cliquable */
.album-tip-actions,
.album-tip-pop {
  cursor: default;
}

span.album-tip-cmt {
  cursor: default;
}

span.album-tip-cmt:hover {
  background: transparent;
  opacity: .88;
}

/* Icône commentaire cliquable (<button>) : comme les autres boutons */
button.album-tip-cmt {
  cursor: pointer;
}

.album-tip-pop {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.album-tip-pop.open {
  display: block;
}

.album-tip-share {
  display: flex;
  justify-content: space-around;
}

/* ── Bouton « Vue album / Vue à plat » : icône seule, rangé contre le zoom ── */
.alb-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.alb-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s, color .15s;
}

.alb-toggle:hover {
  background: rgba(40, 40, 40, .65);
}

.alb-toggle:not(.active) {
  color: #000;
  border-color: rgba(232, 201, 122, .7);
  background: rgba(232, 201, 122, .64);
}

.alb-toggle:not(.active):hover {
  background: rgba(232, 201, 122, .8);
}

.alb-toggle:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

.alb-toggle svg {
  width: 16px;
  height: 16px;
  opacity: .9;
}

.alb-toggle:not(.active) .alb-ico--album,
.alb-toggle.active .alb-ico--flat {
  display: none;
}

@media (max-width: 600px) {
  .alb-toggle {
    width: 30px;
    height: 30px;
  }
}

/* ── Navigation de fin d'album ── */
.album-nav {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.album-nav-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.album-nav-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.album-nav-btn:hover {
  background: rgba(232, 201, 122, .16);
  border-color: rgba(232, 201, 122, .5);
}

.album-nav-btn.is-next {
  flex-direction: row-reverse;
  text-align: right;
  margin-left: auto;
}

.album-nav-btn.is-prev:only-child,
.album-nav-btn.is-next:only-child {
  flex: 0 1 50%;
}

.album-nav-btn.is-prev:only-child {
  margin-right: auto;
}

.album-nav-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
}

.album-nav-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.album-nav-dir {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.album-nav-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-nav-btn.is-month .album-nav-name {
  color: #e8c97a;
}

@media (max-width: 520px) {
  /* Mobile : les deux boutons d'une rangée restent côte à côte (4 boutons empilés = trop haut) */
  .album-nav {
    gap: 8px;
    margin-bottom: 14px;
  }

  .album-nav-row {
    gap: 8px;
  }

  .album-nav-btn {
    padding: 6px 8px;
    gap: 8px;
    border-radius: 12px;
  }

  .album-nav-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .album-nav-dir {
    font-size: 10px;
    letter-spacing: .03em;
  }

  .album-nav-name {
    font-size: 13px;
  }
}

.album-nav-btn:focus-visible,
#_end_refresh:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

/* ── Page album : ligne « Retour + fil d'Ariane » ───────────────────── */
.album-info-top {
  flex-wrap: wrap;
}

.album-info-top .album-info-place {
  min-width: 0;
  margin: 0;
}

/* ── Bouton Retour : pastille discrète, chevron + libellé ───────────── */
.album-info-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 9px;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  color: inherit;
  background: rgba(128, 128, 128, .10);
  border: 1px solid rgba(128, 128, 128, .28);
  border-radius: 999px;
  cursor: pointer;
  opacity: .9;
  -webkit-tap-highlight-color: transparent;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease, transform .16s ease;
}

.album-info-back svg {
  display: block;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

@media (hover: hover) {
  .album-card:hover .album-card-stats {
    opacity: 1;
  }

  .album-info-back:hover {
    opacity: 1;
    background: rgba(232, 201, 122, .16); /* jaune de la charte (#e8c97a) */
    border-color: rgba(232, 201, 122, .65);
  }

  .album-info-back:hover svg {
    transform: translateX(-2px);
  }
}

.album-info-back:active {
  transform: scale(.96);
}

.album-info-back:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  /* Mobile : icône seule (le libellé reste lu par les lecteurs d'écran via aria-label) */
  .album-info-back {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .album-info-back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ============================================================
   FILTRES REPLIABLES (bouton « Filtres » + résumé + panneau)
   ============================================================ */
.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.filters-btn:hover {
  background: rgba(40,40,40,.65);
}

.filters-btn:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

.filters-btn > svg {
  flex: none;
  opacity: .85;
}

.filters-btn-chev {
  transition: transform .25s var(--ease);
}

.filters-btn[aria-expanded="true"] {
  border-color: rgba(232,201,122,.7);
}

.filters-btn[aria-expanded="true"] .filters-btn-chev {
  transform: rotate(180deg);
}

.filters-btn.has-active {
  border-color: rgba(232,201,122,.7);
}

.filters-btn.has-active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8c97a;
  flex: none;
}

/* Conteneur : une pastille par groupe de filtres (lieu / période), chacune avec son ✕ */
.filters-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 60vw;
}

.filters-summary[hidden] {
  display: none;
}

.fs-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  height: 32px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: rgba(232,201,122,.16);
  border: 1px solid rgba(232,201,122,.4);
  color: #fff;
  font-size: 12px;
}

.fs-chip .fs-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fs-clear {
  flex: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.fs-clear:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.fs-clear:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 1px;
}

/* Panneau : se déplie dans le flux (pousse la grille, ne la recouvre jamais) */
#filters-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
}

#filters-panel > .fp-inner {
  min-height: 0;
  overflow: hidden;
}

#filters-panel .fp-inner > #cat-nav {
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Panneau ouvert : le menu « Vidéos » (Stories / format long) déborde vers le bas → on lève le rognage une fois le dépliage terminé
   (à la fermeture il redevient immédiatement rogné, le repli reste propre) */
#sticky-shell.filters-open #filters-panel > .fp-inner {
  overflow: visible;
  transition: overflow 0s linear .25s;
  transition-behavior: allow-discrete;
}

/* Page album ouverte : Photos / Vidéos (+ niveaux) se filtrent dans le bandeau d'album → la barre est masquée */
body:has(#album-info) #grid-header.grid-header--filters {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #filters-panel,
  .filters-btn-chev {
    transition: none;
  }
}

@media (max-width: 700px) {
  #grid-toolbar {
    padding: 6px 8px;
  }

  /* le résumé passe sur sa propre ligne : il garde toute la largeur */
  .filters-summary {
    order: 10;
    flex-basis: 100%;
    max-width: none;
  }

  .fs-chip {
    height: 30px;
  }
}

@media (max-width: 600px) {
  /* Photos / Vidéos : icône + chiffre seulement (le nom reste en infobulle) */
  .fb-stat-pill > span {
    display: none;
  }

  .filters-btn-label {
    display: none;
  }

  .filters-btn {
    padding: 0 10px;
    height: 30px;
  }

  .filters-btn.has-active {
    padding-right: 8px;
  }
}

/* Commentaires sur les vignettes photos ET vidéos : haut gauche, absent s'il n'y en a pas */
.thumb-cmt-count {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.thumb-cmt-count svg {
  width: 12px;
  height: 12px;
  flex: none;
}

@media (max-width: 600px) {
  .thumb-cmt-count {
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .thumb-cmt-count svg {
    width: 11px;
    height: 11px;
  }
}

/* ══════════════════════════════════════════════════════════
   Surcharges v2 (à garder en fin de fichier)
══════════════════════════════════════════════════════════ */
/* ── Badges « ✕ Catégorie » / « ✕ GPS » (info non renseignée) ── */
.thumb-missing {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}

.thumb-missing-b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: rgba(255, 255, 255, .78);
  font: 600 9.5px/1.3 var(--font);
  letter-spacing: .02em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.thumb-missing-b i {
  font-style: normal;
  color: var(--red);
  font-size: 9px;
}

@media (max-width: 600px) {
  .thumb-missing {
    top: 4px;
    right: 4px;
  }

  .thumb-missing-b {
    font-size: 8.5px;
    padding: 1px 5px;
  }
}

/* ── Niveaux / stats admin : rangés dans le panneau de filtres, compacts, une seule palette ── */
#grid-header.grid-header--filters {
  padding: 8px 12px;
  gap: 8px 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 0;
}

#grid-header.grid-header--filters #stats-bar {
  margin: 0;
  gap: 6px 8px;
  align-items: center;
}

#stats-bar .stat {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
}

#stats-bar .stat b {
  color: var(--accent);
  font-weight: 600;
}

#stats-bar .stat.active {
  color: var(--accent);
  font-weight: 600;
}

.fb-stat-pill {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
}

#view-toggle-btn,
.fb-grid-zoom-btn {
  background: 0 0;
  color: rgba(255,255,255,.4);
  transition: color .15s;
  display: flex;
  cursor: pointer;
}

#lb-img,
#lightbox.open {
  touch-action: none;
}

body,
html {
  touch-action: pan-y;
  overscroll-behavior-x: none;
  max-width: 100vw !important;
}

#grid.view-grid .thumb,
#map-wrap {
  overflow: hidden !important;
}

#grid.view-grid,
body,
html {
  overflow-x: hidden !important;
}

#map-info-top #overlay-text {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#map-info-top #reset-btn {
  margin-left: 0;
}

#view-toggle-btn {
  align-items: center;
  justify-content: center;
  border: none;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

#view-toggle-btn:hover {
  color: rgba(255,255,255,.9) !important;
}

#view-toggle-btn svg,
.fb-grid-zoom-icon svg {
  display: block;
}

#grid-section,
#main,
#map-wrap {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#grid.view-grid {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  touch-action: pan-y;
  grid-template-columns: repeat(var(--grid-cols,8),1fr) !important;
  height: auto !important;
  overflow-y: auto !important;
  display: grid !important;
  position: static !important;
}

.fb-grid-zoom-btn {
  position: relative;
  align-items: center;
  gap: 4px;
  border: none;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fb-grid-zoom-btn.active,
.fb-grid-zoom-btn:hover {
  color: rgba(255,255,255,.9);
}

.fb-grid-zoom-label {
  min-width: 14px;
  text-align: center;
}

.fb-grid-zoom-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(30,30,30,.95);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s,transform .15s;
  z-index: 550;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.fb-grid-zoom-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}

.fb-grid-zoom-option {
  background: 0 0;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.fb-grid-zoom-option:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.fb-grid-zoom-option.selected {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 600;
}

.leaflet-fullscreen-icon {
  background-image: url(icon-fullscreen.svg);
  background-size: 26px 52px;
}

.leaflet-fullscreen-icon.leaflet-fullscreen-on {
  background-position: 0 -26px;
}

.leaflet-touch .leaflet-fullscreen-icon {
  background-position: 2px 2px;
}

.leaflet-touch .leaflet-fullscreen-icon.leaflet-fullscreen-on {
  background-position: 2px -24px;
}

.leaflet-container:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  z-index: 99999;
}

.leaflet-container:fullscreen {
  width: 100% !important;
  height: 100% !important;
  z-index: 99999;
}

.leaflet-pseudo-fullscreen {
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999;
}

.fb-grid-zoom-ctrl {
  display: flex;
  align-items: center;
  background: rgba(30,30,30,.4);
  border-radius: 6px;
  padding: 2px 4px;
  gap: 6px;
  margin-left: auto;
}

.fb-grid-zoom-btn-math {
  background: 0 0;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
  transition: color .15s,background .15s,opacity .15s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-grid-zoom-btn-math:hover:not(:disabled) {
  color: #fff;
  background: rgba(255,255,255,.15);
}

.fb-grid-zoom-btn-math:disabled {
  opacity: .2;
  cursor: not-allowed;
}

.fb-grid-zoom-info {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 32px;
  justify-content: center;
  color: rgba(255,255,255,.9);
}

.fb-grid-zoom-icon svg {
  display: block;
}

.fb-grid-zoom-label {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ── Survol d'album : photos d'aperçu qui défilent + barre jaune + drapeau (ex-CSS injecté par public.js) ── */
.album-card .album-scrub-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}

.album-card .album-scrub-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  z-index: 5;
}

.album-card .album-scrub-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #e8c97a;
}

.album-card.is-scrubbing .album-scrub-img.has-frame {
  opacity: 1;
}

.album-card.is-scrubbing .album-scrub-bar {
  opacity: 1;
}

.album-card.is-scrubbing > img:not(.album-scrub-img) {
  opacity: 0 !important;
}

.album-card .album-flag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 6;
  box-sizing: border-box;
  height: 24px;
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.album-card .album-flag:hover,
.album-card .album-flag:focus-visible {
  background: rgba(0,0,0,.65);
  outline: none;
}

@container (max-width: 90px) {
  /* petites vignettes (zoom max) : aligné sur le badge réduit (18px) */
  .album-card .album-flag {
    top: 3px;
    left: 3px;
    height: 18px;
    font-size: 11px;
    padding: 0 4px;
  }
}

.album-card.has-touch-scrub {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Infobulle des villes (survol du drapeau d'un album) : remplace la vignette ──
   Même emplacement et même largeur que la vignette, qui masque ses infos ; la liste dépasse en bas si besoin.
   Teinte légèrement plus froide que l'infobulle d'album pour ne pas se confondre avec elle. */
.city-tip--album {
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: #16191e;
  border: 1px solid rgba(176, 208, 232, .45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.city-tip--album::before {
  display: none;
}

.city-tip--album .city-tip-list {
  max-height: min(300px, 50vh);
}

.city-tip--album .city-tip-list li {
  gap: 10px;
}

.city-tip-nums {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.city-tip-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.city-tip-num svg {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: .85;
}

.city-tip-list li .city-tip-num b {
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.city-tip-list li .city-tip-nums,
.city-tip-list li .city-tip-num {
  overflow: visible;
  text-overflow: clip;
}

/* la vignette cède la place à la liste des villes : plus d'infos d'album dessous */
.album-card.is-citytip-open .album-card-center,
.album-card.is-citytip-open .album-card-stats,
.album-card.is-citytip-open .album-badge,
.album-card.is-citytip-open .album-flag {
  opacity: 0;
}

.city-tip-more-btn {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .85);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.city-tip-more-btn b {
  color: var(--accent);
  font-size: 11px;
  margin-left: 4px;
}

.city-tip-more-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.city-tip-more-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .city-tip-more-btn {
    min-height: 40px;
    font-size: 13px;
  }
}

/* ── Page album : bandeau d'infos + description ── */
/* Disposition en grille : nav (retour + fil d'Ariane) | actions, puis lieu (h1), titre perso, période, contenus, description */
.album-info {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 14px 52px 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(232, 201, 122, .3);
  font-family: var(--font);
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nav     actions" "place   place" "custom  custom" "period  period" "stats   stats" "desc    desc";
  column-gap: 12px;
  align-items: center;
}

.album-info-place-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.album-info-place-link:hover {
  text-decoration: underline;
}

.album-info-place-sep {
  opacity: .6;
}

:where(h1.album-info-place, h2.album-info-period) {
  margin: 0;
  font: inherit;
}

span.album-title {
  display: block;
}

/* 1) Navigation : retour + fil d'Ariane, discrets */
.album-info-top {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}

.album-info-actions {
  grid-area: actions;
}

.album-info-place {
  grid-area: place;
}

.album-info-title {
  grid-area: custom;
}

.album-info-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  font-size: 13px;
  opacity: .72;
}

.album-info-crumbs .album-info-place-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
}

.album-info-crumbs .album-info-flag {
  font-size: 15px;
}

/* 2) Lieu = titre de la page */
.album-info-place {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 4.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.album-info-flag {
  font-size: 1em;
  line-height: 1;
}

/* 3) Titre personnalisé de l'album (sous-titre) */
.album-info .album-info-title {
  margin: 4px 0 0;
  padding: 0;
  border-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

/* 4) Période : méta discrète avec icône */
.album-info-period {
  grid-area: period;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  opacity: .7;
}

.album-info-period svg {
  flex: none;
  opacity: .85;
}

/* 5) Contenus (Photos / Vidéos / niveaux) */
.album-info-stats {
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 14px;
}

/* Actions : like · commentaires · repost · partage · téléchargement (mêmes boutons que l'infobulle de la grille) */
.album-info-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
}

.album-info-actions .album-tip-btn {
  min-width: 36px;
  height: 36px;
  opacity: .78;
}

.album-info-actions .album-tip-btn:hover {
  opacity: 1;
}

.album-info-actions .album-tip-btn svg {
  width: 19px;
  height: 19px;
}

.album-info-actions .album-tip-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(24, 18, 12, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.album-info-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.album-info-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: .92;
}

.album-info-kind svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.album-info-vals {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.album-info-vals .album-tip-lvl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.album-info-vals .album-tip-lvl b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Pastilles Photos / Vidéos du bandeau d'album : même présentation que celles de la barre de filtres, cliquables */
.album-info-stats:has(.album-type-pill) {
  gap: 6px;
}

.album-type-pill {
  cursor: pointer;
  font-family: inherit;
}

.album-type-pill svg {
  width: 15px;
  height: 15px;
}

.album-type-pill:hover {
  background: rgba(40,40,40,.65);
}

.album-type-pill.is-on {
  color: #000;
  border-color: rgba(232,201,122,.7);
  background: rgba(232,201,122,.64);
}

.album-type-pill:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

.fb-stat-pill.album-type-pill > span {
  display: inline;
} /* le petit écran garde le nom (il n'y a pas de total ici) */

.album-info-title {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

.album-info-desc {
  grid-area: desc;
  margin: 12px 0 0;
  padding: 12px max(0px, calc(100% - 72ch)) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-sizing: border-box;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  white-space: pre-line; /* garde les retours à la ligne saisis dans la popin */
  overflow-wrap: anywhere; /* un mot très long ne casse pas la mise en page */
  text-wrap: pretty; /* évite les mots orphelins en fin de ligne */
}

@media (max-width: 768px) {
  /* Mobile : texte pleine largeur, un peu plus compact */
  #lb-login-gate > *,
  .lab-auth-overlay > .lab-premium-lock {
    height: 100%;
  }

  .album-info-desc {
    margin-top: 10px;
    padding: 10px 0 0;
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82); /* un peu plus lumineux : petit écran, lecture en extérieur */
  }
}

.album-info-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  cursor: pointer;
}

.album-info-edit:hover {
  background: rgba(232, 201, 122, .2);
  color: #e8c97a;
  border-color: rgba(232, 201, 122, .6);
}

.album-info-edit:focus-visible {
  outline: 2px solid #e8c97a;
  outline-offset: 2px;
}

.album-info-edit svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  /* Une colonne ; les actions passent en barre pleine largeur sous les contenus */
  .album-info {
    padding: 12px 48px 12px 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "nav" "place" "custom" "period" "stats" "actions" "desc";
  }

  .album-info-stats {
    gap: 6px 16px;
  }

  .album-info-actions {
    justify-self: stretch;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .album-info-actions .album-tip-pop {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

.album-tip-desc {
  font-size: 12px;
  line-height: 1.35;
  opacity: .75;
  margin: 2px 0 6px;
  font-style: italic;
}

.album-tip-title {
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

/* ── Zoom : le cadre ne doit jamais rogner l'image agrandie ── */
#lightbox.lb-zoomed #lb-img {
  will-change: transform;
  max-width: none;
}

/* ── Barre de zoom (discrète : s'efface au repos, se révèle au survol) ── */
.lb-zoombar {
  position: absolute;
  right: 16px;
  bottom: 49px;
  z-index: 99985;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(20, 20, 20, .28);
  color: #fff;
  opacity: .38;
  transition: opacity .2s ease, background .2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lb-zoombar:hover,
.lb-zoombar:focus-within {
  opacity: 1;
  background: rgba(20, 20, 20, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb-zoombar[hidden],
.is-video .lb-zoombar {
  display: none;
}

@media (pointer: coarse) {
  .lb-zoombar {
    display: none;
  }
}

.lb-zoombar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

.lb-zoombar button svg {
  width: 13px;
  height: 13px;
}

.lb-zoombar button:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18);
}

.lb-zoombar button:disabled {
  opacity: .35;
  cursor: default;
}

.lb-zoombar .lb-zoom-pct {
  width: auto;
  min-width: 38px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.lb-zoombar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 14px;
  margin: 0 1px;
  background: transparent;
  cursor: pointer;
  --pct: 0%;
}

.lb-zoombar input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, #fff var(--pct), rgba(255, 255, 255, .3) var(--pct));
}

.lb-zoombar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.lb-zoombar input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
}

.lb-zoombar input[type="range"]::-moz-range-progress {
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.lb-zoombar input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ── Fin de vidéo : poster de la suivante + lecture auto ── */
.fbp-next {
  --ch: min(46vh, 380px);
  position: absolute;
  inset: 0;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
  background: rgba(0, 0, 0, .74);
  animation: fbpNextIn .25s ease;
}

.fbp-next[hidden] {
  display: none;
}

@keyframes fbpNextIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fbp-next [hidden] {
  display: none !important;
}

.fbp-next-auto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.fbp-next-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.fbp-next-card.is-landscape {
  width: min(60vw, 360px);
}

.fbp-next-card.is-portrait {
  width: min(60vw, calc(var(--ch) * 9 / 16));
}

.fbp-next-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.fbp-next-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .6);
  transition: transform .15s ease;
}

.is-landscape > .fbp-next-poster {
  aspect-ratio: 16 / 9;
}

.is-portrait > .fbp-next-poster {
  aspect-ratio: 9 / 16;
}

.fbp-next-card:hover .fbp-next-poster,
.fbp-next-card:focus-visible .fbp-next-poster,
.fbp-next-opt:hover .fbp-next-poster,
.fbp-next-opt:focus-visible .fbp-next-poster {
  transform: scale(1.03);
}

.fbp-next-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fbp-next-poster::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='9,6 18,12 9,18'/%3E%3C/svg%3E") center / 26px no-repeat;
  pointer-events: none;
}

.fbp-next-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbp-next-bar {
  height: 3px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
  overflow: hidden;
}

.fbp-next-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #e8c97a;
}

.fbp-next.run .fbp-next-bar i {
  width: 100%;
  transition: width var(--next-delay, 6400ms) linear;
}

.fbp-next-cancel {
  background: rgba(255, 255, 255, .14);
  border: 0;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.fbp-next-cancel:hover {
  background: rgba(255, 255, 255, .24);
}

.fbp-next-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.fbp-next-opt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: center;
  cursor: pointer;
  font: inherit;
  max-width: 100%;
}

.fbp-next-opt.is-landscape {
  width: min(44vw, 340px);
}

.fbp-next-opt.is-portrait {
  width: min(44vw, calc(var(--ch) * 9 / 16));
}

.fbp-next-cta {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.fbp-next-opt:hover .fbp-next-cta {
  background: rgba(255, 255, 255, .28);
}

.fbp-next-opt.is-next .fbp-next-cta {
  background: #e8c97a;
  color: #111;
}

.fbp-next-opt.is-next:hover .fbp-next-cta {
  background: #f0d68e;
}

.fbp-next-on .fbp-ui,
.fbp-next-on .fbp-m,
.fbp-next-on .fbp-big,
.fbp-next-on .fbp-spin {
  display: none !important;
}

@media (max-width: 700px) {
  .fbp-next {
    --ch: min(38vh, 300px);
    gap: 10px;
    padding: 12px;
  }

  .fbp-next-choice {
    gap: 12px;
  }

  .fbp-next-cta {
    font-size: 12px;
    padding: 8px 8px;
  }
}

/* ══ BULLE UNIQUE « FLOSTARICA » ══════════════════════════
   Même contenu à deux endroits : popup du pin (.pin-popup-merged) ou bulle sous le logo (.bio-panel). */
.pin-popup-merged .leaflet-popup-content {
  margin: 14px 16px;
}

.pin-popup .bio-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #111;
}

.pin-popup-here {
  font-size: 13px;
  line-height: 1.4;
  color: #0a0a0a;
  margin: 0 0 4px;
}

.pin-popup-here-lbl {
  color: #333;
}

.pin-popup-here-name {
  font-weight: 700;
}

.pin-popup-bio {
  margin: 8px 0 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.1);
}

.pin-popup-bio .bio-sub {
  font-size: 12px;
  color: #222;
  margin: 0 0 6px;
}

.pin-popup-bio .bio-text {
  font-size: 13px;
  color: #0a0a0a;
  line-height: 1.5;
  margin: 0;
}

.pin-popup .bio-socials {
  justify-content: flex-start;
  margin-top: 10px;
}

/* Bulle sous le logo (pin masqué) : s'ouvre toujours à gauche, comme le logo, y compris sur mobile */
.bio-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 999;
  width: min(300px, calc(100vw - 24px));
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.bio-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.absolute-header {
  position: absolute !important;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none; /* la carte reste utilisable entre les contrôles */
}

.site-header.absolute-header > * {
  pointer-events: none;
}

.site-header .album-search,
.site-header .header-right > * {
  pointer-events: auto;
}

body:has(.site-header.absolute-header) {
  padding-top: 0 !important;
} /* la carte monte jusqu'en haut, sous les contrôles */

.header-left {
  position: relative;
  transform: none;
  gap: 0;
  height: var(--ctl-h);
  opacity: 1 !important;
}

.header-right {
  flex: 0 0 auto;
} /* compte + burger rapprochés, jamais rétrécis */

/* Pilule titre + recherche */
.album-search {
  position: absolute;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: var(--ctl-h);
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  z-index: 1001;
  transition: width .28s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}

.album-search:hover {
  background-color: var(--glass-bg-hover);
}

.album-search:focus-within {
  width: min(460px, calc(100vw - 16px));
  z-index: 1100; /* au-dessus du compte et du burger */
  background-color: rgba(84,84,92,.66);
  border-color: rgba(232,201,122,.9);
  box-shadow: 0 0 0 3px rgba(232,201,122,.22), 0 6px 22px rgba(0,0,0,.28);
}

/* Titre : jamais coupé, collé à gauche */
.album-search .bio-wrap {
  flex: 0 0 auto;
  display: flex;
  position: relative;
}

.album-search .map-logo {
  position: relative;
  height: 100%;
  margin: 0;
  gap: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: #fff;
  transform: none;
  transition: background .15s;
}

.album-search .map-logo:hover {
  transform: none;
  background: rgba(255,255,255,.12);
  box-shadow: none;
}

.album-search .album-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .3px;
  flex: none;
  overflow: visible;
  max-width: none;
  text-overflow: clip;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.album-search .bio-wrap::after {
  content: '';
  position: absolute;
  top: 9px;
  bottom: 9px;
  right: 0;
  width: 1px;
  background: rgba(255,255,255,.35);
  pointer-events: none;
}

.album-search .bio-panel {
  top: calc(100% + 10px);
}

/* Champ */
.album-search .site-search {
  position: static;
  transform: none;
  left: auto;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

.album-search .site-search-panel {
  position: static;
  display: flex;
  flex: 1;
  min-width: 0;
}

.album-search .site-search-field {
  width: 100%;
  height: 100%;
  padding: 0 6px 0 12px;
  gap: 6px;
  min-width: 0;
  background: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none;
}

.album-search .site-search-input {
  height: 100%;
  font-size: 16px;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.album-search .site-search-input::placeholder {
  color: rgba(255,255,255,.82);
}

.album-search .ss-field-submit {
  display: flex;
  flex: none;
  color: rgba(255,255,255,.9);
}

.album-search:focus-within .ss-field-submit {
  color: var(--accent);
}

.album-search .site-search-clear {
  display: inline-flex;
  flex: none;
}

.album-search .site-search-clear[hidden] {
  display: none;
}

.album-search .site-search-close {
  display: none !important;
}

.album-search .ss-filter-badge {
  flex: none;
}

.album-search .site-search-results {
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(58,58,66,.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border);
}

/* ── Burger : même verre, icône raffinée (3 traits, celui du milieu plus court) ── */
.burger-btn {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.burger-btn:hover,
.burger-btn.is-open {
  background-color: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow);
}

.burger-line {
  transition: transform .35s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1), opacity .2s ease, width .25s ease;
}

/* « Se connecter » */
.header-right .account-login-link {
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
  box-shadow: var(--glass-shadow);
}

@media (max-width: 899px) {
  .header-right .lang-selector,
  .header-right .account-login-link {
    display: none !important;
  }

  .header-left {
    position: absolute;
    transform: none;
    transition: opacity .25s ease;
    max-width: 280px;
  }

  .site-search-panel {
    display: none;
  }

  .site-search {
    position: relative;
    height: 36px;
    width: 36px;
    border-radius: 999px;
    overflow: hidden;
    transition: width .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
    border: 1px solid transparent;
  }

  .site-search-toggle {
    position: relative;
    z-index: 2;
  }

  body.search-open .header-left {
    opacity: 0;
    pointer-events: none;
  }

  body.search-open .site-search {
    width: calc(100vw - 2rem - 44px);
    background: rgba(10, 10, 15, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255,255,255,.14);
    overflow: visible;
  }

  body.search-open .site-search-toggle {
    pointer-events: none;
  }

  body.search-open .site-search-panel {
    display: flex;
    position: absolute;
    inset: 0;
  }

  body.search-open .site-search-field {
    background: none;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0 4px 0 40px;
    animation: siteSearchFieldIn .3s .08s var(--ease) both;
  }

  body.search-open .ss-field-submit {
    display: none;
  }

  body.search-open .site-search-clear {
    display: none;
  }

  body.search-open .site-search-close {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-search,
  .burger-line {
    transition: none;
  }
}

.site-header.absolute-header {
  padding: 0 !important;
  gap: 0;
  margin: 0;
  top: 0;
}

#map .leaflet-top {
  margin-top: calc(var(--header-height) + 4px);
}

.header-left {
  flex: 0 1 280px;
  min-width: 140px;
}

/* Burger : top 0 / right 0, même hauteur que la barre, carré, seul le coin bas-gauche est arrondi
   (miroir du coin bas-droit de la pilule de recherche) */
.header-right {
  gap: 0;
  align-items: flex-start;
  height: var(--ctl-h);
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  padding: 0;
}

/* Pilule : accrochée au coin haut-gauche (coins haut plats, bas arrondi) */
.album-search {
  top: 0;
  left: 0;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 18px 0;
  box-sizing: border-box;
}

.album-search .map-logo {
  border-radius: 0 0 0 0;
  padding: 0 12px 0 8px;
}

.album-search .site-search-field {
  border-radius: 0 0 18px 0;
}

.album-search:focus-within {
  width: min(460px, calc(100vw - 6px)); /* jamais plus large que l'écran, 6 px de marge à droite */
  max-width: calc(100vw - 6px);
  border-radius: 0 0 18px 0;
}

/* un peu plus d'air entre « Se connecter » et le burger */
.header-right .account-login-link {
  height: var(--ctl-h);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  margin-right: 8px;
}

/* Burger : 3 traits identiques (même largeur, même épaisseur, espacement égal), très fins */
.burger-icon {
  width: 16px;
  height: 11px;
}

.burger-line,
.burger-line:nth-child(1),
.burger-line:nth-child(2),
.burger-line:nth-child(3) {
  left: 0;
  right: auto;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  box-shadow: none;
}

.burger-line:nth-child(1) {
  top: 0;
}

.burger-line:nth-child(2) {
  top: 4.75px;
}

.burger-line:nth-child(3) {
  top: 9.5px;
}

.burger-btn:hover .burger-line:nth-child(2) {
  width: 100%;
}

.burger-btn.is-open .burger-line:nth-child(1) {
  top: 4.75px;
  transform: rotate(45deg);
}

.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.burger-btn.is-open .burger-line:nth-child(3) {
  top: 4.75px;
  transform: rotate(-45deg);
}

/* La barre année/mois suit le panneau de filtres : elle ne doit plus être sticky elle-même */
#sticky-shell #filter-bar {
  position: relative;
  top: auto;
  z-index: auto;
}

.burger-btn {
  box-sizing: border-box;
  position: relative;
  top: 0;
  right: 0;
  margin: 0;
  width: var(--ctl-h);
  height: var(--ctl-h);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 18px;
}

@media (min-width: 900px) {
  /* Desktop : barre déjà ouverte, largeur fixe — le focus ne change plus sa taille (1 seul clic) */
  .header-left {
    flex: 0 0 var(--search-w);
  }

  .album-search,
  .album-search:focus-within {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 899px) {
  /* Mobile : repliée sur « titre + loupe » ; le texte et la croix n'apparaissent qu'à l'ouverture */
  .album-search {
    width: auto;
    max-width: calc(100vw - var(--ctl-h) - 6px);
  }

  .album-search:focus-within {
    width: calc(100vw - 6px);
    max-width: calc(100vw - 6px);
  }

  .album-search:not(:focus-within) .site-search-field {
    gap: 0;
    padding: 0 12px;
  }

  .album-search:not(:focus-within) .site-search-input {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .album-search:not(:focus-within) .site-search-clear {
    display: none !important;
  }
}