  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { margin: 0; height: 100dvh; box-sizing: border-box; background: var(--nx-bg); color: var(--nx-strong); font-family: system-ui, sans-serif; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
  main { width: 100%; max-width: 420px; }
  input, button { font: inherit; padding: .6rem .8rem; border-radius: 8px; border: 1px solid var(--nx-line); background: var(--nx-bg); color: var(--nx-strong); }
  button { cursor: pointer; background: var(--nx-blue); border-color: var(--nx-blue-deep); }
  button.ghost { background: transparent; border-color: var(--nx-line); }
  form { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
  form input { flex: 1; min-width: 0; }
  ul { list-style: none; padding: 0; }
  li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--nx-line); }
  .muted { color: var(--nx-text-soft); font-size: .9rem; }
  .hidden { display: none; }

  main { width: 100%; max-width: 380px; }
  .muted { color: var(--nx-text-soft); font-size: .95rem; }
  .card { display: grid; gap: .9rem; justify-items: stretch; }
  .card .logo-n { width: 84px; margin: 0 auto; }
  .card h1 { font-size: 1.6rem; margin: .2rem 0 0; }
  .card input { font: inherit; font-size: 16px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--nx-blue-deep); background: var(--nx-bg); color: var(--nx-strong); outline: none; }
  .card input:focus { border-color: var(--nx-blue-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-blue) 25%, transparent); }
  .link { background: none; border: 0; color: var(--nx-blue-light); font: inherit; cursor: pointer; padding: .3rem; }
  #msg { min-height: 1.3em; margin: 0; color: var(--nx-red); }
  #msg.ok { color: var(--nx-green); }

  body { background: radial-gradient(ellipse at 50% 40%, var(--nx-bg-2) 0%, var(--nx-bg) 60%, var(--nx-bg) 100%); }
  #welcome { display: grid; justify-items: center; gap: 3.2rem; }
  .planet-wrap { position: relative; width: min(46vw, 200px); }
  .planet-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--nx-blue) 38%, transparent) 0%, color-mix(in srgb, var(--nx-blue) 12%, transparent) 38%, color-mix(in srgb, var(--nx-bg) 0%, transparent) 66%); animation: pulse 3s ease-in-out infinite; pointer-events: none; }
  .intro-bottom { width: 100%; min-height: 90px; display: grid; justify-items: center; align-content: start; gap: 1rem; }
  .loader { width: 100%; max-width: 280px; transition: opacity .4s ease; }
  .loader.out { opacity: 0; }
  .bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--nx-blue) 25%, transparent); overflow: hidden; }
  .bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--nx-blue-deep), var(--nx-blue)); box-shadow: 0 0 12px color-mix(in srgb, var(--nx-blue) 80%, transparent); }
  .loader p { margin: .9rem 0 0; color: var(--nx-text-dim); font-size: .95rem; letter-spacing: .04em; }
  .btn-white { width: auto; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--nx-white); background: var(--nx-blue); border: 0; border-radius: 14px; padding: .65rem 1rem; cursor: pointer; box-shadow: 0 8px 30px color-mix(in srgb, var(--nx-blue) 25%, transparent); animation: rise .5s ease both; }
  .btn-white:active { transform: scale(.98); }
  .link-create { margin: .9rem 0 0; padding: .3rem .5rem; border: 0; background: none; color: var(--nx-text-soft); font: inherit; font-size: .95rem; cursor: pointer; animation: rise .6s ease .1s both; } .link-create b { color: var(--nx-strong); text-decoration: underline; }
  #place-card #pc-daily { margin: .25rem 0 0; color: var(--nx-blue-light); font-size: .85rem; font-weight: 600; line-height: 1.3; white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #place-card #pc-daily.hidden { display: none; }
  .btn-ghost-light { margin: .3rem 0 0; padding: .55rem 1rem; border: 1px solid color-mix(in srgb, var(--nx-strong) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--nx-strong) 8%, transparent); color: var(--nx-strong); font: inherit; font-size: .92rem; cursor: pointer; animation: rise .65s ease .15s both; }
  #gate .link { color: var(--nx-text-dim); font-weight: 600; }
  .btn-ghost-light:active { transform: scale(.98); }
  .btn-white img { width: 24px; height: 22px; object-fit: contain; }
  @keyframes float { 50% { transform: translateY(-9px); } }
  @keyframes pulse { 50% { opacity: .65; } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .planet-wrap::before, .btn-white { animation: none; } }

  #welcome { gap: 2.4rem; }
  .hero { display: grid; justify-items: center; gap: 1.6rem; transition: transform .45s ease, opacity .45s ease; }
  .brand { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; color: var(--nx-text); text-shadow: 0 0 18px color-mix(in srgb, var(--nx-blue) 70%, transparent); animation: rise .8s ease .2s both; }
  .planet-wrap { perspective: 800px; }

  #welcome.leaving .hero { transform: translateY(-40px) scale(.55); opacity: 0; }
  #welcome.leaving .intro-bottom { opacity: 0; transition: opacity .25s ease; }
  #login { animation: rise .45s ease both; }      /* #home sans animation : la barre du bas qu'il contient montait de 10 px à chaque ouverture de la carte */

  /* Logo animé : l'épingle-bulle tombe sur la carte, onde d'impact, puis les points « écrivent » pendant le chargement.
     Uniquement transform/opacity : fluide même sur un téléphone d'entrée de gamme. */
  .pin-wrap { width: min(52vw, 210px); }
  @keyframes logoin { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
  .pinlogo { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--nx-blue) 45%, transparent)); animation: logoin .7s cubic-bezier(.2,.9,.3,1.2) both; }

  #welcome.ready .pinlogo { animation: pinpop .55s ease; }
  @keyframes pinpop { 40% { transform: scale(1.08); } }
  @media (prefers-reduced-motion: reduce) { #welcome.ready .pinlogo { animation: none; } }
  @media (prefers-reduced-motion: reduce) { .brand { animation: none; } }

  .req { margin: 0; max-width: 270px; color: var(--nx-text-dim); font-size: .85rem; line-height: 1.4; animation: rise .6s ease .15s both; }
  .continue { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; }
  .continue img { width: 34px; height: auto; }
  .continue strong { color: var(--nx-text-soft); font-weight: 600; }

  #layer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--nx-bg) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s ease both; }
  .gcard { position: relative; width: min(100%, 400px); max-height: 100%; overflow-y: auto; box-sizing: border-box; display: grid; gap: .9rem; padding: 2rem 1.6rem 1.4rem; border-radius: 28px; background: var(--nx-surface); color: var(--nx-text); text-align: center; box-shadow: 0 20px 60px color-mix(in srgb, var(--nx-bg) 55%, transparent); animation: pop .3s ease both; }
  .gcard .logo-n { width: 92px; height: auto; margin: 0 auto; }
  .gcard h1 { margin: .2rem 0 0; font-size: 1.55rem; font-weight: 500; color: var(--nx-text); }
  .gcard .continue { margin: 0 0 .6rem; color: var(--nx-text-dim); font-size: .95rem; } .gcard .continue:empty { display: none; }
  .legal-mini { margin: .9rem 0 0; text-align: center; font-size: .82rem; } .legal-mini a { color: var(--nx-text-dim); }
  .gcard .continue strong { color: var(--nx-text); }
  .gcard input { font: inherit; font-size: 16px; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--nx-line); background: var(--nx-surface); color: var(--nx-text); outline: none; }
  .gcard input::placeholder { color: var(--nx-text-soft); }
  .gcard input:focus { border-color: var(--nx-blue-deep); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-blue) 25%, transparent); }
  .gcard #msg { margin: 0; min-height: 1.2em; color: var(--nx-red); font-size: .9rem; text-align: left; }
  .gcard #msg.ok { color: var(--nx-green); }
  .actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
  .gcard .link { color: var(--nx-blue-light); font-weight: 600; font-size: .92rem; padding: .5rem .2rem; text-align: left; }
  .btn-blue { white-space: nowrap; flex-shrink: 0; font: inherit; font-weight: 600; color: var(--nx-white); background: var(--nx-blue); border: 0; border-radius: 999px; padding: .7rem 1.5rem; cursor: pointer; }
  .btn-blue:hover { background: var(--nx-blue-deep); }
  .btn-blue:disabled { opacity: .6; cursor: default; }
  @keyframes fade { from { opacity: 0; } }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

  .gcard .continue span { white-space: nowrap; }
  .gcard.swap-up { animation: slideLeft .35s ease both; }
  .gcard.swap { animation: slideRight .35s ease both; }
  .gcard.swap-up h1 { color: var(--nx-blue-light); }
  @keyframes slideLeft { from { opacity: .3; transform: translateX(40px); } }
  @keyframes slideRight { from { opacity: .3; transform: translateX(-40px); } }

  #chooser { display: grid; gap: .4rem; text-align: left; }
  #acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
  #acc-list li { display: flex; align-items: center; gap: .3rem; padding: 0; border: 0; }
  .acc { flex: 1; min-width: 0; display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); color: var(--nx-text); font: inherit; cursor: pointer; text-align: left; }
  .acc:hover { background: var(--nx-surface); border-color: var(--nx-line); }
  .acc .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
  .acc.other { width: 100%; flex: none; border-style: dashed; color: var(--nx-blue-light); font-weight: 600; }
  .av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--nx-strong); font-weight: 600; font-size: .95rem; text-transform: uppercase; }
  .av.plus { background: var(--nx-surface); color: var(--nx-blue-light); font-size: 1.3rem; }
  .rm { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--nx-text-soft); cursor: pointer; font-size: .9rem; }
  .rm:hover { background: var(--nx-surface); color: var(--nx-red); }
  .fields { display: grid; gap: .9rem; }
  .chip { display: flex; align-items: center; gap: .6rem; justify-self: center; max-width: 100%; padding: .3rem .8rem .3rem .3rem; border: 1px solid var(--nx-line); border-radius: 999px; background: var(--nx-surface); color: var(--nx-text); font: inherit; font-size: .92rem; cursor: pointer; }
  .chip:hover { background: var(--nx-surface); }
  .chip .av { width: 26px; height: 26px; font-size: .8rem; }
  .chip #chip-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chip .caret { color: var(--nx-text-dim); font-size: .8rem; }
  .empty { margin: .4rem 0 .8rem; padding: 1.1rem; border-radius: 14px; background: var(--nx-surface); color: var(--nx-text-dim); text-align: center; font-size: .98rem; }
  .btn-blue.wide { width: 100%; margin-top: .5rem; padding: .85rem 1.5rem; }
  .social { display: grid; gap: .6rem; margin: .2rem 0 .9rem; }
  .social.hidden { display: none; }
  .social .or { margin: 0; display: flex; align-items: center; gap: .7rem; color: var(--nx-text-dim); font-size: .85rem; }
  .social .or::before, .social .or::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--nx-bg) 35%, transparent); }
  .btn-social { width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 600; font-size: .95rem; color: var(--nx-text); background: var(--nx-surface); border: 1.5px solid var(--nx-line); border-radius: 999px; padding: .75rem 1.2rem; cursor: pointer; transition: background .15s, transform .1s; }
  .btn-social:hover { background: var(--nx-surface); } .btn-social:active { transform: scale(.98); } .btn-social.hidden { display: none; }
  #oauth-apple { background: var(--nx-bg); color: var(--nx-strong); border-color: var(--nx-line); } #oauth-apple:hover { background: var(--nx-surface); }
  .btn-outline { width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 600; color: var(--nx-blue-light); background: var(--nx-surface); border: 1.5px solid var(--nx-blue-deep); border-radius: 999px; padding: .8rem 1.2rem; cursor: pointer; transition: background .15s, transform .1s; }
  .btn-outline:hover { background: var(--nx-surface); }
  .btn-outline:active { transform: scale(.98); }
  #home { position: fixed; inset: 0; z-index: 5; background: var(--nx-bg); }
  #map { position: absolute; inset: 0; }
  #me { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); right: .8rem; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--nx-line); color: var(--nx-strong); font: inherit; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 16px color-mix(in srgb, var(--nx-bg) 35%, transparent); }
      #home.has-bar .locate-ctrl { display: none; }          /* le bouton « Ma position » est au centre de la barre */
  .shop-marker { position: relative; width: 38px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--nx-bg) 55%, transparent)); }
  .shop-marker .catpin { display: block; }
  #pc-page { display: inline-block; margin-top: .25rem; font-size: .9rem; color: var(--nx-blue-light); font-weight: 600; text-decoration: none; }
  #menu { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 3.6rem); right: .8rem; z-index: 6; box-sizing: border-box; width: min(280px, calc(100vw - 1.6rem)); padding: .9rem; border-radius: 18px; background: var(--nx-surface); color: var(--nx-text); box-shadow: 0 12px 40px color-mix(in srgb, var(--nx-bg) 40%, transparent); text-align: left; animation: pop .2s ease both; }
  #menu #who { margin: 0 0 .7rem; font-size: .92rem; color: var(--nx-text-dim); word-break: break-all; }
  #menu #logout { width: 100%; font: inherit; font-weight: 600; color: var(--nx-red); background: var(--nx-surface); border: 0; border-radius: 12px; padding: .65rem; cursor: pointer; }
  #map-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; margin: 0; padding: 1rem 1.2rem; border-radius: 14px; background: var(--nx-surface); color: var(--nx-text); max-width: 80vw; }
  #map .maplibregl-ctrl-group { background: var(--nx-surface); border-radius: 14px; box-shadow: 0 4px 16px color-mix(in srgb, var(--nx-bg) 40%, transparent); overflow: hidden; }
  #map .maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--nx-bg) 70%, transparent); color: var(--nx-text-dim); }
  #map .maplibregl-ctrl-attrib a { color: var(--nx-text-dim); }
  .maplibregl-ctrl-bottom-right { bottom: env(safe-area-inset-bottom, 0px); }
  .sheet { position: absolute; left: .8rem; right: .8rem; bottom: calc(env(safe-area-inset-bottom, 0px) + .8rem); z-index: 7; max-width: 420px; margin: 0 auto; display: grid; gap: .6rem; padding: 1.4rem 1.2rem 1.2rem; border-radius: 24px; background: var(--nx-surface); color: var(--nx-text); text-align: center; box-shadow: 0 -4px 40px color-mix(in srgb, var(--nx-bg) 50%, transparent); animation: rise .45s ease both; }
  .sheet .pin { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--nx-surface); color: var(--nx-blue-light); }
  .sheet h2 { margin: .2rem 0 0; font-size: 1.25rem; font-weight: 600; }
  .sheet p { margin: 0 0 .4rem; color: var(--nx-text-dim); font-size: .95rem; line-height: 1.4; }
  #geo-toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem); transform: translateX(-50%); z-index: 7; margin: 0; max-width: 85vw; padding: .7rem 1rem; border-radius: 14px; background: var(--nx-surface); color: var(--nx-text); font-size: .92rem; box-shadow: 0 6px 24px color-mix(in srgb, var(--nx-bg) 40%, transparent); }
  .sheet.help { max-height: calc(100% - 1.6rem); overflow-y: auto; text-align: left; }
  .sheet.help h2, .sheet.help .for { text-align: center; }
  .sheet .pin.off { background: var(--nx-surface); color: var(--nx-red); }
  .sheet .for { margin: 0 0 .2rem; font-size: .9rem; }
  .steps { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: grid; gap: .6rem; counter-reset: st; }
  .steps li { counter-increment: st; border: 0; display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; padding: .7rem .8rem; border-radius: 14px; background: var(--nx-surface); font-size: .95rem; line-height: 1.4; color: var(--nx-text); }
  .steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--nx-blue); color: var(--nx-white); font-weight: 700; font-size: .9rem; }
  .steps b { color: var(--nx-blue-light); }
  .steps kbd { display: inline-block; padding: .05rem .5rem; border-radius: 8px; background: var(--nx-surface); border: 1px solid var(--nx-line); box-shadow: 0 1px 0 var(--nx-bg); font: inherit; font-weight: 600; color: var(--nx-blue-light); }
  .steps .tip { color: var(--nx-text-dim); font-size: .88rem; }
  .steps li { animation: rise .4s ease both; }
  .steps li:nth-child(2) { animation-delay: .08s; } .steps li:nth-child(3) { animation-delay: .16s; } .steps li:nth-child(4) { animation-delay: .24s; }
  .sheet .app-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 14px; box-shadow: 0 4px 14px color-mix(in srgb, var(--nx-blue) 35%, transparent); }
  .steps svg { vertical-align: -4px; }
  #menu #menu-install { width: 100%; margin-bottom: .5rem; font: inherit; font-weight: 600; color: var(--nx-blue-light); background: var(--nx-surface); border: 0; border-radius: 12px; padding: .65rem; cursor: pointer; }
  .gcard .check { display: flex; align-items: center; gap: .7rem; text-align: left; cursor: pointer; color: var(--nx-text); font-size: .95rem; }
  .gcard .check input { flex: none; width: 22px; height: 22px; padding: 0; accent-color: var(--nx-blue-light); cursor: pointer; }
  #menu #menu-report { display: block; margin-bottom: .4rem; padding: .55rem .65rem; border-radius: 12px; color: var(--nx-text); font-weight: 500; text-align: center; text-decoration: none; background: var(--nx-surface); }
  #menu #menu-pro, #menu #menu-feed { display: block; margin-bottom: .5rem; padding: .65rem; border-radius: 12px; background: var(--nx-surface); color: var(--nx-blue-light); font-weight: 600; text-align: center; text-decoration: none; }
  .legal-links { margin: .8rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--nx-text-dim); text-align: center; }
  .legal-links a { color: inherit; }
  #welcome .legal-links.foot { margin-top: 1.4rem; color: var(--nx-text-dim); }
  #menu .danger-link { width: 100%; margin-top: .5rem; font: inherit; font-size: .88rem; color: var(--nx-text-soft); background: none; border: 0; padding: .4rem; cursor: pointer; }
  #menu .danger-link:hover { color: var(--nx-red); }
  .gcard .terms { margin: 0; font-size: .82rem; color: var(--nx-text-dim); text-align: left; line-height: 1.4; }
  .gcard .terms a { color: var(--nx-blue-light); }
  .btn-red { font: inherit; font-weight: 600; color: var(--nx-bg); background: var(--nx-red); border: 0; border-radius: 999px; padding: .85rem 1.5rem; cursor: pointer; }
  .btn-red:disabled { opacity: .6; }
  #search { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); left: .8rem; right: 4.4rem; z-index: 6; max-width: 460px; }
  #search .sbox { display: flex; align-items: center; gap: .55rem; height: 44px; padding: 0 .4rem 0 .95rem; border-radius: 999px; background: var(--nx-surface); box-shadow: 0 4px 16px color-mix(in srgb, var(--nx-bg) 35%, transparent); }
  #search .sbox svg { flex: none; }
  #q { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--nx-text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
  /* Focus de la barre de recherche : UN seul repère, sur la barre entière (le champ est à l'intérieur : son propre contour faisait un 2e rectangle bleu) */
  #q:focus, #q:focus-visible { outline: none; box-shadow: none; }
  #search .sbox:focus-within { outline: 3px solid var(--nx-blue-light); outline-offset: 2px; }
  #q::placeholder { color: var(--nx-text-soft); }
  #q::-webkit-search-cancel-button, #q::-webkit-search-decoration { display: none; -webkit-appearance: none; }
  #q-clear { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--nx-text-dim); font-size: .9rem; cursor: pointer; }
  #q-clear:hover { background: var(--nx-surface); }
  #q-filters { flex: none; position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--nx-text-dim); display: inline-grid; place-items: center; cursor: pointer; }
  #q-filters.on { color: var(--nx-blue-light); } #q-filters .fcount { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--nx-blue); color: var(--nx-white); font: 700 .68rem/17px system-ui, sans-serif; text-align: center; } #q-filters .fcount[hidden] { display: none; }
  #q-list { margin: .45rem 0 0; padding: .3rem; list-style: none; border-radius: 20px; background: var(--nx-surface); box-shadow: 0 12px 40px color-mix(in srgb, var(--nx-bg) 45%, transparent); max-height: min(60dvh, 420px); overflow-y: auto; animation: pop .18s ease both; }
  #q-list li { display: flex; justify-content: flex-start; align-items: flex-start; gap: .75rem; padding: .65rem .7rem; border: 0; border-radius: 14px; cursor: pointer; color: var(--nx-text); text-align: left; }
  #q-list li:hover, #q-list li.on { background: var(--nx-surface); }
  #q-list .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nx-surface); color: var(--nx-blue-light); }
  #q-list .txt { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; }
  #q-list .t { font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #q-list .s { font-size: .85rem; color: var(--nx-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #q-list li.note { cursor: default; color: var(--nx-text-dim); font-size: .92rem; }
  #q-list li.note:hover { background: transparent; }
  /* Choix « Tout / Commerces / Lieux » et titres de sections de la recherche */
  #q-list li.qmodes, #q-list li.qsec { cursor: default; }
  #q-list li.qmodes:hover, #q-list li.qsec:hover { background: transparent; }
  #q-list li.qmodes { gap: .4rem; padding: .35rem .5rem .45rem; }
  #q-list .qmode { flex: none; border: 1px solid var(--nx-line); background: transparent; color: var(--nx-text-dim); font: inherit; font-size: .84rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
  #q-list .qmode.on { background: var(--nx-blue); border-color: var(--nx-blue); color: var(--nx-text); }
  #q-list li.qsec { padding: .5rem .8rem .15rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nx-text-dim); }

  #map .maplibregl-ctrl-group.locate-ctrl { width: 52px; height: 52px; margin: 0 .8rem 1.9rem 0; border-radius: 50%; background: var(--nx-surface); box-shadow: 0 6px 22px color-mix(in srgb, var(--nx-bg) 50%, transparent), 0 0 0 1px color-mix(in srgb, var(--nx-blue) 25%, transparent); overflow: hidden; }
  #map .locate-ctrl button { width: 52px; height: 52px; border-radius: 50%; transition: background .2s; }
  #map .locate-ctrl button .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231a6bff%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.5%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%222.2%22 fill=%22%231a6bff%22 stroke=%22none%22/%3E%3Cpath d=%22M12 2v3.5M12 18.5V22M2 12h3.5M18.5 12H22%22/%3E%3C/svg%3E"); background-size: 28px 28px; background-repeat: no-repeat; background-position: center; }
  .locate-ctrl button.maplibregl-ctrl-geolocate-active, .locate-ctrl button.maplibregl-ctrl-geolocate-background { background: var(--nx-surface); }
  #map .locate-ctrl button.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon, #map .locate-ctrl button.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231a6bff%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.5%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%223.6%22 fill=%22%231a6bff%22 stroke=%22none%22/%3E%3Cpath d=%22M12 2v3.5M12 18.5V22M2 12h3.5M18.5 12H22%22/%3E%3C/svg%3E"); }
  #map .locate-ctrl button.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon, #map .locate-ctrl button.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23d93025%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%226.5%22/%3E%3Cpath d=%22M12 2v3.5M12 18.5V22M2 12h3.5M18.5 12H22M5 5l14 14%22/%3E%3C/svg%3E"); }
  .locate-ctrl button.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon { animation: locpulse .9s ease-in-out infinite; }
  @keyframes locpulse { 50% { opacity: .35; transform: scale(.85); } }
  #home { --dock: 0px; }
  #map .maplibregl-ctrl-bottom-right { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dock)); transition: bottom .25s ease; }
  #dock { position: absolute; left: .8rem; right: .8rem; bottom: calc(env(safe-area-inset-bottom, 0px) + .8rem); z-index: 6; max-width: 460px; margin: 0 auto; }
  .dcard { position: relative; background: var(--nx-surface); color: var(--nx-text); border-radius: 22px; padding: .95rem 1rem; box-shadow: 0 -2px 36px color-mix(in srgb, var(--nx-bg) 50%, transparent); text-align: left; animation: rise .3s ease both; }
  #place-card { display: flex; align-items: center; gap: .8rem; }
  #place-card.hidden, #route-card.hidden { display: none; }
  .pc-text { flex: 1; min-width: 0; }
  .pc-text h3 { margin: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-text p { margin: .1rem 0 0; font-size: .85rem; color: var(--nx-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #pc-go { flex: none; padding: .7rem 1.1rem; }
  .dcard .x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--nx-surface); color: var(--nx-text-dim); font-size: .85rem; cursor: pointer; }
  .rc-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
  .rc-dest { margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modes { display: flex; gap: .4rem; margin: .7rem 0 .6rem; }
  .modes button { flex: 1; padding: .55rem .3rem; border: 1.5px solid var(--nx-line); border-radius: 999px; background: var(--nx-surface); color: var(--nx-text); font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; }
  .modes button.on { border-color: var(--nx-blue-deep); background: var(--nx-surface); color: var(--nx-blue-light); font-weight: 600; }
  .rc-sum { margin: 0; font-size: 1.05rem; }
  .rc-sum b { font-size: 1.35rem; color: var(--nx-green); }
  .rc-sum .err { color: var(--nx-red); font-size: .95rem; }
  #route-card .link { padding: .4rem 0 0; color: var(--nx-blue-light); font-weight: 600; font-size: .9rem; }
  #rc-steps { list-style: decimal; margin: .5rem 0 0; padding: 0 0 0 1.3rem; max-height: min(34dvh, 260px); overflow-y: auto; font-size: .92rem; line-height: 1.4; }
  #rc-steps li { display: list-item; padding: .35rem 0; border: 0; color: var(--nx-text); }
  #rc-steps li span { color: var(--nx-text-dim); font-size: .82rem; }
  #nav-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); left: .8rem; right: .8rem; z-index: 7; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 22px; background: var(--nx-surface-2); color: var(--nx-strong); box-shadow: 0 8px 30px color-mix(in srgb, var(--nx-bg) 50%, transparent); animation: rise .3s ease both; }
  #nav-top.hidden { display: none; }
  #nav-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--nx-strong) 16%, transparent); font-size: 2rem; line-height: 1; }
  .nav-txt { min-width: 0; text-align: left; }
  #nav-dist { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
  #nav-text { margin: .1rem 0 0; font-size: .98rem; opacity: .92; line-height: 1.3; }
  #nav-bottom { display: none; align-items: center; gap: .7rem; }
  #nav-bottom:not(.hidden) { display: flex; }
  .nb-info { flex: 1; min-width: 0; display: grid; }
  .nb-info b { font-size: 1.3rem; color: var(--nx-green); }
  .nb-info span { font-size: .85rem; color: var(--nx-text-dim); }
  .dcard .x.big { width: 44px; height: 44px; font-size: 1.15rem; }
  #nav-stop { flex: none; padding: .75rem 1.2rem; }
  #home.navigating #search, #home.navigating #place-card, #home.navigating #route-card { display: none; }
  #rc-start { margin-top: .5rem; }
  #nav-top { background: linear-gradient(135deg, var(--nx-surface-2) 0%, var(--nx-blue) 100%); border: 1px solid color-mix(in srgb, var(--nx-white) 25%, transparent); box-shadow: 0 10px 34px color-mix(in srgb, var(--nx-blue) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--nx-bg) 20%, transparent); }
  #nav-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--nx-surface); color: var(--nx-blue-light); font-size: 2.4rem; font-weight: 700; box-shadow: 0 0 22px color-mix(in srgb, var(--nx-bg) 55%, transparent); }
  #nav-dist { font-size: 2rem; letter-spacing: -.01em; }
  #nav-then { margin: .4rem 0 0; padding-top: .35rem; border-top: 1px solid color-mix(in srgb, var(--nx-strong) 22%, transparent); font-size: .84rem; opacity: .85; }
  #nav-then.hidden { display: none; }
  #nav-bottom { background: color-mix(in srgb, var(--nx-bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--nx-line); color: var(--nx-strong); }
  #nav-bottom .nb-info b { color: var(--nx-green); font-size: 1.45rem; }
  #nav-bottom .nb-info span { color: var(--nx-text-soft); }
  #nav-bottom .x { background: color-mix(in srgb, var(--nx-strong) 12%, transparent); color: var(--nx-strong); }
  #nav-speed { position: absolute; left: .9rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 4.2rem + var(--dock)); z-index: 6; width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--nx-bg) 88%, transparent); border: 2px solid var(--nx-line); color: var(--nx-strong); box-shadow: 0 6px 22px color-mix(in srgb, var(--nx-bg) 50%, transparent); transition: bottom .25s ease; }
  #nav-speed.hidden { display: none; }
  #nav-speed b { font-size: 1.45rem; line-height: 1; }
  #nav-speed span { font-size: .6rem; opacity: .75; letter-spacing: .06em; }
  #home.navigating .maplibregl-user-location-dot, #home.navigating .maplibregl-user-location-accuracy-circle { display: none; }
  .puck { width: 54px; height: 54px; position: relative; pointer-events: none; }
  .puck::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--nx-blue) 55%, transparent), color-mix(in srgb, var(--nx-blue) 0%, transparent) 70%); animation: puckpulse 1.8s ease-out infinite; }
  .puck svg { position: absolute; inset: 0; filter: drop-shadow(0 5px 6px color-mix(in srgb, var(--nx-bg) 55%, transparent)); }
  @keyframes puckpulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
  /* Le compte passe dans la barre du bas : plus de pastille en haut. La recherche reprend le style de la barre. */
  #me { display: none; }
  #search { top: calc(env(safe-area-inset-top, 0px) + 1rem); left: .6rem; right: .6rem; margin: 0 auto; }
  #search .sbox { height: 50px; padding: 0 .5rem 0 1rem; border-radius: 22px; background: var(--nx-bg); border: 1px solid var(--nx-line); box-shadow: 0 6px 22px color-mix(in srgb, var(--nx-blue) 28%, transparent); }
  #search .sbox svg { stroke: var(--nx-blue-light); }
  #q { color: var(--nx-text); } #q::placeholder { color: var(--nx-text-dim); }
  #q-clear { color: var(--nx-text-dim); } #q-clear:hover { background: color-mix(in srgb, var(--nx-strong) 8%, transparent); }
  #q-filters { color: var(--nx-text-dim); } #q-filters.on { color: var(--nx-blue-light); } #q-filters:hover { background: color-mix(in srgb, var(--nx-strong) 8%, transparent); }
  #q-list { background: var(--nx-bg); border: 1px solid var(--nx-line); border-radius: 22px; box-shadow: 0 12px 34px color-mix(in srgb, var(--nx-blue) 45%, transparent); }
  #q-list li { color: var(--nx-text); } #q-list li:hover, #q-list li.on { background: color-mix(in srgb, var(--nx-blue) 16%, transparent); }
  #q-list .ico { background: color-mix(in srgb, var(--nx-blue) 20%, transparent); color: var(--nx-blue-light); } #q-list .s { color: var(--nx-text-dim); }
  #q-list li.note { color: var(--nx-text-dim); }
  #menu { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem + 66px); right: .6rem; }
  .forgot { display: block; margin: -.2rem 0 0 auto; padding: .2rem .1rem; font-size: .9rem; }
  .captcha-box { display: flex; justify-content: center; }
  .captcha-box:empty { display: none; }

/* Carte trop dézoomée : un petit message plutôt qu'une carte sans commerce */
