/* ===== VARIABLES ===== */
:root {
  --ink: #0D2B1E;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --border: rgba(13,43,30,0.12);
  --border-mid: rgba(13,43,30,0.22);
  --muted: rgba(13,43,30,0.4);
  --nav-h: 68px;
  --top-h: 60px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Backward-compat aliases used in JS-generated HTML */
  --green: #0D2B1E;
  --green-dark: #0D2B1E;
  --green-light: rgba(13,43,30,0.6);
  --green-pale: rgba(13,43,30,0.06);
  --terracotta: #0D2B1E;
  --terracotta-light: rgba(13,43,30,0.7);
  --terracotta-pale: rgba(13,43,30,0.06);
  --text: #0D2B1E;
  --text-muted: rgba(13,43,30,0.45);
  --text-light: rgba(13,43,30,0.28);
  --card-bg: #FFFFFF;
  --card-shadow: none;
  --radius: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== SPLASH SCREEN ===== */
#loading-screen {
  position: fixed; inset: 0;
  background: #0D2B1E;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.splash-icon { animation: splashPulse 1.5s ease-in-out infinite; }

/* ===== LANDING PAGE ===== */
.landing-screen {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  background: #0D2B1E;
  overflow: hidden;
  display: flex; flex-direction: column;
}
/* Blurred background cards layer */
.landing-bg {
  position: absolute; inset: 0;
  filter: blur(1px);
  pointer-events: none;
  user-select: none;
}
/* Dark gradient overlay between cards and content */
.landing-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(13,43,30,0.25) 0%,
    rgba(13,43,30,0.05) 45%,
    rgba(13,43,30,0.30) 100%
  );
}
/* Each card: outer wrapper handles rotation, inner card handles drift */
.landing-card-wrap { position: absolute; }
@keyframes cardDrift {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-28px); }
}
.landing-card {
  width: 230px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 14px 16px;
  animation: cardDrift linear infinite;
}
.landing-card-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.landing-card-text {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.92);
  line-height: 1.45; margin-bottom: 10px;
}
.landing-card-meta { font-size: 11px; color: rgba(255,255,255,0.38); font-weight: 500; }
/* Foreground content */
.landing-content {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  padding: 48px 28px 52px;
}
.landing-logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 0;
}
.landing-voisy-svg {
  width: 100%; max-width: 320px; height: auto; display: block;
  opacity: 0.97;
}
.landing-slogan {
  font-size: 8px; letter-spacing: 0.28em; color: rgba(255,255,255,0.38);
  text-transform: uppercase; font-weight: 500; text-align: center;
  margin-top: 10px;
}
.landing-tagline {
  font-size: 13px; font-style: italic; font-weight: 400;
  color: rgba(255,255,255,0.70); text-align: center;
  margin-top: 12px; line-height: 1.5;
  letter-spacing: 0.01em;
}
.landing-cta-wrap {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.landing-cta-btn {
  width: 100%; min-height: 56px;
  background: var(--white); color: var(--ink);
  border: none; border-radius: 8px;
  font-size: 17px; font-weight: 800; font-family: var(--font);
  letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.12s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.landing-cta-btn:active { transform: scale(0.97); background: #F0F0EE; }
.landing-login-link {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 600;
  font-family: var(--font); text-align: center; padding: 4px;
  transition: color 0.15s;
}
.landing-login-link:hover { color: rgba(255,255,255,0.8); }
/* Back button on auth screens */
.auth-back-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 600;
  font-family: var(--font); padding: 0; margin-bottom: 0;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.15s;
  position: absolute; top: 24px; left: 24px; z-index: 3;
}
.auth-back-btn:hover { color: rgba(255,255,255,0.9); }

/* ===== APP SHELL ===== */
#app {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--nav-h);
  background: var(--bg);
}

/* ===== BOTTOM NAV ===== */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-width: 44px; min-height: 44px;
  padding: 8px 12px;
  color: rgba(13,43,30,0.28);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-btn svg { stroke: rgba(13,43,30,0.28); transition: stroke 0.2s; }
.nav-btn.active { color: var(--ink); }
.nav-btn.active svg { stroke: var(--ink); }
.nav-icon-wrapper { position: relative; display: flex; }
.nav-post-btn { padding: 0; }
.post-btn-circle {
  width: 42px; height: 42px; border-radius: 4px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.15s, transform 0.15s;
}
.post-btn-circle:active { transform: scale(0.93); background: rgba(13,43,30,0.8); }
.post-btn-circle svg { stroke: var(--white); }
.badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 2px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ===== TOP BAR ===== */
.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.top-bar-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; }
.top-bar-subtitle { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.top-bar-back {
  display: flex; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px;
  font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em;
}
.top-bar-back svg { stroke: var(--ink); }

/* ===== AUTH VIEWS ===== */
.auth-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding-bottom: 40px;
}
.auth-hero {
  background: var(--ink);
  padding: 48px 32px 36px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.auth-hero-icon {
  width: 52px; height: 52px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.auth-hero h1 {
  font-size: 19px; font-weight: 800; color: var(--white);
  letter-spacing: 3em; text-transform: uppercase;
  margin-bottom: 6px; margin-right: -3em;
  position: relative; z-index: 2;
}
.auth-hero p { font-size: 10px; color: rgba(255,255,255,0.45); font-weight: 600; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; position: relative; z-index: 2; }
.auth-body { padding: 36px 24px; flex: 1; }
.auth-tabs {
  display: flex; background: rgba(13,43,30,0.06); border-radius: 4px; padding: 3px; margin-bottom: 32px;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: 2px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all 0.2s; letter-spacing: 0.06em; text-transform: uppercase;
}
.auth-tab.active { background: var(--ink); color: var(--white); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--ink); border-width: 2px; }
.form-input::placeholder { color: rgba(13,43,30,0.25); }
.form-select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--white);
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D2B1E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  transition: border-color 0.2s;
}
.form-select:focus { outline: none; border-color: var(--ink); }
textarea.form-input { min-height: 120px; resize: none; line-height: 1.5; }
input[type="datetime-local"].form-input { cursor: pointer; }
.form-error { font-size: 13px; color: #DC2626; margin-top: 6px; font-weight: 600; }
.form-hint  { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; line-height: 1.4; }
#expires-group.expires-required { background: rgba(13,43,30,0.04); border-radius: var(--radius); padding: 14px 16px; margin-left: -16px; margin-right: -16px; }
#expires-group.expires-required .form-label { color: var(--ink); font-weight: 800; }

/* ===== BUTTONS ===== */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  width: 100%; border: 2px solid transparent;
}
.btn:active { }
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--white); color: var(--ink); }
.btn-secondary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-secondary:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: rgba(13,43,30,0.06); color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: rgba(13,43,30,0.12); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 12px; }
.btn-icon {
  min-width: 44px; min-height: 44px; width: 44px; height: 44px;
  border-radius: var(--radius-sm); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-padded { padding: 20px; }

/* ===== FEED ===== */
.feed-header {
  padding: 0;
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.feed-title-svg {
  display: block; width: 100%; height: auto;
}
.feed-brand { margin-bottom: 12px; }
.feed-brand-lockup {
  display: flex; align-items: center; gap: 10px;
}
.feed-brand-name {
  font-size: 42px; font-weight: 800; color: var(--ink);
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
}
.feed-tagline {
  font-size: 10px; font-style: italic; font-weight: 400;
  color: rgba(45,106,79,0.55); text-align: center; margin-top: 4px;
}
.feed-brand-sub {
  font-size: 8px; color: var(--muted); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 4px;
  text-align: center;
}
.feed-photo-banner {
  position: relative; height: 200px; overflow: hidden;
}
.feed-photo-slide {
  position: absolute; inset: -3px;
  width: calc(100% + 6px); height: calc(100% + 6px);
  object-fit: cover; object-position: center; filter: blur(2px);
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.feed-photo-slide.active { opacity: 1; }
.feed-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(13,43,30,0.22);
  pointer-events: none;
}
.feed-meta {
  font-size: 12px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 14px;
  padding: 6px 20px 0;
}
.filter-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 0 8px;
}
.filter-arrow {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-arrow:hover { background: var(--ink); color: var(--white); }
.filter-arrow svg { stroke: currentColor; }
.feed-filter-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  padding: 0 0 8px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #0D2B1E rgba(13,43,30,0.2);
}
.feed-filter-bar::-webkit-scrollbar { height: 3px; }
.feed-filter-bar::-webkit-scrollbar-track { background: rgba(13,43,30,0.2); border-radius: 2px; }
.feed-filter-bar::-webkit-scrollbar-thumb { background: #0D2B1E; border-radius: 2px; }
.filter-chip {
  flex-shrink: 0; padding: 7px 14px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
  background: var(--white); color: var(--muted);
  border: 1px solid var(--border-mid);
  transition: all 0.15s;
  white-space: nowrap; letter-spacing: 0.04em;
}
.filter-chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.feed-list { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }

/* ===== POST CARD ===== */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.post-card-header { padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; }
.post-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(13,43,30,0.06); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0; overflow: hidden;
  border: 2px solid var(--ink);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-author { font-size: 14px; font-weight: 700; color: var(--ink); }
.post-location { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.post-time { font-size: 11px; color: rgba(13,43,30,0.3); font-weight: 500; flex-shrink: 0; }
.post-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 16px 10px;
}
.post-type-badge.besoin { background: rgba(13,43,30,0.07); color: var(--ink); border: 1px solid rgba(13,43,30,0.18); }
.post-type-badge.offre { background: var(--ink); color: var(--white); }
.post-type-badge.evenement { background: #1B4332; color: var(--white); letter-spacing: 0.1em; }
.post-category-icon { font-size: 12px; }
.post-event-date {
  display: flex; align-items: center; gap: 6px;
  margin: 0 16px 10px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.02em;
}
.post-expiry-pill {
  margin: 0 16px 12px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.03em;
}
.post-description { padding: 0 16px 16px; font-size: 15px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.post-card-footer {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.btn-help {
  flex: 1; min-height: 44px; padding: 10px 16px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.15s, color 0.15s; letter-spacing: 0.06em;
  border: 2px solid var(--ink);
}
.btn-help:hover { background: var(--white); color: var(--ink); }
.btn-help:active { opacity: 0.8; }
.btn-help.offre { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn-help.offre:hover { background: var(--ink); color: var(--white); }
.btn-report {
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(13,43,30,0.3); border-radius: var(--radius-sm);
  background: transparent; transition: color 0.15s;
}
.btn-report:hover { color: var(--ink); }
.post-card.resolved { opacity: 0.5; }
.resolved-badge {
  margin: 0 16px 10px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 72px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-icon { font-size: 40px; opacity: 0.6; }
.empty-title { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; }
.empty-text { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 500; }

/* ===== NEW POST VIEW ===== */
.new-post-screen { padding: 0 0 20px; }
.post-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 20px 0; }
.post-type-option {
  padding: 20px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-mid); background: var(--white);
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.post-type-option.selected.besoin { border-color: var(--ink); background: rgba(13,43,30,0.06); }
.post-type-option.selected.offre  { border-color: var(--ink); background: var(--ink); }
.post-type-option.selected.offre .post-type-option-label,
.post-type-option.selected.offre .post-type-option-desc { color: var(--white); }
.post-type-option-icon { font-size: 26px; margin-bottom: 8px; }
.post-type-option-label { font-size: 12px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
.post-type-option-desc { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.post-type-evenement { padding: 12px 20px 0; }
.post-type-option-evenement {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
}
.post-type-option-evenement .post-type-option-icon { font-size: 26px; margin-bottom: 0; }
.post-type-option-evenement .post-type-option-label { color: var(--white); }
.post-type-option-evenement .post-type-option-desc { color: rgba(255,255,255,0.6); }
.post-form { padding: 16px 20px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.category-option {
  padding: 14px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid); background: var(--white);
  text-align: center; cursor: pointer; transition: all 0.15s;
}
.category-option.selected { border-color: var(--ink); background: var(--ink); }
.category-option-icon { font-size: 20px; display: block; }
.category-option-label { font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 5px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.category-option.selected .category-option-label { color: var(--white); }
.category-option-desc { font-size: 9px; color: var(--muted); display: block; margin-top: 3px; font-weight: 500; line-height: 1.3; }
.category-option.selected .category-option-desc { color: rgba(255,255,255,0.75); }
.category-option-note { font-size: 9px; color: rgba(13,43,30,0.35); display: block; margin-top: 3px; font-style: italic; line-height: 1.3; }
.category-option.selected .category-option-note { color: rgba(255,255,255,0.5); }
.char-count { font-size: 12px; color: rgba(13,43,30,0.3); text-align: right; margin-top: 4px; }

/* ===== MESSAGES VIEW ===== */
.messages-screen { padding-bottom: 16px; }
.conv-list { display: flex; flex-direction: column; }
.conv-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: background 0.15s;
}
.conv-item:active { background: rgba(13,43,30,0.04); }
.conv-item.unread { background: rgba(13,43,30,0.04); }
.conv-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13,43,30,0.06); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0; overflow: hidden;
  border: 2px solid var(--ink);
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.conv-preview { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.conv-item.unread .conv-preview { color: var(--ink); font-weight: 700; }
.conv-time { font-size: 11px; color: rgba(13,43,30,0.3); font-weight: 500; flex-shrink: 0; }
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); flex-shrink: 0;
}

/* ===== CONVERSATION VIEW ===== */
.conversation-screen { display: flex; flex-direction: column; height: 100vh; padding-bottom: 0; }
.conv-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--white); flex-shrink: 0;
}
.conv-header-info { flex: 1; min-width: 0; }
.conv-header-name { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 0.04em; }
.conv-header-post { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.message-bubble {
  max-width: 80%; padding: 10px 14px;
  border-radius: var(--radius); font-size: 15px; line-height: 1.45; font-weight: 500;
}
.message-bubble.sent { background: var(--ink); color: var(--white); border-bottom-right-radius: 2px; align-self: flex-end; }
.message-bubble.received { background: rgba(13,43,30,0.06); color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 2px; align-self: flex-start; }
.message-time { font-size: 10px; margin-top: 3px; opacity: 0.5; text-align: right; }
.message-time.received { text-align: left; }
.conv-input-area {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end;
  background: var(--white); flex-shrink: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}
.conv-input {
  flex: 1; padding: 12px 14px;
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
  resize: none; max-height: 120px; overflow-y: auto;
  transition: border-color 0.2s;
  background: var(--bg);
}
.conv-input:focus { outline: none; border-color: var(--ink); }
.conv-send-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.conv-send-btn svg { stroke: var(--white); }
.conv-send-btn:active { opacity: 0.75; }

/* ===== PROFILE VIEW ===== */
.profile-screen { padding-bottom: 16px; }
.profile-hero {
  background: var(--ink); padding: 40px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; position: relative;
}
.profile-avatar-large {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  border: 2px solid var(--white);
  overflow: hidden; position: relative;
}
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px; cursor: pointer;
}
.profile-name { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: 0.04em; }
.profile-quartier-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  background: rgba(255,255,255,0.12); border-radius: 3px; border: 1px solid rgba(255,255,255,0.2);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); letter-spacing: 0.04em;
}
.profile-bio { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.55; font-weight: 500; }
.profile-stats {
  display: flex; gap: 0; padding: 0; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.profile-stat {
  flex: 1; padding: 18px; text-align: center;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }
.profile-section { padding: 20px; }
.section-title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.trust-bar-wrap { display: flex; align-items: center; gap: 12px; }
.trust-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.trust-fill { height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.6s ease; }
.trust-score-text { font-size: 13px; font-weight: 700; color: var(--ink); }
.profile-edit-btn {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.12); color: var(--white);
  border-radius: 3px; padding: 7px 12px; border: 1px solid rgba(255,255,255,0.2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.profile-report-btn {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.12); color: var(--white);
  border-radius: 3px; padding: 8px; border: 1px solid rgba(255,255,255,0.2);
  min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== MODAL ===== */
#modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,43,30,0.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: var(--white);
  border-radius: 8px 8px 0 0;
  width: 100%; max-width: 600px;
  padding: 20px 24px 40px;
  animation: slideUp 0.28s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 36px; height: 3px; border-radius: 2px;
  background: var(--border-mid); margin: 0 auto 20px; display: block;
}
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }

/* ===== TOAST ===== */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; width: calc(100% - 40px); max-width: 400px;
}
.toast {
  padding: 13px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: 0.04em;
  animation: toastIn 0.25s ease;
  pointer-events: auto; border: 1px solid transparent;
}
.toast.success { background: var(--ink); }
.toast.error { background: #DC2626; }
.toast.info { background: #1E3A5F; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== REPORT FORM ===== */
.report-reason-list { display: flex; flex-direction: column; gap: 8px; }
.report-reason-option {
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-align: left; transition: all 0.15s; cursor: pointer;
}
.report-reason-option:hover { background: rgba(13,43,30,0.05); border-color: var(--ink); }

/* ===== VERIFY EMAIL ===== */
.verify-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 28px; text-align: center; gap: 16px;
}
.verify-icon { font-size: 48px; opacity: 0.8; }
.verify-title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; }
.verify-text { font-size: 15px; color: var(--muted); line-height: 1.6; font-weight: 500; }
.verify-email { font-weight: 800; color: var(--ink); }

/* ===== EDIT PROFILE ===== */
.edit-profile-screen { padding: 0 20px 20px; }
.avatar-edit-section { display: flex; flex-direction: column; align-items: center; padding: 28px 0; gap: 12px; }
.avatar-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(13,43,30,0.07); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; overflow: hidden; position: relative;
  border: 2px solid var(--ink);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-btn {
  font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em;
}

/* ===== ZERO MONEY CHARTER ===== */
.zero-money-charter {
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  background: rgba(13,43,30,0.04);
}
.zero-money-title {
  font-size: 13px; font-weight: 800; color: var(--ink);
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.zero-money-text {
  font-size: 13px; color: var(--muted); line-height: 1.5; font-weight: 500;
}

/* ===== PLEDGE CHECKBOX (onboarding) ===== */
.ob-pledge-label {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px; cursor: pointer;
}
.ob-pledge-checkbox {
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}
.ob-pledge-text {
  font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 500;
}
.ob-pledge-text .link {
  font-size: 12px; white-space: nowrap;
}

/* ===== WELCOME STEPS ===== */
.welcome-step { padding: 40px 24px; text-align: center; }
.step-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-mid); transition: all 0.3s; }
.step-dot.active { width: 20px; border-radius: 3px; background: var(--ink); }
.step-icon { font-size: 48px; margin-bottom: 24px; opacity: 0.85; }
.step-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: var(--ink); letter-spacing: 0.06em; }
.step-desc { font-size: 15px; color: var(--muted); line-height: 1.65; font-weight: 500; }

/* ===== POST DETAIL ===== */
.post-detail-screen { padding-bottom: 20px; }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite; margin: 48px auto;
}

/* ===== SECTION HEADERS ===== */
.section-header { padding: 20px 20px 8px; }
.section-header h2 { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== LINK ===== */
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-secondary { color: var(--ink); font-weight: 700; opacity: 0.7; }
.link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--font);
}
.link-btn:hover { color: var(--ink); }

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px 60px;
  background: var(--white);
}
.welcome-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.welcome-logo-text { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.welcome-title { font-size: 28px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; margin-bottom: 36px; letter-spacing: -0.02em; }
.welcome-steps { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.welcome-step { display: flex; align-items: flex-start; gap: 16px; }
.welcome-step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--ink); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.welcome-step-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.welcome-step-desc { font-size: 13px; color: var(--muted); line-height: 1.5; font-weight: 500; }
.welcome-cta { width: 100%; max-width: 340px; }

/* ===== RENEW BANNER ===== */
.post-renew-banner {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: rgba(180, 120, 0, 0.08);
  border: 1px solid rgba(180, 120, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: #92600A;
  display: flex; align-items: center; gap: 8px;
}
.post-renew-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; font-weight: 800; color: #92600A;
  text-decoration: underline; text-underline-offset: 2px;
  font-family: var(--font);
}
.post-renew-btn:hover { color: #6B4500; }

/* ===== MINI POST CARD (for profile) ===== */
.mini-post-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px;
  margin-bottom: 8px;
}
.mini-post-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.mini-post-type.besoin { color: var(--muted); }
.mini-post-type.offre { color: var(--ink); }
.mini-post-desc { font-size: 14px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.mini-post-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.trust-badge.verified   { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.25); }
.trust-badge.unverified { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1); }
.trust-badge.verified svg   { stroke: rgba(255,255,255,0.9); }
.trust-badge.unverified svg { stroke: rgba(255,255,255,0.35); }

/* Mini badges in feed */
.v-badges-mini { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.v-badge-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 2px;
  background: var(--ink); color: var(--white);
  font-size: 8px; font-weight: 800; flex-shrink: 0;
}

/* Verification section in edit profile */
.verify-section {
  background: rgba(13,43,30,0.04); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 16px; margin-bottom: 18px;
}
.verify-section-title {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.verify-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.verify-status.ok  { color: var(--ink); }
.verify-status.nok { color: var(--muted); }

/* ===== PRIVACY SECTION ===== */
.privacy-section {
  margin: 0 16px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.privacy-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.privacy-section-title {
  font-size: 11px; font-weight: 800; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.privacy-section-subtitle {
  font-size: 12px; color: var(--muted); padding: 10px 16px;
  font-weight: 500; line-height: 1.4;
}
.privacy-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.privacy-row:last-child { border-bottom: none; }
.privacy-row-left { display: flex; flex-direction: column; gap: 2px; }
.privacy-row-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.privacy-row-desc { font-size: 12px; color: var(--muted); font-weight: 500; }
.privacy-row-fixed { font-size: 10px; color: rgba(13,43,30,0.3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.toggle-status { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 48px; text-align: right; }
.toggle-status.on { color: var(--ink); }
.toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-mid); border-radius: 12px;
  cursor: pointer; transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white); border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--ink); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Silhouette avatar */
.silhouette-avatar {
  background: rgba(13,43,30,0.07) !important;
  display: flex; align-items: center; justify-content: center;
  color: rgba(13,43,30,0.3);
}
.silhouette-avatar svg { opacity: 0.4; }

/* ===== PRESENCE STATUS ===== */
.presence-btn-group {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.presence-btn {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid); background: var(--white);
  font-size: 12px; font-weight: 700; color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  cursor: pointer; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em;
}
.presence-btn-icon { font-size: 18px; }
.presence-btn.active {
  border-color: var(--ink); background: var(--ink); color: var(--white);
}
.presence-btn:active { opacity: 0.75; }

/* Badge on profile hero */
.profile-presence-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 3px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85);
  margin-top: 5px; letter-spacing: 0.04em;
}

/* Inline tag in feed post */
.post-presence {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 1px 6px; border-radius: 2px;
  background: rgba(13,43,30,0.07); color: var(--muted);
  font-size: 10px; font-weight: 700; vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Profile info pills (age/gender) */
.profile-info-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.profile-info-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  background: rgba(255,255,255,0.1); border-radius: 3px; border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.profile-info-hidden { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; }

/* ===== RATING SYSTEM ===== */

/* Modal étoiles interactives */
.rating-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.stars-wrap { display: flex; gap: 6px; justify-content: center; margin: 16px 0 6px; }
.star-btn {
  font-size: 36px; color: var(--border-mid); background: none; border: none;
  cursor: pointer; padding: 4px 6px; line-height: 1;
  transition: color 0.1s, transform 0.12s;
}
.star-btn.active { color: #B8860B; }
.star-btn:hover  { color: #B8860B; transform: scale(1.15); }
.rating-score-label { font-size: 12px; font-weight: 700; color: var(--ink); min-height: 18px; text-align: center; margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Bannière de notation dans la conversation */
.rating-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(13,43,30,0.05);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.rating-banner-text { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }

/* Affichage de la note sur le profil */
.profile-rating {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85);
}
.profile-rating .stars-text { color: #D4AF37; letter-spacing: 2px; font-size: 14px; }

/* Badge "En cours d'examen" sur le profil (fond vert) */
.review-badge-profile {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  background: rgba(255,255,255,0.1); border-radius: 3px; border: 1px solid rgba(255,255,255,0.2);
  font-size: 11px; font-weight: 700; color: rgba(255,200,100,0.9); margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Badge ⚠️ dans le feed (inline, discret) */
.post-review-badge { font-size: 12px; margin-left: 4px; vertical-align: middle; }

/* ===== RESPONSIVE ===== */
/* ===== ANIMATIONS ===== */

/* 0. Type selector — transition au changement de catégorie */
@keyframes typeUpdate {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.type-selector-update { animation: typeUpdate 0.18s ease-out both; }

/* 1. Feed — cartes en cascade */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-enter {
  animation: cardEnter 0.4s ease-out both;
  animation-delay: var(--card-delay, 0ms);
}

/* 2. Bouton + — pulse invitation */
@keyframes postBtnPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.post-btn-circle { animation: postBtnPulse 2s ease-in-out infinite; }
.post-btn-circle:active { animation: none; transform: scale(0.93); }

/* 3. Badges de confiance — rebond à l'apparition */
@keyframes badgeBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
.badge-bounce {
  animation: badgeBounce 0.4s ease-out both;
  animation-delay: var(--badge-delay, 0ms);
}

/* 4. Transitions entre vues — glissement horizontal */
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.view-slide-right { animation: slideFromRight 0.25s ease-out both; }
.view-slide-left  { animation: slideFromLeft  0.25s ease-out both; }

/* 5. Badge messages — pop à l'apparition */
@keyframes badgePop {
  0%   { transform: scale(0); }
  55%  { transform: scale(1.35); }
  80%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.badge-pop { animation: badgePop 0.45s ease-out both; }

/* 6. Boutons — pression tactile */
.btn {
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: scale(0.96); opacity: 1; }
.btn-help  { transition: background 0.15s, color 0.15s, transform 0.1s; }
.btn-help:active { transform: scale(0.96); }
.filter-chip { transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.filter-chip:active { transform: scale(0.95); }

/* 7. Accessibilité — désactive tout pour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-delay:          0.01ms !important;
    animation-iteration-count: 1    !important;
    transition-duration:      0.01ms !important;
  }
}

@media (min-width: 480px) {
  #app { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  #bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  #toast-container { max-width: 440px; }
}
