  :root {
    --bg: #0a0612; --bg-2: #15092a; --ink: #f5f0ff; --dim: #a394c2;
    --hot: #ff2e6c; --warm: #ffb347; --cool: #4dd9ff; --green: #5fff9f; --crew: #b78bff;
    --line: rgba(245, 240, 255, 0.12);
    --nav: 68px;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: 'Bricolage Grotesque', system-ui, sans-serif; overflow: hidden; }
  button { font-family: inherit; color: inherit; cursor: pointer; }
  [hidden] { display: none !important; }

  #carte { position: fixed; inset: 0 0 var(--nav) 0; background: #07041a; }
  .maplibregl-ctrl-attrib { background: rgba(10,6,18,.6) !important; color: var(--dim); font-size: 10px; }
  .maplibregl-ctrl-attrib a { color: var(--dim) !important; }

  /* ===== haut ===== */
  .haut { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: calc(12px + env(safe-area-inset-top)) 14px 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
  .haut > * { pointer-events: auto; }
  .barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(10,6,18,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
  .logo { display: flex; align-items: center; gap: 0; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
  .logo .point { margin-inline-end: 8px; }
  .logo b { color: var(--hot); font-weight: inherit; }
  .point { width: 11px; height: 11px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 18px var(--hot); animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }
  .meta { text-align: right; font-family: var(--mono); font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; line-height: 1.5; }
  .meta b { color: var(--ink); }
  .logo { margin-right: auto; }
  .ville { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(245,240,255,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
  .ville b { font-size: 14px; font-weight: 800; }
  .ville span { font-family: var(--mono); font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
  .bandeau { align-self: center; display: flex; align-items: center; gap: 10px; background: var(--hot); color: #fff; border-radius: 100px; padding: 4px 4px 4px 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 0 20px rgba(255,46,108,.4); }
  .bandeau button { min-height: 36px; padding: 0 14px; border-radius: 100px; border: none; background: rgba(0,0,0,.28); color: #fff; font-weight: 700; font-size: 12px; }
  .essai { align-self: flex-start; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--warm); padding: 3px 7px; border-radius: 4px; }

  .situer { position: fixed; right: 14px; z-index: 15; min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: rgba(10,6,18,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; }
  .situer i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(95,255,159,.2); }

  /* ===== feuille du bas ===== */
  .feuille { position: fixed; left: 0; right: 0; bottom: var(--nav); z-index: 30; max-width: 460px; margin: 0 auto; background: linear-gradient(180deg, rgba(21,9,42,.96), rgba(10,6,18,.98)); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border: 1px solid var(--line); border-bottom: none; border-radius: 24px 24px 0 0; padding: 18px 18px 16px; }
  .feuille h1 { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
  .feuille h1 .accent { font-style: italic; background: linear-gradient(135deg, var(--hot), var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
  .feuille h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
  .sous { margin-top: 8px; color: var(--dim); font-size: 14px; line-height: 1.4; }
  .ligne-meta { margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
  .tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .fermer { flex-shrink: 0; min-height: 40px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 600; color: var(--dim); }
  .badge { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 100px; font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .badge.calme { background: rgba(245,240,255,.08); color: var(--dim); }
  .badge.demarre { background: var(--cool); color: var(--bg); }
  .badge.anime { background: var(--warm); color: var(--bg); }
  .badge.bonde { background: var(--hot); color: #fff; box-shadow: 0 0 15px rgba(255,46,108,.4); }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .stat { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; min-width: 0; }
  .stat small { display: block; font-family: var(--mono); font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
  .stat b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
  .c-hot { color: var(--hot); } .c-green { color: var(--green); } .c-cool { color: var(--cool); } .c-warm { color: var(--warm); }
  .actions { display: flex; gap: 8px; margin-top: 14px; }
  .btn { flex: 1; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: transparent; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
  .btn.fort { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .btn.rose { background: var(--hot); color: #fff; border-color: var(--hot); box-shadow: 0 0 24px rgba(255,46,108,.35); }
  .btn:active { transform: scale(.98); }
  .compte { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(95,255,159,.08); border: 1px solid rgba(95,255,159,.25); font-size: 14px; line-height: 1.35; }
  .compte b { color: var(--green); }
  .question { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
  .puces { display: flex; gap: 8px; margin-top: 8px; }
  .puce { flex: 1; min-height: 48px; border-radius: 100px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; }
  .puce.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .note { margin-top: 10px; font-size: 11px; color: var(--dim); text-align: center; }

  /* ===== liste ===== */
  .liste { position: fixed; inset: 0 0 var(--nav) 0; z-index: 40; background: radial-gradient(circle at 20% 0%, rgba(255,46,108,.15), transparent 40%), radial-gradient(circle at 80% 100%, rgba(77,217,255,.1), transparent 50%), var(--bg); display: flex; flex-direction: column; }
  .liste-tete { padding: calc(18px + env(safe-area-inset-top)) 18px 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .liste-tete .tete h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
  .cherche { width: 100%; margin-top: 12px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); font: inherit; font-size: 16px; }
  .cherche::placeholder { color: var(--dim); }
  .filtres { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .filtres::-webkit-scrollbar { display: none; }
  .filtres .puce { flex: 0 0 auto; padding: 0 18px; }
  .liste-corps { flex: 1; overflow-y: auto; padding: 4px 18px 20px; max-width: 460px; width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; }
  .lieu { display: block; width: 100%; text-align: left; margin-bottom: 10px; padding: 14px 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: 18px; }
  .lieu-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .lieu-nom { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
  .lieu-n { font-family: var(--mono); font-size: 12px; font-weight: 700; white-space: nowrap; }
  .lieu-meta { margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
  .jauge { margin-top: 10px; height: 6px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
  .jauge i { display: block; height: 100%; border-radius: 10px; }
  .jauge .demarre { background: linear-gradient(90deg, var(--cool), #6bb6ff); }
  .jauge .anime { background: linear-gradient(90deg, var(--warm), #ff8a47); }
  .jauge .bonde { background: linear-gradient(90deg, var(--hot), #ff9500, var(--hot)); box-shadow: 0 0 15px var(--hot); }
  .vide { padding: 30px 0; text-align: center; color: var(--dim); font-size: 14px; }

  /* ===== menu du bas ===== */
  nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav); z-index: 50; display: flex; justify-content: center; gap: 8px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: rgba(10,6,18,.94); border-top: 1px solid var(--line); }
  nav button { flex: 1; max-width: 220px; border: none; background: transparent; border-radius: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); display: flex; align-items: center; justify-content: center; gap: 8px; }
  nav button.on { color: var(--ink); background: rgba(245,240,255,.1); }
  nav button span { font-size: 16px; }

  /* marqueurs animés */
  .ping { width: 14px; height: 14px; border-radius: 50%; pointer-events: none; }
  .ping::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hot); animation: onde 1.8s ease-out infinite; }
  @keyframes onde { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
  .moi { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(95,255,159,.2); }
  .message { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 60; max-width: 300px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; text-align: center; }
  /* ===== bienvenue (première visite) ===== */
  .bienvenue { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 25% 12%, rgba(255,46,108,.55), transparent 42%), radial-gradient(circle at 85% 30%, rgba(255,179,71,.35), transparent 36%), radial-gradient(circle at 60% 62%, rgba(77,217,255,.22), transparent 40%), var(--bg); overflow: hidden; }
  .bienvenue > * { max-width: 460px; width: 100%; margin-left: auto; margin-right: auto; }
  .bienvenue .logo { margin: 0 auto auto; font-size: 26px; padding-top: env(safe-area-inset-top); }
  .bienvenue h1 { font-size: clamp(44px, 14vw, 62px); line-height: .92; font-weight: 800; letter-spacing: -0.045em; }
  .bienvenue h1 i { background: linear-gradient(135deg, var(--hot), var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
  .trois { list-style: none; margin: 22px auto 24px; display: grid; gap: 10px; }
  .trois li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
  .trois b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--bg); }
  .trois li:nth-child(1) b { background: var(--cool); } .trois li:nth-child(2) b { background: var(--warm); } .trois li:nth-child(3) b { background: var(--green); }
  .mono-q { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
  .tranches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .tranches button { min-height: 58px; border-radius: 16px; border: none; background: var(--hot); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 0 22px rgba(255,46,108,.35); }
  .tranches button:active { transform: scale(.95); }
  .monage { position: fixed; left: 14px; z-index: 15; min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: rgba(10,6,18,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; }
  .monage i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dim); }
  .monage.on { background: var(--hot); border-color: var(--hot); color: #fff; box-shadow: 0 0 22px rgba(255,46,108,.4); }
  .monage.on i { background: #fff; border-color: #fff; }
  .lien-age { background: none; border: none; color: var(--dim); font-size: 12px; text-decoration: underline; min-height: 36px; }
  .bienvenue .liens { margin-top: 14px; text-align: center; font-size: 13px; color: var(--dim); }
  .bienvenue .liens a { color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .point, .ping::before { animation: none; } }

  /* ===== langues, villes, signature ===== */
  .bienvenue-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-top: env(safe-area-inset-top); }
  .bienvenue .bienvenue-haut .logo { margin: 0; padding: 0; }
  select.langue { min-height: 44px; max-width: 150px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line); background: rgba(10,6,18,.55); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }
  .bienvenue .xg { margin-top: 6px; font-size: 11px; opacity: .8; }
  .feuille h1 i { font-style: italic; background: linear-gradient(135deg, var(--hot), var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
  nav button b { font-weight: inherit; }
  .lieu { text-align: start; }
  .lieu.ici { border-color: rgba(95,255,159,.35); background: rgba(95,255,159,.08); }
  .pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(95,255,159,.2); margin-inline-end: 12px; }
  [dir="rtl"] .situer { right: auto; left: 14px; } [dir="rtl"] .monage { left: auto; right: 14px; }
  [dir="rtl"] .logo, [dir="rtl"] .tranches { direction: ltr; }
