/* =========================================================
   TRACEO — BENTO DESIGN
   Charte : Bleu marine #1B2B5E · Bleu vif #3B82F6 · Or #F5C842
   Typo : Space Grotesk (titres) + Nunito (corps)
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Palette de marque Traceo */
  --navy: #1B2B5E;        /* couleur principale */
  --navy-deep: #142146;   /* navy assombri pour dégradés */
  --blue: #3B82F6;        /* couleur secondaire */
  --gold: #F5C842;        /* couleur accent */
  --gold-deep: #E0A82E;   /* or assombri pour dégradés */

  /* Polices */
  --font-display: 'Space Grotesk', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Aliases d'action mappés sur la charte (couleurs interactives) */
  --ios-blue: #3B82F6;    /* bleu vif → liens, états actifs, actions secondaires */
  --ios-green: #34C759;   /* statut succès (retrouvé) */
  --ios-indigo: #1B2B5E;  /* navy → fin de dégradés primaires */
  --ios-orange: #F5C842;  /* or → accent "o", surbrillances */
  --ios-pink: #FF2D55;
  --ios-purple: #AF52DE;
  --ios-red: #FF3B30;     /* statut danger */
  --ios-teal: #5AC8FA;
  --ios-yellow: #F5C842;  /* or */

  /* Apple neutral palette */
  --bg-page: #f5f5f7;
  --bg-page-grad-2: #ebebee;
  --bg-card: #ffffff;
  --bg-input: #f2f2f7;
  --bg-translucent: rgba(255, 255, 255, 0.72);

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  --border-soft: rgba(0, 0, 0, 0.06);
  --border-input: rgba(0, 0, 0, 0.08);

  /* Shadows Apple */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(0, 0, 0, 0.10);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.08), 0 20px 50px rgba(0, 0, 0, 0.10);

  /* Layout */
  --radius-card: 22px;
  --radius-control: 14px;
  --radius-pill: 999px;
  --nav-h: 76px;
  --app-max: 880px;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(27, 43, 94, 0.07), transparent 60%),
    radial-gradient(1000px 500px at 100% 30%, rgba(59, 130, 246, 0.06), transparent 60%),
    radial-gradient(900px 400px at 50% 100%, rgba(245, 200, 66, 0.06), transparent 60%),
    linear-gradient(180deg, #f5f5f7 0%, #ebebee 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  letter-spacing: 0;
}

/* Titres en Space Grotesk */
h1, h2, h3, h4,
.brand-name, .auth-title, .section-title, .block-title,
.bento-title, .bento-stat-value, .shop-hero-title, .qr-card h3 {
  font-family: var(--font-display);
}

body {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body { padding: 0; }
}

/* ---------- APP CONTAINER ---------- */
.phone-shell {
  width: 100%;
  max-width: var(--app-max);
  min-height: 100vh;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .phone-shell {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* ---------- HEADER ---------- */
.app-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 16px 22px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid var(--border-soft);
}

.header-inner { display: flex; flex-direction: column; gap: 14px; }

.header-top { display: flex; justify-content: space-between; align-items: center; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-primary);
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.brand-o { color: var(--gold); }

.header-actions { display: flex; gap: 8px; align-items: center; }

.header-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.header-icon-btn:hover { background: rgba(0, 0, 0, 0.08); }
.header-icon-btn:active { transform: scale(0.94); }
.header-icon-btn i { width: 18px; height: 18px; }

.header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ios-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Greeting */
.header-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.header-greeting-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 2px;
  font-weight: 500;
}

.header-greeting-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.8px;
  line-height: 1.05;
}

.header-greeting-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.header-greeting-icon i { width: 22px; height: 22px; }

/* ---------- MAIN ---------- */
.app-main {
  flex: 1;
  padding: 20px 22px;
  padding-bottom: calc(var(--nav-h) + 28px);
}

@media (max-width: 600px) {
  .app-main { padding: 16px; padding-bottom: calc(var(--nav-h) + 20px); }
}

/* ---------- SECTIONS ---------- */
.section { display: block; animation: fadeIn 0.3s ease-out; }
.section[hidden] { display: none !important; }
[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  line-height: 1.45;
}

.section-block { margin-top: 28px; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.block-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

/* ---------- BENTO GRID (vibrant Apple Widget style) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 14px;
}

.bento-card {
  border-radius: var(--radius-card);
  padding: 22px;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  isolation: isolate;
}

/* Glossy highlight inside each card */
.bento-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* Bottom-right organic blob shape (signature visuelle) */
.bento-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.bento-card:hover::after {
  transform: scale(1.2) translate(-10px, -10px);
}

/* Card spans */
.bento-large {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-height: 130px;
}

.bento-row {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-height: 100px;
}

/* ----- Card colorful gradients (iOS widget style) ----- */
.bento-card-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.bento-card-success {
  background: linear-gradient(135deg, #5AA0FF 0%, var(--blue) 50%, #2563EB 100%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.bento-card-warning {
  background: linear-gradient(135deg, #4F6BB0 0%, #2E4584 60%, var(--navy) 100%);
  box-shadow: 0 12px 32px rgba(27, 43, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.bento-card-info {
  background: linear-gradient(135deg, #2A3F73 0%, var(--navy) 60%, var(--navy-deep) 100%);
  box-shadow: 0 12px 32px rgba(27, 43, 94, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bento-card-qr {
  background: linear-gradient(135deg, #FBE08A 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: 0 12px 32px rgba(245, 200, 66, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #3a2c05;
}

.bento-card-accent {
  background: linear-gradient(135deg, #FBE08A 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: 0 12px 32px rgba(245, 200, 66, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #3a2c05;
}

.bento-card-shop {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ----- Icon wrap : frosted glass on top of color ----- */
.bento-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.40);
  position: relative;
  z-index: 2;
}

.bento-icon-wrap i { width: 24px; height: 24px; stroke-width: 2.2; }

/* QR card : icon adjustments (text dark on yellow) */
.bento-card-qr .bento-icon-wrap,
.bento-card-accent .bento-icon-wrap {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.7);
}

.bento-card-accent .bento-arrow {
  background: rgba(58, 44, 5, 0.12);
  border-color: rgba(58, 44, 5, 0.18);
}

.bento-card-body { flex: 1; min-width: 0; position: relative; z-index: 2; }

.bento-stat-value {
  font-size: 42px;
  font-weight: 800;
  color: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bento-stat-label {
  font-size: 13px;
  color: inherit;
  opacity: 0.92;
  font-weight: 600;
  margin-top: 6px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.1px;
}

.bento-title {
  font-size: 20px;
  font-weight: 700;
  color: inherit;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
  position: relative;
  z-index: 2;
}

.bento-text {
  font-size: 13px;
  color: inherit;
  opacity: 0.90;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.bento-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  z-index: 2;
}

.bento-card:hover .bento-arrow {
  background: rgba(255, 255, 255, 0.40);
  transform: translate(3px, -3px);
}

.bento-arrow i { width: 16px; height: 16px; stroke-width: 2.4; }

/* ----- Varied sizes (real bento composition) ----- */
.bento-card-primary { grid-column: span 4; min-height: 160px; } /* large */
.bento-card-success { grid-column: span 2; min-height: 160px; }
.bento-card-warning { grid-column: span 3; min-height: 140px; }
.bento-card-info    { grid-column: span 3; min-height: 140px; }
.bento-card-qr      { grid-column: span 2; min-height: 140px; }
.bento-card-accent  { grid-column: span 4; min-height: 140px; flex-direction: row; align-items: center; }
.bento-card-shop    { grid-column: span 6; min-height: 130px; flex-direction: row; align-items: center; }

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bento-card { grid-column: span 1 !important; }
  .bento-card-primary,
  .bento-card-accent,
  .bento-card-shop { grid-column: span 2 !important; }
  .bento-stat-value { font-size: 34px; }
}

/* ---------- BOTTOM NAV (iOS tab bar) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  justify-items: center;
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  z-index: 1000;
  border-radius: 32px;
}

@media (max-width: 900px) {
  .bottom-nav { bottom: 10px; }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 12px;
  position: relative;
}

.nav-btn i { width: 22px; height: 22px; }
.nav-btn.active { color: var(--ios-blue); }
.nav-btn span { font-size: 10px; letter-spacing: 0.1px; }

.nav-scan {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #ffffff !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-top: -18px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.40);
  border: 3px solid #fff;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  transition: transform 0.2s;
  line-height: 0;
}

.nav-scan:hover { transform: scale(1.05); }
.nav-scan:active { transform: scale(0.96); }

.nav-scan i,
.nav-scan svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  margin: 0 !important;
  stroke-width: 2.4;
}

.nav-scan.active {
  background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.45);
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ios-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

/* ---------- GENERIC CARD ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 16px;
  border: 0.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.card-info { display: flex; gap: 14px; align-items: flex-start; }

.card-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-control);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.30);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: -0.2px;
}

.btn-primary:hover { box-shadow: 0 6px 22px rgba(59, 130, 246, 0.40); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: rgba(59, 130, 246, 0.10);
  color: var(--ios-blue);
  border: none;
  border-radius: var(--radius-control);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  letter-spacing: -0.2px;
}

.btn-secondary:hover { background: rgba(59, 130, 246, 0.16); }

.btn-danger {
  background: rgba(255, 59, 48, 0.10);
  color: var(--ios-red);
  border: none;
  border-radius: var(--radius-control);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-control);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}

.btn-ghost:hover { color: var(--ios-red); }
.btn-block { width: 100%; margin-top: 10px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-link {
  background: none;
  border: none;
  color: var(--ios-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: inherit;
}

.btn-link i { width: 14px; height: 14px; }

.btn-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-fab:hover { transform: scale(1.05); }
.btn-fab:active { transform: scale(0.96); }

.btn-icon-ghost {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- AUTH ---------- */
.section-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 22px;
  min-height: 100vh;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo-wrap {
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.auth-logo { width: 80px; height: 80px; border-radius: 24px; }

.auth-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.auth-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  text-align: center;
}

.auth-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 22px;
  width: 100%;
  border: 0.5px solid var(--border-soft);
  box-shadow: var(--shadow-elevated);
}

.auth-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
}

.field i { color: var(--text-tertiary); width: 18px; height: 18px; flex-shrink: 0; }

.field input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.field input::placeholder { color: var(--text-tertiary); }

.auth-demo-link {
  background: none;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.auth-rgpd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 14px;
  text-align: center;
}

.auth-rgpd i { width: 14px; height: 14px; color: var(--ios-green); }
.auth-bg-decor { display: none; }

/* ---------- FORM ---------- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.field-block { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-block input,
.field-block select,
.field-block textarea {
  background: var(--bg-input);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.2s;
}

.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

.field-block textarea { resize: vertical; min-height: 80px; }

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin: 0 -4px 14px;
  scrollbar-width: none;
}

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

.filter-chip {
  background: var(--bg-input);
  border: none;
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s;
}

.filter-chip i { width: 14px; height: 14px; }

.filter-chip.active {
  background: var(--text-primary);
  color: #fff;
}

/* ---------- BACK BUTTON ---------- */
.back-btn {
  background: none;
  border: none;
  color: var(--ios-blue);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  margin-bottom: 14px;
  font-family: inherit;
}

.back-btn i { width: 18px; height: 18px; }

/* ---------- PHOTO PICKER ---------- */
.photo-picker { display: block; cursor: pointer; position: relative; }
.photo-picker input { display: none; }

.photo-preview {
  background: var(--bg-input);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 36px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.photo-preview:hover { border-color: var(--ios-blue); color: var(--ios-blue); }
.photo-preview i { width: 32px; height: 32px; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.empty-icon i { width: 32px; height: 32px; }

.empty-state h3 {
  font-size: 19px;
  color: var(--text-primary);
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.empty-state p { font-size: 14px; margin: 0 0 18px; }

/* ---------- OBJECT LIST ---------- */
.object-list { display: flex; flex-direction: column; gap: 10px; }
.object-list.compact { gap: 8px; }

.object-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px;
  border: 0.5px solid var(--border-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.object-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 22px rgba(0, 0, 0, 0.07);
}

.object-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f0f3 0%, #e5e5ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text-secondary);
}

.object-thumb img { width: 100%; height: 100%; object-fit: cover; }
.object-thumb i { width: 24px; height: 24px; }

.object-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.object-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.object-meta i { width: 13px; height: 13px; flex-shrink: 0; }

.object-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.object-status.status-safe {
  background: rgba(52, 199, 89, 0.12);
  color: var(--ios-green);
}
.object-status.status-found_in_transit {
  background: rgba(255, 149, 0, 0.14);
  color: var(--ios-orange);
}
.object-status.status-at_relay {
  background: rgba(59, 130, 246, 0.12);
  color: var(--ios-blue);
}
.object-status.status-recovered {
  background: rgba(175, 82, 222, 0.14);
  color: var(--ios-purple);
}
.object-status.status-lost {
  background: rgba(255, 59, 48, 0.12);
  color: var(--ios-red);
}

/* ---------- MESSAGE LIST ---------- */
.message-list { display: flex; flex-direction: column; gap: 10px; }

.message-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px;
  border: 0.5px solid var(--border-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.message-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 22px rgba(0, 0, 0, 0.07);
}

.message-card.unread {
  border-left: 3px solid var(--ios-blue);
  padding-left: 14px;
}

.message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.message-object {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.message-object i {
  width: 16px;
  height: 16px;
  color: var(--ios-blue);
  flex-shrink: 0;
}

.message-time {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.message-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 10px;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.message-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.message-meta i { width: 12px; height: 12px; }

.badge-new {
  background: linear-gradient(135deg, #FF2D55 0%, #FF6B9D 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.30);
}

.badge-new i { color: #fff; }

/* ---------- NOTIF CARDS (drawer) ---------- */
.bento-notif-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 8px;
  border: 0.5px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.15s;
}

.bento-notif-card:hover { transform: translateY(-1px); }

.bento-notif-card.unread {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.18);
}

.bento-notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.bento-notif-icon.green { background: linear-gradient(135deg, #34C759 0%, #009E60 100%); box-shadow: 0 4px 12px rgba(52, 199, 89, 0.25); }
.bento-notif-icon.orange { background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%); box-shadow: 0 4px 12px rgba(255, 149, 0, 0.25); }
.bento-notif-icon.purple { background: linear-gradient(135deg, #AF52DE 0%, #6A1B9A 100%); box-shadow: 0 4px 12px rgba(175, 82, 222, 0.25); }
.bento-notif-icon.red { background: linear-gradient(135deg, #FF3B30 0%, #C2185B 100%); box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25); }

.bento-notif-icon i { width: 18px; height: 18px; }

.bento-notif-body { flex: 1; min-width: 0; }

.bento-notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
  letter-spacing: -0.2px;
}

.bento-notif-time {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.bento-empty, .bento-empty-small {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
}

.bento-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.20);
}

.bento-empty-icon i { width: 26px; height: 26px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 22px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(20px);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  max-width: 90%;
}

.toast-icon { width: 16px; height: 16px; color: #fff; }

/* ---------- DEMO TOOLS (top-right floating pill) ---------- */
.demo-tools {
  position: fixed;
  top: 18px;
  right: 18px;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-pill);
  padding: 5px 6px 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.20);
  z-index: 9000;
  font-family: inherit;
}

@media (max-width: 900px) {
  .demo-tools {
    top: 10px;
    right: 10px;
    padding: 4px 4px 4px 10px;
    gap: 6px;
  }
}

.demo-badge {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF2D55 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.40);
}

.mode-switch {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.mode-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.mode-btn i { width: 13px; height: 13px; }

.mode-btn:hover { color: #fff; }

.mode-btn.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}

.demo-reset {
  background: rgba(255, 255, 255, 0.10);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.demo-reset:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  transform: rotate(-90deg);
}

.demo-reset i { width: 13px; height: 13px; }

/* ---------- NOTIF DRAWER ---------- */
.notif-drawer { position: fixed; inset: 0; z-index: 5000; }

.notif-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.notif-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  border-left: 0.5px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.notif-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--border-soft);
}

.notif-drawer-head h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.notif-drawer-actions { display: flex; gap: 6px; align-items: center; }
.notif-drawer-body { flex: 1; overflow-y: auto; padding: 14px; }

/* ---------- VERSION TAG ---------- */
.version-tag {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: 100%;
}

.version-tag i { width: 12px; height: 12px; }

/* ---------- SCANNER ---------- */
.section-scanner { text-align: center; }

.scanner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 18px auto;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.scanner-wrap video { width: 100%; height: 100%; object-fit: cover; }

.scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-frame { width: 70%; aspect-ratio: 1; position: relative; }

.scanner-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ios-green);
}

.scanner-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.scanner-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.scanner-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.scanner-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

/* ---------- PARTNERS MAP ---------- */
.partners-map {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin: 14px 0;
  box-shadow: var(--shadow-card);
}

.partners-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-item .dot { width: 10px; height: 10px; border-radius: 50%; }

.dot-tabac { background: #F5C842; }
.dot-poste { background: #3B82F6; }
.dot-mairie { background: #1B2B5E; }
.dot-fnac { background: #60A5FA; }

/* ---------- SHOP ---------- */
.shop-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.shop-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.shop-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.shop-hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  position: relative;
  letter-spacing: -0.6px;
}

.shop-hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
  position: relative;
  line-height: 1.5;
}

.shop-hero-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.shop-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.shop-badge i { width: 12px; height: 12px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.shop-info { display: flex; gap: 14px; align-items: flex-start; }

/* ---------- PROFILE QR ---------- */
.profile-qr-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-qr-sub { font-size: 13px; color: var(--text-secondary); margin: 4px 0 0; }
.profile-qr-list { display: flex; flex-direction: column; gap: 8px; }

.profile-qr-empty {
  text-align: center;
  padding: 28px 14px;
  color: var(--text-secondary);
}

.profile-qr-empty i { width: 40px; height: 40px; color: var(--text-tertiary); margin-bottom: 10px; }
.profile-qr-empty p { font-size: 14px; margin: 0 0 14px; }

.profile-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- OBJECT DETAIL ---------- */
.detail-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 260px;
  background: linear-gradient(135deg, #f0f0f3 0%, #e5e5ea 100%);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.30);
}

.detail-hero-icon i { width: 40px; height: 40px; stroke-width: 1.8; }

.detail-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.detail-cat > i {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.detail-cat .object-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-cat .object-status i {
  width: 12px;
  height: 12px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 0.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

/* QR card */
.qr-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 18px;
  border: 0.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.qr-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.qr-card h3 i { width: 20px; height: 20px; color: var(--ios-blue); }

#qr-canvas-wrap {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#qr-canvas-wrap img,
#qr-canvas-wrap canvas { display: block; max-width: 200px; height: auto; }

.qr-url {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg-input);
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Demo trigger CTA */
.demo-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #3a2c05;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 149, 0, 0.30);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.demo-trigger::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.demo-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 149, 0, 0.40);
}

.demo-trigger-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a2c05;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.demo-trigger-icon i { width: 22px; height: 22px; }

.demo-trigger-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.demo-trigger-body strong {
  font-size: 14px;
  font-weight: 700;
  color: #3a2c05;
  letter-spacing: -0.2px;
}

.demo-trigger-body small {
  font-size: 12px;
  color: rgba(58, 44, 5, 0.80);
  font-weight: 500;
}

.demo-trigger > i:last-child {
  width: 20px;
  height: 20px;
  color: rgba(58, 44, 5, 0.75);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Timeline */
.timeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 18px;
  border: 0.5px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.timeline-head i {
  width: 20px;
  height: 20px;
  color: var(--ios-blue);
}

.timeline-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

/* Vertical connector line between dots */
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 48px;
  bottom: -10px;
  width: 2px;
  background: var(--border-soft);
  z-index: 0;
}

.timeline-step.done:not(:last-child)::before {
  background: linear-gradient(180deg, var(--ios-green) 0%, var(--ios-green) 100%);
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--bg-card);
  transition: all 0.2s;
}

.timeline-dot i { width: 18px; height: 18px; }

.timeline-step.done .timeline-dot {
  background: linear-gradient(135deg, #34C759 0%, #009E60 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.30);
}

.timeline-step.active .timeline-dot {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 4px 14px rgba(59, 130, 246, 0.35);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 4px 14px rgba(59, 130, 246, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.10), 0 4px 14px rgba(59, 130, 246, 0.35); }
}

.timeline-content {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.timeline-step.done .timeline-title {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-step.active .timeline-title {
  color: var(--ios-blue);
  font-weight: 700;
}

/* ---------- FINDER ---------- */
.section-finder { padding: 28px 22px; }

.finder-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 26px;
  justify-content: center;
  letter-spacing: -0.6px;
}

.finder-logo { width: 44px; height: 44px; }

/* ----- Finder : bannières ----- */
.finder-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 26px 22px;
  margin-bottom: 16px;
  box-shadow: 0 16px 36px rgba(27, 43, 94, 0.28);
}
.finder-banner h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.finder-banner p { font-size: 14px; opacity: 0.92; line-height: 1.45; }
.finder-banner-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.finder-banner-icon i { width: 30px; height: 30px; color: #fff; }
.finder-banner-success {
  background: linear-gradient(135deg, #10B981 0%, #34C759 100%);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
}

/* ----- Finder : récompense ----- */
.finder-reward {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(245, 200, 66, 0.32);
}
.finder-reward-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(20, 33, 70, 0.12);
  color: #3a2c05;
}
.finder-reward-badge i { width: 20px; height: 20px; }
.finder-reward-badge span { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.finder-reward-body h3 { font-size: 17px; font-weight: 700; color: #3a2c05; margin-bottom: 2px; }
.finder-reward-body p { font-size: 13px; color: #4a3a0a; line-height: 1.4; }

/* ----- Finder : carte objet ----- */
.finder-object-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.finder-object-img {
  width: 88px; height: 88px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--bg-input);
  display: grid; place-items: center;
  overflow: hidden;
}
.finder-object-img img { width: 100%; height: 100%; object-fit: cover; }
.finder-object-img i { width: 38px; height: 38px; color: var(--navy); }
.finder-object-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.finder-object-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 10px;
}
.finder-object-cat i { width: 15px; height: 15px; }
.finder-object-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 12px;
}
.finder-object-desc i { width: 14px; height: 14px; vertical-align: -2px; }
.finder-secure {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #10B981;
  background: #D1FAE5;
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.finder-secure i { width: 16px; height: 16px; }

/* ----- Finder : étapes ----- */
.finder-steps {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.finder-step {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.finder-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  background: var(--navy); color: #fff;
}
.finder-step p { font-size: 14px; color: var(--text-primary); line-height: 1.4; }

/* ----- Finder : section relais ----- */
.finder-relay-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.finder-section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.finder-section-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
}
.finder-section-icon i { width: 22px; height: 22px; }
.finder-section-head h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.finder-section-head p { font-size: 13px; color: var(--text-secondary); }

/* ----- Finder : points gagnés ----- */
.finder-points-won {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(245, 200, 66, 0.32);
}
.finder-points-won-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #3a2c05;
  background: rgba(20, 33, 70, 0.12);
  padding: 10px 14px; border-radius: 14px;
}
.finder-points-won-badge i { width: 18px; height: 18px; }
.finder-points-won strong { display: block; font-size: 16px; color: #3a2c05; }
.finder-points-won span { font-size: 13px; color: #4a3a0a; }

.finder-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--text-tertiary);
  text-align: center; margin-top: 18px;
}
.finder-footer i { width: 14px; height: 14px; }

/* ----- Modale points relais (bottom sheet) ----- */
.relay-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 33, 70, 0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: relay-fade 0.2s ease;
}
@keyframes relay-fade { from { opacity: 0; } to { opacity: 1; } }
.relay-modal-panel {
  width: 100%; max-width: var(--app-max);
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto;
  animation: relay-slide 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes relay-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.relay-modal-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border-input);
  margin: 0 auto 14px;
}
.relay-modal-panel h3 { font-size: 19px; font-weight: 700; }
.relay-modal-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
.relay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.relay-option {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-input);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.relay-option:active { transform: scale(0.985); }
.relay-option:hover { background: #e9e9ee; }
.relay-option-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.relay-option-icon i { width: 21px; height: 21px; }
.relay-option-body { flex: 1; min-width: 0; }
.relay-option-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.relay-option-addr, .relay-option-hours {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.4;
}
.relay-option-addr i, .relay-option-hours i { width: 13px; height: 13px; flex-shrink: 0; }
.relay-option-arrow { color: var(--text-tertiary); }
.relay-option-arrow i { width: 20px; height: 20px; }

/* ---------- ESPACE POINT RELAIS ---------- */
.section-relay { padding-top: 6px; }

.relay-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 26px 22px;
  margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(27, 43, 94, 0.28);
}
.relay-hero-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #3a2c05;
}
.relay-hero-icon i { width: 30px; height: 30px; }
.relay-hero h2 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.relay-hero p { font-size: 14px; opacity: 0.9; line-height: 1.45; margin-bottom: 16px; }

.relay-count {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}

.relay-empty {
  text-align: center; padding: 28px 20px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.relay-empty i { width: 34px; height: 34px; color: var(--text-tertiary); margin-bottom: 10px; }
.relay-empty p { font-size: 14px; line-height: 1.45; }

.relay-list { display: flex; flex-direction: column; gap: 10px; }
.relay-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.relay-item:active { transform: scale(0.99); }
.relay-item:hover { box-shadow: var(--shadow-card-hover); }
.relay-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-input); color: var(--navy);
}
.relay-item-icon i { width: 21px; height: 21px; }
.relay-item-body { flex: 1; min-width: 0; }
.relay-item-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.relay-item-cat { font-size: 12px; color: var(--text-secondary); }
.relay-item-arrow { color: var(--text-tertiary); }
.relay-item-arrow i { width: 20px; height: 20px; }

.relay-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 24px 22px;
  margin-bottom: 16px;
  box-shadow: 0 16px 36px rgba(27, 43, 94, 0.28);
}
.relay-banner h2 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.relay-banner p { font-size: 14px; opacity: 0.92; line-height: 1.45; }
.relay-banner-icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.relay-banner-icon i { width: 28px; height: 28px; color: #fff; }
.relay-banner-warn { background: linear-gradient(135deg, #B45309 0%, #F59E0B 100%); box-shadow: 0 16px 36px rgba(180, 83, 9, 0.25); }

.relay-owner-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}
.relay-owner-head {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-secondary);
  margin-bottom: 10px;
}
.relay-owner-head i { width: 16px; height: 16px; }
.relay-owner-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.relay-owner-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--blue);
  text-decoration: none;
}
.relay-owner-contact i { width: 18px; height: 18px; }
.relay-owner-nophone { font-size: 14px; color: var(--text-tertiary); }

.relay-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- PROFIL : cagnotte points ---------- */
.profile-points {
  display: flex; align-items: center; gap: 16px;
  position: relative;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #3a2c05;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(245, 200, 66, 0.30);
}
.profile-points-icon {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(20, 33, 70, 0.12);
}
.profile-points-icon i { width: 26px; height: 26px; color: #3a2c05; }
.profile-points-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.profile-points-label { font-size: 14px; font-weight: 600; color: #4a3a0a; margin-top: 4px; }
.profile-points-hint {
  position: absolute; top: 14px; right: 16px;
  font-size: 11px; font-weight: 700; color: #4a3a0a;
  background: rgba(255, 255, 255, 0.45);
  padding: 4px 10px; border-radius: var(--radius-pill);
}

/* ---------- MARQUEURS CARTE (Leaflet) ---------- */
.partner-marker-wrap { background: transparent; border: none; }
.partner-marker {
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid; place-items: center;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 10px rgba(20, 33, 70, 0.35);
}
.partner-marker i {
  transform: rotate(45deg);
  width: 17px; height: 17px; color: #fff;
}
/* contraste icône sur fond or clair */
.partner-marker[style*="#F5C842"] i { color: #3a2c05; }

.partner-popup { font-family: var(--font-body); min-width: 180px; padding: 2px; }
.partner-popup .partner-type {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
  margin-bottom: 7px;
}
.partner-popup strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 5px; color: var(--navy); }
.partner-popup-addr { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 6px; }
.partner-popup-hours, .partner-popup-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary); margin-top: 3px;
}
.partner-popup-hours i, .partner-popup-phone i { width: 13px; height: 13px; flex-shrink: 0; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-elevated); }
.leaflet-popup-content { margin: 14px 16px; }

/* ----- Finder : consignes de dépôt ----- */
.finder-instruct {
  background: #EFF6FF;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.finder-instruct-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--navy);
  margin-bottom: 6px;
}
.finder-instruct-head i { width: 18px; height: 18px; color: var(--blue); }
.finder-instruct p { font-size: 14px; color: var(--text-primary); line-height: 1.5; }

/* ----- Finder : carte de sélection (plein écran) ----- */
.finder-map-modal {
  position: fixed; inset: 0; z-index: 250;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  animation: relay-fade 0.2s ease;
}
.finder-map-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  flex-shrink: 0;
}
.finder-map-head h3 { font-size: 17px; font-weight: 700; color: #fff; }
.finder-map-close {
  width: 38px; height: 38px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.finder-map-close i { width: 20px; height: 20px; }
.finder-map { flex: 1; width: 100%; min-height: 0; }
.finder-map-panel {
  flex-shrink: 0;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg-card);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  display: flex; flex-direction: column; gap: 12px;
}
.finder-map-selection {
  display: flex; align-items: center; gap: 14px;
}
.finder-map-selection-empty {
  color: var(--text-secondary); font-size: 14px; line-height: 1.4;
  justify-content: center; text-align: center; padding: 4px 0;
}
.finder-map-selection-empty i { width: 20px; height: 20px; flex-shrink: 0; }
.finder-map-sel-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.finder-map-sel-icon i { width: 22px; height: 22px; }
.finder-map-sel-body { flex: 1; min-width: 0; }
.finder-map-sel-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.finder-map-dist {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: var(--blue); background: #EFF6FF;
  padding: 1px 7px; border-radius: var(--radius-pill); margin-left: 4px;
}
.finder-map-sel-addr, .finder-map-sel-hours {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.4;
}
.finder-map-sel-addr i, .finder-map-sel-hours i { width: 13px; height: 13px; flex-shrink: 0; }

/* Marqueur sélectionné mis en avant */
.partner-marker.is-selected {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.45), 0 4px 10px rgba(20, 33, 70, 0.35);
  z-index: 500;
}

/* ---------- DEMO : 3e bouton mode (relais) ---------- */
body.mode-relay .mode-btn[data-mode="relay"] { color: var(--gold-deep); }
