:root {
  --page: #E9E8F3;
  --bg: #FFFFFF;
  --surface: #F5F5FA;
  --surface-2: #ECECF4;
  --text: #1B1B2F;
  --muted: #6B6B82;
  --line: #E4E4EE;
  --primary: #1D4ED8;
  --primary-soft: #DBEAFE;
  --on-primary: #FFFFFF;
  --deal-bg: #FFE9DF;
  --deal-text: #A8330F;
  --later-bg: #F0F0F6;
  --later-text: #5E5E75;
  --ok-bg: #DDF5E7;
  --ok-text: #14683A;
  --danger: #D1344E;
  --overlay: rgba(20, 20, 40, .45);
  --t-indigo: #DBEAFE; --tf-indigo: #1E40AF;
  --t-orange: #FFE8D6; --tf-orange: #B4490F;
  --t-pink: #FDE4EE; --tf-pink: #A3204F;
  --t-yellow: #FFF3C9; --tf-yellow: #8A6200;
  --t-green: #DCF3E3; --tf-green: #1B6B3A;
  --t-brown: #F1E3D6; --tf-brown: #7A4A22;
  --t-violet: #EBE1FB; --tf-violet: #5B2DA8;
  --t-teal: #D6F2EF; --tf-teal: #0F6B66;
  --t-blue: #DCEBFC; --tf-blue: #1B5CA8;
  --t-gray: #ECECF0; --tf-gray: #565668;
  --radius: 12px;
}
/* thème sombre permanent (ex-media dark) */
  :root {
    --page: #0B0B14;
    --bg: #14141F;
    --surface: #1D1D2C;
    --surface-2: #26263A;
    --text: #F1F1F8;
    --muted: #A2A2B8;
    --line: #2A2A3D;
    --primary: #60A5FA;
    --primary-soft: #172B4D;
    --on-primary: #0B1530;
    --deal-bg: #4A2216;
    --deal-text: #FFB59B;
    --later-bg: #26263A;
    --later-text: #B4B4C8;
    --ok-bg: #163B27;
    --ok-text: #8FE0B0;
    --danger: #FF7B91;
    --overlay: rgba(0, 0, 0, .6);
    --t-indigo: #172B4D; --tf-indigo: #93C5FD;
    --t-orange: #4A2A15; --tf-orange: #FFC49C;
    --t-pink: #4A1B2F; --tf-pink: #FFB3CF;
    --t-yellow: #473915; --tf-yellow: #FFE08A;
    --t-green: #16392A; --tf-green: #9BE3B5;
    --t-brown: #3C2A1C; --tf-brown: #E8C3A0;
    --t-violet: #32215A; --tf-violet: #CDB6FF;
    --t-teal: #123A38; --tf-teal: #8EE3DC;
    --t-blue: #16304F; --tf-blue: #A5CBFF;
    --t-gray: #2A2A38; --tf-gray: #BDBDCE;
  }


* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); }
.muted { color: var(--muted); }
.pad { padding: 16px; }

#app {
  position: relative;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  body { padding: 16px 0; }
  #app { height: calc(100dvh - 32px); border-radius: 18px; border: 1px solid var(--line); }
}

#screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
#tabbar { display: flex; border-top: 1px solid var(--line); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; border: 0; background: none; padding: 8px 0 9px; color: var(--muted); font-size: 11px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab i { font-size: 23px; }
.tab.on { color: var(--primary); font-weight: 700; }

/* En-tête */
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 6px; }
.brand { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: -.5px; }
.locpill { display: inline-flex; align-items: center; gap: 5px; max-width: 62%; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500; }
.locpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locpill i { font-size: 16px; color: var(--primary); flex-shrink: 0; }
.hello { padding: 4px 16px 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.hello-sub { padding: 0 16px; color: var(--muted); font-size: 14px; }

/* Barres de recherche */
.search { margin: 12px 16px 6px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; width: calc(100% - 32px); text-align: left; color: var(--muted); }
.search i { font-size: 20px; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); height: 100%; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--primary); }

/* Carrousel de catégories */
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 66px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); scroll-snap-align: start; }
.cat .ci { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; background: var(--surface); transition: transform .12s; }
.cat:active .ci { transform: scale(.94); }
.cat.on { color: var(--primary); font-weight: 700; }
.cat.on .ci { background: var(--primary); color: var(--on-primary); }
.cat.hl .ci { box-shadow: 0 0 0 2px var(--primary-soft); }
.cats-sep { flex: 0 0 1px; background: var(--line); margin: 6px 4px 22px; }

/* Pastilles de filtre */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; }
.chip i { font-size: 15px; }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.section { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 8px; }
.section h2 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.section small { color: var(--muted); font-size: 12px; }

/* Cartes d'offres (défilement horizontal) */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.ocard { flex: 0 0 172px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 0; overflow: hidden; text-align: left; scroll-snap-align: start; }
.ocard .band { height: 84px; display: flex; align-items: center; justify-content: center; font-size: 36px; position: relative; }
.ocard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.ocard h3 { font-size: 14px; font-weight: 700; }
.ocard .meta { font-size: 12px; color: var(--muted); }

/* Lignes de lieux */
.place { display: flex; gap: 12px; margin: 0 16px 14px; cursor: pointer; }
.thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; position: relative; overflow: hidden; }
.thumb img, .ocard .band img, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocard .band { overflow: hidden; height: 104px; }
.hero { overflow: hidden; height: 210px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.hero .ib { z-index: 2; }
.photo-note { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .45); padding: 3px 8px; border-radius: 7px; }
.place .pb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.place .r1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.place h3 { font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.place .meta { font-size: 13px; color: var(--muted); }
.heart { border: 0; background: none; padding: 2px; font-size: 22px; color: var(--muted); line-height: 1; flex: 0 0 auto; }
.heart.on { color: var(--danger); }

.deal { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; background: var(--deal-bg); color: var(--deal-text); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.deal.later { background: var(--later-bg); color: var(--later-text); font-weight: 600; }
.deal i { font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; }
.tag.ok { background: var(--ok-bg); color: var(--ok-text); }

/* Carte de points */
.pcard { margin: 14px 16px 0; width: calc(100% - 32px); border: 0; text-align: left; background: var(--primary); color: var(--on-primary); border-radius: 14px; padding: 14px 16px; display: block; }
.pcard .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .9; }
.pcard .big { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 2px 0 8px; }
.bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.pcard .sub { font-size: 12.5px; margin-top: 7px; opacity: .95; }
.pcard.flat { background: var(--surface); color: var(--text); }
.pcard.flat .bar { background: var(--line); }
.pcard.flat .bar i { background: var(--primary); }

.pcard .top span { display: inline-flex; align-items: center; gap: 5px; }
.pcard .big small { font-size: 14px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.series { margin: 10px 16px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.series .stx { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.series .stx b { color: var(--text); font-size: 14px; }
.dots { display: flex; gap: 8px; flex: 0 0 auto; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--on-primary); }
.dot.on { background: var(--primary); border: 2px solid var(--primary); }
.rcard { display: flex; align-items: center; gap: 12px; margin: 0 16px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.rcard.ok { border-color: var(--primary); background: var(--primary-soft); }
.ricon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 25px; }
.rbody { flex: 1; min-width: 0; }
.rbody h3 { font-size: 15px; font-weight: 700; }
.rbody p { font-size: 12.5px; color: var(--muted); }
.rbody .where { display: flex; gap: 5px; align-items: flex-start; margin-top: 3px; }
.rbody .where i { color: var(--primary); font-size: 14px; margin-top: 1px; flex: 0 0 auto; }
.rbody .miss { margin-top: 3px; color: var(--text); font-weight: 600; }
.mini { height: 5px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--primary); }
.rcard .btn { flex: 0 0 auto; }
.breakdown { margin: 12px auto 0; max-width: 280px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.breakdown div { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 14px; }
.breakdown div + div { border-top: 1px solid var(--line); }
.breakdown b { color: var(--ok-text); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.steps div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 15px; }
.steps span { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }

.banner { margin: 12px 16px 0; background: var(--later-bg); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--later-text); display: flex; gap: 10px; align-items: flex-start; }
.banner button { border: 0; background: none; padding: 0; margin-left: auto; font-size: 18px; color: var(--muted); line-height: 1; }
.notice { margin: 8px 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.notice button { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; }

.empty { text-align: center; padding: 36px 24px; color: var(--muted); }
.empty i { font-size: 38px; display: block; margin-bottom: 8px; color: var(--primary); }
.empty h3 { color: var(--text); font-size: 16px; margin-bottom: 4px; }

.resbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.seg button.on { background: var(--bg); color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

#map { height: calc(100dvh - 400px); min-height: 320px; margin: 4px 16px 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.pin { width: 26px; height: 26px; border-radius: 50%; background: #6B6B82; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.pin.park { background: #2f9e5b; width: 28px; height: 28px; margin: -1px; }
.minimap { height: 180px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 0; cursor: pointer; background: var(--surface); }
.pin.partner { background: #E5502A; width: 30px; height: 30px; margin: -2px; }

/* Pages plein écran */
#pages .page { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; z-index: 20; }
#pages .page.enter { animation: up .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ph { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
.ph h2 { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.pscroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

.hero { height: 210px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.hero .back, .hero .fav { position: absolute; top: calc(10px + env(safe-area-inset-top)); }
.hero .back { left: 12px; }
.hero .fav { right: 12px; }
.hero .ib { background: rgba(255, 255, 255, .9); color: #1B1B2F; }
.hero .ib.on { color: #D1344E; }
.dbody { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dbody h1 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.drow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--muted); font-size: 14px; }
.dealbox { border-radius: 12px; background: var(--deal-bg); color: var(--deal-text); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.dealbox.later { background: var(--later-bg); color: var(--later-text); }
.dealbox strong { font-size: 18px; letter-spacing: -.3px; }
.dealbox small { font-size: 13px; }
.info { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info > div { display: flex; gap: 12px; padding: 12px 14px; font-size: 14px; align-items: flex-start; }
.info > div + div { border-top: 1px solid var(--line); }
.info i { font-size: 19px; color: var(--primary); flex: 0 0 auto; margin-top: 1px; }
.info a { word-break: break-all; }

.btn { border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary); width: 100%; text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--text); }
.btn.line { background: none; border: 1.5px solid var(--primary); color: var(--primary); }
.btn.small { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 11px; }
.btn.danger { background: none; color: var(--danger); }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns.row { flex-direction: row; }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 15px; font-weight: 700; }
.slot small { font-size: 11.5px; font-weight: 700; color: var(--deal-text); }
.slot.disc { border-color: var(--deal-text); background: var(--deal-bg); color: var(--deal-text); }
.slot.off { opacity: .4; pointer-events: none; text-decoration: line-through; }
.slot.mine { border-color: var(--ok-text); background: var(--ok-bg); color: var(--ok-text); }
.slot.mine small { color: var(--ok-text); }
.h3 { font-size: 16px; font-weight: 700; }

/* Lignes de liste (profil) */
.lrow { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 14px 16px; text-align: left; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.lrow > i:first-child { font-size: 22px; color: var(--primary); width: 26px; text-align: center; }
.lrow .r { margin-left: auto; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.lrow .r.ok { color: var(--ok-text); font-weight: 700; }
.who { display: flex; align-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top)) 16px 6px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 21px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.who h1 { font-size: 20px; font-weight: 700; }
.who p { color: var(--muted); font-size: 13px; }

.item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.item .grow { flex: 1; min-width: 0; }
.item h3 { font-size: 15px; font-weight: 700; }
.item p { font-size: 13px; color: var(--muted); }
.pts { font-weight: 700; font-size: 15px; }
.pts.plus { color: var(--ok-text); }
.pts.minus { color: var(--deal-text); }

.code { font-family: ui-monospace, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: 4px; text-align: center; background: var(--surface); border: 2px dashed var(--primary); border-radius: 12px; padding: 18px; color: var(--primary); }
.viewfinder { position: relative; aspect-ratio: 1; max-width: 260px; margin: 8px auto; border-radius: 16px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--muted); }
.viewfinder::before, .viewfinder::after { content: ''; position: absolute; width: 44px; height: 44px; border: 4px solid var(--primary); }
.viewfinder::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.viewfinder::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.big-ok { text-align: center; padding: 24px 16px; }
.big-ok .circle { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text); display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto 14px; }
.big-ok h2 { font-size: 26px; letter-spacing: -.5px; }
.big-ok.bad .circle { background: var(--deal-bg); color: var(--deal-text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; height: 50px; border: 1.5px solid var(--line); background: var(--bg); border-radius: 13px; padding: 0 14px; font-size: 16px; outline: none; color: var(--text); }
.input:focus { border-color: var(--primary); }
.err { color: var(--danger); font-size: 13px; font-weight: 500; }
.hint { color: var(--muted); font-size: 13px; }
.demo-box { background: var(--later-bg); color: var(--later-text); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.demo-box b { color: var(--text); font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.geo-item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; align-items: center; font-size: 14px; }
.geo-item i { color: var(--primary); font-size: 20px; }

/* Accueil / connexion */
#onb .onb { position: absolute; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; }
.onb .top { background: radial-gradient(120% 70% at 85% 0, color-mix(in srgb, var(--primary-2) 55%, transparent), transparent 60%), linear-gradient(165deg, var(--hero-a), var(--hero-b)); color: #fff; box-sizing: border-box; min-height: var(--topH); padding: calc(46px + env(safe-area-inset-top)) 24px 34px; border-radius: 0 0 50% 50% / 0 0 44px 44px; flex-shrink: 0; }
.onb .top .logo { font-size: 34px; font-weight: 700; letter-spacing: -1px; }
.onb .top p { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.3; max-width: 300px; }
.onb .form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.onb .form h2 { font-size: 20px; letter-spacing: -.3px; }
.perks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.perks i { font-size: 20px; color: var(--primary); }
.linkbtn { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px; align-self: center; }

#toast { position: absolute; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 100; background: #1B1B2F; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }
/* thème sombre permanent (ex-media dark) */
 #toast { background: #F1F1F8; color: #14141F; } 


/* Ouverture : logo, nom lettre par lettre, puis le fond se replie en bandeau courbe vers l'écran de connexion */
:root { --topH: calc(200px + env(safe-area-inset-top)); }
#intro { position: absolute; inset: 0; z-index: 200; overflow: hidden; color: #fff; cursor: pointer; }
#intro .isw { position: absolute; inset: 0; background: radial-gradient(120% 70% at 85% 0, color-mix(in srgb, var(--primary-2) 55%, transparent), transparent 60%), linear-gradient(165deg, var(--hero-a), var(--hero-b));
  clip-path: inset(0 0 0 0 round 0 0 50% 50% / 0 0 44px 44px); }
#intro .ictr { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); text-align: center; padding: 0 24px; }
#intro .imark { display: block; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 18px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.4) rotate(-10deg); }
#intro .iname { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
#intro .il { display: inline-block; opacity: 0; transform: translateY(26px) scale(.96); }
#intro .itag { margin-top: 10px; font-size: 16px; font-weight: 500; opacity: 0; transform: translateY(10px); }
#intro.play .imark { animation: iMark .8s cubic-bezier(.2, 1.3, .35, 1) 2.45s forwards; }
#intro.play .il { animation: iLetter .6s cubic-bezier(.2, .9, .3, 1) both; }
#intro.play .itag { animation: iTag .6s ease-out 3.4s forwards; }
.intro-skip { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; opacity: .55; pointer-events: none; }
#intro.fold { pointer-events: none; }
#intro.fold .isw { animation: iFold .8s cubic-bezier(.65, 0, .25, 1) forwards; }
#intro.fold .ictr { animation: iUp .5s cubic-bezier(.5, 0, .75, 0) forwards; }
#intro.fold .intro-skip { opacity: 0; }
#intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1); }
@keyframes iMark { 0% { opacity: 0; transform: scale(.4) rotate(-10deg); } 100% { opacity: 1; transform: none; } }
@keyframes iLetter { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes iTag { to { opacity: .88; transform: none; } }
@keyframes iFold { to { clip-path: inset(0 0 calc(100% - var(--topH)) 0 round 0 0 50% 50% / 0 0 44px 44px); } }
@keyframes iUp { to { opacity: 0; transform: translateY(calc(-54% - 60px)); } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }
/* Caméra de scan (mode réel) */
#cam-ov { position: absolute; inset: 0; z-index: 150; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 24px; }
#cam-ov video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#cam-ov p, #cam-ov button { position: relative; }
#cam-ov p { color: #fff; font-weight: 600; background: rgba(0, 0, 0, .5); padding: 8px 14px; border-radius: 12px; }

.leaflet-container { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Comptes : tout public / étudiant vérifié */
.dealbox.upsell { background: var(--primary-soft); color: var(--primary); border: 1.5px dashed var(--primary); }
.dealbox.upsell small { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.dealbox.upsell .btn { margin-top: 8px; }
.unlock { margin: 14px 16px 0; background: var(--primary-soft); color: var(--text); border: 1.5px dashed var(--primary); border-radius: 14px; padding: 14px 16px; }
.unlock .top { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); font-weight: 700; }
.unlock h3 { font-size: 18px; margin-top: 4px; }
.unlock p { font-size: 13.5px; color: var(--muted); margin: 4px 0 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 2px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { gap: 10px; }
.kindnote { margin-top: -6px; }
.field input[type="password"] { letter-spacing: 1px; }

/* Liens d'aide / légal et groupes du profil */
a.lrow { text-decoration: none; color: inherit; }
.lgroup { margin: 18px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.legalnote { text-align: center; font-size: 12px; }
.legalnote a { color: var(--muted); }

/* Visite guidée, hors connexion, partage, avertissements */
#tour { position: absolute; inset: 0; z-index: 180; background: rgba(20, 20, 40, .6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.tour-card { width: 100%; max-width: 420px; background: var(--bg); border-radius: 18px; padding: 24px 20px 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; margin-bottom: env(safe-area-inset-bottom); animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.tour-ic { width: 64px; height: 64px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.tour-card h2 { font-size: 21px; letter-spacing: -.4px; }
.tour-card p { color: var(--muted); font-size: 15px; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--primary); width: 22px; border-radius: 4px; }
#offline { position: absolute; top: 0; left: 0; right: 0; z-index: 190; background: #1B1B2F; color: #fff; text-align: center; font-size: 13px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; }
.banner.warn { background: var(--deal-bg); color: var(--deal-text); }
.hero .share { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 60px; }
#cf-box { min-height: 0; margin: 4px 0; }
.linkbtn:disabled { opacity: .55; text-decoration: none; cursor: default; }

/* Cible tactile du coeur : zone de 40 px sans changer l'apparence */
.heart { padding: 9px; margin: -9px -9px -9px 0; }

/* Commandes de menus, avis, route */
.menu-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border, rgba(127,127,127,.2)); }
.menu-line .ml { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-line .ml span { font-size: 13px; }
.qty { display: flex; align-items: center; gap: 10px; flex: none; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.qty .ib:disabled { opacity: .35; }
.cart-sum { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.cart-sum .cs-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-sum .cs-row b { font-size: 20px; }
.stars { display: flex; gap: 6px; }
.star { background: none; border: 0; font-size: 34px; color: var(--muted); cursor: pointer; padding: 2px; line-height: 1; }
.star.on { color: #f5a524; }
button.item { background: none; border: 0; border-bottom: 1px solid var(--border, rgba(127,127,127,.2)); color: inherit; font: inherit; cursor: pointer; }

.agebox { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 2px; }
.agebox input { width: 18px; height: 18px; }

/* Baseline mobile : pas de rebond de la page, pas de gonflement du texte, liens réactifs, zone de saisie multiligne */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; }
a, [role="button"] { touch-action: manipulation; }
textarea.input { height: auto; min-height: 72px; padding: 12px 14px; line-height: 1.4; resize: vertical; font-family: inherit; }
html.no-intro #intro { display: none !important; }

/* Cadeau dans la commande, parrainage */
.gift-line { display: flex; align-items: center; gap: 10px; background: var(--primary-soft); border-radius: 12px; padding: 10px 12px; }
.gift-line i { font-size: 20px; color: var(--primary); }
.gift-line span { flex: 1; font-size: 14px; }
.gift-line small { color: var(--muted); }
/* Commande de groupe (13 octobre) */
.groupbar { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); }
.groupbar .gb-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.groupbar .gb-top i { font-size: 22px; color: var(--primary); }
.groupbar .gb-top small { color: var(--muted); }
.groupbar .gb-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* ---- Ticket de commande validée, « +1 » animé, confettis, commande en cours (12-13 octobre) ---- */
.banner.order-live { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 8px 16px; text-align: left; background: var(--primary-soft); color: var(--text); border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 12px; font: inherit; cursor: pointer; }
.banner.order-live > span { flex: 1; }
.rticket { position: relative; margin: 12px 16px; padding: 16px; background: var(--bg); border: 1.5px dashed var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; overflow: hidden; }
.rticket::before, .rticket::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--bg) 5.5px) 0 0 / 12px 8px repeat-x; }
.rticket::before { top: -4px; }
.rticket::after { bottom: -4px; transform: scaleY(-1); }
.rticket .rt-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.rticket .rt-head span { color: var(--muted); font-size: 13px; }
.rticket .rt-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.rticket .rt-line.total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 800; }
.rticket .rt-points { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-text); font-weight: 700; text-align: center; }
.rticket .rt-stamp { position: absolute; right: 14px; bottom: 54px; transform: rotate(-14deg); border: 3px solid var(--ok-text); color: var(--ok-text); border-radius: 10px; padding: 2px 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 18px; opacity: .85; animation: stampIn .35s ease-out both; }
@keyframes stampIn { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .85; } }
.pop { position: fixed; left: 50%; top: 42%; z-index: 80; transform: translateX(-50%); font-size: 44px; font-weight: 900; color: var(--primary); text-shadow: 0 2px 0 var(--bg); pointer-events: none; animation: popUp 1.3s ease-out both; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.confetti { position: fixed; inset: 0; z-index: 79; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confFall 2.2s ease-in both; }
@keyframes confFall { to { top: 105%; opacity: .9; } }
/* La pièce Student : Carlin sur une pièce d'or (13 octobre) */
.pcard .big .coin { width: 32px; height: 32px; vertical-align: -7px; margin-right: 8px; }
.pop img { display: block; width: 64px; height: 64px; margin: 0 auto 6px; animation: coinSpin 1s ease-out both; }
@keyframes coinSpin { 0% { transform: rotateY(0) scale(.5); } 60% { transform: rotateY(540deg) scale(1.1); } 100% { transform: rotateY(720deg) scale(1); } }
.rticket .rt-carlin { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.rticket .rt-carlin img { width: 34px; height: 34px; }
@media (prefers-reduced-motion: reduce) { .pop, .pop img, .confetti, .rticket .rt-stamp { animation: none; } }
/* Carlin debout dans les écrans vides (13 octobre) */
.empty > i, .empty > .ti { display: none; }
.empty::before { content: ""; display: block; width: 132px; height: 132px; margin: 0 auto 10px; background: url("../icons/carlin-debout.svg") center / contain no-repeat; }
/* Bandeau du mode démo (13 octobre) */
#demo-bar { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); z-index: 60; margin: 0 16px; padding: 8px 12px; border-radius: 12px; background: var(--warn-bg, #fdf0d2); color: var(--warn, #8a5a00); font-size: 13px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
#demo-bar button { margin-left: 6px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; padding: 6px; }
/* Photos des menus, rappel doux, maintenance (13 octobre) */
.menu-line .ml-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; margin-right: 10px; background: var(--surface-2, #eee); }
.series.nudge { display: flex; align-items: center; gap: 8px; }
.series.nudge .stx { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; flex: 1; display: block; }
.maint { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; }
.maint img { width: 140px; height: 140px; }
.maint h1 { margin: 0; }
/* Prix sur la carte et paiement dans l'appli (14 octobre) */
.pin-price { position: absolute; left: 30px; top: 2px; padding: 1px 6px; border-radius: 8px; background: #fff; color: #1c1b2e; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); display: none; pointer-events: none; }
.pin-price.partner { background: #C2410C; color: #fff; }
.show-prices .pin-price { display: block; }
#paysheet { position: absolute; inset: 0; z-index: 85; background: rgba(8, 8, 18, .6); display: flex; align-items: flex-end; justify-content: center; }
#paysheet .pay-card { width: 100%; max-width: 480px; background: var(--bg); color: var(--text); border-radius: 14px 14px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
#paysheet h2 { margin: 0; }

/* ---- 14 octobre : liste coulissante sous la carte, plat du jour, options, allergènes, budget, justificatif ---- */
.mapwrap { position: relative; margin: 4px 16px 8px; height: calc(100dvh - 400px); min-height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mapwrap #map { height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.msheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; display: flex; flex-direction: column; background: var(--bg); border-radius: 14px 14px 0 0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .22); transition: height .34s cubic-bezier(.2, .8, .2, 1); height: 190px; will-change: height; }
.msheet[data-state="half"] { height: 60%; }
.msheet[data-state="full"] { height: 94%; }
.mgrab { flex: none; display: flex; justify-content: center; align-items: center; height: 26px; border: 0; background: none; touch-action: none; cursor: grab; }
.mgrab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.mbody { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.mhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 8px; font-size: 14px; }
.mlist { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 10px; overscroll-behavior: contain; }
.scard { display: flex; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; }
.scard + .scard { margin-top: 2px; }
.scard.sel { border-color: var(--primary); background: var(--primary-soft); }
.scard .thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.scard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard .pb { min-width: 0; flex: 1; }
.scard h3 { margin: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .meta { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.scard .rate { color: var(--text); font-weight: 700; }
.scard .rate i { color: #E8A100; font-size: 13px; vertical-align: -1px; margin-right: 2px; }
.scard .st.ok { color: var(--ok-text); font-weight: 600; }
.scard .st.bad { color: var(--danger); font-weight: 600; }
.pin-wrap.sel, .leaflet-marker-icon.sel { z-index: 900 !important; }
.leaflet-marker-icon.sel .pin { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 55%, transparent), 0 1px 4px rgba(0, 0, 0, .35); }
.leaflet-marker-icon.sel .pin-price { display: block; }
.surprise-btn { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 8px 16px 0; padding: 11px 14px; border: 1.5px dashed var(--primary); background: var(--primary-soft); color: var(--primary); border-radius: 12px; font-weight: 700; text-align: left; }
.surprise-btn small { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.surprise { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.surprise .hero { width: 100%; height: 180px; border-radius: 12px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.surprise .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-line { flex-wrap: wrap; }
.menu-line .opts { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 0 2px 2px; }
.menu-line .opts .chip { padding: 5px 10px; font-size: 12.5px; }
.menu-line.special { background: linear-gradient(90deg, var(--ok-bg), transparent 70%); border-radius: 12px; padding-left: 8px; }
.menu-line .tag.sp { background: var(--ok-bg); color: var(--ok-text); }
.menu-line .allergens { font-size: 12px; color: var(--muted); }
.menu-line .allergens.warn { color: var(--deal-text); background: var(--deal-bg); border-radius: 6px; padding: 2px 6px; font-weight: 600; }
.menu-line .allergens i { margin-right: 4px; }
.menu-line .diets { display: flex; flex-wrap: wrap; gap: 4px; }
.menu-line .diets i { font-style: normal; font-size: 11px; font-weight: 600; background: var(--ok-bg); color: var(--ok-text); border-radius: 999px; padding: 1px 7px; }
.waitline { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.waitline span { color: var(--text); font-weight: 600; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 4px 0 12px; }
.banner .soon, .soon { color: var(--deal-text); }
.route-info { margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.receipt { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.receipt h1 { margin: 0; font-size: 19px; }
.receipt .rc-order { padding-top: 10px; border-top: 1px dashed var(--line); }
.receipt .rc-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.receipt .rc-head span, .receipt .rc-addr { color: var(--muted); font-size: 13px; margin: 2px 0; }
.receipt .rt-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.receipt .rt-line.total { font-weight: 800; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.receipt .rt-line.big { font-size: 17px; }
.receipt .rc-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
@media print {
  body.printing #tabbar, body.printing #screen, body.printing .ph, body.printing .noprint, body.printing #toast, body.printing #demo-bar, body.printing #offline { display: none !important; }
  body.printing .page:not(:last-child) { display: none !important; }
  body.printing, body.printing #app, body.printing .page, body.printing .pscroll { background: #fff !important; color: #000 !important; position: static !important; height: auto !important; overflow: visible !important; }
  body.printing .receipt { border: 0; color: #000; }
}

/* ---- 15 octobre : vote, panier surprise, flash des favoris, J'arrive dans N min, paramètres ---- */
.menu-line .net { font-size: 12px; color: var(--ok-text); }
.menu-line .left { font-size: 12px; font-weight: 700; color: var(--deal-text); }
.menu-line .left.out { color: var(--danger); }
.menu-line.sur-line { background: linear-gradient(90deg, var(--deal-bg), transparent 70%); border-radius: 12px; padding-left: 8px; }
.hint.warn { color: var(--deal-text); background: var(--deal-bg); border-radius: 8px; padding: 6px 8px; }
.banner.flash { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 8px 16px; text-align: left; background: var(--deal-bg); color: var(--deal-text); border: 0; border-radius: var(--radius); padding: 12px; font: inherit; cursor: pointer; }
.banner.flash > span { flex: 1; }
.arrive { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.poll-opt.on { background: var(--primary-soft); }
.poll-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 14px 16px; overflow: hidden; font: inherit; }
.poll-row .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary-soft); z-index: 0; transition: width .3s; }
.poll-row .pn, .poll-row b { position: relative; z-index: 1; }
.poll-row .pn i { margin-right: 6px; color: var(--primary); }
.poll-row.mine { border-color: var(--primary); }
.poll-row.lead b { color: var(--primary); }
.poll-row:disabled { opacity: .85; }

/* ---- 16 octobre : paniers et fins de service, compteur de repas sauvés ---- */
.menu-line .worth { font-size: 12px; color: var(--ok-text); font-weight: 600; }
.pcard .sav { margin-top: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; opacity: .95; }
.banner.baskets { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 8px 16px; text-align: left; background: var(--ok-bg); color: var(--ok-text); border: 0; border-radius: var(--radius); padding: 12px; font: inherit; cursor: pointer; }
.banner.baskets > span { flex: 1; }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider label { font-weight: 600; }
.slider input[type=range] { width: 100%; accent-color: var(--primary); min-height: 32px; }
.bk { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; margin-bottom: 8px; }
.bk-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bk-price { font-weight: 800; color: var(--ok-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-meta { font-size: 13px; color: var(--muted); }

/* ---- 16 octobre : cibles tactiles d'au moins 36 px et contrastes (audit d'accessibilité) ---- */
.seg button { min-height: 36px; }
.linkbtn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.mgrab { height: 36px; }
.banner button { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.dbody a:not(.btn), .info a, .pscroll .hint a { display: inline-block; padding-block: 8px; }
.menu-line .opts .chip { min-height: 36px; }
.chip { min-height: 36px; }
#update-bar { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); z-index: 70; margin: 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-size: 14px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
#update-bar button { margin-left: 8px; border: 0; background: var(--on-primary); color: var(--primary); font: inherit; font-weight: 700; border-radius: 8px; padding: 6px 12px; min-height: 36px; }

/* ---- 17 octobre : fluidité (retour au toucher, fondus, transitions douces) ---- */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
#screen { scroll-behavior: smooth; }
#screen.swap { animation: swapIn .26s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.btn, .chip, .seg button, .lrow, .tab, .place, .scard, .cat .ci, .search, .surprise-btn { transition: transform .16s var(--ease), background-color .16s, color .16s, border-color .16s, box-shadow .16s, opacity .16s; }
.btn:active { transform: scale(.97); }
.chip:active, .seg button:active { transform: scale(.94); }
.place:active, .scard:active, .surprise-btn:active { transform: scale(.985); }
.lrow:active { background: var(--surface); }
.tab:active { transform: scale(.92); }
.tab i { transition: transform .22s var(--ease); }
.tab.on i { transform: translateY(-1px) scale(1.08); }
.tab.on { position: relative; }
.tab.on::before { content: ''; position: absolute; top: 0; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--primary); animation: tabBar .24s var(--ease); }
@keyframes tabBar { from { transform: scaleX(0); } to { transform: none; } }
.seg { position: relative; }
.mapwrap { isolation: isolate; }
.hscroll > * { scroll-snap-align: start; }
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }

/* ---- 17 octobre (2) : onglet Restos repensé (pictogrammes, cartes photo, ticket de remise, carte plus légère) ---- */
:root {
  --primary-2: #0EA5E9;
  --ticket: #D63A17;
  --ticket-later: rgba(18, 16, 40, .74);
  --glass: rgba(255, 255, 255, .88);
  --glass-ink: #1B1B2F;
  --hi: rgba(255, 255, 255, .7);
  --shadow-card: 0 12px 26px -16px rgba(28, 22, 70, .55);
}
/* thème sombre permanent (ex-media dark) */
  :root {
    --primary-2: #38BDF8;
    --glass: rgba(24, 24, 36, .74);
    --glass-ink: #F1F1F8;
    --hi: rgba(255, 255, 255, .10);
    --shadow-card: 0 14px 28px -16px rgba(0, 0, 0, .9);
  }

/* Photos : celles déjà vues s'affichent tout de suite, les nouvelles arrivent en fondu */
img[onload^="__imgOk"] { transition: opacity .35s ease, transform .45s var(--ease); }
img[onload^="__imgOk"]:not(.ld) { opacity: 0; }

/* Recherche et filtres */
.search { border-radius: 999px; border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); height: 50px; }
.search:focus-within { border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 4px var(--primary-soft); }
.chip { transition: transform .16s var(--ease), background-color .2s, color .2s, border-color .2s; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Pictogrammes de catégories */
.cats { gap: 2px; padding: 10px 12px 8px; }
.cat { width: 74px; gap: 7px; line-height: 1.15; text-align: center; }
.cat .ci { width: 62px; height: 62px; border-radius: 16px; position: relative; font-size: 26px; color: var(--cf, var(--primary));
  background: radial-gradient(90% 80% at 28% 18%, var(--hi), transparent 62%), var(--ct, var(--surface));
  box-shadow: 0 8px 16px -12px rgba(28, 22, 70, .7); transition: transform .22s var(--ease), box-shadow .22s, background .22s; }
.cat .emo { font-size: 32px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.cat.on .ci { background: radial-gradient(90% 80% at 28% 18%, rgba(255, 255, 255, .28), transparent 62%), linear-gradient(150deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 20px -10px var(--primary); }
.cat.on .emo { transform: scale(1.14) rotate(-8deg); }
.cat:active .ci { transform: scale(.92); }
.cat.hl .ci { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }

/* Bascule Carte / Liste : le curseur glisse */
.seg.vt { display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; }
.seg.vt::before { content: ''; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 8px; background: var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); transition: transform .26s var(--ease); }
.seg.vt[data-i="1"]::before { transform: translateX(calc(100% + 2px)); }
.seg.vt button { position: relative; z-index: 1; justify-content: center; transition: color .2s; }
.seg.vt button.on { background: none; box-shadow: none; }
#lres.vin { animation: swapIn .26s var(--ease); }

/* Grandes cartes photo des partenaires */
.place.vcard { display: block; margin: 6px 16px 24px; }
.vph { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: var(--shadow-card); }
.vph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 32, .55), rgba(12, 10, 32, 0) 50%); pointer-events: none; }
.vph .heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: var(--glass); color: var(--glass-ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vph .heart.on { color: #E11D48; }
.vb { padding: 11px 4px 0; display: flex; flex-direction: column; gap: 5px; }
.vr1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.place.vcard h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; -webkit-line-clamp: 1; }
.vrate { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vrate i { color: #E8A100; font-size: 15px; }
.vrate small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.vfacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.vfacts span { display: inline-flex; align-items: center; gap: 4px; }
.vfacts i { font-size: 15px; }
.vfacts .ok { color: var(--ok-text); font-weight: 700; }
.vfacts .ok i { font-size: 11px; }
.vfacts .bad { color: var(--danger); font-weight: 700; }
@media (hover: hover) { .place.vcard:hover .vph > img.ld { transform: scale(1.03); } }
/* Lignes compactes des autres adresses */
.place:not(.vcard) .thumb { width: 64px; height: 64px; border-radius: 12px; }
.heart.pulse i { display: inline-block; animation: heartPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heartPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: none; } }

/* Ticket de remise : talon perforé, encoches sur les côtés */
.ticket, .deal {
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.deal { padding: 4px 11px; border-radius: 6px; }
.ticket { position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 20px); display: inline-flex; align-items: stretch; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 9px;
  background: var(--ticket); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: -.1px; text-align: left; }
.ticket > i { font-size: 15px; padding-right: 8px; border-right: 1.5px dashed rgba(255, 255, 255, .6); display: flex; align-items: center; }
.ticket > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ticket small { font-size: 11px; font-weight: 600; opacity: .9; }
.ticket.later, .ticket.locked { background: var(--ticket-later); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticket s { text-decoration-thickness: 1.5px; }
.ocard .ticket { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 11px 5px 9px; font-size: 12px; gap: 6px; }
.ocard .ticket > i { font-size: 13px; padding-right: 6px; }
.ocard .band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 32, .45), transparent 55%); pointer-events: none; }

/* Chargement : silhouettes de cartes */
.skel { display: flex; flex-direction: column; gap: 22px; padding: 6px 16px 16px; }
.sk-ph, .sk-l { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 250% 100%; animation: shimmer 1.3s linear infinite; }
.sk-ph { aspect-ratio: 16 / 9; border-radius: 16px; }
.sk-l { height: 14px; border-radius: 7px; margin-top: 12px; width: 62%; }
.sk-l.s { width: 38%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Carte : fond adouci, étiquettes des partenaires, commandes en verre */
.mapwrap { border: 0; border-radius: 18px; box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.mapwrap .leaflet-tile-pane, .minimap .leaflet-tile-pane { filter: saturate(.5) brightness(1.03) contrast(.97); }
/* thème sombre permanent (ex-media dark) */
  .mapwrap .leaflet-tile-pane, .minimap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.9) contrast(.9); }
  .mapwrap .leaflet-container, .minimap.leaflet-container { background: #1a1a26; }

#app .mapwrap .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px -8px rgba(20, 16, 50, .55); }
#app .mapwrap .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; background: var(--glass); color: var(--glass-ink); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#app .mapwrap .leaflet-control-attribution { background: var(--glass); color: var(--muted); border-radius: 0 0 10px 0; font-size: 10px; }
.mk { background: none; border: 0; }
.mpin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: var(--bg); color: var(--text); font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px -4px rgba(20, 16, 50, .45), 0 0 0 1px var(--line); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), background-color .2s; }
.mpin::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.mpin.partner { background: #1E2A4A; color: #fff; box-shadow: 0 6px 14px -4px rgba(20, 16, 50, .6); }
.mpin.partner.live { background: var(--ticket); box-shadow: 0 6px 16px -4px rgba(214, 58, 23, .6); }
.mpin i { font-size: 14px; }
.mpin b + span { padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .45); font-weight: 600; }
#map:not(.show-prices) .mpin b + span { display: none; } /* vue large : la remise seule ; en zoomant, la remise et le prix */
.leaflet-marker-icon.mk.sel { z-index: 1000 !important; }
.leaflet-marker-icon.sel .mpin { transform: translate(-50%, calc(-100% - 7px)) scale(1.14); background: var(--primary); color: var(--on-primary); }
.leaflet-tooltip { font-family: inherit; font-weight: 600; border-radius: 10px; border: 0; box-shadow: 0 6px 16px -6px rgba(20, 16, 50, .5); }
.msheet { border-radius: 18px 18px 0 0; }
.scard .thumb { width: 68px; height: 68px; border-radius: 12px; }
/* ---- 17 octobre (3) : accueil plus vivant ; couleur de base Océan (choisie le 17 octobre), autres couleurs à l'essai (?couleur=indigo | menthe | corail | fuchsia) ---- */
:root { --hero-a: #1E40AF; --hero-b: #0369A1; }
/* thème sombre permanent (ex-media dark) */
 :root { --hero-a: #1E3A8A; --hero-b: #075985; } 

:root[data-palette="menthe"] { --primary: #047857; --primary-2: #10B981; --primary-soft: #D1FAE5; --on-primary: #FFFFFF; --hero-a: #065F46; --hero-b: #059669; --t-indigo: #D1FAE5; --tf-indigo: #065F46; }
:root[data-palette="corail"] { --primary: #C2410C; --primary-2: #F97316; --primary-soft: #FFEDD5; --on-primary: #FFFFFF; --hero-a: #9A3412; --hero-b: #C93C0C; --ticket: #BE123C; --t-indigo: #FFEDD5; --tf-indigo: #9A3412; }
:root[data-palette="fuchsia"] { --primary: #A21CAF; --primary-2: #DB2777; --primary-soft: #FAE8FF; --on-primary: #FFFFFF; --hero-a: #86198F; --hero-b: #BE185D; --t-indigo: #FAE8FF; --tf-indigo: #86198F; }
:root[data-palette="indigo"] { --primary: #4338CA; --primary-2: #7C3AED; --primary-soft: #E8E6FB; --on-primary: #FFFFFF; --hero-a: #4338CA; --hero-b: #7C3AED; --t-indigo: #E8E6FB; --tf-indigo: #3730A3; }
/* thème sombre permanent (ex-media dark) */
  :root[data-palette="menthe"] { --primary: #34D399; --primary-2: #6EE7B7; --primary-soft: #0F3B2E; --on-primary: #04261B; --hero-a: #064E3B; --hero-b: #047857; --t-indigo: #0F3B2E; --tf-indigo: #6EE7B7; }
  :root[data-palette="corail"] { --primary: #FB923C; --primary-2: #FDBA74; --primary-soft: #4A2614; --on-primary: #2A1206; --hero-a: #7C2D12; --hero-b: #9A3412; --ticket: #E11D48; --t-indigo: #4A2614; --tf-indigo: #FDBA74; }
  :root[data-palette="fuchsia"] { --primary: #E879F9; --primary-2: #F472B6; --primary-soft: #3D1645; --on-primary: #2A0830; --hero-a: #701A75; --hero-b: #9D174D; --t-indigo: #3D1645; --tf-indigo: #F0ABFC; }
  :root[data-palette="indigo"] { --primary: #8B84FF; --primary-2: #B69CFF; --primary-soft: #26254F; --on-primary: #12121F; --hero-a: #3730A3; --hero-b: #6D28D9; --t-indigo: #26254F; --tf-indigo: #BDB9FF; }


/* Bandeau d'accueil */
.hero-home { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-bottom: 18px; border-radius: 0 0 30px 30px;
  background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); }
.hero-home::before, .hero-home::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-home::before { width: 260px; height: 260px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%); }
.hero-home::after { width: 220px; height: 220px; left: -80px; bottom: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); }
.hero-home .brand { color: #fff; }
.hero-home .locpill { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-home .locpill i { color: #fff; }
.hero-home .hello { padding: 10px 16px 0; font-size: 27px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; text-wrap: balance; }
.hero-home .hello .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 1.1s ease .25s 1; }
@keyframes wave { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg) scale(1.1); } 55% { transform: rotate(10deg); } }
.hero-home .hello-sub { color: rgba(255, 255, 255, .9); font-size: 14.5px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; }
.live-dot { flex: none; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.hero-home .search { margin: 16px 16px 0; background: var(--bg); color: var(--muted); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.hero-home .search i { color: var(--primary); }

/* Carte des pièces et carte « passe en compte étudiant » */
/* Carte des pièces : une carte de fidélité sombre, avec un reflet de la couleur de l'appli et une jauge dorée */
.pcard:not(.flat) { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 16px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: radial-gradient(130% 150% at 100% 0, color-mix(in srgb, var(--primary-2) 55%, transparent), transparent 58%), linear-gradient(140deg, #121A33, #1F2A52); }
.pcard:not(.flat)::after { content: ''; position: absolute; z-index: -1; left: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%); }
.pcard:not(.flat) .bar { background: rgba(255, 255, 255, .16); }
.pcard:not(.flat) .bar i { background: linear-gradient(90deg, #FBBF24, #F59E0B); box-shadow: 0 0 12px rgba(251, 191, 36, .6); }
.hscroll { scroll-padding-inline: 16px; }
.unlock { position: relative; border: 0; border-radius: 16px; background: radial-gradient(120% 90% at 100% 0, var(--hi), transparent 60%), var(--primary-soft); }
.unlock::after { content: '🎓'; position: absolute; right: 14px; top: 10px; font-size: 40px; transform: rotate(12deg); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .18)); font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.unlock .top, .unlock h3 { padding-right: 58px; }

/* Surprends-moi */
.surprise-btn { margin: 12px 16px 0; padding: 12px 14px; gap: 12px; border: 0; border-radius: 14px; color: var(--text); text-align: left;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, var(--primary), var(--primary-2), #F59E0B) border-box; border: 2px solid transparent; }
.surprise-btn .sx { flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 27px; background: var(--primary-soft);
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.surprise-btn .stx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.surprise-btn .stx b { font-size: 16px; font-weight: 800; color: var(--primary); }
.surprise-btn .stx small { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.surprise-btn > i { color: var(--primary); font-size: 20px; }
.surprise-btn:active .sx { transform: rotate(-25deg) scale(1.1); }

/* Carrousel de grandes cartes photo */
.hcards { gap: 14px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; }
.hcards .place.vcard { flex: 0 0 82%; margin: 0; scroll-snap-align: start; }
.section { padding: 20px 16px 10px; }
.section h2 { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.cats-sep { margin: 8px 6px 30px; }
/* Petites pastilles des défis sur l'accueil (Semaine active, Point du jour, Profil) */
.qrow { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; scrollbar-width: none; }
.qrow::-webkit-scrollbar { display: none; }
.qchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.qchip .qe { font-size: 17px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.qchip.on { background: var(--ok-bg); border-color: transparent; color: var(--ok-text); }
.qchip > i { font-size: 15px; }
.qchip.pop-q .qe { display: inline-block; animation: heartPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.qrow + .series.nudge { margin-top: 8px; }
/* ---- 17 octobre (5) : page de recherche façon TheFork (Où ? / Quoi ?, dernières recherches, idées, offres, types) ---- */
.sbox { margin: 4px 16px 0; border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 12px 26px -18px rgba(20, 30, 70, .5); transition: box-shadow .2s; }
.sbox:focus-within { box-shadow: 0 0 0 1.5px var(--primary), 0 0 0 5px var(--primary-soft); }
.sloc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 14px; text-align: left; color: var(--text); }
.sloc > i:first-child { font-size: 22px; color: var(--primary); }
.sloc > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sloc small { font-size: 12px; font-weight: 600; color: var(--muted); }
.sloc > i:last-child { color: var(--muted); font-size: 18px; }
.sq { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; }
.sq > i { font-size: 22px; color: var(--primary); }
.sq input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 16px; color: var(--text); }
.sq input::placeholder { color: var(--muted); }
.seeall { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 12px 16px 6px; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 15px; font-weight: 700; text-align: left; }
.seeall span { flex: 1; }
.seeall i { font-size: 20px; }
.seeall:active { transform: scale(.98); }
.recents { display: flex; flex-direction: column; padding: 0 8px; }
.recent { display: flex; align-items: center; }
.rq { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px; border: 0; background: none; color: var(--text); font-size: 15px; text-align: left; }
.rq i { flex: none; font-size: 19px; color: var(--muted); }
.rq span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rx { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 4px; }
.ideas .qe { font-size: 16px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.tilegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; padding: 0 8px 10px; }
.tilegrid .cat { width: auto; }
.section .linkbtn { border: 0; background: none; padding: 0 4px; color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; }
/* ---- 17 octobre (6) : refonte façon TheFork : univers Activités / Restos, accueil, carte et cartes photo, filtres ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#screen.swap { animation: fadeIn .26s var(--ease); }
#screen.noscroll { overflow: hidden; position: relative; }

/* Onglets du haut : Activités à gauche, Restos à droite, le trait glisse */
.wtabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: var(--bg); }
.wtab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; transition: color .2s; }
.wtab i { font-size: 19px; }
.wtab.on { color: var(--text); }
.wtabs::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 50%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; transition: transform .3s var(--ease); }
.wtabs[data-i="1"]::after { transform: translateX(100%); }

/* Accueil */
.hloc { display: flex; align-items: center; gap: 6px; max-width: calc(100% - 32px); margin: 14px 16px 0; padding: 4px 0; border: 0; background: none; color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.hloc i:first-child { color: var(--primary); font-size: 22px; }
.hloc i:last-child { color: var(--muted); font-size: 20px; }
.hloc span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hsearch { display: flex; gap: 10px; margin: 10px 16px 0; }
.hs-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--muted); text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); }
.hs-in i { color: var(--text); font-size: 21px; flex: none; }
.hs-in span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hs-map { flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 24px; display: flex; align-items: center; justify-content: center; }

/* Pictogrammes avec de vraies photos, dans des assiettes rondes */
.cats { gap: 6px; padding: 16px 12px 4px; }
.cat { width: 88px; gap: 8px; }
.cat .ci { width: 88px; height: 88px; border-radius: 18px; background: var(--surface); background-image: none; box-shadow: none; display: flex; align-items: center; justify-content: center; color: inherit; }
.cat .plate { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); box-shadow: 0 8px 14px -8px rgba(10, 20, 50, .6); }
.cat .plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat .plate .emo { font-size: 30px; filter: none; transform: none; }
.cat .plate.offer { background: linear-gradient(140deg, #22C55E, #15803D); }
.cat .cl { font-size: 13px; font-weight: 600; color: var(--text); }
.cat.on .ci { background: var(--primary-soft); background-image: none; box-shadow: inset 0 0 0 2.5px var(--primary); }
.cat.on .emo { transform: none; }
.cat.on .cl { color: var(--primary); font-weight: 800; }
.tilegrid .cat { width: auto; }
.tilegrid .cat .ci { width: 100%; max-width: 88px; }

/* Affiche d'auto-promotion */
.promo { position: relative; display: flex; align-items: stretch; width: calc(100% - 32px); min-height: 160px; margin: 18px 16px 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden; text-align: left; color: #fff;
  background: linear-gradient(120deg, #0B2259, var(--hero-a) 58%, var(--hero-b)); box-shadow: var(--shadow-card); }
.pr-txt { position: relative; z-index: 2; flex: 1 1 60%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 4px 18px 18px; }
.pr-txt b { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; text-wrap: balance; }
.pr-txt small { font-size: 13px; line-height: 1.35; opacity: .92; }
.pr-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--hero-a); font-size: 14px; font-weight: 800; }
.pr-img { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; width: 46%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%); }
.pr-img.mascot { width: 38%; height: 88%; top: auto; bottom: 8px; right: 10px; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
.banner.unlockbar { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--primary-soft); color: var(--text); text-align: left; font: inherit; }
.banner.unlockbar > span { flex: 1; }
.banner.unlockbar > i:first-child { color: var(--primary); font-size: 26px; }

.miniseg { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.miniseg::-webkit-scrollbar { display: none; }
.miniseg button { flex: none; min-height: 36px; padding: 7px 15px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; transition: background-color .2s, color .2s, transform .16s var(--ease); }
.miniseg button.on { background: var(--text); color: var(--bg); }
.miniseg button:active { transform: scale(.95); }
.rcents { gap: 10px; }
.rcent { flex: 0 0 80%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: inherit; text-align: left; scroll-snap-align: start; }
.rth { position: relative; flex: none; width: 78px; height: 78px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.rth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.rb b { max-width: 100%; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rb small { color: var(--muted); font-size: 12.5px; }
.hnear .place.vcard { margin: 6px 16px 22px; }

/* Photos qui glissent dans les cartes */
.vph .gal { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vph .gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.dots { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: width .2s, background-color .2s; }
.dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.vph .ticket { bottom: 24px; pointer-events: none; }
.rank { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #0B2259; color: #fff; font-size: 12.5px; font-weight: 800; }
.rank i { color: #FBBF24; font-size: 14px; }

/* Rechercher : en-tête, carte plein écran et cartes qui glissent en bas */
.xpill { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); min-height: 56px; margin: 12px 16px 0; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--text); text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); }
.xpill > i { font-size: 22px; flex: none; }
.xpill > span { display: flex; flex-direction: column; min-width: 0; }
.xpill b { font-size: 15.5px; font-weight: 800; }
.xpill small { font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.explore .chips { padding: 12px 16px 6px; }
.chip.filt .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--bg); color: var(--text); font-size: 11px; }
.chip > i:last-child:not(:first-child) { margin-left: 2px; }
.explore.map { position: absolute; inset: 0; display: flex; flex-direction: column; }
.xmap { position: relative; flex: 1; min-height: 0; margin-top: 6px; overflow: hidden; isolation: isolate; }
.xmap #map { position: absolute; inset: 0; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.mcar { position: absolute; left: 0; right: 0; bottom: 58px; z-index: 500; display: flex; gap: 10px; padding: 4px 8% 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mcar::-webkit-scrollbar { display: none; }
.mcar .mcard { flex: 0 0 84%; margin: 0; overflow: hidden; border-radius: 16px; background: var(--bg); scroll-snap-align: center; scroll-snap-stop: always; box-shadow: 0 14px 30px -12px rgba(10, 20, 50, .55), 0 0 0 1px var(--line); }
.mcar .mcard .vph { aspect-ratio: auto; height: 136px; border-radius: 0; box-shadow: none; }
.mcar .mcard .vb { padding: 10px 14px 12px; }
.mcar-empty { margin: 0 auto; padding: 14px 20px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-weight: 600; }
.xlist { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 16px 16px 0 0; background: var(--bg); color: var(--primary); font-size: 15px; font-weight: 800; box-shadow: 0 -10px 24px -14px rgba(10, 20, 50, .45); }
.xlist .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.fabmap { position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 800; transform: translateX(-50%); box-shadow: 0 12px 28px -8px rgba(10, 20, 50, .55), 0 0 0 1px var(--line); }
.fabmap i { font-size: 20px; }
.explore:not(.map) { padding-bottom: 90px; }

/* Marqueurs de la carte : étiquette bleu marine avec la note, la remise en dessous */
.mpin { flex-direction: column; align-items: center; gap: 3px; padding: 5px 10px 5px; border: 0; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-radius: 12px; box-shadow: 0 8px 16px -6px rgba(8, 20, 60, .6), 0 0 0 2px #fff; }
.mpin.partner, .mpin.partner.live { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: 0 8px 16px -6px rgba(8, 20, 60, .6), 0 0 0 2px #fff; }
.mpin .mn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.mpin .mn i { color: #FBBF24; font-size: 13px; }
.mpin .mpx { padding-left: 6px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .45); font-weight: 600; }
#map:not(.show-prices) .mpin .mpx { display: none; }
.mpin em { font-style: normal; padding: 1px 7px; border-radius: 6px; background: #16A34A; color: #fff; font-size: 11.5px; font-weight: 800; }
.mpin::after { bottom: -4px; }
.leaflet-marker-icon.sel .mpin { transform: translate(-50%, calc(-100% - 7px)) scale(1.14); background: #fff; color: var(--hero-a); box-shadow: 0 10px 20px -6px rgba(8, 20, 60, .7), 0 0 0 2px var(--hero-a); }
.leaflet-marker-icon.sel .mpin .mn i { color: #D97706; }
.leaflet-marker-icon.sel .mpin .mpx { border-left-color: rgba(11, 34, 89, .3); }

/* Page des filtres */
.fpage { padding: 0 16px 16px; }
.fsec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fsec h3 { margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchips .chip { min-height: 40px; }
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.fbar .btn { flex: 1; width: auto; max-width: 64%; }

/* Commandes, favoris */
.ttl { padding: 18px 16px 4px; font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.ttlrow { display: flex; align-items: center; justify-content: space-between; padding-right: 12px; }
.sub { padding: 22px 16px 10px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.oitem { display: flex; flex-direction: column; gap: 10px; margin: 0 16px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.oi-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.oth { position: relative; flex: none; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.oth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob b { font-size: 16px; }
.ob small { color: var(--muted); font-size: 13px; }
.ob .st { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ob .st.validated { color: var(--ok-text); }
.ob .st.pending, .ob .st.ready { color: var(--primary); }
.ob .st.refused, .ob .st.expired, .ob .st.cancelled { color: var(--danger); }
.oempty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.oempty p { font-size: 15px; font-weight: 600; }
.oempty .btn { width: auto; flex: none; }

/* Choix de la position */
.locsearch { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.locsearch > i { flex: none; font-size: 21px; color: var(--muted); }
.locsearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: none; color: var(--text); font-size: 16px; }
.campusbox .btn, .onb .btn[data-a="onb-campus"] { justify-content: space-between; }
/* correctifs de la refonte */
.pr-txt { max-width: 64%; }
.pr-img.mascot { width: 32%; height: auto; max-height: 82%; aspect-ratio: 1; }
.oempty { flex-wrap: wrap; }
.oempty p { flex: 1 1 180px; }

.hcards { scroll-snap-type: x proximity; }
.gal img:not([src]) { visibility: hidden; }

/* carte de la page Rechercher : fonds de carte adoucis, sombres en mode sombre */
.xmap .leaflet-tile-pane { filter: saturate(.5) brightness(1.03) contrast(.97); }
.xmap .leaflet-container { background: #e9e7f1; }
/* thème sombre permanent (ex-media dark) */
  .xmap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.9) contrast(.9); }
  .xmap .leaflet-container { background: #1a1a26; }

/* ---- 17 octobre (7) : feuille qui coulisse sous la carte (liste jusque sous les pastilles, on la rebaisse pour revoir la carte) ---- */
.xsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 520; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: 0 -10px 24px -14px rgba(10, 20, 50, .45); will-change: height; }
.xsheet.snap { transition: height .34s var(--ease); }
.xgrab { flex: none; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--primary); font-size: 15px; font-weight: 800; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.xgrab .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.xgrab .xg-b { display: none; flex-direction: column; align-items: center; gap: 1px; color: var(--text); font-size: 15px; }
.xgrab .xg-b small { color: var(--muted); font-size: 12px; font-weight: 600; }
.xmap[data-state="full"] .xg-a { display: none; }
.xmap[data-state="full"] .xg-b { display: flex; }
.xlistbox { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
.xlistbox .cats { padding-top: 6px; }
.xmap[data-state="peek"] .xlistbox { visibility: hidden; }
.mcar { transition: opacity .25s, transform .34s var(--ease); }
.xmap[data-state="full"] .mcar { opacity: 0; transform: translateY(50px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
/* ---- 17 octobre (8) : fiche d'un lieu façon TheFork + gestes (fermer en glissant, changer d'univers, tirer pour actualiser) ---- */
.pscroll[data-place] { padding-bottom: 0; position: relative; }
.pbtns { position: sticky; top: 0; height: 0; z-index: 40; }
.pbar { position: absolute; left: 0; right: 0; top: 0; height: calc(60px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 8px; padding: env(safe-area-inset-top, 0px) 12px 0; transition: background-color .2s, box-shadow .2s; }
.pbar .ib { background: var(--glass); color: var(--glass-ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 14px -8px rgba(10, 20, 50, .6); transition: transform .16s var(--ease), color .2s; }
.pbar .ib:active { transform: scale(.9); }
.pbar .ib.fav.on { color: #E11D48; }
.pbar .ptitle { flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); }
.pscroll.scrolled .pbar { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.pscroll.scrolled .ptitle { opacity: 1; transform: none; }
.phero { position: relative; height: 290px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.phero-in { position: absolute; inset: 0; }
.phero .gal { position: absolute; left: 0; right: 0; top: -120px; bottom: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; will-change: transform; }
.phero .gal::-webkit-scrollbar { display: none; }
.phero .dots { bottom: 40px; }
.phero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 38%); pointer-events: none; }
.phero .dots, .phero .photo-note { z-index: 2; }
.phead { position: relative; z-index: 2; margin-top: -26px; padding: 20px 16px 10px; display: flex; flex-direction: column; gap: 9px; background: var(--bg); border-radius: 18px 18px 0 0; }
.phead h1 { font-size: 27px; font-weight: 800; letter-spacing: -.7px; line-height: 1.12; text-wrap: balance; }
.pl { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.pl > i { flex: none; font-size: 20px; }
.pl .pw { color: var(--text); font-weight: 700; }
.vrate.big { font-size: 18px; }
.vrate.big i { font-size: 18px; }
.tag.bad { background: var(--deal-bg); color: var(--deal-text); }
.ptabs { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 35; display: flex; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { position: relative; flex: none; padding: 14px 16px 13px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; white-space: nowrap; transition: color .2s; }
.ptab.on { color: var(--text); }
.ptab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .26s var(--ease); }
.ptab.on::after { transform: scaleX(1); }
.psec + .psec { border-top: 8px solid var(--surface); }
.psec h2 { padding: 22px 16px 0; font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.sec-in { padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.sec-in h3 { font-size: 16px; font-weight: 800; }
.ratebox { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.rb-n { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.rb-n small { margin-left: 2px; color: var(--muted); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.linkrow { display: flex; color: inherit; text-decoration: none; }
.linkrow > div { width: 100%; align-items: center; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.addr a { color: inherit; text-decoration: none; }
.clampbox { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.clampbox p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; }
.clampbox.open p { display: block; }
.clampbox.hrs p { -webkit-line-clamp: 3; }
.clampbox .linkbtn { align-self: center; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; border: 0; background: none; color: var(--text); font-weight: 700; text-decoration: underline; }
.info.acc { padding: 0; }
.info.acc h3 { padding: 14px 14px 8px; }
.info.acc details { border-top: 1px solid var(--line); }
.info.acc summary { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.info.acc summary::-webkit-details-marker { display: none; }
.info.acc summary > i { color: var(--primary); font-size: 20px; }
.info.acc summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .22s var(--ease); }
.info.acc details[open] summary::after { transform: rotate(225deg); }
.info.acc ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 14px 14px 46px; color: var(--muted); font-size: 14.5px; }
.pcta { flex: none; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(10, 20, 50, .4); }
.pcta .ct-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcta .ct-l b { font-size: 15.5px; }
.pcta .ct-l small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; }
.pcta .btn { flex: none; width: auto; padding: 13px 20px; }
.pcta .ct-slots { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pcta .ct-t { font-size: 14px; font-weight: 700; }
.slots.hz { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.slots.hz .slot { flex: none; min-width: 84px; }

/* gestes : sortie symétrique de l'entrée, page qui suit le doigt, changement d'univers, tirer pour actualiser */
#pages .page.leaving { animation: pageOut .19s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
@keyframes pageOut { to { transform: translateY(48px); opacity: 0; } }
#pages .page.dragging { animation: none; transition: none; will-change: transform, opacity; box-shadow: 0 0 44px rgba(0, 0, 0, .3); }
#screen.wl { animation: slideL .24s var(--ease); }
#screen.wr { animation: slideR .24s var(--ease); }
@keyframes slideL { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
#ptr { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 6px); z-index: 90; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--primary); font-size: 20px; box-shadow: 0 8px 18px -8px rgba(10, 20, 50, .6), 0 0 0 1px var(--line); pointer-events: none; opacity: 0; transform: translate3d(-50%, -28px, 0); }
#ptr.spin i { animation: spinr .8s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
/* Profil : « Ma route » sous les points, dans le même rectangle */
.pcw { margin: 14px 16px 0; border-radius: 14px; background: var(--surface); overflow: hidden; }
.pcw .pcard { margin: 0; width: 100%; border-radius: 0; }
.proute { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 16px; text-align: left; color: var(--text); }
.proute > i:first-child { font-size: 22px; color: var(--primary); }
.proute > i:last-child { color: var(--muted); }
.proute .pr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.proute .pr-t b { font-size: 15px; }
.proute .pr-t small { font-size: 12.5px; color: var(--muted); }
.proute .pr-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 3px; }
.proute .pr-bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.proute:active { background: var(--surface-2, var(--line)); }
.dbody .info .lrow:first-child { border-top: 0; }
/* Écran de connexion : les éléments montent un à un à chaque étape (sensation fluide) */
.onb .form.stag > * { opacity: 0; animation: onbUp .55s cubic-bezier(.2, .9, .3, 1) forwards; }
.onb .form.stag > :nth-child(1) { animation-delay: .05s; } .onb .form.stag > :nth-child(2) { animation-delay: .11s; }
.onb .form.stag > :nth-child(3) { animation-delay: .17s; } .onb .form.stag > :nth-child(4) { animation-delay: .23s; }
.onb .form.stag > :nth-child(5) { animation-delay: .29s; } .onb .form.stag > :nth-child(6) { animation-delay: .35s; }
.onb .form.stag > :nth-child(n+7) { animation-delay: .41s; }
html.intro-on .onb .form.stag > * { animation-play-state: paused; }
@keyframes onbUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .onb .form.stag > * { animation: none; opacity: 1; } }

/* =====================================================================================================
   NOIR PUR (22 octobre 2026) : fond noir, blocs à peine plus clairs, formes plus carrées, barre du bas flottante
   ===================================================================================================== */
:root {
  color-scheme: dark;
  --page: #000; --bg: #000; --surface: #0F0F12; --surface-2: #19191E; --line: #1F1F26;
  --text: #F5F5F7; --muted: #8C8C98; --primary-soft: #0F2347; --overlay: rgba(0, 0, 0, .74);
  --radius: 12px;
  --bar: 76px; /* hauteur réservée en bas pour la barre flottante */
}
body { background: #000; }
#app { background: #000; }
@media (min-width: 520px) { #app { border-radius: 24px; border-color: #1A1A20; } }

/* Barre du bas : une pilule en verre, détachée du bord, avec une pastille qui glisse sous l'onglet actif */
#screen { padding-bottom: calc(var(--bar) + 18px + env(safe-area-inset-bottom)); }
#tabbar { position: absolute; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: flex; padding: 6px; gap: 0;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; background: rgba(16, 16, 20, .72);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
#tabbar::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n, 5)); border-radius: 16px;
  background: var(--primary-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); transition: transform .42s cubic-bezier(.3, 1.2, .4, 1); will-change: transform; }
.tab { position: relative; z-index: 1; padding: 9px 0 8px; border-radius: 16px; font-size: 10.5px; letter-spacing: .1px; transition: color .2s, transform .16s; }
.tab i { font-size: 22px; }
.tab.on::before { display: none; }
.tab.on i { transform: translateY(-1px) scale(1.06); }
.tab:active { transform: scale(.94); }
#toast { bottom: calc(var(--bar) + 26px + env(safe-area-inset-bottom)); background: #1A1A20; border: 1px solid #26262E; color: #F5F5F7; border-radius: 14px; }
#demo-bar, #update-bar { bottom: calc(var(--bar) + 22px + env(safe-area-inset-bottom, 0px)); }
.fabmap { bottom: calc(var(--bar) + 26px + env(safe-area-inset-bottom)); }
.pscroll { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Titres plus grands, plus d'air */
.ttl { font-size: 32px; font-weight: 800; letter-spacing: -.9px; }
.who { padding-top: calc(26px + env(safe-area-inset-top)); }
.who h1 { font-size: 24px; letter-spacing: -.5px; }
.avatar { border-radius: 14px; }

/* Listes en blocs (Profil, Paramètres) : un bloc, des lignes aérées, une pastille d'icône carrée */
.lgbox { margin: 16px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lgbox .lrow { border-top: 1px solid var(--line); padding: 15px 16px; gap: 14px; }
.lgbox .lrow:first-child { border-top: 0; }
.lgbox .lrow > i:first-child, .info .lrow > i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 19px; flex: none; }
.lgbox .lrow:active, .info .lrow:active { background: var(--surface-2); }
.lgbox .lrow .r { font-size: 13.5px; }

/* Blocs et cartes : bordure fine, pas d'ombre lourde sur le noir */
.pcw, .info, .dealbox, .ratebox, .series, .banner { border-color: var(--line); }
.pcw { border: 1px solid var(--line); border-radius: 14px; }
.vcard, .ocard, .oitem, .info { box-shadow: none; }
.vcard, .place { content-visibility: auto; contain-intrinsic-size: auto 290px; }
.vcard:active, .ocard:active, .oitem:active, .series:active, .banner:active { transform: scale(.985); }
.vcard, .ocard, .oitem, .series, .banner, .chip, .btn { transition: transform .16s cubic-bezier(.2, .8, .2, 1), background-color .16s, border-color .16s, opacity .16s; }
.chip { border-radius: 10px; }
.btn { border-radius: 12px; }
.input { border-radius: 12px; background: var(--surface); border-color: var(--line); }
.xsheet, .msheet { background: #08080A; border-top: 1px solid var(--line); }
.xlist { background: #08080A; }
#pages .page { background: #000; }
.pcta { background: rgba(8, 8, 10, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.ptabs { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
@supports not (backdrop-filter: blur(1px)) { #tabbar { background: #101014; } .pcta, .ptabs { background: #000; } }
#demo-bar { background: #1A1A20; color: #E8C77A; border: 1px solid #2A2A32; box-shadow: none; border-radius: 12px; }
#demo-bar a, #demo-bar button { color: #FFD98A; }
.lgbox .lrow > span:nth-child(2) { white-space: nowrap; flex: 0 1 auto; }
.lgbox .lrow .r { min-width: 0; margin-left: auto; max-width: 52%; justify-content: flex-end; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore.map { bottom: calc(var(--bar) + 16px + env(safe-area-inset-bottom)); }
.xmap { border-radius: 14px 14px 0 0; margin-inline: 8px; }
/* Intro : le ticket de caisse s'imprime avec une sortie étudiante, un tampon claque, puis le nom apparaît */
#intro .itk { position: absolute; z-index: 2; left: 50%; top: -480px; width: min(300px, 80%); margin-left: calc(min(300px, 80%) / -2); background: #fff; color: #1B1B2F; padding: 20px 18px 30px; border-radius: 6px 6px 0 0;
  font-size: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  -webkit-mask: radial-gradient(circle 8px at 8px 100%, #0000 98%, #000) -8px 100% / 16px 16px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 8px) no-repeat;
  mask: radial-gradient(circle 8px at 8px 100%, #0000 98%, #000) -8px 100% / 16px 16px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 8px) no-repeat; }
.itk-t { display: block; font-size: 16px; margin-bottom: 10px; }
.itk-r { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #D8D8E6; opacity: 0; transform: translateX(-12px); }
.itk-r span:last-child { white-space: nowrap; }
.itk-r.neg span:last-child { color: #14683A; font-weight: 700; }
.itk-stamp { position: absolute; right: 8px; bottom: 14px; border: 3px solid #FF6B4A; color: #FF6B4A; font-weight: 900; font-size: 24px; padding: 3px 11px; border-radius: 10px; opacity: 0; transform: rotate(-14deg) scale(2.4); background: rgba(255, 255, 255, .85); }
#intro.play .itk { animation: itkIn .7s cubic-bezier(.2, .9, .3, 1) .1s forwards, itkOut .5s ease-in 2.3s forwards; }
#intro.play .itk-r:nth-of-type(1) { animation: itkRow .35s .75s forwards; }
#intro.play .itk-r:nth-of-type(2) { animation: itkRow .35s 1.05s forwards; }
#intro.play .itk-r:nth-of-type(3) { animation: itkRow .35s 1.35s forwards; }
#intro.play .itk-stamp { animation: itkStamp .35s cubic-bezier(.3, 1.6, .5, 1) 1.7s forwards; }
#intro.fold .itk { display: none; }
@keyframes itkIn { to { top: 12%; } }
@keyframes itkOut { to { top: -520px; } }
@keyframes itkRow { to { opacity: 1; transform: none; } }
@keyframes itkStamp { to { opacity: 1; transform: rotate(-14deg) scale(1); } }

/* Lille et Paris, recherche dans une zone, prix signalés, petit budget, bons plans */
.cityh { margin: 12px 0 4px; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.xarea { position: absolute; z-index: 700; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: #0A0A0F; font-weight: 800; font-size: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .55); animation: xareaIn .22s ease-out; white-space: nowrap; }
.xarea i { font-size: 18px; }
@keyframes xareaIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mpin.crowd, .mpin.crowd.live { background: #17171C; color: #fff; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .7), 0 0 0 2px rgba(255, 255, 255, .85); }
.leaflet-marker-icon.sel .mpin.crowd { background: #fff; color: #0A0A0F; }
.crowd .cstars { display: flex; gap: 6px; margin: 6px 0 10px; }
.crowd .cstars button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: 22px; display: grid; place-items: center; }
.crowd .cstars button.on { color: #FBBF24; border-color: #FBBF24; }
.banner.savings { background: var(--surface); border: 1px solid var(--line); }
.banner.savings > i:first-child { color: #34D399; }
.tight-btn .sx { filter: saturate(1.2); }
.lrow.bp { align-items: flex-start; text-decoration: none; color: inherit; }
.lrow.bp > i:first-child { margin-top: 2px; }
.lrow.bp > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; white-space: normal; }
.lrow.bp small { color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.35; }
/* Cartes plus compactes : photo moins haute, puis une ligne distance + code postal et ville */
.place.vcard .vph { aspect-ratio: 2.3 / 1; }
.place.vcard { margin-bottom: 18px; }
.vb { gap: 3px; }
.vrate.none { color: var(--muted); font-weight: 500; font-size: 12px; }
.vloc { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--text); }
.vloc span { display: inline-flex; align-items: center; gap: 4px; }
.vloc i { font-size: 15px; color: var(--muted); }
.place .meta.loc { display: flex; align-items: center; gap: 4px; }
.place .meta.loc i { font-size: 14px; }
.mcar .mcard .vph { height: 92px; }
.mcar .mcard .vb { padding: 8px 12px 10px; }
.mcar .mcard .vphoto-more { display: none; }.mcar .mcard, .hcards .vcard { content-visibility: visible; contain-intrinsic-size: none; }
.mcar { align-items: flex-end; }.cats, .chips { scroll-padding-inline: 12px; }
/* Accueil : « Petit budget » et « Surprends-moi » côte à côte (moins de bandeaux empilés avant les restos) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 12px; }
.duo .surprise-btn { margin: 0; min-height: 0; padding: 12px; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.duo .surprise-btn .sx { width: 36px; height: 36px; font-size: 20px; }
.duo .surprise-btn .stx b { font-size: 15px; }
.duo .surprise-btn .stx small { font-size: 12px; line-height: 1.3; display: block; }
.duo .surprise-btn > i { display: none; }.duo .surprise-btn { width: auto; min-width: 0; }
.promo { min-height: 124px; margin-top: 12px; }
.promo .pr-txt b { font-size: 19px; }
.promo .pr-txt small { font-size: 13px; }
.duo .surprise-btn .stx b { font-size: 14px; white-space: nowrap; }/* Page ouverte (fiche, panier, paramètres…) : la barre d'onglets se range pour ne pas cacher les boutons du bas */
#tabbar { transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
body.has-page #tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }