/* ==========================================================================
   Outdyssey v2 — styles
   Clair (aurore) et sombre (nuit) ne changent que des variables. Police : DM Sans.
   ========================================================================== */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(/fonts/dm-sans-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/dm-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Thèmes ---------- */
:root, [data-theme="aurore"], [data-theme="sorbet"] {
  color-scheme: light;
  --bg: #fbfbfe; --surface: #ffffff; --surface2: #f2f3fb; --text: #120d26; --muted: #747688; --border: #e8e9f2;
  --primary: #5669ff; --primary-2: #4a43ec; --primary-ink: #ffffff; --primary-soft: rgba(86,105,255,.11);
  --accent: #00d8e0; --accent-soft: #d6fdff;
  --ok: #1fbf7e; --warn: #f59762; --bad: #f0635a;
  --shadow: 0 8px 30px rgba(80,85,136,.08); --shadow-lg: 0 16px 40px rgba(80,85,136,.14);
  --radius: 18px; --radius-sm: 12px; --border-w: 1px;
  --hero-grad: linear-gradient(160deg, #5669ff 0%, #4a43ec 100%);
  --illu-bg: #eef3ff;
}
[data-theme="nuit"], [data-theme="ardoise"] {
  color-scheme: dark;
  --bg: #0e0f1d; --surface: #181a2e; --surface2: #22243c; --text: #f2f2ff; --muted: #9ea0bb; --border: #2b2d48;
  --primary: #7180ff; --primary-2: #5a52f0; --primary-ink: #ffffff; --primary-soft: rgba(113,128,255,.18);
  --accent: #34e6ee; --accent-soft: #10343a;
  --ok: #34d399; --warn: #fbad7c; --bad: #ff7b72;
  --shadow: 0 8px 26px rgba(0,0,0,.35); --shadow-lg: 0 16px 40px rgba(0,0,0,.45);
  --radius: 18px; --radius-sm: 12px; --border-w: 1px;
  --hero-grad: linear-gradient(160deg, #3c45c9 0%, #2c2a9a 100%);
  --illu-bg: #1f2340;
}

/* Couleur propre à chaque type d'activité */
[data-type="dispo"]    { --tc: #1fbf7e; }  [data-type="bar"]      { --tc: #f58c4b; }
[data-type="resto"]    { --tc: #f0635a; }  [data-type="cafe"]     { --tc: #b97a4c; }
[data-type="cine"]     { --tc: #7d67ee; }  [data-type="sport"]    { --tc: #2ea8f5; }
[data-type="balade"]   { --tc: #3aa66b; }  [data-type="jeux"]     { --tc: #5669ff; }
[data-type="concert"]  { --tc: #ee5a9f; }  [data-type="soiree"]   { --tc: #c446e0; }
[data-type="culture"]  { --tc: #13a99a; }  [data-type="shopping"] { --tc: #e0a100; }
[data-type="autre"]    { --tc: #8a89a8; }
[data-type] { --tt: color-mix(in srgb, var(--tc) 14%, var(--surface)); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; font-optical-sizing: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--primary); }
.muted { color: var(--muted); } .small { font-size: 13px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 10px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .55rem 1.2rem; border-radius: 14px;
  border: 0; background: var(--surface2); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .08s, filter .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn.outline { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn.gray { background: var(--surface2); color: var(--muted); letter-spacing: .06em; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.btn.danger-outline { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 55%, transparent); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: .3rem .9rem; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: default; }
/* Gros bouton bleu en capitales avec flèche ronde à droite */
.btn.cta { position: relative; min-height: 58px; padding: 0 3.6rem; border-radius: 16px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 15px; }
.cta-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, #000 14%, var(--primary)); color: #fff; }
.link-btn { border: 0; background: transparent; color: var(--primary); font-weight: 600; padding: .4rem; min-height: 40px; }
.link-btn[disabled] { color: var(--text); cursor: default; } .link-btn b { color: var(--primary); font-weight: 600; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); flex: none; }
.icon-btn:active { background: var(--primary-soft); }
.icon-btn.on-dark { color: #fff; }
.icon-btn.on-dark:active { background: rgba(255,255,255,.18); }
.icon-btn svg { display: block; }
.pill-btn { display: inline-flex; align-items: center; gap: .35rem; border: 0; border-radius: 999px; padding: .35rem .8rem; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; min-height: 32px; }

/* ---------- Avatars (animaux) ---------- */
.avatar { --hue: 200; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; line-height: 1;
  background: hsl(var(--hue) 75% 88%); }
[data-theme="nuit"] .avatar, [data-theme="ardoise"] .avatar { background: hsl(var(--hue) 40% 30%); }
.avatar.xs { width: 24px; height: 24px; font-size: .8rem; } .avatar.sm { width: 28px; height: 28px; font-size: .9rem; }
.avatar.md { width: 44px; height: 44px; font-size: 1.4rem; } .avatar.lg { width: 50px; height: 50px; font-size: 1.6rem; }
.avatar.xl { width: 66px; height: 66px; font-size: 2.2rem; } .avatar.xxl { width: 112px; height: 112px; font-size: 3.6rem; }

/* ---------- Champs ---------- */
.field { display: grid; gap: .4rem; margin-bottom: .9rem; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input { width: 100%; min-height: 54px; padding: .6rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.field-ico { position: relative; display: block; }
.field-ico > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-ico .input { padding-left: 50px; }
.error { color: var(--bad); font-weight: 500; font-size: 14px; min-height: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { max-width: 100%; overflow-wrap: anywhere; min-height: 40px; padding: .35rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent); }
.chip.box { min-height: 46px; padding-inline: 1.15rem; }
.chip.muted-type[aria-pressed="true"] { text-decoration: line-through; background: var(--surface2); color: var(--muted); box-shadow: none; }
.chip.multi { border-style: dashed; color: var(--primary); }
.group { display: grid; gap: .55rem; }
.group > h3 { font-size: 16px; font-weight: 600; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.row.center { justify-content: center; }

/* ---------- Connexion ---------- */
.auth { min-height: 100dvh; padding: 1rem 1.4rem 2rem; max-width: 480px; margin: 0 auto;
  background: radial-gradient(28rem 22rem at 110% -5%, color-mix(in srgb, #ffb4b4 20%, transparent), transparent 70%), radial-gradient(28rem 22rem at -10% 105%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%); }
.auth-top { display: flex; justify-content: flex-end; padding-top: env(safe-area-inset-top); }
.auth-card { display: grid; gap: 1rem; padding-top: .5rem; }
.auth-card > .back { margin-left: -10px; }
.auth-brand { display: grid; justify-items: center; gap: .4rem; margin: 1rem 0 .6rem; }
.auth-brand img { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.auth-brand span { font-size: 33px; font-weight: 600; letter-spacing: -.02em; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.auth-h { font-size: 24px; font-weight: 600; }
.auth-p { color: var(--text); opacity: .8; }
.auth-form { display: grid; gap: .8rem; }
.auth-form .cta { margin: .6rem auto 0; width: min(100%, 300px); }
.auth-center { text-align: center; justify-self: center; }
.or { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: .4rem 0 0; }
.btn.oauth { width: min(100%, 300px); justify-self: center; background: var(--surface); color: var(--text); box-shadow: var(--shadow); min-height: 56px; font-weight: 500; gap: .8rem; }
.btn.oauth .g { font-style: normal; font-weight: 800; font-size: 1.15rem; color: #4285f4; }
.btn.oauth.apple svg { color: var(--text); }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin: .4rem 0; cursor: text; }
.otp-box { display: grid; place-items: center; height: 58px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 22px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.otp-box:empty::after { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--border); }
.otp-box.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; caret-color: transparent; }
.invite-card { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: var(--primary-soft); }
.invite-card .ie { font-size: 1.7rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 14px; background: var(--surface); }
.invite-card > div { display: grid; min-width: 0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface2); border-radius: 999px; }
.lang-btn { border: 0; background: transparent; border-radius: 999px; min-height: 32px; padding: 0 .6rem; font-weight: 600; font-size: 12px; color: var(--muted); }
.lang-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 19px; }
.logo img { width: 36px; height: 36px; border-radius: 11px; }
.auth .tagline { color: var(--muted); }
.auth h1:not(.auth-h) { font-size: 24px; margin: .8rem 0 .2rem; }

/* ---------- Coque : colonne de téléphone, barre du bas ---------- */
.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); position: relative; }
.shell.tab-detail { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.feed-body, .sec, .detail, .dt-body, .sheet-body, .row-list, .dt-sec, .group, .hero-head, .auth-card, .empty-state { grid-template-columns: minmax(0, 1fr); }
.page > *, .sec, .ev-row, .row-list { min-width: 0; }
.nav { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%);
  display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; padding: .5rem .5rem calc(.45rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 -6px 26px rgba(80,85,136,.10); border-radius: 22px 22px 0 0; }
.nav .tab { display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; color: color-mix(in srgb, var(--muted) 60%, var(--surface)); font-size: 12px; font-weight: 500; min-height: 52px; padding: .2rem; }
.nav .tab .ico { line-height: 0; }
.nav .tab[aria-current="page"] { color: var(--primary); }
.nav .new { justify-self: center; width: 60px; height: 60px; margin-bottom: 14px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--primary); box-shadow: 0 0 0 6px var(--bg), 0 12px 24px color-mix(in srgb, var(--primary) 45%, transparent); }
.nav .new:active { transform: scale(.94); }
.kb-open .nav, .kb-open .cta-bar { display: none; }

/* ---------- En-tête des pages ---------- */
.phead { display: flex; align-items: center; gap: .3rem; padding: calc(.8rem + env(safe-area-inset-top)) 1rem .2rem; min-height: 64px; }
.phead h1 { font-size: 24px; font-weight: 600; flex: 1; min-width: 0; }
.phead .icon-btn:first-child { margin-left: -6px; }
.ph-act { display: flex; gap: .1rem; }
.page > :not(.phead):not(.hero-head):not(.cats):not(.feed-body):not(.detail) { margin-inline: 1.2rem; }

/* ---------- Accueil : en-tête bleu ---------- */
.hero-head { background: var(--hero-grad); color: #fff; border-radius: 0 0 34px 34px; padding: calc(.7rem + env(safe-area-inset-top)) 1rem 3.3rem; display: grid; gap: 1rem; }
.hh-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.hh-circle { display: grid; justify-items: center; border: 0; background: transparent; color: #fff; min-width: 0; padding: .2rem .5rem; border-radius: 12px; }
.hh-circle small { display: inline-flex; align-items: center; gap: .3rem; font-size: 12px; opacity: .72; }
.hh-circle b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.bell-btn { background: rgba(255,255,255,.12); }
.bell-btn .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; background: var(--accent); color: #003b3e; box-shadow: 0 0 0 2px var(--primary-2); }
.hh-search { display: flex; align-items: center; gap: .6rem; padding: 0 .3rem 0 .4rem; }
.hs-ico { opacity: .9; line-height: 0; }
.search-input { flex: 1 1 0; width: 0; min-width: 0; border: 0; border-left: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 20px; padding: .2rem .7rem; min-height: 40px; -webkit-appearance: none; appearance: none; }
.search-input::placeholder { color: rgba(255,255,255,.5); }
.search-input:focus { outline: none; border-left-color: #fff; }
.search-input::-webkit-search-cancel-button { filter: invert(1); }
.flt-btn { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: 999px; padding: .35rem .85rem .35rem .4rem; min-height: 40px; background: rgba(255,255,255,.16); color: #fff; font-size: 13px; }
.flt-btn .fb-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); }
.flt-btn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #003b3e; font-size: 11px; display: grid; place-items: center; }

/* Catégories : pastilles colorées qui chevauchent le bas de l'en-tête */
.cats { display: flex; gap: .7rem; overflow-x: auto; margin-top: -1.65rem; padding: .2rem 1.2rem 1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 999px; padding: 0 1.15rem 0 .5rem; min-height: 46px;
  background: var(--tc); color: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 8px 18px color-mix(in srgb, var(--tc) 35%, transparent); }
.cat .ci { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.cat:active { transform: scale(.96); }

.feed-body { display: grid; gap: 1.4rem; }
.feed-body > * { margin-inline: 1.2rem; }
.feed-body > .sec { margin-inline: 0; }
.sec { display: grid; gap: .8rem; }
.sec > :not(.ev-row):not(.avail-row) { margin-inline: 1.2rem; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sec-head h2 { font-size: 18px; font-weight: 500; }
.see-all { display: inline-flex; align-items: center; gap: .2rem; border: 0; background: transparent; color: var(--muted); font-size: 14px; padding: .3rem 0; }
.see-all svg { transform: rotate(-90deg); }

/* Cartes d'idées (défilement horizontal) */
.ev-row { display: flex; gap: 1rem; overflow-x: auto; padding: .2rem 1.2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ev-row::-webkit-scrollbar { display: none; }
.ev-card { position: relative; flex: none; width: min(258px, 76vw); scroll-snap-align: start; background: var(--surface); border-radius: 18px; padding: .6rem .6rem 1rem; box-shadow: var(--shadow); display: grid; gap: .55rem; }
.ev-card.joined { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--primary) 55%, transparent); }
.ev-open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: inherit; }
.ev-cover { position: relative; height: 136px; border-radius: 12px; overflow: hidden; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 14%, var(--surface)), color-mix(in srgb, var(--tc) 30%, var(--surface))); overflow: hidden; }
.cover .c1, .cover .c2 { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--tc) 22%, transparent); }
.cover .c1 { width: 70%; aspect-ratio: 1; right: -12%; top: -30%; } .cover .c2 { width: 46%; aspect-ratio: 1; left: -10%; bottom: -26%; background: color-mix(in srgb, var(--tc) 16%, transparent); }
.cover .cv-ico { position: relative; color: var(--tc); line-height: 0; filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--tc) 40%, transparent)); }
.date-badge { position: absolute; left: 8px; top: 8px; z-index: 2; display: grid; justify-items: center; min-width: 46px; padding: .3rem .5rem .25rem; border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--bad); line-height: 1.05; }
.date-badge b { font-size: 18px; font-weight: 700; } .date-badge small { font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.date-badge.live { color: var(--ok); }
.fav-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); flex: none; }
.fav-btn[aria-pressed="true"] { color: var(--bad); }
.fav-btn.on-cover { position: absolute; right: 8px; top: 8px; z-index: 2; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--bad); }
.fav-btn.on-cover[aria-pressed="false"] { color: var(--muted); }
.fav-btn.on-dark { background: rgba(255,255,255,.2); color: #fff; }
.my-tag { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 8px; font-size: 11px; font-weight: 600; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.my-tag.maybe { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: color-mix(in srgb, var(--warn) 70%, #6b3500); }
.my-tag.out { background: var(--surface2); color: var(--muted); }
.ev-cover .my-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--primary); color: #fff; }
.ev-cover .my-tag.maybe { background: var(--warn); color: #fff; } .ev-cover .my-tag.out { background: var(--muted); color: #fff; }
.ev-title { font-size: 18px; font-weight: 500; padding: 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.going { display: flex; align-items: center; gap: .55rem; padding: 0 .3rem; color: var(--primary); font-size: 13px; font-weight: 600; }
.going.none { color: var(--muted); font-weight: 500; }
.av-stack { display: inline-flex; padding-left: 8px; }
.av-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.ev-place { display: flex; align-items: center; gap: .4rem; padding: 0 .3rem; color: var(--muted); font-size: 13px; min-width: 0; }
.ev-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-place svg { flex: none; opacity: .75; }
.ev-empty { margin-inline: 1.2rem; }

/* Lignes (recherche, agenda, terminées) */
.row-list { display: grid; gap: .8rem; }
.row-card { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: .55rem .9rem .55rem .55rem; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); position: relative; }
.row-card.ended { opacity: .7; }
.rc-thumb { position: relative; flex: none; width: 76px; height: 82px; border-radius: 12px; overflow: hidden; }
.rc-txt { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.rc-date { color: var(--primary); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.rc-txt b { font-size: 17px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-dot { position: absolute; right: 12px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.my-dot.maybe { background: var(--warn); } .my-dot.out { background: var(--border); }

/* Bandeau « Invite tes ami·e·s » */
.invite-banner { position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 16px; padding: 1.1rem 1.1rem; background: var(--accent-soft); min-height: 150px; }
.ib-txt { position: relative; z-index: 1; display: grid; gap: .3rem; justify-items: start; max-width: 62%; }
.ib-txt h3 { font-size: 18px; font-weight: 500; } .ib-txt p { color: var(--muted); font-size: 13px; }
.ib-btn { margin-top: .5rem; min-height: 38px; border-radius: 8px; padding: 0 1.2rem; background: var(--accent); color: #fff; font-size: 13px; letter-spacing: .08em; font-weight: 600; }
[data-theme="aurore"] .ib-btn, :root .ib-btn { background: #00c2cc; }
.ib-art { position: absolute; right: -6px; bottom: 0; width: 46%; height: auto; }

/* Disponibilités */
.avail-row { display: flex; gap: .9rem; overflow-x: auto; padding: .1rem 1.2rem .4rem; scrollbar-width: none; }
.avail-row::-webkit-scrollbar { display: none; }
.avail { flex: none; width: 72px; display: grid; justify-items: center; gap: .15rem; text-align: center; }
.avail .av-wrap { position: relative; }
.avail .av-wrap .orb { position: absolute; right: -3px; bottom: -2px; }
.avail .nm { font-size: 13px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avail .sl { font-size: 11px; color: var(--muted); line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Bannières (statut en pause, installation, notifications) */
.banner { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: .85rem 1rem; border-radius: 16px; background: var(--primary-soft); }
.banner .grow { flex: 1 1 9rem; min-width: 0; font-size: 14px; }
.banner .ico { font-size: 1.4rem; }
.banner.paused { background: color-mix(in srgb, var(--sc, var(--muted)) 12%, var(--surface)); }

/* États vides illustrés */
.empty-state { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 1.6rem .6rem 1rem; }
.empty-state .illu { width: 168px; height: 168px; margin-bottom: .4rem; }
.empty-state h2 { font-size: 22px; font-weight: 500; }
.empty-state p { max-width: 30ch; line-height: 1.6; }
.empty-state .cta, .empty-state .row { margin-top: .8rem; }
.empty-state .cta { min-width: 260px; }

/* ---------- Détail d'une sortie ---------- */
.detail { display: grid; }
.dt-hero { position: relative; height: calc(232px + env(safe-area-inset-top)); overflow: hidden; }
.dt-hero .cover { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 72%, #1d1b3a), color-mix(in srgb, var(--tc) 92%, #000)); }
.dt-hero .cover .c1, .dt-hero .cover .c2 { background: rgba(255,255,255,.1); }
.dt-hero .cover .cv-ico { color: rgba(255,255,255,.92); filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); margin-top: 10px; }
.dt-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: .4rem; padding: calc(.6rem + env(safe-area-inset-top)) .8rem .6rem; }
.dt-bar-t { flex: 1; color: #fff; font-size: 22px; font-weight: 500; }
.dt-pill { position: relative; z-index: 3; display: flex; align-items: center; gap: .7rem; margin: -30px auto 0; width: calc(100% - 52px); min-height: 60px; padding: .45rem .5rem .45rem 1rem;
  background: var(--surface); border-radius: 30px; box-shadow: var(--shadow-lg); }
.dt-pill .gp-t { flex: 1; min-width: 0; color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-pill .btn { min-height: 38px; padding: 0 1.1rem; border-radius: 8px; }
.dt-body { display: grid; gap: 1.2rem; padding: 1.4rem 1.4rem 1rem; }
.dt-tags { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.type-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 8px; background: var(--tt); color: var(--tc); font-size: 12px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--muted); }
.badge.live { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.dt-title { font-size: 33px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.info-row { display: flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none; }
.ir-ico { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ir-txt { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.ir-txt b { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; } .ir-txt small { color: var(--muted); font-size: 13px; }
a.info-row .ir-txt small { color: var(--primary); }
.org-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.org-row .avatar { border-radius: 12px; }
.org-circles { display: flex; gap: .35rem; flex-wrap: wrap; }
.cbadge { padding: .2rem .55rem; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 500; }
.dt-sec { display: grid; gap: .6rem; }
.dt-sec > h2 { display: flex; align-items: center; gap: .5rem; font-size: 18px; font-weight: 500; }
.cnt { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }
.dt-note { font-size: 16px; line-height: 1.75; color: color-mix(in srgb, var(--text) 85%, var(--muted)); overflow-wrap: anywhere; }
.people-list { display: grid; gap: .7rem; }
.pl-row { display: flex; align-items: center; gap: .8rem; }
.pl-row .ir-txt small { font-style: italic; }
.msg-row { display: flex; gap: .5rem; align-items: center; }
.msg-row .input { flex: 1; min-width: 0; }
.icon-btn.send { background: var(--primary); color: #fff; width: 50px; height: 50px; border-radius: 14px; }
.cta-bar { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); display: flex; gap: .6rem; align-items: center;
  padding: 1.6rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 38%); }
.cta-bar > .btn { flex: 1; min-height: 56px; }
.cta-bar .cta.grow { flex: 2; padding: 0 3.2rem 0 1rem; }
.cta-bar .cta.done { background: var(--ok); box-shadow: 0 10px 24px color-mix(in srgb, var(--ok) 30%, transparent); }
.cta-bar .cta.done .cta-arrow { background: rgba(0,0,0,.14); }
.cta-alt { display: grid; gap: .4rem; flex: 1; }
.cta-alt .alt { min-height: 26px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font-size: 12px; font-weight: 600; padding: .25rem .4rem; }
.cta-alt .alt[aria-pressed="true"].maybe { background: var(--warn); color: #fff; box-shadow: none; }
.cta-alt .alt[aria-pressed="true"].out { background: var(--muted); color: #fff; box-shadow: none; }
.info-link { display: inline-flex; align-items: center; gap: .25rem; padding: 0; border: 0; background: transparent; color: var(--primary); font: inherit; text-decoration: underline dotted color-mix(in srgb, var(--primary) 60%, transparent) 2px; text-underline-offset: 5px; cursor: pointer; }
.info-link svg { flex: none; opacity: .8; }

/* ---------- Agenda ---------- */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface2); margin-inline: 2rem !important; }
.seg2 button { border: 0; background: transparent; border-radius: 999px; min-height: 42px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.seg2 button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 6px 16px rgba(80,85,136,.14); }

/* ---------- Notifications ---------- */
.bell-hint { margin-top: -.6rem; }
.bell-list { display: grid; gap: 1.1rem; }
.bell-row { position: relative; display: flex; align-items: flex-start; gap: .9rem; }
.bell-row.unread::before { content: ""; position: absolute; left: -12px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.br-open { position: absolute; inset: -6px; z-index: 0; border: 0; background: transparent; border-radius: 12px; }
.bell-row > .avatar, .br-txt, .br-when { position: relative; z-index: 1; pointer-events: none; }
.br-txt { flex: 1; min-width: 0; display: grid; gap: .5rem; padding-top: .1rem; }
.br-txt p { font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--text) 75%, var(--muted)); overflow-wrap: anywhere; }
.br-txt p b { color: var(--text); font-weight: 600; }
.br-act { display: flex; gap: .6rem; pointer-events: auto; }
.br-act .btn { min-width: 110px; min-height: 40px; border-radius: 8px; font-weight: 500; }
.br-act .btn.outline { box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); }
.br-txt .my-tag { justify-self: start; }
.br-when { flex: none; font-size: 12px; color: var(--muted); padding-top: .2rem; }

/* ---------- Menu latéral ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; }
.dr-scrim { position: absolute; inset: 0; background: rgba(12,12,30,.45); opacity: 0; transition: opacity .2s; }
.dr-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(310px, 84vw); background: var(--surface); display: flex; flex-direction: column; gap: 1.4rem;
  padding: calc(2.2rem + env(safe-area-inset-top)) 1.5rem calc(1.4rem + env(safe-area-inset-bottom)); transform: translateX(-102%); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: 10px 0 40px rgba(0,0,0,.18); overflow-y: auto; }
.drawer.show .dr-scrim { opacity: 1; } .drawer.show .dr-panel { transform: none; }
.dr-me { display: grid; gap: .6rem; justify-items: start; }
.dr-me b { font-size: 19px; font-weight: 600; }
.dr-list { display: grid; gap: .2rem; flex: 1; }
.dr-item { display: flex; align-items: center; gap: 1rem; border: 0; background: transparent; color: var(--text); font-size: 16px; min-height: 52px; padding: 0 .4rem; border-radius: 12px; text-align: left; }
.dr-item svg { color: var(--muted); flex: none; }
.dr-item:active, .dr-item:focus-visible { background: var(--primary-soft); }
.dr-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; display: grid; place-items: center; background: var(--warn); color: #fff; font-size: 11px; }
.dr-invite { display: inline-flex; align-items: center; gap: .7rem; align-self: flex-start; border: 0; border-radius: 10px; padding: .8rem 1.1rem; background: var(--accent-soft); color: #00a3ad; font-weight: 600; }
[data-theme="nuit"] .dr-invite { color: var(--accent); }

/* ---------- Profil ---------- */
.prof { display: grid; justify-items: center; gap: .8rem; text-align: center; margin-top: .4rem !important; }
.prof-av { position: relative; }
.prof-av .status-btn { position: absolute; right: -2px; bottom: 2px; background: var(--surface); border-radius: 50%; min-width: 40px; min-height: 40px; padding: 0; box-shadow: var(--shadow); }
.prof-av.center { justify-self: center; }
.prof-name { font-size: 24px; font-weight: 500; }
.stats { display: flex; align-items: center; gap: 1.6rem; }
.stats > div { display: grid; justify-items: center; }
.stats b { font-size: 16px; font-weight: 600; } .stats small { color: var(--muted); font-size: 13px; }
.stats > i { width: 1px; height: 34px; background: var(--border); }
.prof .btn.outline { min-height: 52px; padding: 0 1.6rem; border-radius: 12px; }
.status-line { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.int-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.int-chip { padding: .45rem 1rem; border-radius: 999px; background: var(--tc); color: #fff; font-size: 14px; font-weight: 500; }
.status-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; min-width: 46px; justify-content: center; padding: 0 .4rem; border: 0; border-radius: 999px; background: transparent; color: var(--text); }
.status-btn.with-label { padding: 0 1rem 0 .5rem; background: var(--surface2); }
.status-btn .sb-txt { font-weight: 500; font-size: 14px; }

/* ---------- Réglages ---------- */
.set-list { display: grid; gap: .55rem; }
.set-row { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; min-height: 62px; padding: .55rem .9rem; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.sheet .set-row { box-shadow: none; background: var(--surface2); }
.set-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.set-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.set-txt b { font-weight: 500; } .set-txt small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.set-chev { color: var(--muted); display: grid; }
.panel { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 1rem; display: grid; gap: .8rem; }
.panel.flat { box-shadow: none; background: var(--surface2); padding: .7rem .9rem; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.tg-txt { display: grid; gap: 1px; min-width: 0; } .tg-txt small { font-size: 12px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--primary); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.time-row label { display: grid; gap: .25rem; font-size: 13px; color: var(--muted); }
.sec-note { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--text); }
.sec-note svg { flex: none; color: var(--ok); } .sec-note p { font-size: 14px; line-height: 1.55; }
.danger-zone > summary { display: flex; align-items: center; gap: .5rem; color: var(--bad); cursor: pointer; padding: .6rem .2rem; list-style: none; font-weight: 500; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.field.inner { margin: .3rem 0 0; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.theme-card { display: grid; gap: .45rem; text-align: left; padding: .6rem; border-radius: 16px; border: 2px solid var(--border); background: var(--bg); color: var(--text); }
.theme-card[aria-pressed="true"] { border-color: var(--primary); }
.theme-card .mini { display: grid; gap: 4px; padding: .4rem; border-radius: 10px; background: var(--surface); }
.theme-card .mini .mh { height: 16px; border-radius: 6px; background: var(--hero-grad); }
.theme-card .mini b { height: 6px; border-radius: 3px; background: var(--text); opacity: .7; width: 70%; }
.theme-card .mini u { height: 5px; border-radius: 3px; background: var(--muted); opacity: .4; width: 90%; text-decoration: none; } .theme-card .mini u.s { width: 55%; }
.theme-card .nm { font-weight: 600; font-size: 14px; } .theme-card .ds { font-size: 11px; color: var(--muted); }

/* ---------- Choix (cercle, langue) ---------- */
.pick-list { display: grid; gap: .45rem; }
.pick-row { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; min-height: 60px; padding: .5rem .8rem; border: 0; border-radius: 14px; background: var(--surface2); color: var(--text); }
.pick-row[aria-pressed="true"] { background: var(--primary-soft); }
.pick-row .ce { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); font-size: 1.35rem; }
.pick-row .ce.code { font-size: 13px; font-weight: 700; color: var(--primary); }
.pick-row svg { color: var(--muted); flex: none; }
.pk-check { color: var(--primary); display: grid; } .pk-check svg { color: var(--primary); }
.pick-row.boxed { background: var(--surface); border: 1px solid var(--border); }
.pick-row.boxed .ir-ico { width: 42px; height: 42px; }

/* Catégories rondes (filtres, fenêtre « Prévenir mes amis », centres d'intérêt) */
.tcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem .5rem; }
.tcat { display: grid; justify-items: center; gap: .4rem; border: 0; background: transparent; color: var(--text); padding: 0; }
.tc-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: color-mix(in srgb, var(--tc) 70%, var(--muted)); transition: background .15s, box-shadow .15s, transform .1s; }
.tc-l { font-size: 12px; line-height: 1.2; text-align: center; color: var(--muted); }
.tcat[aria-pressed="true"] .tc-ico { background: var(--primary); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.tcat[aria-pressed="true"] .tc-l { color: var(--text); font-weight: 500; }
.tcat:active .tc-ico { transform: scale(.94); }

/* ---------- Partage ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem .4rem; padding: .4rem 0 .6rem; }
.sh-t { display: grid; justify-items: center; gap: .45rem; border: 0; background: transparent; color: var(--text); text-decoration: none; font-size: 13px; text-align: center; padding: 0; }
.sh-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.1); }
.sh-t.copy .sh-ico { background: var(--surface2); color: var(--text); }
.sh-t.wa .sh-ico { background: #25d366; } .sh-t.ms .sh-ico { background: linear-gradient(135deg, #2e7bff, #a334fa); }
.sh-t.tg .sh-ico { background: #229ed9; } .sh-t.sms .sh-ico { background: #34c759; }
.sh-t.mail .sh-ico { background: #2f6bff; } .sh-t.more .sh-ico { background: var(--surface2); color: var(--muted); }

/* ---------- Fenêtres (feuilles) ---------- */
dialog#composer { border: 0; padding: 0; color: var(--text); background: var(--surface); box-shadow: 0 -10px 50px rgba(0,0,0,.3);
  width: min(520px, 100%); max-width: 100%; max-height: min(94dvh, calc(var(--vvh, 100dvh) - 12px)); margin: auto auto var(--kb, 0px); border-radius: 30px 30px 0 0; overflow: hidden; animation: sheet .24s cubic-bezier(.2,.8,.2,1); }
dialog#composer::backdrop { background: rgba(12,12,30,.5); animation: fade .2s; }
@keyframes sheet { from { transform: translateY(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet { display: grid; grid-template-rows: auto auto 1fr auto; max-height: min(94dvh, calc(var(--vvh, 100dvh) - 12px)); }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--border); margin: .6rem auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 1.4rem .4rem; }
.sheet-head h2 { font-size: 24px; font-weight: 500; }
.close-x { color: var(--muted); margin-right: -8px; }
.sheet-body { overflow-y: auto; padding: .4rem 1.4rem 1.2rem; display: grid; gap: 1.1rem; align-content: start; overscroll-behavior: contain; }
.sheet-body > * { min-width: 0; }
.sheet-foot { padding: .6rem 1.4rem calc(1rem + env(safe-area-inset-bottom)); display: grid; gap: .5rem; }
.sheet-foot:empty { display: none; }
.sheet-foot.two { grid-template-columns: 1fr 1.6fr; gap: .8rem; }
.sheet-foot.two .btn { min-height: 56px; letter-spacing: .08em; font-weight: 600; }
.sheet-foot.two .btn.outline { box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.pick-friends { display: grid; gap: .35rem; max-height: 200px; overflow: auto; padding: .2rem; }
.pick-friends label { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 10px; cursor: pointer; }
.pick-friends input { width: 20px; height: 20px; accent-color: var(--primary); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: .45rem; }
.avatar-grid button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--border); background: var(--surface2); font-size: 1.4rem; }
.avatar-grid button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }

/* ---------- Cercles ---------- */
.circ-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.circ-actions .btn { box-shadow: none; }
.circ-actions .btn.outline { box-shadow: inset 0 0 0 1.5px var(--primary); }
.circle-list { display: grid; gap: .8rem; }
.circle-card { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: .8rem 1rem; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.circle-card .ce { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); flex: none; }
.circle-card .cn { display: grid; flex: 1; min-width: 0; }
.circle-card .cn b { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .circle-card .cn small { font-size: 13px; }
.circle-card .chev { color: var(--muted); display: grid; }
.code-box { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; padding: .7rem .9rem; background: var(--surface2); border-radius: 12px; user-select: all; overflow-wrap: anywhere; }
.members { display: grid; gap: .6rem; }
.member { display: flex; align-items: center; gap: .8rem; }
.member .nm { font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member-st { color: var(--muted); font-weight: 400; font-size: 13px; }
.member-menu { position: relative; }
.member-menu summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; color: var(--muted); }
.member-menu summary::-webkit-details-marker { display: none; }
.member-menu[open] summary { background: var(--surface2); }
.menu-pop { position: absolute; right: 0; top: 40px; z-index: 5; display: grid; gap: .35rem; padding: .5rem; min-width: 190px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); }
.menu-pop .btn { justify-content: flex-start; }
.fav-list { display: grid; gap: .6rem; }
.fav-row { position: relative; display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; border-radius: 14px; background: var(--surface2); }
.fav-row .rc-thumb { width: 54px; height: 54px; }
.fav-row .fr-txt { display: grid; gap: 2px; min-width: 0; flex: 1; pointer-events: none; }
.fav-row .fav-btn { position: relative; z-index: 2; color: var(--bad); }
.fav-row .br-open { inset: 0; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 130;
  background: var(--text); color: var(--bg); padding: .75rem 1.2rem; border-radius: 14px; font-weight: 500; font-size: 14px; max-width: 90vw; text-align: center; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.kb-open #toast { bottom: calc(var(--kb, 0px) + 16px); }
input, textarea { scroll-margin-block: 90px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
/* ---- Installation de l'app + invitation aux notifications ---- */
.inst { display: grid; gap: .9rem; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: none; }
.inst-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .7rem .8rem; border: var(--border-w) solid var(--border); border-radius: var(--radius-sm); background: var(--surface2); }
.inst-steps .n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: var(--primary-ink); }
.inst-steps b { overflow-wrap: anywhere; }
.inst-steps p { margin: .15rem 0 0; }
.share-ico { display: inline-grid; vertical-align: -3px; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: var(--border-w) solid var(--border); color: var(--primary); margin-left: .15rem; }
.inst-note { padding: .6rem .8rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.inst-inapp { display: grid; gap: .6rem; justify-items: start; }
.onb { justify-items: center; text-align: center; padding: .5rem 0 .2rem; }
.onb .bell { font-size: 3.2rem; line-height: 1; animation: ring 1.6s ease-in-out 2; transform-origin: 50% 10%; }
.onb p { font-size: 1.05rem; max-width: 26ch; margin: 0; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .onb .bell { animation: none; } }


/* ---- Pastille de statut « en relief » ---- */
.orb { --s: 28px; --c1: #cfd3e4; --c2: #8d93ad; position: relative; flex: none; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; color: #fff;
  background:
    radial-gradient(120% 90% at 30% 14%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 46%),
    radial-gradient(circle at 50% 78%, var(--c1) 0, var(--c2) 100%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), inset 0 1px 1.5px rgba(255,255,255,.7),
    0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--c2) 60%, transparent),
    0 5px 12px color-mix(in srgb, var(--c2) 45%, transparent); }
.orb svg { width: 62%; height: 62%; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.orb[data-st="free"]        { --c1: #7df0ab; --c2: #12a455; }
.orb[data-st="flex"]        { --c1: #ffe08a; --c2: #e39206; }
.orb[data-st="busy"]        { --c1: #ff9a8a; --c2: #d8283f; }
.orb[data-st="unavailable"] { --c1: #f26a86; --c2: #9d1634; }
.orb[data-st="sleep"]       { --c1: #a9a6ff; --c2: #4a3fd1; }
.orb[data-st="focus"]       { --c1: #d9a6ff; --c2: #7a2bcf; }
.orb[data-st="vacation"]    { --c1: #8fe3ff; --c2: #0482c8; }
.orb[data-st="none"]        { --c1: var(--surface2); --c2: var(--muted); color: var(--muted);
  background: radial-gradient(120% 90% at 30% 14%, rgba(255,255,255,.8) 0, rgba(255,255,255,0) 50%), radial-gradient(circle at 50% 80%, var(--surface) 0, var(--surface2) 100%);
  box-shadow: inset 0 -1.5px 2px rgba(0,0,0,.1), 0 0 0 2px var(--surface), 0 0 0 3px var(--border), 0 4px 10px rgba(0,0,0,.08); }
.orb[data-st="none"] svg { filter: none; }
.orb[data-st="free"]::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #12a455; opacity: 0; animation: orb-ping 2.8s ease-out infinite; pointer-events: none; }
@keyframes orb-ping { 0% { transform: scale(.9); opacity: .55; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb::after { animation: none !important; } }

.orb { transition: transform .15s; }

/* Menu de statuts : bulle qui s'ouvre vers la gauche, sous la pastille */
.status-menu { position: fixed; z-index: 120; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--text);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: var(--border-w) solid var(--border); border-radius: 20px; padding: .4rem; box-shadow: 0 18px 44px rgba(10,10,30,.28), 0 2px 6px rgba(10,10,30,.1);
  transform-origin: calc(100% - 20px) 0; opacity: 0; transform: translateY(-6px) scale(.94); transition: opacity .16s ease, transform .18s cubic-bezier(.2,.9,.3,1.15); }
.status-menu.up { transform-origin: calc(100% - 20px) 100%; transform: translateY(6px) scale(.94); }
.status-menu.show { opacity: 1; transform: none; }
.status-menu .sm-arrow { position: absolute; top: -6px; left: calc(var(--ax, 90%) - 6px); width: 12px; height: 12px; transform: rotate(45deg);
  background: inherit; border-left: var(--border-w) solid var(--border); border-top: var(--border-w) solid var(--border); border-radius: 3px 0 0 0; }
.status-menu.up .sm-arrow { top: auto; bottom: -6px; transform: rotate(225deg); }
.sm-list { display: grid; gap: 2px; }
.sm-item { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 50px; padding: .35rem .6rem; text-align: left; border: 0; border-radius: 14px; background: transparent; color: inherit; }
.sm-item:hover, .sm-item:focus-visible { background: var(--primary-soft); outline: none; }
.sm-item[aria-checked="true"] { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sm-item .orb { margin: 0 .15rem; }
.sm-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.sm-txt b { font-size: .95rem; font-weight: 700; } .sm-txt small { font-size: .72rem; color: var(--muted); }
.sm-check { color: var(--primary); font-weight: 800; }
.sm-foot { display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; padding: .5rem .7rem .3rem; margin-top: .3rem; border-top: var(--border-w) solid var(--border); }
.sm-link { border: 0; background: transparent; color: var(--primary); font-weight: 700; font-size: .85rem; padding: .3rem 0; min-height: 36px; }


/* ---- Fiche « En savoir plus » ---- */
.info { display: grid; gap: .9rem; }
.info-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); background: var(--surface2); box-shadow: var(--shadow); }
.info-title { font-size: 1.35rem; letter-spacing: -.02em; margin: 0; }
.info-sum { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.info-loading { display: flex; align-items: center; gap: .8rem; padding: 1.4rem .2rem; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.track-list { display: grid; gap: .4rem; }
.track { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; border-radius: calc(var(--radius) - 4px); background: var(--surface2); border: var(--border-w) solid var(--border); }
.track .tr-txt { display: grid; gap: 1px; min-width: 0; flex: 1; } .track .tr-txt b, .track .tr-txt small { overflow-wrap: anywhere; }
.play-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent); }
.play-btn[aria-pressed="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.play-btn.off { background: var(--border); color: var(--muted); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }

/* ---- v2 : ajustements des blocs repris (pastille, statut, fiche) ---- */
.status-btn { min-height: 46px; }
.fav-btn { margin: 0; }
.info-img { border-radius: 16px; box-shadow: var(--shadow); }
.info-title { font-size: 24px; font-weight: 500; }
.play-btn { background: var(--primary); }
.empty.small-empty { text-align: center; display: grid; gap: .5rem; justify-items: center; padding: 1.2rem .5rem; }
.empty.small-empty .big { font-size: 2.2rem; }
.inst-steps li { border: 0; background: var(--surface2); border-radius: 14px; }
.onb .bell { font-size: 3rem; }
.ev-row, .cats, .avail-row { scroll-padding-inline: 1.2rem; }
.banner { flex-wrap: nowrap; position: relative; padding-right: 2.6rem; }
.banner > .btn.sm:last-child:not(.primary) { position: absolute; right: 4px; top: 4px; min-height: 32px; width: 32px; padding: 0; background: transparent; color: var(--muted); }
