/* LocalTruck – style « verre dépoli » : surfaces translucides, contours fins, titres larges en capitales, une seule couleur vive (l'orange).
 * Deux thèmes : nuit (défaut) et jour, choisis par js/theme.js (attribut data-theme sur <html>). */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-var.woff") format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0B0D; --tx: #F7F5F1; --mu: rgba(247,245,241,.72); --mu2: rgba(247,245,241,.5);
  --ln: rgba(255,255,255,.2); --bd: rgba(255,255,255,.3); --fbd: rgba(255,255,255,.3);
  --glass: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  --hi: inset 0 1px 0 rgba(255,255,255,.26); --shadow: 0 16px 40px rgba(0,0,0,.42);
  --s1: rgba(255,255,255,.06); --s2: rgba(255,255,255,.1); --s3: rgba(255,255,255,.17);
  --sheet: linear-gradient(165deg, #2b292e, #131317);
  --ac: #FF6A3D; --ac-tx: #FF8E68; --ac-tint: rgba(255,106,61,.16); --ac-bd: rgba(255,106,61,.55); --on-ac: #0B0B0D; --ac-glow: rgba(255,106,61,.35);
  --gr: #3DDC97; --gr-bg: rgba(61,220,151,.14); --gr-tx: #5BE3A6; --gr-bd: rgba(61,220,151,.4);
  --am: #FFC83D; --am-bg: rgba(255,200,61,.14); --am-tx: #FFD76B; --am-bd: rgba(255,200,61,.4);
  --bl: #4C8DFF; --rd: #FF5C5C; --rd-bg: rgba(255,92,92,.14); --rd-tx: #FF8A8A; --rd-bd: rgba(255,92,92,.45);
  --ver-bg: rgba(76,141,255,.16); --ver-tx: #8DB6FF; --ver-bd: rgba(76,141,255,.4);
  --sw-off: rgba(255,255,255,.24); --star-off: rgba(255,255,255,.28);
  --toast-bg: #F7F5F1; --toast-tx: #0B0B0D;
  --map-bg: #101014; --tile-filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.5); --map-grid: rgba(255,255,255,.06);
  --bgfx: radial-gradient(circle at 0% -4%, rgba(255,106,61,.3), transparent 46%), radial-gradient(circle at 104% 100%, rgba(255,106,61,.15), transparent 52%);
  --bp: url("assets/blueprint-dark.svg");
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-d: var(--font);
  --nav-h: 66px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #E4E9F0; --tx: #14141A; --mu: rgba(20,20,26,.72); --mu2: rgba(20,20,26,.5);
  --ln: rgba(20,20,26,.18); --bd: rgba(255,255,255,.95); --fbd: rgba(20,20,26,.2);
  --glass: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.46));
  --hi: inset 0 1px 0 rgba(255,255,255,.95); --shadow: 0 14px 34px rgba(40,55,80,.17);
  --s1: rgba(255,255,255,.6); --s2: rgba(255,255,255,.8); --s3: rgba(20,20,26,.09);
  --sheet: linear-gradient(165deg, #ffffff, #eef2f8);
  --ac-tx: #B93A12; --ac-tint: rgba(255,106,61,.14); --ac-bd: rgba(220,80,40,.55); --ac-glow: rgba(255,106,61,.3);
  --gr: #1F9D68; --gr-bg: rgba(11,107,69,.12); --gr-tx: #0B6B45; --gr-bd: rgba(11,107,69,.4);
  --am: #C7790A; --am-bg: rgba(199,121,10,.14); --am-tx: #7A5600; --am-bd: rgba(199,121,10,.45);
  --rd: #D92D20; --rd-bg: rgba(217,45,32,.1); --rd-tx: #B42318; --rd-bd: rgba(217,45,32,.4);
  --ver-bg: rgba(29,79,168,.1); --ver-tx: #1D4FA8; --ver-bd: rgba(29,79,168,.35);
  --sw-off: rgba(20,20,26,.22); --star-off: rgba(20,20,26,.2);
  --toast-bg: #14141A; --toast-tx: #F7F5F1;
  --map-bg: #E4E9F0; --tile-filter: saturate(.75) brightness(1.03) contrast(.96); --map-grid: rgba(20,20,26,.05);
  --bgfx: radial-gradient(circle at 0% -4%, rgba(60,200,190,.45), transparent 46%), radial-gradient(circle at 104% 38%, rgba(255,130,90,.34), transparent 46%), radial-gradient(circle at -6% 96%, rgba(120,150,255,.28), transparent 50%);
  --bp: url("assets/blueprint-light.svg");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font: 400 15px/1.4 var(--font); overflow: hidden; user-select: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: var(--tx); user-select: text; }
input::placeholder, textarea::placeholder { color: var(--mu); opacity: 1; }
a { color: var(--ac-tx); }
h1, h2, h3 { font-family: var(--font); margin: 0; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.12; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 6px; } ::-webkit-scrollbar-track { background: transparent; }

/* typographie : titres larges, étiquettes en capitales espacées */
.disp { font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.1; }
.lbl, .sec, .field > label { font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .13em; font-size: 10.5px; line-height: 1.3; color: var(--mu); }
.accent { color: var(--ac); }

#app { position: relative; height: 100%; max-width: 520px; margin: 0 auto; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
/* contenu lisible avant le démarrage de l'application (et par les moteurs de recherche) ; retiré par App.render */
#seo-fallback { position: absolute; inset: 0; overflow-y: auto; padding: 56px 20px 24px; background: var(--bg); line-height: 1.55; }
#seo-fallback h1 { font-size: 22px; line-height: 1.15; margin-bottom: 12px; }
#seo-fallback p, #seo-fallback li { color: var(--mu); }
#seo-fallback strong { color: var(--tx); }
/* fond de chaque écran : grain, tracé du camion, lueurs, couleur de base */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: url("assets/grain.png"), var(--bgfx), var(--bg); }
.screen.bp { background: url("assets/grain.png"), var(--bp) no-repeat right -78px top 56px / 360px auto, var(--bgfx), var(--bg); }
.screen.with-nav { bottom: var(--nav-h); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.pad { padding: 0 16px; }
.col { display: flex; flex-direction: column; } .row { display: flex; align-items: center; } .grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; }
.muted { color: var(--mu); } .small { font-size: 13px; } .tiny { font-size: 12px; } .bold { font-weight: 700; } .center { text-align: center; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide { display: none !important; }

/* le verre : fond translucide, contour fin, reflet en haut */
.glass { background: var(--glass); border: 1px solid var(--bd); border-radius: 24px; box-shadow: var(--shadow), var(--hi); }
.glass.sm { border-radius: 18px; }
.rule { height: 1px; background: var(--ln); width: 100%; flex: none; } .vrule { width: 1px; align-self: stretch; background: var(--ln); flex: none; }
.split { display: flex; flex-direction: column; } .split > .part { padding: 14px 20px; }
.cells { display: flex; align-items: stretch; } .cells > .cell { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; min-width: 0; }

/* barre du haut */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 12px; min-height: 60px; flex: none; }
.topbar h1 { font-size: 16px; flex: 1; min-width: 0; letter-spacing: 0; }
.topbar .sub { color: var(--mu); font-size: 13px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--tx); flex: none; }
.icon-btn:hover { background: var(--s2); } .icon-btn:active { background: var(--s3); }
.icon-btn.fill, .topbar > .icon-btn:first-child, .sheet .sh-hd .icon-btn { background: var(--s2); border: 1px solid var(--fbd); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px; text-align: center; line-height: 1.2; border-radius: 16px; font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; background: var(--s2); border: 1px solid var(--fbd); color: var(--tx); white-space: nowrap; box-shadow: var(--hi); }
.btn:hover { background: var(--s3); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ac); color: var(--on-ac); border-color: var(--ac); box-shadow: 0 10px 28px var(--ac-glow); } .btn.primary:hover { background: #ff7a50; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; } .btn.danger { color: var(--rd-tx); border-color: var(--rd-bd); background: var(--rd-bg); }
.btn.grow { white-space: normal; line-height: 1.15; padding: 6px 10px; }
.btn.block { width: 100%; white-space: normal; } .btn.sm { min-height: 38px; padding: 4px 14px; font-size: 11.5px; border-radius: 13px; } .btn.lg { min-height: 54px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: var(--ac-tint); border-color: var(--ac); color: var(--ac-tx); }
.link { color: var(--ac-tx); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--ac); text-underline-offset: 3px; }

/* champs */
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.inp { width: 100%; height: 50px; padding: 0 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--fbd); outline: none; box-shadow: var(--hi); }
textarea.inp { height: auto; min-height: 92px; padding: 12px 16px; resize: none; line-height: 1.4; }
.inp:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-tint); }
.pw { position: relative; } .pw .inp { padding-right: 52px; }
.pw-eye { position: absolute; right: 2px; top: 1px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--mu); border-radius: 14px; } .pw-eye[aria-pressed="true"] { color: var(--ac-tx); } .pw-eye:focus-visible { outline: 2px solid var(--ac); outline-offset: -4px; }
select.inp { appearance: none; }
.hint { font-size: 12px; color: var(--mu); }
.err { color: var(--rd-tx); font-size: 13px; margin-top: 10px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mu); margin-top: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ac); margin: 0; flex: none; }

/* chips, étiquettes */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { height: 38px; padding: 0 15px; border-radius: 999px; background: var(--s2); border: 1px solid var(--fbd); font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: .09em; font-size: 10.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--tx); box-shadow: var(--hi); }
.chip.on { background: var(--ac); border-color: var(--ac); color: var(--on-ac); box-shadow: 0 6px 18px var(--ac-glow); }
.chip.map { background: var(--sheet); border-color: var(--bd); } .chip.map.on { background: var(--ac); border-color: var(--ac); }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border-radius: 11px; font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: .09em; font-size: 9.5px; white-space: nowrap; background: var(--s2); color: var(--mu); border: 1px solid transparent; }
.tag.open { background: var(--gr-bg); color: var(--gr-tx); border-color: var(--gr-bd); } .tag.soon { background: var(--am-bg); color: var(--am-tx); border-color: var(--am-bd); }
.tag.cancelled { background: var(--rd-bg); color: var(--rd-tx); border-color: var(--rd-bd); } .tag.unv { background: transparent; color: var(--mu); border-color: var(--fbd); }
.tag.ver { background: var(--ver-bg); color: var(--ver-tx); border-color: var(--ver-bd); } .tag.veg { background: var(--gr-bg); color: var(--gr-tx); border-color: var(--gr-bd); }
.tag.sus { background: var(--rd-bg); color: var(--rd-tx); border-color: var(--rd-bd); }
.sus-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rd); color: #fff; font-weight: 900; font-size: 13px; line-height: 1; flex: none; }

/* cartes et listes */
.card { background: var(--glass); border: 1px solid var(--bd); border-radius: 22px; padding: 16px; box-shadow: var(--hi); }
.card.tint { background: linear-gradient(145deg, var(--ac-tint), rgba(255,106,61,.04)); border-color: var(--ac-bd); }
.card.warn { background: var(--am-bg); border-color: var(--am-bd); }
.card.alert { background: var(--rd-bg); border-color: var(--rd-bd); }
.sec { margin: 24px 0 10px; display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--ln); }
.avatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 19px; color: #0B0B0D; flex: none; background-size: cover; background-position: center; font-family: var(--font); }
.avatar.lg { width: 76px; height: 76px; font-size: 32px; border-radius: 22px; } .avatar.sm { width: 36px; height: 36px; font-size: 15px; border-radius: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.empty { text-align: center; color: var(--mu); padding: 36px 20px; } .empty .big { font-size: 40px; } .empty h3 { color: var(--tx); margin: 10px 0 8px; font-size: 16px; }
.sep { height: 1px; background: var(--ln); margin: 16px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); font-size: 14px; } .kv:last-child { border: 0; }

/* ligne de liste : verre, contour fin */
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--bd); box-shadow: var(--shadow), var(--hi); cursor: pointer; }
.item:active { filter: brightness(1.08); }
.item.sel { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 12px 32px var(--ac-glow), var(--hi); }
.item .t { font-weight: 700; font-size: 15px; } .item .s { color: var(--mu); font-size: 13px; }
/* ligne d'un food truck : étiquettes en haut, puis avatar · nom et lieu · horaires */
.item.tr { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.item.tr .it-top { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; min-height: 46px; }
.item.tr .it-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.item.tr .it-top .icon-btn { width: 38px; height: 38px; }
.item.tr .it-main { display: flex; align-items: stretch; border-top: 1px solid var(--ln); }
.item.tr .it-main > .cell { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.item.tr .it-av { padding: 12px 14px; }
.item.tr .it-mid { flex: 1; padding: 12px 14px; gap: 4px; }
.item.tr .it-hrs { min-width: 76px; padding: 12px 14px; align-items: center; gap: 3px; }
.item.tr .t { min-width: 0; overflow-wrap: anywhere; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 14px; letter-spacing: -.005em; }
.item.tr .s { font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; line-height: 1.35; }
.item.tr .hr-a { font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 15px; text-transform: uppercase; }
.item.tr .it-act { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ln); }

/* barre de navigation */
.nav { position: absolute; left: 8px; right: 8px; bottom: 0; height: var(--nav-h); background: var(--glass); border: 1px solid var(--bd); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 34px rgba(0,0,0,.25), var(--hi); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); display: flex; z-index: 30; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 8.5px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .07em; color: var(--mu); position: relative; }
.nav button svg.i { width: 21px; height: 21px; }
.nav button.on { color: var(--ac); }
html[data-theme="light"] .nav button.on { color: var(--tx); } html[data-theme="light"] .nav button.on svg { color: var(--ac); }
.nav button .dot { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--ac); color: var(--on-ac); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; letter-spacing: 0; }

/* curseurs et interrupteurs */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--ac) var(--p, 50%), var(--sw-off) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255,106,61,.5), 0 2px 6px rgba(0,0,0,.35); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 15px; background: var(--sw-off); border: 1px solid var(--fbd); transition: .15s; } .switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: .15s; }
.switch input:checked + i { background: var(--ac); border-color: var(--ac); } .switch input:checked + i::after { left: 23px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ln); } .setting:last-child { border: 0; }
.seg { display: flex; background: var(--s1); border: 1px solid var(--fbd); border-radius: 16px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 13px; font-weight: 700; font-stretch: 118%; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; color: var(--mu); } .seg button.on { background: var(--ac); color: var(--on-ac); box-shadow: 0 4px 14px var(--ac-glow); }

/* carte */
.map { position: relative; overflow: hidden; background: var(--map-bg); touch-action: none; user-select: none; cursor: grab; }
.map.drag { cursor: grabbing; }
.map .layer { position: absolute; inset: 0; }
.map .tiles { filter: var(--tile-filter); pointer-events: none; }
.map .tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; transform-origin: 0 0; opacity: 0; transition: opacity .2s; image-rendering: auto; -webkit-user-drag: none; }
.map .tiles img.ld { opacity: 1; }
.map .grid { background-image: linear-gradient(var(--map-grid) 1px, transparent 1px), linear-gradient(90deg, var(--map-grid) 1px, transparent 1px); background-size: 64px 64px; }
.map .attr { position: absolute; right: 6px; bottom: 6px; font-size: 11px; background: var(--sheet); color: var(--mu); padding: 2px 8px; border-radius: 9px; z-index: 6; cursor: pointer; border: 1px solid var(--ln); }
.map .ctrls { position: absolute; right: 12px; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
.map .ctrls button { width: 44px; height: 44px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--bd); display: grid; place-items: center; color: var(--tx); box-shadow: 0 8px 20px rgba(0,0,0,.3), var(--hi); }
.map .ctrls button:active { background: var(--s3); }
.map .marker { position: absolute; left: 0; top: 0; z-index: 3; cursor: pointer; will-change: transform; }
.map .marker.sel { z-index: 5; }
.pin { position: relative; width: 38px; height: 46px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.pin .b { position: absolute; left: 3px; top: 2px; width: 32px; height: 32px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--ac); box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset; }
.pin .l { position: absolute; left: 3px; top: 2px; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 14px; color: var(--on-ac); font-family: var(--font); }
.pin.soon .b { background: var(--am); } .pin.later .b { background: #8a8a94; } .pin.later .l { color: #fff; }
.pin.sel .b { background: var(--ac); box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(255,106,61,.32); } .pin.sel .l { color: var(--on-ac); } .pin.sel { transform: translate(-50%, -100%) scale(1.18); }
.pin.sus .b { background: var(--rd); } .pin.sus .l { color: #fff; }
.pin .sx { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--rd); color: #fff; font-weight: 900; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }
.pin.num .b { background: var(--ac); } .pin.num.today .b { background: var(--gr); } .pin.num.today .l { color: #0B0B0D; }
.user-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bl); border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 8px rgba(76,141,255,.25); }
.circle { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1.5px dashed rgba(255,106,61,.8); background: rgba(255,106,61,.09); pointer-events: none; z-index: 2; will-change: transform; }
.center-pin { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; width: 38px; height: 52px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.center-pin .b { position: absolute; left: 3px; top: 2px; width: 32px; height: 32px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--ac); box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset; }
.center-pin .l { position: absolute; left: 12px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-ac); }
.center-pin.lift { transform: translate(-50%, calc(-100% - 10px)); transition: transform .12s; }

/* écran carte : surcouche + panneau */
.map-top { position: absolute; left: 0; right: 0; top: 0; z-index: 10; padding: 12px 14px 0; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
.map-top > * { pointer-events: auto; }
.install-banner { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--ac-bd); font-size: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.install-banner .btn.sm { white-space: nowrap; }
.searchbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--bd); box-shadow: 0 10px 26px rgba(0,0,0,.32), var(--hi); }
.searchbar input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 15px; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; background: var(--sheet); border-radius: 32px 32px 0 0; border: 1px solid var(--bd); border-bottom: 0; box-shadow: 0 -14px 40px rgba(0,0,0,.4), var(--hi); display: flex; flex-direction: column; transition: height .22s ease; }
.sheet-panel.dragging { transition: none; }
.sheet-panel .grab { height: 24px; display: grid; place-items: center; cursor: grab; flex: none; touch-action: none; } .sheet-panel .grab i { width: 44px; height: 4px; border-radius: 4px; background: var(--mu2); }
.sheet-panel .hd { padding: 0 18px 8px; flex: none; border-bottom: 1px solid var(--ln); margin: 0 0 12px; }
.sheet-panel .hd .bold { font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .13em; font-size: 10.5px !important; color: var(--mu); }
.sheet-panel .body { flex: 1; overflow-y: auto; padding: 0 16px 16px; min-height: 0; }
.fab { position: absolute; z-index: 14; left: 50%; transform: translateX(-50%); }

/* superpositions */
.overlay { position: absolute; inset: 0; z-index: 100; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-end; animation: fadein .15s; }
html[data-theme="light"] .overlay { background: rgba(30,40,60,.32); }
.overlay.center { align-items: center; justify-content: center; padding: 24px; }
.overlay.locked { z-index: 150; background: rgba(0,0,0,.88); }   /* mise à jour obligatoire : au-dessus de tout, ne se ferme pas */
html[data-theme="light"] .overlay.locked { background: rgba(228,233,240,.96); }
.sheet { width: 100%; max-height: 92%; background: var(--sheet); border-radius: 30px 30px 0 0; border: 1px solid var(--bd); border-bottom: 0; box-shadow: var(--hi); display: flex; flex-direction: column; animation: slideup .2s ease-out; }
.sheet .sh-hd { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px 20px; flex: none; border-bottom: 1px solid var(--ln); margin: 0 12px; padding-left: 8px; } .sheet .sh-hd h2 { font-size: 15px; flex: 1; letter-spacing: 0; }
.sheet .sh-body { overflow-y: auto; padding: 14px 20px 24px; min-height: 0; }
.dialog { width: 100%; background: var(--sheet); border: 1px solid var(--bd); border-radius: 26px; padding: 22px 20px 16px; box-shadow: var(--shadow), var(--hi); animation: pop .15s; }
.dialog h2 { font-size: 16px; margin-bottom: 10px; } .dialog p { margin: 0; color: var(--mu); }
@keyframes fadein { from { opacity: 0; } } @keyframes slideup { from { transform: translateY(40px); opacity: .4; } } @keyframes pop { from { transform: scale(.94); opacity: 0; } }
.toasts { position: absolute; left: 12px; right: 12px; bottom: 84px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { background: var(--toast-bg); color: var(--toast-tx); padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.4); animation: slideup .2s; max-width: 100%; }
.toast.err { background: #ffb3b3; color: #0B0B0D; } .toast.ok { background: #b6f5d8; color: #0B0B0D; }

/* divers */
.day-pill { flex: none; width: 54px; height: 68px; border-radius: 18px; background: var(--s2); border: 1px solid var(--fbd); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9.5px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .1em; color: var(--mu); position: relative; box-shadow: var(--hi); }
.day-pill b { font-size: 19px; color: var(--tx); font-family: var(--font); letter-spacing: 0; } .day-pill.on { background: var(--ac); border-color: var(--ac); color: var(--on-ac); box-shadow: 0 8px 22px var(--ac-glow); } .day-pill.on b { color: var(--on-ac); }
.day-pill i { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gr); } .day-pill.rest i { background: var(--mu2); }
.day-row { display: flex; align-items: stretch; border-radius: 18px; background: var(--glass); border: 1px solid var(--bd); box-shadow: var(--hi); overflow: hidden; }
.day-row.today { border-color: var(--ac); border-width: 1.5px; }
.day-row .d { width: 64px; text-align: center; flex: none; color: var(--mu); font-size: 9.5px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .12em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 0; border-right: 1px solid var(--ln); }
.day-row .d b { display: block; font-size: 24px; color: var(--tx); font-family: var(--font); font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -.01em; line-height: 1; }
.day-row > :not(.d) { padding: 12px 14px; }
.tile { flex: 1; background: var(--glass); border: 1px solid var(--bd); border-radius: 20px; padding: 14px; box-shadow: var(--hi); } .tile b { display: block; font-size: 26px; font-family: var(--font); font-stretch: 125%; font-variation-settings: "wdth" 125; } .tile span { color: var(--mu); font-size: 10px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .1em; }
.stars { display: inline-flex; gap: 2px; color: #E8A317; } .stars svg { width: 18px; height: 18px; } .stars.pick button { color: var(--star-off); padding: 2px; } .stars.pick svg { width: 30px; height: 30px; } .stars .off { color: var(--star-off); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; } .bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--mu); } .bars .bar i { width: 100%; border-radius: 8px 8px 3px 3px; background: var(--ac); min-height: 3px; } .bars .bar b { color: var(--tx); font-size: 12px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .gal .ph { aspect-ratio: 1; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid var(--bd); position: relative; }
.gal .ph button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; } .gal .ph button svg { width: 16px; height: 16px; }
.hero { padding: 6px 16px 0; display: flex; gap: 14px; align-items: center; }
.qr { background: #fff; padding: 10px; border-radius: 16px; display: inline-block; line-height: 0; } .qr canvas { width: 200px; height: 200px; image-rendering: pixelated; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gr); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 1.6s infinite; } @keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.logo-mark { width: 72px; height: 72px; border-radius: 22px; box-shadow: 0 14px 36px var(--ac-glow); }
.price { font-weight: 700; white-space: nowrap; }
.prod { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ln); align-items: flex-start; } .prod:last-child { border: 0; } .prod.off .nm { text-decoration: line-through; color: var(--mu); }
.bubble { background: var(--s2); border-radius: 16px; padding: 10px 14px; margin-top: 8px; font-size: 14px; border-left: 3px solid var(--ac); }
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--bd); align-items: flex-start; cursor: pointer; box-shadow: var(--hi); } .notif.unread { border-color: var(--ac-bd); background: linear-gradient(145deg, var(--ac-tint), rgba(255,106,61,.03)); } .notif .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); flex: none; } .notif .ic.live { background: var(--gr-bg); color: var(--gr-tx); } .notif .ic.cancel { background: var(--rd-bg); color: var(--rd-tx); } .notif .ic.prox { background: var(--ac-tint); color: var(--ac-tx); } .notif .ic.delay, .notif .ic.stock { background: var(--am-bg); color: var(--am-tx); }
.datebox { width: 56px; height: 62px; border-radius: 16px; background: var(--ac-tint); border: 1px solid var(--ac-bd); color: var(--ac-tx); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .08em; flex: none; } .datebox b { font-size: 22px; color: var(--tx); font-family: var(--font); letter-spacing: -.01em; }
.hero-logo { display: flex; flex-direction: column; align-items: center; padding: 22px 24px 10px; text-align: center; }
.hero-logo .wordmark { font-size: 26px; margin-top: 14px; }
.hero-logo .tagline { font-size: 21px; margin-top: 16px; line-height: 1.12; }
.choice { border: 1px solid var(--bd); border-radius: 26px; padding: 18px; background: var(--glass); box-shadow: var(--shadow), var(--hi); } .choice h3 { font-size: 19px; } .choice ul { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 9px; color: var(--mu); font-size: 14px; } .choice li { display: flex; gap: 8px; align-items: flex-start; } .choice li svg { width: 18px; height: 18px; color: var(--ac); margin-top: 1px; }
.steps { display: flex; gap: 6px; margin: 4px 16px 0; } .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--s3); } .steps i.on { background: var(--ac); }
.logo-pick { width: 84px; height: 84px; border-radius: 24px; border: 1.5px dashed var(--mu2); display: grid; place-items: center; color: var(--mu); background-size: cover; background-position: center; cursor: pointer; flex: none; }
.preview-ban { background: var(--ac-tint); color: var(--ac-tx); font-size: 10.5px; font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .1em; padding: 7px 12px; text-align: center; border-bottom: 1px solid var(--ac-bd); flex: none; }
.bottom-bar { flex: none; margin: 0 12px 12px; padding: 10px; border-radius: 26px; background: var(--sheet); border: 1px solid var(--bd); box-shadow: var(--shadow), var(--hi); display: flex; gap: 10px; }
.pick-top { position: absolute; left: 0; right: 0; top: 0; z-index: 10; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .pick-top > * { pointer-events: auto; }
.pick-bot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--sheet); border-radius: 30px 30px 0 0; border: 1px solid var(--bd); border-bottom: 0; padding: 18px 16px 16px; box-shadow: 0 -14px 40px rgba(0,0,0,.4), var(--hi); }
.results { background: var(--sheet); border: 1px solid var(--bd); border-radius: 20px; max-height: 260px; overflow-y: auto; box-shadow: var(--shadow); }
.results button { display: block; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--ln); font-size: 14px; } .results button:last-child { border: 0; } .results button:hover { background: var(--s3); } .results small { color: var(--mu); display: block; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--s3); border-top-color: var(--ac); animation: rot .8s linear infinite; display: inline-block; } @keyframes rot { to { transform: rotate(360deg); } }
.legal { font-size: 12px; color: var(--mu); text-align: center; padding: 18px 24px 26px; line-height: 1.5; }
.photo-view { background: #000; width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; } .photo-view img { max-width: 100%; max-height: 80vh; }

/* bandeau « hors connexion » */
.offline-banner { position: absolute; left: 0; right: 0; top: 0; z-index: 190; background: var(--am-bg); color: var(--am-tx); border-bottom: 1px solid var(--am-bd); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; text-align: center; padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); pointer-events: none; }

/* espace administration : carte + liste, journal d'activité */
.admin-map { position: relative; flex: 1 1 52%; min-height: 200px; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.admin-list { flex: 1 1 48%; overflow-y: auto; min-height: 0; }

/* filtres de la carte : deux rangées compactes, tout reste visible */
.map-top .chips.wrap { gap: 6px; }
.map-top .chip.map { height: 34px; padding: 0 11px; font-size: 10.5px; letter-spacing: .07em; gap: 5px; font-stretch: 100%; font-variation-settings: "wdth" 100; box-shadow: 0 6px 16px rgba(0,0,0,.28), var(--hi); }
.map-top .map-moments { flex-wrap: nowrap; } .map-top .map-moments .chip { flex: 1 1 auto; justify-content: center; padding: 0 6px; }
