/* ================================================================
   LOKADO — Châteauroux BIS / Refonte UI/UX
   Palette Halloween mature : orange chaud + violet profond + crème
   ================================================================ */

:root {
  /* Fond chaud crème plutôt que blanc pur — plus chaleureux Halloween */
  --bg:           #FFFAF3;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #FFFFFF;

  /* Couleurs signatures */
  --orange:       #EA580C;       /* orange profond, plus mûr que F59E0B */
  --orange-2:     #C2410C;       /* hover */
  --orange-soft:  #FFEDD5;       /* fond doux */
  --orange-bd:    #FED7AA;

  --purple:       #6B21A8;       /* violet profond Halloween */
  --purple-2:     #581C87;
  --purple-soft:  #F3E8FF;
  --purple-bd:    #D8B4FE;

  --green:        #047857;
  --green-soft:   #D1FAE5;
  --red-soft:     #FEE2E2;
  --red-text:     #B91C1C;

  /* Textes — quasi-noir chaud, pas pur noir */
  --text:         #1C1917;       /* stone-900 */
  --text-2:       #44403C;       /* stone-700 */
  --text-3:       #78716C;       /* stone-500 */
  --text-4:       #A8A29E;       /* stone-400 */

  --border:       #F5E6D0;       /* bordures chaudes, plus douces */
  --border-2:     #E7D7C0;
  --shadow-sm:    0 1px 3px rgba(60, 30, 0, 0.05);
  --shadow-md:    0 4px 12px rgba(60, 30, 0, 0.08);
  --shadow-lg:    0 8px 24px rgba(60, 30, 0, 0.12);

  --nav-h:        62px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;

  --easing:       cubic-bezier(0.16, 1, 0.3, 1);

  /* === HAUTEUR D'ÉCRAN FIABLE — fix Safari iOS === */
  /* Cascade de fallback :
     1. --app-height-js (calculé en JS, marche sur tout iOS) - utilisé en priorité par #app et body
     2. 100dvh (Safari iOS 15.4+, Chrome 108+, Firefox 101+)
     3. 100vh (legacy, problématique sur Safari iOS mais fonctionnel partout)
  */
  --app-height: 100vh;
  --app-height: 100dvh;

  /* === SAFE AREA iPhone (encoche / barre Home) === */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height-js, 100dvh);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  /* Empêche le bounce iOS qui peut faire apparaître la barre d'outils */
  position: fixed;
  width: 100%;
  overflow: hidden;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; margin: 0; color: var(--text);
  letter-spacing: -0.01em;
}

#app {
  /* Hauteur fiable via flexbox vertical : main (flex:1) + bottom-nav (fixe) */
  height: 100vh;
  height: 100dvh;
  height: var(--app-height-js, 100dvh);
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

#main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Espace en bas pour la nav fixe + safe-area iPhone */
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

/* ===== ANIMATIONS UTILITAIRES ===== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes pinDrop {
  0%   { transform: translateY(-12px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(2px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== HEADER ÉCRANS ===== */

.screen-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.screen-header .back {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 12px;
  font-size: 22px; color: var(--text);
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--easing);
}
.screen-header .back:active { transform: scale(0.92); }
.screen-header .title { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }

/* ===== HOME ===== */

.screen { padding: 20px 18px 24px; }

.home-logo {
  text-align: center; padding: 22px 0 16px;
  animation: fadeInUp .5s var(--easing);
}
.home-logo svg { height: 50px; }

/* HERO — bloc principal qui combine event + stat + CTA */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1C1917 0%, #44403C 50%, #6B21A8 100%);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  color: #fff;
  margin-bottom: 14px;
  overflow: hidden;
  animation: fadeInUp .6s var(--easing) .1s both;
  box-shadow: var(--shadow-lg);
}

/* Trame visuelle Halloween en fond */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(234, 88, 12, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(234, 88, 12, 0.1) 0%, transparent 35%);
  pointer-events: none;
}
.hero-decor {
  position: absolute;
  font-size: 24px;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.hero-decor.d1 { top: 16px; right: 18px; transform: rotate(15deg); }
.hero-decor.d2 { bottom: 16px; left: 16px; transform: rotate(-20deg); font-size: 20px; }
.hero-decor.d3 { top: 50%; right: 8px; opacity: 0.08; font-size: 32px; }

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
}

.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.hero-stat .num {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; line-height: 22px; text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.hero-cta {
  display: block; width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .2s var(--easing);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}
.hero-cta:hover { background: var(--orange-2); transform: translateY(-1px); }
.hero-cta:active { transform: scale(0.97); }

/* ===== PROGRESS CARD (en cours) ===== */

.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  animation: fadeInUp .5s var(--easing) .15s both;
  box-shadow: var(--shadow-sm);
}
.progress-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.progress-count {
  font-size: 28px; font-weight: 700; color: var(--orange);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1;
}
.progress-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}
.progress-bar {
  height: 10px; background: var(--orange-soft);
  border-radius: 6px; overflow: hidden; margin-bottom: 14px;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #F97316 100%);
  border-radius: 6px;
  transition: width .6s var(--easing);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ===== SCREEN VICTOIRE FINAL ===== */

.victory-screen {
  text-align: center;
  padding: 32px 22px 24px;
  background: linear-gradient(135deg, #6B21A8 0%, #1C1917 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp .6s var(--easing);
  box-shadow: var(--shadow-lg);
}
.victory-screen::before {
  content: '🎉';
  position: absolute; font-size: 200px;
  opacity: 0.05;
  top: -40px; right: -40px;
  pointer-events: none;
}
.victory-emoji {
  font-size: 64px; line-height: 1; margin-bottom: 14px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.victory-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.victory-sub {
  font-size: 13px; color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}
.victory-tirage {
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}
.victory-tirage strong { color: #FED7AA; }

.victory-actions { display: flex; flex-direction: column; gap: 10px; }
.victory-actions .btn-share {
  background: var(--orange); color: #fff;
  border: none; padding: 14px;
  border-radius: var(--radius); font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.victory-actions .btn-share:hover { background: var(--orange-2); }
.victory-actions .btn-reset {
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2); padding: 11px;
  border-radius: var(--radius); font-family: inherit;
  font-size: 12px; cursor: pointer;
}

/* ===== INSTAGRAM CARD (home) ===== */

.insta-card {
  background: linear-gradient(135deg, #FFEDD5 0%, #F3E8FF 100%);
  border: 1px solid var(--orange-bd);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-top: 18px;
  text-align: center;
  animation: fadeInUp .5s var(--easing) .25s both;
  box-shadow: var(--shadow-sm);
}
.insta-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.insta-icon { font-size: 22px; line-height: 1; }
.insta-title {
  font-size: 15px; font-weight: 700;
  color: var(--purple);
  font-family: 'Bricolage Grotesque', sans-serif;
}
.insta-tags {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-bottom: 12px;
}
.insta-tag {
  display: inline-block;
  padding: 6px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  background: #fff;
  border: 1px solid var(--purple-bd);
}
.insta-tag.hashtag { color: var(--orange-2); }
.insta-tag.mention { color: var(--purple); }
.insta-hint {
  font-size: 11px; color: var(--text-3);
  margin-bottom: 14px;
}
.insta-concours {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border: 1px solid var(--orange-bd);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  text-align: left;
}
.insta-concours-icon {
  font-size: 20px; line-height: 1.2; flex-shrink: 0;
}
.insta-concours-text {
  font-size: 11px; color: var(--text-2);
  line-height: 1.5;
}
.btn-insta {
  display: block; width: 100%;
  background: #fff; color: var(--purple);
  border: 1px solid var(--purple-bd);
  padding: 12px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: all .15s var(--easing);
}
.btn-insta:active { transform: scale(0.97); }

.footer-brand {
  text-align: center; padding: 22px 0 8px;
  font-size: 10px; color: var(--text-4);
  letter-spacing: 0.5px;
}

/* ===== SEARCH ===== */

.search-wrap { padding: 14px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px;
}
.search-bar .icon { font-size: 14px; color: var(--text-4); }
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 14px; color: var(--text);
}
.search-bar input::placeholder { color: var(--text-4); }

/* ===== FILTER CHIPS ===== */

.chips {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scroll-padding: 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: var(--bg-card); color: var(--text-2);
  border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: all .15s var(--easing);
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  font-weight: 600;
}

/* ===== SHOP LIST ===== */

.shops-list { padding: 14px 16px; }
.shop-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 10px; cursor: pointer;
  transition: all .15s var(--easing);
  text-decoration: none; color: var(--text);
  position: relative;
  box-shadow: var(--shadow-sm);
  min-height: 72px;
}
.shop-card:active { transform: scale(0.98); }

.shop-card.visited {
  background: #FAFFFC;
  border-color: var(--green-soft);
}
.shop-card.visited .name { color: var(--green); }

.shop-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--orange-soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; position: relative;
}
.shop-card.visited .shop-icon { background: var(--green-soft); }

.visited-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--green); color: #fff;
  border-radius: 50%; border: 2px solid #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.shop-info { flex: 1; min-width: 0; }
.shop-info .name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.shop-info .meta { font-size: 11px; color: var(--text-3); }
.shop-card .chevron {
  color: var(--text-4); font-size: 18px;
  transition: transform .15s var(--easing);
}
.shop-card:active .chevron { transform: translateX(2px); }

.empty-state {
  text-align: center; color: var(--text-3);
  font-size: 13px; padding: 32px 16px;
}

/* ===== SHOP DETAIL ===== */

.shop-detail { padding: 22px 18px 24px; animation: fadeInUp .4s var(--easing); }

.shop-detail-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.shop-detail-head .icon-big {
  width: 72px; height: 72px;
  background: var(--orange-soft);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative;
  flex-shrink: 0;
}
.visited-badge-lg {
  position: absolute; top: -6px; right: -6px;
  width: 28px; height: 28px;
  background: var(--green); color: #fff;
  border-radius: 50%; border: 3px solid #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.shop-detail-head .name {
  font-size: 18px; font-weight: 700; color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.shop-detail-head .type { font-size: 12px; color: var(--text-3); }

/* QUIZZ block — Halloween thématique */
.quizz-block {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 2px solid var(--orange-bd);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.quizz-block::before {
  content: '🎃';
  position: absolute; font-size: 80px;
  opacity: 0.06;
  top: -10px; right: -10px;
  transform: rotate(15deg);
  pointer-events: none;
}
.quizz-block .label {
  font-size: 10px;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.quizz-block .text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  position: relative; z-index: 1;
}

/* Infos */
.info-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 13px; color: var(--text);
  padding: 0 4px;
}
.info-row .ico { width: 18px; flex-shrink: 0; color: var(--text-4); font-size: 14px; margin-top: 1px; }
.info-row .sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.info-row a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--text-4); }

.detail-actions { margin-top: 24px; }
.detail-actions > * { margin-bottom: 10px; }

/* Bouton J'y suis passé */
.btn-visit {
  display: block; width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: all .15s var(--easing);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}
.btn-visit:hover { background: var(--orange-2); }
.btn-visit:active { transform: scale(0.97); }

.btn-visited {
  display: block; width: 100%;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #6EE7B7;
  padding: 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: center;
}
.btn-visited .check {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; margin-right: 6px;
  vertical-align: middle;
}

.btn-secondary {
  display: block; width: 100%;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-2); padding: 13px;
  border-radius: var(--radius); font-family: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: all .15s var(--easing);
}
.btn-secondary:active { transform: scale(0.98); }

/* CTA contextuel "Lieu suivant" après cochage */
.next-suggest {
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
  border: 1px solid var(--orange-bd);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all .15s var(--easing);
}
.next-suggest:active { transform: scale(0.98); }
.next-suggest-icon {
  font-size: 24px; line-height: 1; flex-shrink: 0;
}
.next-suggest-text { flex: 1; }
.next-suggest-label {
  font-size: 10px; color: var(--orange-2);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  margin-bottom: 2px;
}
.next-suggest-name { font-size: 13px; font-weight: 600; color: var(--text); }
.next-suggest-arrow { color: var(--orange); font-size: 18px; }

/* ===== MAP ===== */

/* Conteneur écran Map : prend toute la hauteur dispo de #main */
/* Structure : #main (flex:1) > screen container > .search-wrap (auto) + .map-wrap (flex:1) */
#main > div:has(.map-wrap) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-wrap {
  flex: 1;
  min-height: 300px; /* fallback pour très petits écrans */
  position: relative;
  background: var(--bg);
}

/* Fallback pour navigateurs qui ne supportent pas :has() (Firefox <121) */
@supports not selector(:has(*)) {
  .map-wrap {
    height: calc(var(--app-height) - var(--nav-h) - var(--safe-bottom) - 72px);
    min-height: 300px;
  }
}
#map { width: 100%; height: 100%; }

/* Skeleton loader pendant chargement Leaflet */
.map-loader {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #F5E6D0 0%, #FFFAF3 50%, #F5E6D0 100%);
  background-size: 200% 200%;
  animation: shimmerBg 1.5s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px;
  z-index: 5;
}
@keyframes shimmerBg {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.leaflet-container { background: #F5E6D0; font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; color: var(--text); }
.leaflet-popup-tip { box-shadow: var(--shadow-sm); }

.lokado-pin {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: pinDrop .5s var(--easing) backwards;
}
.lokado-pin.visited { background: var(--green); }
.lokado-pin span { transform: rotate(45deg); font-size: 16px; line-height: 1; }

.pin-check {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #fff; color: var(--green);
  border-radius: 50%; border: 2px solid var(--green);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== BOTTOM NAV ===== */

#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 250, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  max-width: 520px; margin: 0 auto;
  z-index: 100;
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: transparent; border: none; cursor: pointer; padding: 6px 0;
  color: var(--text-3); font-family: inherit;
  transition: color .15s var(--easing);
  min-height: 44px;
}
.tab:active { transform: scale(0.95); }
.tab.active { color: var(--orange); }
.tab.active .tab-label { font-weight: 700; }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-label { font-size: 10px; font-weight: 500; }

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  max-width: 360px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s var(--easing);
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-icon { font-size: 40px; line-height: 1; margin-bottom: 12px; text-align: center; }
.modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 18px;
  text-align: center; margin-bottom: 8px;
}
.modal-text {
  font-size: 13px; color: var(--text-2);
  text-align: center; line-height: 1.55;
  margin-bottom: 22px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions button {
  flex: 1; padding: 13px; border-radius: var(--radius);
  font-family: inherit; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
}
.modal-btn-cancel {
  background: var(--bg); color: var(--text-2);
  border: 1px solid var(--border-2) !important;
}
.modal-btn-confirm {
  background: var(--orange); color: #fff;
}

/* ===== CELEBRATION (transition courte) ===== */

.celebration-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  animation: fadeIn .2s ease;
}
.celebration-content {
  text-align: center;
  animation: popIn .5s cubic-bezier(.17,.67,.32,1.43);
}
.celebration-emoji {
  font-size: 90px; line-height: 1; margin-bottom: 14px;
}
.celebration-text {
  color: #fff; font-size: 24px; font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
}
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== INSTA PRIZE BLOCK (home, bloc unifié) ===== */

.insta-prize {
  background: #fff;
  border: 1px solid var(--orange-bd);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  text-align: left;
}
.insta-prize-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.insta-prize-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.insta-prize-titles { flex: 1; min-width: 0; }
.insta-prize-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange-2);
  line-height: 1.2;
}
.insta-prize-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.insta-prize-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
}
.insta-prize-text .hashtag-inline { color: var(--orange-2); font-weight: 600; }
.insta-prize-text .mention-inline { color: var(--purple); font-weight: 600; }

/* ===== VICTORY PRIZE BLOCK (écran victoire) ===== */

.victory-prize {
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 22px;
  text-align: left;
}
.victory-prize-header {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #FED7AA;
  margin-bottom: 8px;
}
.victory-prize-icon { font-size: 22px; line-height: 1; }
.victory-prize-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}
.victory-prize-text strong { color: #FED7AA; }

/* ===== VICTORY ACTIONS — boutons ===== */

.btn-share-insta {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .15s var(--easing);
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.35);
}
.btn-share-insta:hover { transform: translateY(-1px); }
.btn-share-insta:active { transform: scale(0.97); }

.btn-share-other {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all .15s var(--easing);
}
.btn-share-other:hover { background: rgba(255, 255, 255, 0.15); }
.btn-share-other:active { transform: scale(0.97); }

/* ===== MAP ZOOM CONTROLS ===== */

.map-zoom-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 400;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-zoom-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  width: 44px; height: 44px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s var(--easing);
  line-height: 1;
}
.map-zoom-btn:hover {
  background: #fff;
  color: var(--orange);
}
.map-zoom-btn:active { transform: scale(0.92); }
