/* אחדMore — design system
   Terrain vert, lignes blanches, ballon orange. Bordures encre épaisses + ombre franche (« autocollant de terrain »).
   Propriétés logiques partout : l'hébreu (RTL) fonctionne sans surcharge. */

:root {
  --bg: #edf1ec; --card: #ffffff; --ink: #10261b; --bd: #10261b; --line: #cfd9d1; --sh: #10261b;
  --mut: #587064; --soft: #e3eae4;
  --turf: #0d7a4e; --turf-d: #0a5a3a; --orange: #d94a0b; --blue: #2b5fe0; --red: #c62828;
  --btn: #0e5b3e; --on-btn: #ffffff; --on-c: #ffffff; --court: #0e5b3e; --court-2: #0a4a32;
  --ok-bg: #dff3e8; --warn-bg: #fff0d9; --warn: #8a5300; --good: #0b6b44;
  --r: 18px; --nav-h: 66px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Hebrew', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #0d1511; --card: #16211b; --ink: #eaf3ed; --bd: #3a5044; --line: #263a2f; --sh: #000000;
  --mut: #97ab9f; --soft: #1d2b23;
  --turf: #3fd08e; --turf-d: #2aa86f; --orange: #ff8a4c; --blue: #7fa6ff; --red: #ff7a7a;
  --btn: #3fd08e; --on-btn: #07130d; --on-c: #0b130e; --court: #0a1812; --court-2: #07110c;
  --ok-bg: #153325; --warn-bg: #3a2a10; --warn: #ffcf85; --good: #5ee0a4;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0d1511; --card: #16211b; --ink: #eaf3ed; --bd: #3a5044; --line: #263a2f; --sh: #000000;
    --mut: #97ab9f; --soft: #1d2b23;
    --turf: #3fd08e; --turf-d: #2aa86f; --orange: #ff8a4c; --blue: #7fa6ff; --red: #ff7a7a;
    --btn: #3fd08e; --on-btn: #07130d; --on-c: #0b130e; --court: #0a1812; --court-2: #07110c;
    --ok-bg: #153325; --warn-bg: #3a2a10; --warn: #ffcf85; --good: #5ee0a4;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; font-weight: 400; color: var(--mut); font-size: .85em; }
.hidden { display: none !important; }
.muted { color: var(--mut); }
.muted.s, .s { font-size: 13px; }
.soft { opacity: .85; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.court :focus-visible { outline-color: #fff; }

/* ---------- Cadre de l'app ---------- */
#app { position: relative; height: 100%; max-width: 640px; margin-inline: auto; background: var(--bg); overflow: hidden; }
@media (min-width: 700px) { body { background: var(--court-2); } #app { box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45); } }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; min-height: 0; background: var(--bg); }
.screen.active { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tab .scroll { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.page { padding: 18px 16px 32px; }
.page.narrow { max-width: 480px; margin-inline: auto; width: 100%; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack.center { align-items: center; }
.scroll.center { display: flex; align-items: center; justify-content: center; text-align: center; }
.scroll.center .page { width: 100%; align-items: center; }
.center-txt { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h2 { margin-top: 8px; }
.title { font-size: 30px; }

/* ---------- Terrain (écrans d'accueil) ---------- */
.court { background: radial-gradient(120% 80% at 50% 0%, #137a52 0%, var(--court) 55%, var(--court-2) 100%); color: #fff; overflow: hidden; }
.court-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.on-court { color: #fff; }
.mark { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-weight: 900; letter-spacing: -.03em; }
.mark i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #ff6a1f; color: #fff; font-style: normal; font-size: 34px; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.28); position: relative; }
.mark i::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-block-end-color: transparent; }
.mark span { font-size: 40px; line-height: 1; }
.mark.sm { flex-direction: row; gap: 10px; } .mark.sm i { width: 40px; height: 40px; font-size: 16px; border-width: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.28); } .mark.sm i::before { inset: 3px; } .mark.sm span { font-size: 24px; }
.mark.xs { flex-direction: row; gap: 8px; color: var(--ink); } .mark.xs i { width: 30px; height: 30px; font-size: 12px; border-width: 2px; box-shadow: 0 2px 0 var(--sh); border-color: var(--bd); } .mark.xs i::before { inset: 2px; border-width: 1.5px; } .mark.xs span { font-size: 21px; }

#screen-splash { align-items: center; justify-content: center; }
.splash-core { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; text-align: center; }
.splash-core .mark i { animation: bounce 1.05s cubic-bezier(.3,.7,.4,1) .15s both; }
.splash-core .mark span { animation: rise .6s ease .45s both; }
.splash-tag { font-size: 17px; opacity: .85; max-width: 18em; animation: rise .6s ease .65s both; }
.splash-foot { position: absolute; inset-inline: 0; bottom: 0; padding: 0 36px calc(44px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.meter { width: 100%; max-width: 280px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.meter b { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width .5s cubic-bezier(.3,.7,.3,1); }
#splash-step { font-size: 14px; opacity: .8; min-height: 1.4em; }
@keyframes bounce { 0% { transform: translateY(-120px) scale(.9, 1.1); opacity: 0; } 35% { opacity: 1; } 55% { transform: translateY(0) scale(1.18, .82); } 72% { transform: translateY(-26px) scale(.97, 1.03); } 88% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#screen-down .state-ico, .state-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--card); border: 2px solid var(--bd); box-shadow: 0 4px 0 var(--sh); color: var(--ink); margin-inline: auto; }
.state-ico svg { width: 38px; height: 38px; }

/* ---------- Langue ---------- */
#screen-lang { align-items: center; justify-content: center; }
.lang-wrap { position: relative; width: 100%; max-width: 420px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lang-wrap h1 { font-size: 22px; text-align: center; font-weight: 700; opacity: .92; }
.lang-list { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.lang-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 68px; padding: 0 22px; border-radius: 18px; background: #fff; color: #10261b; border: 2px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,.28); font-size: 24px; font-weight: 800; transition: transform .12s, box-shadow .12s; }
.lang-list button small { font-size: 13px; font-weight: 700; color: #fff; background: #0e5b3e; padding: 4px 9px; border-radius: 99px; }
.lang-list button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }

/* ---------- Présentation ---------- */
#screen-intro { background: var(--bg); }
.intro-top { display: flex; justify-content: flex-end; padding: 14px 18px 0; padding-top: calc(14px + env(safe-area-inset-top)); }
.intro-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.intro-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px 32px; text-align: center; }
.slide-art { width: min(300px, 74vw); height: auto; margin-bottom: 14px; overflow: visible; }
.slide h2 { font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 14em; }
.slide p { color: var(--mut); max-width: 22em; font-size: 17px; }
.intro-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px 24px calc(28px + env(safe-area-inset-bottom)); }
.intro-foot .btn { width: 100%; max-width: 360px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 9px; height: 9px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
.dots i.on { width: 26px; background: var(--orange); }

/* ---------- Accueil ---------- */
#screen-welcome { justify-content: space-between; }
.welcome-hero { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 32px 12px; text-align: center; }
.welcome-hero h1 { font-size: 30px; max-width: 12em; }
.welcome-hero p { font-size: 17px; max-width: 20em; }
.welcome-panel { position: relative; background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; border-top: 3px solid #fff; max-width: 640px; width: 100%; margin-inline: auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-slot { min-height: 44px; display: flex; justify-content: center; }
.g-slot > div { max-width: 100%; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 99px; background: var(--card); color: var(--ink); border: 2px solid var(--line); font-weight: 600; font-size: 15px; }
.gbtn svg { width: 20px; height: 20px; }
.gbtn:disabled { opacity: .6; }
.fine { font-size: 13px; color: var(--mut); line-height: 1.5; }
.welcome-panel .fine { text-align: center; }

/* ---------- Barres, boutons, liens ---------- */
.bar { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top)); background: var(--bg); border-bottom: 2px solid var(--line); flex: none; }
.bar h2 { font-size: 18px; }
.back, .icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; }
.back:hover, .icon-btn:hover { background: var(--soft); }
[dir=rtl] .back svg, [dir=rtl] .send svg { transform: scaleX(-1); }
[data-ic] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
[data-ic] svg, .eye svg, .note-chip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--btn); color: var(--on-btn); border: 2px solid var(--bd); box-shadow: 0 4px 0 var(--sh); font-weight: 700; font-size: 16px; text-align: center; transition: transform .1s, box-shadow .1s, opacity .2s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn.alt { background: var(--card); color: var(--ink); }
.btn.ok { background: var(--turf); color: var(--on-c); }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.btn.danger-o { background: transparent; color: var(--red); border-color: var(--red); box-shadow: none; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--on-btn); border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.btn.alt.loading::after { border-color: var(--ink); border-inline-end-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg { width: 20px; height: 20px; }
.link { color: var(--turf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-s { color: var(--mut); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-s svg { width: 16px; height: 16px; }
.mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 12px; background: var(--btn); color: var(--on-btn); border: 2px solid var(--bd); font-weight: 700; font-size: 14px; flex: none; }
.mini.alt { background: var(--card); color: var(--ink); } .mini.ok { background: var(--turf); color: var(--on-c); }
.mini:disabled { opacity: .5; }

/* ---------- Formulaires ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.fld > span:first-child { color: var(--ink); }
.field { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea.field { resize: vertical; min-height: 88px; line-height: 1.4; }
select.field, .fld select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 400; }
.field:focus, .fld select:focus, #msg-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turf) 28%, transparent); }
.field::placeholder, #msg-input::placeholder { color: var(--mut); opacity: .75; }
input[type=date].field, input[type=datetime-local].field { min-height: 50px; }
.pw { position: relative; display: block; }
.pw .field { padding-inline-end: 52px; }
.eye { position: absolute; inset-block: 0; inset-inline-end: 4px; width: 44px; display: grid; place-items: center; color: var(--mut); }
.err { background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); border: 2px solid color-mix(in srgb, var(--red) 55%, transparent); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.hint { font-size: 13px; color: var(--mut); }
.lbl { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.count { align-self: flex-end; color: var(--mut); font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; margin: 0; border-radius: 8px; border: 2px solid var(--bd); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--btn); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-btn); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scrollx { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.chips.scrollx::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip.on { background: var(--btn); color: var(--on-btn); border-color: var(--bd); }
.seg { display: inline-flex; border: 2px solid var(--bd); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { padding: 0 12px; min-height: 38px; font-size: 13px; font-weight: 600; text-align: center; }
.seg button + button { border-inline-start: 2px solid var(--bd); }
.seg button.on { background: var(--btn); color: var(--on-btn); }
.seg.wide { display: flex; width: 100%; } .seg.wide button { flex: 1; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.types button { min-height: 52px; padding: 6px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; text-align: center; line-height: 1.2; }
.types button.on { background: var(--c); color: var(--on-c); border-color: var(--bd); box-shadow: 0 3px 0 var(--sh); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--bd); border-radius: 14px; background: var(--card); overflow: hidden; }
.stepper button { width: 54px; height: 50px; font-size: 26px; font-weight: 600; text-align: center; }
.stepper button:active { background: var(--soft); }
.stepper b { min-width: 52px; text-align: center; font-size: 22px; font-weight: 800; border-inline: 2px solid var(--bd); line-height: 50px; }
input[type=range] { width: 100%; accent-color: var(--turf); height: 28px; }

/* Sports et niveaux */
.sport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sport-card { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-weight: 700; transition: transform .1s; }
.sport-card .se { font-size: 28px; line-height: 1; }
.sport-card.on { border-color: var(--bd); background: var(--ok-bg); box-shadow: 0 3px 0 var(--sh); }
.sport-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lvl-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.lvl-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); border: 2px solid var(--line); }
.lvl-name { font-weight: 700; }
.lvl-row .seg { display: flex; } .lvl-row .seg button { flex: 1; }

/* Photo */
.photo-pick, .photo-edit { position: relative; display: inline-block; cursor: pointer; }
.photo-pick .avw, .photo-edit .avw { width: 124px; height: 124px; }
.cam { position: absolute; inset-block-end: 2px; inset-inline-end: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--on-c); border: 2px solid var(--bd); display: grid; place-items: center; box-shadow: 0 2px 0 var(--sh); }
.cam svg { width: 19px; height: 19px; }

/* Géolocalisation */
.geo { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--line); }
.geo.ok { border-color: var(--turf); background: var(--ok-bg); }
.geo.err { border-color: var(--orange); background: var(--warn-bg); }
.geo.load .geo-ic { animation: pulse 1s ease-in-out infinite; }
.geo-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--turf); color: var(--on-c); }
.geo.err .geo-ic { background: var(--orange); }
.geo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.geo-txt b { font-weight: 700; }
.geo-txt small { color: var(--mut); font-size: 13px; line-height: 1.35; }
.manual-city { margin-top: 12px; }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .6; } }

/* Inscription */
.steps { flex: 1; display: flex; gap: 6px; }
.steps i { flex: 1; height: 8px; border-radius: 99px; background: var(--line); }
.steps i.done { background: var(--turf); } .steps i.on { background: var(--orange); }
.step-n { font-size: 13px; font-weight: 700; color: var(--mut); min-width: 34px; text-align: end; padding-inline-end: 6px; }
.dock { flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; max-width: 480px; width: 100%; margin-inline: auto; }
.step-h { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.step-h h1 { font-size: 26px; }
.meter4 { display: flex; gap: 6px; } .meter4 i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.meter4 i.s1 { background: var(--red); } .meter4 i.s2 { background: var(--orange); } .meter4 i.s3 { background: #d3a300; } .meter4 i.s4 { background: var(--turf); }
.note-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--good); font-weight: 600; font-size: 14px; }

/* ---------- Fil ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 6px; padding-top: calc(10px + env(safe-area-inset-top)); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; max-width: 55%; min-height: 38px; padding: 0 14px 0 10px; border-radius: 99px; background: var(--card); border: 2px solid var(--bd); font-weight: 600; font-size: 14px; box-shadow: 0 2px 0 var(--sh); }
.pill svg { width: 18px; height: 18px; color: var(--orange); }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; flex: none; }
.filters .chips { flex: 1; min-width: 0; }
.filter-btn { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--card); border: 2px solid var(--bd); }
.filter-btn b { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--orange); color: var(--on-c); font-size: 12px; border: 2px solid var(--bg); }
.list { display: flex; flex-direction: column; gap: 16px; padding: 8px 14px 24px; }
.scroll.list { padding-bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.list.inline { padding: 0; overflow: visible; }
.list > *, .stack > *, .page > * { flex-shrink: 0; }
.sep { font-size: 15px; color: var(--mut); font-weight: 700; margin-top: 4px; }
.banner { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); font-size: 14px; border: 2px dashed currentColor; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 48px 24px; }
.empty b { font-size: 19px; } .empty p { color: var(--mut); max-width: 22em; }
.empty .stack-sm { width: 100%; max-width: 300px; margin-top: 8px; }
.empty-s { padding: 20px 8px; color: var(--mut); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.skel { border-radius: var(--r); border: 2px solid var(--line); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel i:nth-child(1) { width: 40%; height: 40px; } .skel i:nth-child(2) { width: 85%; } .skel i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Carte d'annonce */
.ad { position: relative; background: var(--card); border: 2px solid var(--bd); border-radius: var(--r); box-shadow: 0 5px 0 var(--sh); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ad:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sh); }
.ad.detail { cursor: default; } .ad.detail:active { transform: none; box-shadow: 0 5px 0 var(--sh); }
.ad.is-demo { cursor: default; border-style: dashed; box-shadow: none; opacity: .94; }
.ad-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 16px; background: var(--c); color: var(--on-c); font-size: 13px; font-weight: 700; }
.author { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.author.link { cursor: pointer; text-decoration: none; font-weight: inherit; color: inherit; }
.who-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; align-items: flex-start; }
.who-t b { font-size: 19px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.age { font-weight: 500; color: var(--mut); }
.presence { font-size: 13px; color: var(--mut); display: inline-flex; align-items: center; gap: 6px; }
.presence::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.presence.on { color: var(--good); font-weight: 600; } .presence.on::before { background: var(--turf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turf) 25%, transparent); }
.presence.big { font-size: 14px; }
.heart { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--mut); }
.heart.on { color: var(--orange); } .heart.on svg { fill: currentColor; }
.heart-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--mut); } .heart-l.on { color: var(--orange); } .heart-l.on svg { fill: currentColor; } .heart-l svg { width: 18px; height: 18px; }
.ad-body { display: flex; align-items: center; gap: 14px; padding: 10px 16px 4px; }
.badge { flex: none; min-width: 56px; height: 56px; padding: 0 8px; display: grid; place-items: center; border-radius: 16px; background: var(--c); color: var(--on-c); font-size: 22px; font-weight: 900; letter-spacing: -.02em; border: 2px solid var(--bd); transform: rotate(-4deg); }
.ad-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.need { color: var(--mut); font-size: 14px; font-weight: 500; }
.tag { display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--mut); white-space: nowrap; }
.tag.demo { background: var(--warn-bg); color: var(--warn); } .tag.good { background: var(--ok-bg); color: var(--good); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.mute { background: var(--soft); color: var(--mut); }
.spots { display: flex; align-items: center; gap: 10px; padding: 8px 16px 0; font-size: 13px; font-weight: 600; color: var(--mut); }
.spot-dots { display: flex; gap: 5px; } .spot-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bd); background: transparent; } .spot-dots i.on { background: var(--turf); }
.meta { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 4px; font-size: 14.5px; }
.meta li { display: flex; align-items: flex-start; gap: 10px; } .meta li svg { width: 18px; height: 18px; color: var(--mut); margin-top: 2px; }
.meta.big { font-size: 16px; gap: 10px; padding-inline: 0; } .meta.big li svg { width: 20px; height: 20px; }
.lv { font-weight: 600; }
.note { margin: 10px 16px 0; padding: 4px 12px; border-inline-start: 4px solid var(--c); color: var(--ink); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.players { display: flex; align-items: center; gap: 4px; padding: 12px 16px 0; font-size: 13px; color: var(--mut); } .players .avw { margin-inline-end: -8px; } .players span:last-child { margin-inline-start: 14px; }
.ad-foot { display: flex; gap: 10px; padding: 14px 16px 16px; }
.sq { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 2px solid var(--bd); background: var(--card); }
.sq.ok { background: var(--turf); color: var(--on-c); }
.cta { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--c); color: var(--on-c); border: 2px solid var(--bd); font-weight: 800; font-size: 16px; text-align: center; box-shadow: 0 3px 0 var(--sh); }
.cta:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--sh); }
.cta.ok { background: var(--turf); } .cta.soft { background: var(--card); color: var(--ink); }
.cta:disabled { background: var(--soft); color: var(--mut); border-color: var(--line); box-shadow: none; }
.cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #fff; color: #10261b; font-size: 13px; }
.ad.detail .ad-foot { display: none; }
.detail-body { padding: 18px 18px 18px; }
.hero-author { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; } .hero-author.link { cursor: pointer; }
.hero-author h2 { font-size: 26px; line-height: 1.15; } .hero-author > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.d-title { display: flex; align-items: center; gap: 14px; }
.d-title h3 { font-size: 24px; font-weight: 800; }
.ad.detail .spots, .ad.detail .players { padding-inline: 0; } .ad.detail .spots { padding-top: 14px; } .ad.detail .meta.big { padding-top: 16px; }
.ad.detail .note { margin-inline: 0; }
.maps { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 12%, var(--card)); }
.maps svg { width: 18px; height: 18px; }
.detail-links { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; }
.card-block { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card-block h3 { font-size: 15px; color: var(--mut); font-weight: 700; }
.bio { overflow-wrap: anywhere; white-space: pre-line; }
.req-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; } .req-row + .req-row { border-top: 2px solid var(--line); padding-top: 10px; }
.req-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; } .req-who span:last-child { display: flex; flex-direction: column; } .req-who small { color: var(--mut); font-size: 13px; }

/* Avatars */
.avw { position: relative; display: inline-block; flex: none; width: 48px; height: 48px; }
.avw.xs { width: 26px; height: 26px; } .avw.sm { width: 40px; height: 40px; } .avw.md { width: 52px; height: 52px; }
.avw.lg { width: 60px; height: 60px; } .avw.xl { width: 76px; height: 76px; } .avw.hero { width: 76px; height: 76px; } .avw.huge { width: 116px; height: 116px; }
.av { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--bd); background: var(--soft); }
.avw.xs .av { border-width: 1.5px; }
.dot { position: absolute; inset-block-end: 1px; inset-inline-end: 1px; width: 30%; height: 30%; min-width: 11px; min-height: 11px; border-radius: 50%; background: var(--turf); border: 2.5px solid var(--card); }
.photo-edit .dot { display: none; }

/* ---------- Messages ---------- */
.thread { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; border-bottom: 2px solid var(--line); }
.thread-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.thread-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .thread-l b { font-size: 16px; } .thread-l small { color: var(--mut); }
.thread-m { color: var(--mut); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.unread .thread-m { color: var(--ink); font-weight: 600; }
.thread-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; } .thread-r small { color: var(--mut); font-size: 12px; }
.dotb { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); display: block; }
.thread-bar { gap: 6px; } .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.thread-bar .who-t b { font-size: 16px; } .who-t small { font-size: 12.5px; color: var(--mut); } .who-t small.on { color: var(--good); font-weight: 600; }
.adstrip { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--soft); font-size: 14px; border-bottom: 2px solid var(--line); flex: none; width: 100%; }
.adstrip .se { font-size: 20px; } .chipx { padding: 2px 10px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); font-size: 12px; font-weight: 700; }
.reqbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; flex: none; }
.btns { display: flex; gap: 8px; flex: none; }
#msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.bub { position: relative; max-width: 80%; padding: 9px 13px; border-radius: 18px; line-height: 1.4; overflow-wrap: anywhere; font-size: 15.5px; }
.bub.me { align-self: flex-end; background: var(--btn); color: var(--on-btn); border-end-end-radius: 6px; }
.bub.them { align-self: flex-start; background: var(--card); border: 2px solid var(--line); border-end-start-radius: 6px; }
.bub.pending { opacity: .6; }
.bub time { display: block; margin-top: 3px; font-size: 11px; opacity: .7; text-align: end; }
.daysep, .sysmsg { display: flex; justify-content: center; margin: 10px 0 6px; } .daysep span, .sysmsg span { font-size: 12px; color: var(--mut); background: var(--soft); padding: 3px 12px; border-radius: 99px; text-align: center; }
.sysmsg span { font-weight: 600; }
#msgs .empty-s { margin: auto; }
#quick { padding: 6px 14px; flex: none; }
#send-form { display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); background: var(--bg); flex: none; }
#msg-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--line); background: var(--card); font-size: 16px; }
.send { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); border: 2px solid var(--bd); flex: none; box-shadow: 0 3px 0 var(--sh); }
.send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sh); }

/* ---------- Profil ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; }
.profile-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.profile-hero .avw { margin-bottom: 8px; } .profile-hero h1 { font-size: 28px; } .profile-hero p { display: flex; align-items: center; gap: 6px; justify-content: center; } .profile-hero p svg { width: 16px; height: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 2px solid var(--bd); box-shadow: 0 3px 0 var(--sh); text-align: center; text-decoration: none; min-width: 0; }
.stat b { font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; } .stat small { color: var(--mut); font-size: 12px; font-weight: 500; }
button.stat { font-weight: inherit; }
.sport-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sport-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--soft); font-size: 14px; } .sport-chip small { color: var(--mut); }

/* Réglages */
.set { background: var(--card); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.set > h3 { padding: 14px 16px 6px; font-size: 13px; color: var(--mut); font-weight: 700; }
.row-s { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border-top: 2px solid var(--line); min-height: 54px; }
.set > h3 + .row-s, .set > h3 + div { border-top: 0; }
.row-s small { display: block; color: var(--mut); font-size: 13px; font-weight: 400; } .row-s b { font-weight: 600; word-break: break-word; }
.row-s > svg, .row-s > [data-ic] { color: var(--mut); }
.row-s.col { flex-direction: column; align-items: stretch; gap: 10px; } .row-s.col > span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.row-s.danger { color: var(--red); } .row-s.danger [data-ic] { color: var(--red); }
.btn-row:hover { background: var(--soft); }
#st-geo { padding: 4px 16px 16px; }
.switch { flex: none; position: relative; width: 52px; height: 32px; border-radius: 99px; background: var(--line); border: 2px solid var(--bd); transition: background .2s; }
.switch i { position: absolute; top: 2px; inset-inline-start: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--bd); transition: transform .2s; }
.switch[aria-checked=true] { background: var(--turf); } .switch[aria-checked=true] i { transform: translateX(20px); } [dir=rtl] .switch[aria-checked=true] i { transform: translateX(-20px); }
.blocked-row { display: flex; align-items: center; gap: 12px; }

/* ---------- Navigation ---------- */
#nav { position: absolute; inset-inline: 0; bottom: 0; z-index: 20; display: flex; background: var(--card); border-top: 2px solid var(--bd); padding-bottom: env(safe-area-inset-bottom); }
#nav > button[data-tab] { position: relative; flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--mut); text-align: center; }
#nav > button.on { color: var(--turf); } #nav > button.on::before { content: ""; position: absolute; top: -2px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--orange); }
#nav svg { width: 24px; height: 24px; }
#badge { position: absolute; top: 10px; inset-inline-start: calc(50% + 8px); width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--card); }
#fab { position: absolute !important; flex: none !important; inset-inline-end: 16px; bottom: calc(100% + 16px); width: 60px !important; height: 60px !important; border-radius: 50%; background: var(--orange); color: var(--on-c) !important; border: 2px solid var(--bd); box-shadow: 0 5px 0 var(--sh); display: grid !important; place-items: center; }
#fab svg { width: 28px; height: 28px; stroke-width: 2.6; } #fab::before { display: none !important; }
#fab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sh); }
#nav.hidden + * {}

/* ---------- Feuille modale, toast, hors-ligne ---------- */
#sheet-bg { position: absolute; inset: 0; z-index: 40; background: rgba(6, 16, 11, .55); animation: fade .2s; }
#sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 50; max-height: 90%; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; border: 2px solid var(--bd); border-bottom: 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .22s ease; overscroll-behavior: contain; }
#sheet.open { transform: none; animation: sheetUp .26s ease; } #sheet.tall { height: 86%; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
#sheet-body { display: flex; flex-direction: column; gap: 14px; }
.sheet-t { font-size: 22px; font-weight: 800; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.menu-list { display: flex; flex-direction: column; } .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 52px; font-weight: 600; border-bottom: 2px solid var(--line); } .menu-list button:last-child { border: 0; }
.prose { display: flex; flex-direction: column; gap: 6px; } .prose h4 { margin-top: 10px; font-size: 16px; } .prose p { color: var(--mut); font-size: 15px; }
.steps-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 15px; }
@keyframes sheetUp { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: absolute; z-index: 60; inset-inline: 16px; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); margin-inline: auto; width: fit-content; max-width: min(92%, 440px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.3); animation: rise .2s ease; pointer-events: none; }
#offline { position: absolute; z-index: 70; inset-inline: 0; top: 0; padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top)); background: var(--red); color: #fff; text-align: center; font-size: 13px; font-weight: 600; }

@media (max-height: 640px) { .mark i { width: 64px; height: 64px; font-size: 26px; } .mark span { font-size: 32px; } .slide-art { width: 180px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Texte « +1 » : toujours de gauche à droite, même en hébreu */
.mark i, .badge, .cnt, #fab, svg text { direction: ltr; unicode-bidi: isolate; }
#sheet-body .lbl { margin-bottom: -4px; }

/* Curseur de distance (fil) */
.radius-row { display: flex; align-items: center; gap: 12px; margin: 0 16px 6px; padding: 6px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); flex: none; }
.radius-row [data-ic] { color: var(--orange); } .radius-row svg { width: 20px; height: 20px; }
.radius-row input[type=range] { flex: 1; min-width: 0; margin: 0; }
.radius-row b { min-width: 58px; text-align: end; font-size: 14px; font-weight: 700; }

/* Nom de l'app : « אחד » (hébreu, « un ») + « More » (anglais), toujours dans le même ordre visuel */
.wm { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
