:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface2: #222;
    --border: rgba(255,255,255,0.08);
    --text: #f0ede8;
    --muted: rgba(240,237,232,0.45);
    --accent: #e8c97a;
    --radius: 10px;
    --font: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  }
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; }
@font-face {
    font-family: 'Work';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://crea-site.com/font/Work-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Work';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://crea-site.com/font/Work-Bold.woff2') format('woff2');
}

  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: 49px;
}
  .header-like h1 {
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
  }
  #stats-bar {
    display: flex;
    gap: 18px;
    margin-left: auto;
    flex-wrap: wrap;
  }
  .stat {
    font-family: var(--font);
    font-size: 11px;
    color: var(--muted);
  }
  .stat b { color: var(--text); font-weight: normal; }

  #main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 420px 1fr;
    flex: 1;
    min-height: 0;
  }

  #map-wrap {
    position: relative;
    border-bottom: 1px solid var(--border);
  }

  #map {
    width: 100%;
    height: 100%;
  }

  #map-overlay {
    position: absolute;
    top: 20px;
    right: 64px;
    z-index: 999;
    background: rgba(15,15,15,0.82);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-family: var(--font);
    font-size: 11px;
    color: var(--muted);
    pointer-events: none;
  }
  #map-overlay b { color: var(--accent); font-weight: normal; }

  #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; }
  #grid-count {
    font-family: var(--font);
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
  }
  #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;
  }
  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s;
    opacity: 0;
  }
  .thumb img.loaded { opacity: 1; }
  .thumb:hover img { transform: scale(1.06); }
  .thumb-geo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.8;
  }

body.lb-open {
  overflow: hidden;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
}
#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;
}


/* ══ BASE LIGHTBOX ══════════════════════════════════════════ */
body.lb-open { overflow: hidden; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
}
#lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox > [data-premium] {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}


#lb-meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-align: center;
  pointer-events: none;
}

.lb-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-cat {
font-weight:700;
}

.lb-date {
  white-space: nowrap;
}

.lb-name {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.7);
}

/* ── Bulles ── */
#lb-bubbles {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 6px;
  padding: 0 0 10px;
  max-height: 38dvh;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 32%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 32%);
    pointer-events: auto;  /* 🔥 Ajoute ça : permet wheel/touch sur le conteneur */
      tabindex: 0;  /* En HTML : <div id="lb-bubbles" tabindex="0"> */
  outline: none; /* Cache le focus visuel */
}

.lb-bubble {
  pointer-events: auto;
  max-width: 42%;
  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 (icône + label) ── */
#lb-comment-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  pointer-events: auto;
}

#lb-comment-count-tag {
  display: none;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
      width: 22px;
  background: #c9a84c;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .04em;
}
#lb-comment-count-tag.visible { display: block; }

#lb-comment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 40px;
  color: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  transition: color .2s, background .2s;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
#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; }

/* ── Formulaire ── */
#lb-comment-form-wrap {
  display: none;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px 16px 0 0;
  animation: form-slide-up .25s ease both;
  pointer-events: auto;
}
#lb-comment-form-wrap.open {
  display: flex;
}
@keyframes form-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

#lb-comment-form-wrap input[type="text"],
#lb-comment-form-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  padding: 9px 12px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
}
#lb-comment-form-wrap textarea {
  resize: none;
  height: 68px;
  line-height: 1.45;
}
#lb-comment-form-wrap input[type="text"]:focus,
#lb-comment-form-wrap textarea:focus {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.09);
}
#lb-comment-form-wrap input::placeholder,
#lb-comment-form-wrap textarea::placeholder { color: rgba(255,255,255,.22); }

#lb-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

#comment-cancel {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
#comment-cancel:hover { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.28); }

#comment-send {
  padding: 7px 20px;
  background: #c9a84c;
  border: none;
  border-radius: 20px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
#comment-send:hover:not(:disabled) { background: #e0c070; }
#comment-send:active:not(:disabled) { transform: scale(.97); }
#comment-send:disabled { opacity: .5; cursor: not-allowed; }

/* ══ NAV ════════════════════════════════════════════════════ */
#lb-close {
  position: fixed;
  top: 14px; right: 16px;
  color: rgba(255,255,255,.6);
  font-size: 22px;
  cursor: pointer;
  background: rgba(0,0,0,.4);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  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%);
}
#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; }

.lb-lvl2 {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-left: 6px;
}

/* ══ PREMIUM LOCK ═══════════════════════════════════════════ */
[data-premium] { position: relative; transition: filter .5s ease, opacity .5s ease; }
.lab-premium-locked { filter: blur(3.9px); pointer-events: none; user-select: none; overflow: hidden; }
.lab-premium-reveal { animation: lp-reveal .8s ease both; }
@keyframes lp-reveal {
  from { filter: blur(4px); opacity: 0; transform: translateY(10px); }
  to   { filter: blur(0);   opacity: 1; transform: translateY(0); }
}
.lab-premium-lock {
  position: absolute; z-index: 200;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #0d0f1c;
  border: 1px solid rgba(255,255,255,.05);
  border-top: 1px solid rgba(201,168,76,.18);
  border-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 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, #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: #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: #ccc8bf; letter-spacing: -.01em; }
.lp-sub { margin: 0 0 22px; font-size: 14.5px; line-height: 1.65; color: #e8d5a0; max-width: 480px; }
.lp-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.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: 4px; color: #efefef; font-size: 16px; font-family: var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.lp-input::placeholder { color: #5e5a55; }
.lp-input:focus { border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,.18); }
input#lp-flostarica-bonus-email::placeholder { color: #ccc8bf; }
.lp-btn { flex-shrink: 0; height: 44px; padding: 0 22px; background: #c9a84c; border: none; border-radius: 4px; color: #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: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: #5e5a55; transition: color .2s; }
.lp-msg--success { color: #7abf9e; }
.lp-msg--error   { color: #d4849e; }
.lp-privacy { margin: 10px 0 0; line-height: 1.5; color: wheat; opacity: .69; font-size: .82em; }

/* ══ DIVERS ════════════════════════════════════════════════ */
#loading { inset: 0; background: var(--bg); 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; }
#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; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 520px) {
  .lp-inner { padding: 24px 20px 20px; }
  .lp-form-row { flex-direction: column; }
  .lp-input, .lp-btn { width: 100%; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  #lb-comment-icon { animation: none; }
  [data-premium], .lab-premium-lock, .lp-btn, .lp-input,
  .lab-premium-reveal, .lp-removing, #lb-comment-form-wrap { transition: none; animation: none; }
}

#lb-bottom {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 15px auto 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 12px;
  box-sizing: border-box;
  position: relative;
}

#lb-bottom::before {
  content: '';
  position: absolute;
  top: -48px;
  left: 0; right: 0;
  height: 48px;
  background: linear-gradient(transparent, #000);
  pointer-events: none;
  z-index: 1;
}

#lb-meta {
    max-width: var(--img-w, 100%);
    padding: 4px 16px 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    text-align: center;
    line-height: 1.8;
    pointer-events: none;
    position: absolute;
    top: 6px;
    background: rgba(0, 0, 0, .33);
    border-radius: 64px;
}

.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;
}
div#lb-comment-form-wrap {
    max-width: 630px;
}
.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,input#comment-name::placeholder,textarea#comment-content::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: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin-top: 3px;
}#lb-comment-form-wrap input.input-error,
#lb-comment-form-wrap textarea.input-error {
    border: 1.5px solid #e8c97a !important;
    box-shadow: 0 0 0 3px rgba(232, 201, 122, 0.18) !important;
}
#lb-comment-form-wrap .input-error::placeholder {
    color: rgba(232, 201, 122, 0.5);
}
#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%;
  margin-top: -90px; /* au lieu de transform */
}
#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; }

.lb-lvl2 {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-left: 6px;
}

  #loading {
    inset: 0;
    background: var(--bg);
    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; }

#lb-comments-section {
  width: 100%;
  max-width: 680px;
  margin-top: 20px;
  padding: 0 16px 30px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.lb-comment-form {
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}

.lb-comment-form input,
.lb-comment-form textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
}

.lb-comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.lb-comment-form button {
  font-size: 16px;
  padding: 12px 24px;
  background: #e8c97a;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.lb-comment-form button:hover {
  background: #f5d88a;
}
/* ── Corrections critiques ── */

/* 1. Le layer doit recevoir les clics (on désactive seulement sur les zones vides) */
#lb-comments-layer {
  position: absolute;
  bottom: 20px; /* Forcé à 20px du bas de l'écran/conteneur */
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* Très important : laisse passer les clics vers la photo */
  z-index: 20; /* S'assure que ça flotte bien au-dessus de la photo */
}
/* 2. Tous les enfants directs interactifs réactivent les clics */
#lb-comment-trigger,
#lb-comment-form-wrap,
#lb-bubbles .lb-bubble {
  pointer-events: auto;
}

#lb-inner {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

#lb-img {
  /* Dimensions fixes pour object-fit */
  width: 100%;
  height: 100%;
  
  /* Comportement parfait : fill le conteneur OU reste naturel si trop petit */
  object-fit: contain;
  
  /* Position centrée */
  object-position: center;
  
  display: block;
}

/* 5. Le trigger s'affiche en flex correctement */
#lb-comment-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  margin-bottom: 0;
}

/* 6. Le formulaire doit s'afficher au dessus du trigger quand ouvert */
#lb-comment-form-wrap {
  display: none;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  margin-bottom: 10px;
  pointer-events: auto;
}
#lb-comment-form-wrap.open {
  display: flex;
  animation: form-slide-up .25s ease both;
}
/* --- ZONE DE SCROLL DES BULLES --- */
#lb-bubbles {
  width: 100%;
  /* ~220px correspond à environ 3 bulles visibles (à ajuster selon la taille de ta police) */
  max-height: 220px; 
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  /* On ajoute un peu de padding en haut/bas pour laisser respirer le fondu */
  padding: 10px 8px 10px 0; 
  
  /* L'EFFET UX MAGIQUE : Fondu en haut et en bas pour indiquer le scroll */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);

  /* Scrollbar fine accessible */
  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;
}

/* --- LE BOUTON ET SON BADGE --- */
#lb-comment-btn {
  position: relative; /* CRUCIAL : Permet au badge absolute de s'accrocher au bouton */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 40px;
  color: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  transition: color .2s, background .2s;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);

}
#lb-comment-btn:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.11);
}
#lb-comment-count-tag {
  display: none; /* Toujours caché si 0 (la classe .visible gère l'affichage) */
  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,0.4);
  /* Évite que le clic sur le badge ne bloque le clic sur le bouton */
  pointer-events: none; 
}

#lb-comment-count-tag.visible {
  display: block;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
/* ── Section verrouillée ──────────────────────────────────── */

[data-premium] {
  position: relative;
  transition: filter .5s var(--lc-ease, ease), opacity .5s var(--lc-ease, ease);
}

.lab-premium-locked {
  filter: blur(3.9px);
  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); }
}

.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;
}

.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: var(--gold-light, #e0c070);
  box-shadow: 0 4px 18px rgba(201,168,76,.28);
  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;
}
@media (max-width: 1024px) {
    #main { margin-top: 46px;}
.header-like{min-height:0;}
        .header-h1{ display: none;}

}


@media (max-width: 968px) {
    #map-overlay {
    top: 15px;
    right: 54px;font-size: 9px;
  }

  span#overlay-text {
  font-size: 9px!important;
}


.logo-flostarica {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    position: absolute;
    left: 9px;
}
.album-title {
    font-size: 13px;
}

  .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;
  }
}

@media (max-width: 520px) {
  .lp-inner { padding: 24px 20px 20px; }
  .lp-form-row { flex-direction: column; }
  .lp-input, .lp-btn { width: 100%; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-premium], .lab-premium-lock, .lp-btn, .lp-input,
  .lab-premium-reveal, .lp-removing { transition: none; animation: none; }
}

@media (min-width: 969px) {
  .lb-comments-wrapper {
    max-width: var(--img-w, 64%) !important;
  }
}

/* pills mois */
.fb-month {
  flex-shrink: 0;
  padding: 4px 13px;
  height: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #aaa;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
  margin-right: 4px;
}
.fb-month:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ddd;
}
.fb-month.active {
  background: rgba(232, 201, 122, 0.18);
  border-color: rgba(232, 201, 122, 0.5);
  color: #e8c97a;
}
.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;
}

/* bouton reset cluster */
#reset-btn {
  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;
}
#reset-btn:hover {
  background: rgba(232, 201, 122, 0.2);
  border-color: rgba(232, 201, 122, 0.6);
}

/* bouton reset carte (Leaflet control) */
.leaflet-control-reset {
  background: rgba(14, 14, 14, 0.88) !important;
  border: 1px solid rgba(232, 201, 122, 0.35) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}
.leaflet-control-reset a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  color: #e8c97a !important;
  font-size: 26px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  transition: background 0.2s;
}
.leaflet-control-reset a:hover { background: rgba(14,14,14,0.88) !important; }

 .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; }

/* rangée du haut : cluster-hint + reset-btn */
#map-info-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  width: 100%;
  color: #888;
  flex-wrap: wrap;
}
#map-info-top #overlay-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
span#overlay-text {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
#map-info-top #reset-btn {
  margin-left: 0;
}

/* ── 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);
  z-index: 200;
}

#sticky-shell.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#sticky-placeholder {
  display: none;
}
#sticky-shell.fixed ~ #sticky-placeholder {
  display: block;
}

/* ── Date overlay ── */
#date-scroll-overlay {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  opacity: 1 !important;
}

.date-badge {
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;z-index: 9900;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════════════════
   VUE GRILLE
══════════════════════════════════════════════════════════ */
#grid.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 3px;
}
#grid.view-grid .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}
#grid.view-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

/* ══════════════════════════════════════════════════════════
   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;
}

/* ══════════════════════════════════════════════════════════
   ÉTAT CHARGEMENT (commun aux deux vues)
══════════════════════════════════════════════════════════ */
.thumb img {
  opacity: 0;
}
.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;
  /* Le triangle est légèrement décalé à droite pour l'optique */
  transform: translateX(1px);
}/* Vidéo dans la lightbox : même comportement que l'image */
#lb-video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

/* Sur mobile : pleine largeur */
@media (max-width: 600px) {
  #lb-video {
    max-height: 60vh;
    width: 100%;
  }
}
/* ══════════════════════════════════════════════════════════
   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 ═════════════════════════════════════════ */
#view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}
#view-toggle-btn:hover { color: rgba(255,255,255,0.9) !important; }
#view-toggle-btn svg   { display: block; }

/* ── 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: 6px 28px 6px 12px;
  font-family: inherit;
  font-size: 14px;
  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 {
  background-color: #2a2a2a;
  color: #fff;
}

.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;
}

/* Label sur la vignette */
.thumb-lvl2 {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #e8c97a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.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;
}
/* Badge dans la lightbox */
.lb-lvl2 {
  color: #e8c97a;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  opacity: 0.85;
}

#share-panel {
  position: fixed;
  bottom: 20px;
  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: 12px;
  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: 200px;
    padding: 4px 6px;
    border-radius: 13px;
    margin-left: 2.6px;
}

#share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  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); }
#main {
    position: relative;
    min-height: 100vh;
}

.map-header {
    position: absolute;
    top: 20px;
    left: 30px;
    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);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-logo:hover {
    background: rgba(0, 0, 0, .64);
    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 {
    font-size: 16px;
    font-weight: 700;
    color: black;
    letter-spacing: 0.5px;
    margin-left: 33px;
}
.map-logo:hover .album-title {
    color: white !important; /* Blanc au hover */
}

.bio-wrap { position: relative; }
.bio-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 999;
  width: 280px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  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); }
.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: #555;
  transition: color .15s, border-color .15s; text-decoration: none;
}
.bio-socials a:hover { color: #111; border-color: rgba(0,0,0,.3); }
.bio-socials svg { width: 15px; height: 15px; fill: currentColor; }
/* Responsive */
@media (max-width: 768px) {
    .map-header {
        top: 15px;
        left: 15px;
    }
    
    .map-logo {
        padding: 10px 16px;
        gap: 10px;
        border-radius: 16px;
    }
    
    .logo-flostarica {
        height: 30px;
    }
    
    .album-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .map-header {
        top: 12px;
        left: 12px;
    }
    
    .map-logo {
        padding: 8px 12px;
        gap: 8px;
    }
}