/* EuroKink — feuille de style (univers sombre : noir, gris, rouge) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 900; font-display: swap; src: url('../fonts/InterDisplay-Black.woff') format('woff'); }

:root {
  --bg: #0E0E0E; --surface: #181818; --surface-2: #202020; --border: #2A2A2A;
  --text: #EDEDED; --muted: #9A9A9A; --red: #D0142C; --red-text: #FF5A6A; --red-tint: #2A0B10;
  --radius: 16px; --nav-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Marge sous la barre du bas : on laisse la barre d'accueil de l'iPhone empiéter un peu, comme les applis natives */
  --nav-pad: max(6px, calc(var(--safe-bottom) - 16px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden; }
body, #view, #nav, button, a, input, select { touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2 { margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--red-text); }
.tiny { font-size: 12px; }
.block { display: block; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }

#view { max-width: 560px; margin: 0 auto; }
.screen { padding: calc(var(--safe-top) + 18px) 18px calc(var(--nav-h) + var(--nav-pad) + 28px); display: flex; flex-direction: column; gap: 18px; }

/* Marque */
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; }
.wordmark { font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.2px; color: var(--text); }
.wm-euro { color: #8C8C8C; }

/* Barre du haut et boutons icônes */
.topbar { display: flex; justify-content: space-between; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hello h1 { font-size: 26px; font-weight: 700; }
.page-title { font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 28px; }

/* Recherche et filtres */
.search-row { display: flex; gap: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font-size: 16px; }
.filter-btn { width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chips { display: flex; gap: 8px; }
.chips.wrap { flex-wrap: wrap; }
.scroll-x { overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; min-height: 38px; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.select-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sc-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.sc-label .ic { width: 14px; height: 14px; color: var(--red-text); }
.select-card select { background: transparent; border: 0; font-weight: 600; font-size: 15px; padding: 2px 0; outline: none; -webkit-appearance: none; appearance: none; width: 100%; }
.select-card select option, .field select option { background: var(--surface); color: var(--text); }
.label-up { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -8px; }
.budget-card { padding: 14px 16px 10px; }
input[type=range] { width: 100%; accent-color: var(--red); height: 28px; margin: 0; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* Cartes et listes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head h2, .section-title { font-size: 18px; font-weight: 700; }
.section-title { margin-bottom: -6px; }
.link { color: var(--red-text); font-size: 13px; font-weight: 600; background: none; border: 0; padding: 4px 0; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.date-chip { width: 52px; height: 56px; flex: none; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-chip span { font-size: 10px; color: var(--red-text); font-weight: 700; letter-spacing: 1px; }
.date-chip strong { font-size: 20px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-pill { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.empty { padding: 18px; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--muted); font-size: 14px; text-align: center; }

.feature-card { display: block; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.feature-hero, .event-hero { position: relative; background: #1E1E1E; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #EDEDED; }
.feature-hero { height: 150px; }
.hero-studs { width: 230px; height: 230px; opacity: 0.22; }
.event-hero .hero-studs { width: 300px; height: 300px; }
.tag { padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; }
.tag-red { background: var(--red); color: #fff; }
.tag-dark { background: var(--bg); color: var(--text); font-weight: 600; letter-spacing: 0; }
.tag-light { background: #EDEDED; color: #111; }
.feature-hero .tag { position: absolute; top: 14px; left: 14px; }
.feature-hero .tag-right { left: auto; right: 14px; }
.feature-title { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 26px; color: #fff; }
.feature-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.feature-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #BDBDBD; }
.feature-line.muted { color: var(--muted); }
.feature-line .accent { font-weight: 600; }

/* Fiche soirée */
.screen-event { padding: 0 0 calc(96px + var(--safe-bottom)); gap: 0; }
.event-hero { height: calc(240px + var(--safe-top)); padding-top: var(--safe-top); }
.hero-btn { position: absolute; top: calc(var(--safe-top) + 12px); background: rgba(14, 14, 14, 0.85); }
.hero-left { left: 16px; } .hero-right { right: 16px; }
.hero-tags { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.event-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.event-title { font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 28px; line-height: 1.1; }
.org-line { display: flex; align-items: center; gap: 6px; margin-top: -10px; color: #BDBDBD; font-size: 14px; flex-wrap: wrap; }
.org-line strong { color: var(--text); }
.verified { width: 16px; height: 16px; }
.facts { display: flex; flex-direction: column; gap: 12px; }
.fact { display: flex; gap: 12px; align-items: center; }
.fact .muted { font-size: 13px; }
.fact-main { flex: 1; min-width: 0; }
.route-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 40px; border-radius: 12px; background: var(--red-tint); border: 1px solid var(--red); color: var(--red-text); font-size: 13px; font-weight: 700; flex: none; }
.route-btn .ic { width: 16px; height: 16px; }
.fact-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--red-text); flex: none; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.info span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.dress { margin: -8px 0 0; font-size: 13px; }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.action { height: 72px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 0 4px; text-align: center; }
.action.on { background: var(--red-tint); border-color: var(--red); color: var(--red-text); }
.action.on[data-act=fav] .ic { fill: currentColor; }
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: var(--red); background: var(--red-tint); }
.checkin.done { justify-content: flex-start; color: var(--red-text); }
.checkin.done .muted { color: #BDBDBD; }
.who { display: flex; flex-direction: column; gap: 4px; }
.about { margin: -6px 0 0; color: #BDBDBD; line-height: 1.55; }
.practical { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: -6px; }
.line-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px; background: var(--surface); border: 0; border-bottom: 1px solid var(--border); text-align: left; width: 100%; }
.line-btn:last-child { border-bottom: 0; }
.line-btn span { flex: 1; }
.line-btn .ic:first-child { color: var(--red-text); }
.line-btn .ic:last-child { color: var(--muted); width: 18px; height: 18px; }
.event-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 18px max(10px, calc(var(--safe-bottom) - 8px)); background: #121212; border-top: 1px solid #222; max-width: 560px; margin: 0 auto; }
.bar-price { font-size: 20px; font-weight: 700; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-grow { flex: 1; height: 52px; }
.btn-block { width: 100%; }
.static { cursor: default; color: var(--muted); }

/* Communauté */
.soon { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.soon h2 { font-size: 20px; }
.soon-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.soon-list li { display: flex; gap: 10px; align-items: center; }
.soon-list .ic { color: var(--red-text); width: 18px; height: 18px; }
.note { display: flex; gap: 12px; align-items: flex-start; }
.note p { margin: 0; font-size: 13px; }
.note .ic { color: var(--muted); }

/* Profil et passeport */
.profile-head { display: flex; align-items: center; gap: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--red-tint); border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 30px; flex: none; }
.pseudo { font-size: 22px; font-weight: 700; }
.pill-red { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red-text); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; }
.stat strong { font-family: 'Inter Display', Inter, sans-serif; font-weight: 900; font-size: 24px; }
.stat span { font-size: 12px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge { padding: 14px 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.badge.sel { border-color: var(--red); }
.badge svg { width: 64px; height: 64px; }
.b-studs { fill: #3A3A3A; } .b-disc { fill: #202020; } .b-icon { fill: none; stroke: #6E6E6E; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge.earned .b-studs { fill: var(--red); } .badge.earned .b-disc { fill: var(--red-tint); } .badge.earned .b-icon { stroke: #fff; }
.b-name { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.badge.earned .b-name { color: var(--text); }
.b-bar { width: 70%; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.b-bar span { display: block; height: 100%; background: var(--muted); }
.badge.earned .b-bar span { background: var(--red); }
.badge-detail p { margin: 4px 0 0; font-size: 13px; }
.settings { display: flex; flex-direction: column; gap: 14px; }

/* Explorer : liste / carte */
.top-actions { display: flex; gap: 8px; }
.explore-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.seg a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 36px; }
.seg a .ic { width: 16px; height: 16px; }
.seg a.on { background: var(--red); color: #fff; }
.screen-map { height: 100vh; height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--nav-pad) + 12px); gap: 12px; }
.map-summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.map-summary span:nth-child(2) { flex: 1; }
.map-summary .ic { width: 18px; height: 18px; color: var(--red-text); }
.map-wrap { position: relative; flex: 1; min-height: 300px; }
.map { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #151515, #0A0A0A); border: 1px solid var(--border); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-svg { position: absolute; inset: 0; }
.land { fill: #1F1F1F; stroke: #4A4A4A; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.land-near { fill: #171717; stroke: #383838; stroke-dasharray: 4 3; }
.map-layer { position: absolute; inset: 0; pointer-events: none; }
.map-layer > * { position: absolute; left: 0; top: 0; will-change: transform; }
.map-label { margin: 8px 0 0 8px; font-size: 11px; color: #7A7A7A; white-space: nowrap; }
.map-home { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #EDEDED; background: transparent; box-shadow: 0 0 0 4px rgba(237, 237, 237, 0.15); }
.map-marker { pointer-events: auto; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 0; border: 0; background: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.map-marker .mm { width: 38px; height: 38px; display: block; }
.map-marker.cluster .mm { transform: scale(1.12); }
.map-count { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; border: 2px solid var(--bg); }
.map-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.map-ctrl .icon-btn { font-size: 20px; font-weight: 600; background: rgba(24, 24, 24, 0.92); }
.map-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 58%; overflow-y: auto; z-index: 3; padding: 14px; border-radius: 18px; background: rgba(18, 18, 18, 0.97); border: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 12px; }
.map-sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.icon-btn.small { width: 36px; height: 36px; border-radius: 10px; }

/* Compte */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pills .pill-red { margin-top: 0; }
.pill-grey { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: #BDBDBD; font-size: 11px; font-weight: 600; }
.account-cta { display: flex; flex-direction: column; gap: 10px; border-color: var(--red); background: linear-gradient(0deg, var(--surface), var(--surface)); }
.account-cta h2 { font-size: 18px; }
.account-cta p { margin: 0; font-size: 14px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn { flex: 1; }
.center-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 18px; }
.center-card > .ic { width: 36px; height: 36px; color: var(--red-text); }
.center-card h2 { font-size: 20px; }
.center-card p { margin: 0; line-height: 1.5; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 0; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--red); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 92px; color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red-tint); color: var(--red-text); font-size: 13px; font-weight: 600; }
.form-error[hidden] { display: none; }
.settings a { color: var(--red-text); }
.link.center { display: block; text-align: center; }
button:disabled { opacity: 0.6; }

/* Paramètres et pages d'information */
.profile-top, .sub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-top { justify-content: flex-start; }
.page-title.small { font-size: 22px; line-height: 1.15; }
.settings-groups { display: flex; flex-direction: column; gap: 18px; }
.group-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin: 4px 0 -8px; }
.line-btn.rounded { border: 1px solid var(--border); border-radius: var(--radius); }
.line-btn.static { cursor: default; }
.line-btn.danger, .line-btn.danger .ic:first-child { color: var(--red-text); }
.legal { line-height: 1.55; font-size: 14px; color: #CFCFCF; }
.legal h2 { font-size: 16px; color: var(--text); margin: 18px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red-text); text-decoration: underline; }
.legal .lead { color: var(--text); font-weight: 600; }
.about-foot p { margin: 2px 0; }
.draft { padding: 8px 12px; border-radius: 10px; background: var(--red-tint); color: var(--red-text); font-size: 12px; font-weight: 600; }

/* Champs de formulaire */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 16px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkline input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; flex: none; }
.checkline span { flex: 1; line-height: 1.45; }
.checkline a { color: var(--red-text); text-decoration: underline; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important; color: var(--text) !important; -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important; caret-color: var(--text); transition: background-color 9999s; }
.toggles { padding: 4px 16px; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 14px; }
.switch { -webkit-appearance: none; appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #3A3A3A; position: relative; flex: none; transition: background 0.2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(20px); }

/* Vérification d'âge */
.gate { min-height: 100vh; padding: calc(var(--safe-top) + 48px) 20px calc(var(--safe-bottom) + 32px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate-logo { display: flex; align-items: center; gap: 12px; }
.gate-logo .mark { width: 56px; height: 56px; }
.gate-logo .wordmark { font-size: 34px; }
.gate-tag { margin: 0; color: var(--muted); text-align: center; }
.gate-card { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.gate-card h1 { font-size: 22px; }
.gate-card p { margin: 0; }
.demo-note { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: #BDBDBD; }

/* Barre de navigation */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; padding: 6px 4px var(--nav-pad); background: rgba(18, 18, 18, 0.96); border-top: 1px solid #222; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#nav[hidden] { display: none; }
#nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; min-height: 44px; justify-content: center; font-size: 11px; color: var(--muted); }
#nav a.active { color: var(--red-text); }

/* Message temporaire */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--nav-pad) + 24px); transform: translate(-50%, 20px); max-width: calc(100% - 36px); padding: 12px 16px; border-radius: 14px; background: #EDEDED; color: #111; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Proposer une soirée, mes propositions, espace admin (0.6.0) */
.field textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg) !important; color: var(--text) !important; -webkit-text-fill-color: var(--text); font: inherit; font-size: 16px; resize: vertical; min-height: 110px; line-height: 1.45; }
.field input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; line-height: 46px; text-align: left; }
.field input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }
.field .chips { margin-top: 2px; }
.addr-list { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.addr-list:empty { display: none; }
.addr-opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1.35; }
.addr-chosen { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--red-tint); font-size: 14px; }
.addr-chosen span { flex: 1; }
.addr-chosen .ic { color: var(--red-text); flex: none; }
.sub-card, .adm-card { display: flex; flex-direction: column; gap: 8px; }
.sub-card p { margin: 0; }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sub-head .pill-red, .sub-head .pill-grey { margin-top: 0; flex: none; }
.adm-facts { display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin-top: 4px; }
.adm-facts > div { display: flex; gap: 10px; align-items: flex-start; }
.adm-facts > div > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.adm-facts .ic { color: var(--red-text); flex: none; width: 18px; height: 18px; margin-top: 1px; }
.adm-facts .verified { vertical-align: -3px; }
.adm-facts .link { flex: none; padding: 0; }
.adm-desc { margin: 0; color: #BDBDBD; font-size: 14px; line-height: 1.5; white-space: pre-line; max-height: 9.5em; overflow: auto; }
.adm-actions { display: flex; gap: 10px; margin-top: 4px; }
.adm-actions .btn { flex: 1; }
.adm-card > .link { text-align: center; }
.count-pill { flex: none !important; display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.seg-btn button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 40px; }
.seg-btn button.on { background: var(--red); color: #fff; }
.seg-btn button.on .count-pill { background: #fff; color: var(--red); }
.practical.flat { margin-top: 0; }
.propose-cta { display: flex; align-items: center; gap: 12px; }
.propose-cta > div { flex: 1; }
.propose-cta .ic { color: var(--muted); }

/* Espace organisateur (0.7.0) */
.perks ul { margin: 8px 0; padding-left: 20px; color: #BDBDBD; font-size: 14px; line-height: 1.6; }
.perks p { margin: 0; }
.org-head { display: flex; flex-direction: column; gap: 10px; }
.org-name { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.org-links { display: flex; gap: 18px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: #BDBDBD; font-size: 12px; }
.stat-chip .ic { width: 13px; height: 13px; color: var(--red-text); }
.stat-chip b { color: var(--text); }
.org-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.mini-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; }
.mini-btn.danger { color: var(--red-text); }
.mini-btn:disabled { opacity: 0.5; }
.org-public { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.org-public .org-name { justify-content: center; }
.org-public .btn { min-width: 160px; }
.org-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red-tint); color: var(--red-text); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; border: 2px solid var(--red); }
.org-link { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.seg-btn button { padding: 8px 6px; font-size: 13px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats.four .stat strong { font-size: 20px; }
.stats.four .stat span { font-size: 11px; }

/* Visuels de soirée (0.8.0) */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-img .hero-studs { display: none; }
.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.has-img > :not(.hero-img) { z-index: 1; }
.has-img > .hero-btn, .has-img > .hero-tags, .has-img > .tag, .has-img > .feature-title { z-index: 2; }
.img-preview { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.img-preview img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.file-btn { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.adm-actions .btn { padding-left: 8px; padding-right: 8px; }

/* Logos organisateurs (0.9.0) */
.org-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--red); display: inline-flex; align-items: center; justify-content: center; }
.org-initial { background: var(--red-tint); color: var(--red-text); font-weight: 800; font-size: 16px; }
.org-logo.xs { width: 22px; height: 22px; border-width: 1px; font-size: 11px; vertical-align: -6px; margin-right: 6px; }
.org-logo.lg { width: 56px; height: 56px; font-size: 22px; }
.org-logo.xl { width: 88px; height: 88px; font-size: 34px; }
.org-head-top { display: flex; align-items: center; gap: 12px; }
.logo-edit { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.logo-actions .btn { min-height: 40px; padding: 0 14px; }
.hero-logo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid var(--red); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6); }
.hero-studs.hidden { display: none; }
.mm-logo { display: block; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--red); background: #fff; }
.mm-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 0.9.1 : fond sombre et logo entier (logos blancs ou transparents) */
.org-logo, .mm-logo, .hero-logo { background: #141414; }
/* 0.14.0 : logos en plein rond (le cadrage se choisit à l'import) */
img.org-logo, .mm-logo img, .hero-logo { object-fit: cover; box-sizing: border-box; padding: 0; }
.img-preview .img-error { display: none; margin: 0; }
.img-preview.broken img { display: none; }
.img-preview.broken .img-error { display: block; }

/* Cadrage et visionneuse (0.9.3) */
.crop-frame { position: relative; width: 100%; aspect-ratio: 13 / 8; border-radius: 12px; overflow: hidden; background: var(--surface-2); touch-action: none; cursor: grab; border: 2px solid var(--border); }
.crop-frame.dragging { cursor: grabbing; border-color: var(--red); }
.crop-frame img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.img-preview.broken .crop-frame, .img-preview.broken .crop-hint { display: none; }
.hero-img[data-act] { cursor: zoom-in; }
.hero-zoom { top: auto !important; bottom: 14px; right: 14px; }
.viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 56px) 12px 24px; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.viewer-close { position: absolute; top: calc(var(--safe-top) + 12px); right: 14px; background: rgba(40, 40, 40, 0.9); }

/* Robot d'import (0.10.0) */
.robot-head { display: flex; flex-direction: column; gap: 12px; }
.robot-head p { margin: 0; }
.robot-err { margin: 0; }
.adm-card.off { opacity: 0.6; }
.break { word-break: break-all; }
.seg-btn button { padding: 8px 4px; font-size: 12.5px; }

/* Notifications (0.11.0) */
.push-on { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--red-tint); font-size: 14px; font-weight: 600; }
.push-on .ic { color: var(--red-text); }
.push-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: #BDBDBD; line-height: 1.5; }

/* Fenêtres du bas (calendrier) et bienvenue (0.12.0) */
.sheet-wrap { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.15s ease-out; }
.sheet-card { width: 100%; max-width: 560px; background: var(--surface); border-top: 1px solid var(--border); border-radius: 20px 20px 0 0; padding: 22px 20px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; animation: slideUp 0.2s ease-out; }
.sheet-card h2 { margin: 0; font-size: 20px; }
.sheet-card p { margin: 0; line-height: 1.5; }
.onboard { align-items: center; padding: 20px; }
.onboard .sheet-card { border-radius: 22px; text-align: center; align-items: center; padding: 30px 22px 22px; border: 1px solid var(--border); }
.onb-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--red-tint); border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; color: var(--red-text); }
.onb-icon .ic { width: 34px; height: 34px; }
.onb-dots { display: flex; gap: 8px; margin: 4px 0; }
.onb-dots span { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3A; }
.onb-dots span.on { background: var(--red); width: 22px; border-radius: 4px; }
.onb-skip { align-self: center; color: var(--muted); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Photo de profil (0.13.0) */
.avatar-btn { position: relative; padding: 0; color: var(--text); cursor: pointer; overflow: visible; }
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; color: #fff; }
.avatar-cam .ic { width: 14px; height: 14px; }

/* Outil de cadrage en rond (0.14.0) */
.cropper .sheet-card { gap: 16px; align-items: center; }
.crop-stage { position: relative; width: 280px; height: 280px; max-width: 78vw; max-height: 78vw; border-radius: 16px; overflow: hidden; background: #141414; touch-action: none; cursor: grab; user-select: none; }
.crop-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-stage::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.62); border: 2px solid rgba(255, 255, 255, 0.85); pointer-events: none; }
.crop-zoom { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--red); }
.cropper .adm-actions { width: 100%; }

/* Ville libre (code postal ou commune) */
.city-field { display: flex; flex-direction: column; gap: 8px; }
.city-field .city-list { margin-top: 0; }
.city-field .addr-opt strong { font-weight: 600; }

/* Carte des membres */
.mini-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--red-tint); border: 2px solid var(--red); color: var(--text); font-weight: 800; font-size: 16px; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-marker .mm-member { width: 38px; height: 38px; border-width: 2.5px; font-size: 15px; background: #141414; }
.mm-group { display: flex; align-items: center; justify-content: center; color: #fff; background: var(--red) !important; }
.mm-group .ic { width: 20px; height: 20px; }
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-row { display: flex; align-items: center; gap: 12px; }

/* Fiches membres et liste de la communauté */
.member-list.big { gap: 10px; }
a.member-row { color: inherit; text-decoration: none; }
.member-row.card { padding: 12px 14px; }
.member-row .mr-main { flex: 1; min-width: 0; }
.member-row > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.member-row .mini-av { width: 48px; height: 48px; font-size: 18px; }
.chip.static { min-height: 0; padding: 5px 11px; font-size: 12px; background: var(--surface-2); }
.chips.mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips.mini .chip.static { padding: 3px 9px; font-size: 11px; }
.member-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 0 4px; }
.member-head .pills { justify-content: center; }
.member-av { width: 112px; height: 112px; font-size: 42px; padding: 0; overflow: hidden; color: var(--text); margin-bottom: 6px; }
.member-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title { font-size: 15px; margin: 0 0 8px; }
.bio { margin: 0; white-space: pre-line; line-height: 1.5; }
.btn .ic { width: 18px; height: 18px; }

/* Qui y va ? */
.card.who { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.who-faces { display: flex; align-items: center; padding: 0 0 0 8px; background: none; border: 0; color: var(--text); cursor: pointer; }
.who-faces .mini-av { width: 38px; height: 38px; margin-left: -8px; border-color: var(--surface); border-width: 2px; font-size: 14px; }
.who-more { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.who-see { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--red-text); }

/* Invitations des organisateurs */
.invite-banner { display: flex; gap: 12px; align-items: center; border-color: var(--red); background: var(--red-tint); text-align: left; }
.invite-banner p { margin: 4px 0 0; }
.invite-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.invite-card h2 { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.invite-card .soon-list { text-align: left; align-self: stretch; }
.team { display: flex; flex-direction: column; gap: 12px; }
.team-list { display: flex; flex-direction: column; gap: 10px; }
.invite-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.invite-row .mr-main { flex: 1; min-width: 0; }
.mini-av.inv { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.mini-av.inv .ic { width: 18px; height: 18px; }
.invite-link { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--border); font-size: 12px; color: var(--muted); word-break: break-all; }
.sheet-card .link.center { display: block; margin: 4px auto 0; }

/* Textes traduits automatiquement : petit repère, toucher pour l'original */
.ut-done { cursor: pointer; }
.ut-done::after { content: ' ⇄'; font-size: 0.8em; color: var(--muted); }
.ut-done[data-orig]::after { content: ' ↺'; }

/* Messagerie */
.top-actions { display: flex; align-items: center; gap: 8px; }
.msg-btn { position: relative; }
.msg-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--bg); }
.msg-badge[hidden] { display: none; }
#nav a { position: relative; }
.nav-badge { top: 2px; right: calc(50% - 22px); }
.conv-list { display: flex; flex-direction: column; gap: 10px; }
.conv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.conv-row .mini-av { width: 48px; height: 48px; font-size: 18px; }
.conv-row .mr-main { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-prev { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-prev.unread { color: var(--text); font-weight: 600; }
.screen.thread { min-height: 100dvh; padding-bottom: 0; display: flex; flex-direction: column; }
.thread-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 8px) 0 10px; background: var(--bg); border-bottom: 1px solid var(--border); }
.thread-who { flex: 1; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.thread-who .mini-av { width: 38px; height: 38px; font-size: 15px; }
.msg-list { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 0 12px; }
.msg { display: flex; flex-direction: column; max-width: 80%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.msg.me .bubble { background: var(--red); color: #fff; border-bottom-right-radius: 6px; }
.msg.them .bubble { background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg-time { font-size: 11px; color: var(--muted); margin: 2px 6px 4px; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.msg-compose { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 10px 0 calc(var(--safe-bottom) + 10px); background: var(--bg); border-top: 1px solid var(--border); }
.msg-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; }
.msg-compose .send { background: var(--red); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.msg-request { display: flex; flex-direction: column; gap: 10px; margin-bottom: calc(var(--safe-bottom) + 10px); }
