/* ═══════════════════════════════════════════════════════════════
   Animalia — App Demo CSS
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D2B6B;
  --navy2: #1A3A80;
  --accent: #2563EB;
  --accent-bg: #EFF6FF;
  --green: #22C55E;
  --green-bg: #DCFCE7;
  --green-text: #15803D;
  --red: #EF4444;
  --red-bg: #FEE2E2;
  --orange: #F97316;
  --orange-bg: #FFEDD5;
  --purple: #8B5CF6;
  --purple-bg: #EDE9FE;
  --yellow: #F59E0B;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --text: #0D2B6B;
  --text2: #6B7280;
  --text3: #9CA3AF;
  --border: #EAEDF2;
  --nav-h: 76px;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(13,43,107,0.08);
  --shadow-lg: 0 8px 32px rgba(13,43,107,0.14);
  --transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

/* ── Desktop wrapper — blurred dark backdrop ──────────────────── */
.demo-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(24px) saturate(0.4);
}

/* ── App shell ────────────────────────────────────────────────── */
.app-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  height: 100%;
  max-height: 932px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border-radius: 0;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

@media (min-width: 500px) {
  .app-shell {
    border-radius: 44px;
    max-height: 900px;
  }
}

/* ── Screen container ─────────────────────────────────────────── */
.screen-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ── Individual screen ────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
  will-change: transform;
  background: var(--bg);
  overflow: hidden;
}

.screen.active { transform: translateX(0); }
.screen.slide-out-left  { transform: translateX(-30%); }
.screen.slide-out-right { transform: translateX(100%); }

/* ── Status bar (fake iOS) ────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
  background: var(--navy);
}

.status-time {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-right svg { color: #fff; }

/* ── Navy app header ──────────────────────────────────────────── */
.app-header {
  background: var(--navy);
  padding: 0 16px 16px;
  flex-shrink: 0;
}

.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-logo-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.header-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  transition: background 0.2s;
}
.header-icon-btn:active { background: rgba(255,255,255,0.22); }

.notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--navy);
}

/* Greeting row */
.header-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.greeting-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.greeting-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
  max-width: 220px;
}

.maya-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.maya-photo {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2.5px solid rgba(255,255,255,0.4);
  object-position: 80% 10%;
}

.maya-chip-label {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 4px;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Simple header (non-Accueil) */
.header-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
}

.header-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.header-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  max-width: 200px;
  margin-top: 2px;
}

.header-simple-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sub-tabs (Santé) */
.sub-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 3px;
  margin-top: 0;
}

.sub-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.sub-tab.active {
  background: #fff;
  color: var(--navy);
}

/* ── Screen body (scrollable) ─────────────────────────────────── */
.screen-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.screen-body::-webkit-scrollbar { display: none; }

/* Pull the white content card up to overlap header */
.pull-up {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding-top: 16px;
  min-height: calc(100% + 20px);
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 14px 12px;
}

.card-flat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 14px 12px;
  border: 1px solid var(--border);
}

/* ── Section headers ──────────────────────────────────────────── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.section-hd-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-hd-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

/* ── Quick action buttons ─────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0 4px;
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.qa-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}

.qa-item:active .qa-icon { transform: scale(0.93); }

.qa-blue   { background: #DBEAFE; color: #1D4ED8; }
.qa-green  { background: #DCFCE7; color: #15803D; }
.qa-orange { background: #FFEDD5; color: #C2410C; }
.qa-purple { background: #EDE9FE; color: #6D28D9; }

.qa-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ── List rows ────────────────────────────────────────────────── */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.list-row:last-child { border-bottom: none; }
.list-row:active { background: var(--bg); border-radius: 10px; }

.row-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.row-icon-blue   { background: var(--accent-bg); color: var(--accent); }
.row-icon-green  { background: var(--green-bg); color: var(--green-text); }
.row-icon-red    { background: var(--red-bg); color: var(--red); }
.row-icon-orange { background: var(--orange-bg); color: var(--orange); }
.row-icon-purple { background: var(--purple-bg); color: var(--purple); }
.row-icon-navy   { background: #EEF2FF; color: var(--navy); }

.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.row-sub   { font-size: 12px; color: var(--text3); margin-top: 1px; display: block; }

.row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.row-date-ok   { font-size: 12px; font-weight: 600; color: var(--accent); }
.row-date-warn { font-size: 12px; font-weight: 600; color: var(--red); }

.chevron { color: var(--text3); }

/* Expandable row */
.row-expanded-content {
  display: none;
  padding: 8px 0 4px 48px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.row-expanded-content.open { display: block; }

/* ── Badges ───────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; border-radius: 100px; font-size: 11px; font-weight: 700; padding: 3px 9px; }
.badge-green  { background: var(--green-bg); color: var(--green-text); }
.badge-blue   { background: var(--accent-bg); color: var(--accent); }
.badge-red    { background: var(--red-bg); color: var(--red); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-navy   { background: #EEF2FF; color: var(--navy); }
.badge-yellow { background: #FEF3C7; color: #92400E; }

/* ── Prochain RDV card ────────────────────────────────────────── */
.rdv-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}
.rdv-card:active { transform: scale(0.98); }

.rdv-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.rdv-info { flex: 1; }
.rdv-label { font-size: 11px; color: var(--text3); font-weight: 500; }
.rdv-date  { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 1px; }

.rdv-doctor {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}

.doc-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.doc-job  { font-size: 11px; color: var(--text3); }

/* ── Services horizontal scroll ──────────────────────────────── */
.services-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 16px;
  scrollbar-width: none;
}
.services-scroll::-webkit-scrollbar { display: none; }

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: pointer;
}

.service-img {
  width: 80px; height: 80px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--border);
}

.service-emoji-bg {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.service-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   SANTÉ SCREEN
══════════════════════════════════════════════════════════════ */
.sante-sub-screens {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.sante-sub {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transform: translateX(100%);
  transition: transform var(--transition);
  background: var(--bg);
}
.sante-sub::-webkit-scrollbar { display: none; }
.sante-sub.active { transform: translateX(0); }
.sante-sub.slide-left { transform: translateX(-30%); }

/* Identity card */
.id-photo-section {
  background: var(--navy);
  padding: 0 16px 32px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.id-photo-wrap {
  width: 80px; height: 80px;
  border-radius: 20px;
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.id-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.id-name-block { flex: 1; }
.id-name { font-size: 22px; font-weight: 800; color: #fff; }
.id-breed { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.id-puce  { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; }

.id-modify-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}

.id-content {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding: 16px 0 80px;
  min-height: 100%;
}

/* Vet block */
.vet-block {
  margin: 0 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vet-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.vet-name { font-size: 15px; font-weight: 700; color: var(--text); }
.vet-job  { font-size: 12px; color: var(--text3); margin-top: 1px; }
.vet-stars { font-size: 11px; color: var(--yellow); margin-top: 3px; }

.vet-contact-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-left: auto;
  transition: background 0.2s;
}
.vet-contact-btn:active { background: #1D4ED8; }

/* ── Collier connecté ─────────────────────────────────────────── */
.collier-status {
  background: var(--navy);
  padding: 0 16px 20px;
}

.collier-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot-green {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-connected { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600; }
.status-pct { font-size: 13px; color: rgba(255,255,255,0.7); }
.status-synchro { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.collar-image-wrap {
  text-align: center;
  padding: 10px 0;
}

.collar-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* Metric cards grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
}

.metric-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-icon { font-size: 20px; }
.metric-icon svg { display: block; }

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}

.metric-unit { font-size: 12px; color: var(--text3); margin-bottom: 8px; }

.alert-ia-card {
  margin: 0 14px 10px;
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-ia-text { flex: 1; }
.alert-ia-title { font-size: 13px; font-weight: 700; color: var(--green-text); }
.alert-ia-sub   { font-size: 12px; color: #16A34A; margin-top: 1px; }
.alert-ia-badge { font-size: 11px; font-weight: 700; color: var(--green-text); background: rgba(34,197,94,0.2); padding: 3px 8px; border-radius: 100px; white-space: nowrap; }

.conseil-card {
  margin: 0 14px 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.conseil-emoji { font-size: 32px; flex-shrink: 0; }
.conseil-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.conseil-text  { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   BIEN-ÊTRE SCREEN
══════════════════════════════════════════════════════════════ */
.pro-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 14px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  cursor: pointer;
}
.pro-card:active { transform: scale(0.98); }

.pro-photo {
  width: 56px; height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
}

.pro-body { flex: 1; min-width: 0; }
.pro-name { font-size: 15px; font-weight: 700; color: var(--text); }
.pro-job  { font-size: 12px; color: var(--text3); margin-top: 1px; }
.pro-desc { font-size: 12px; color: var(--text2); margin-top: 4px; line-height: 1.4; }

.pro-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pro-stars { color: var(--yellow); font-size: 11px; }
.pro-rating-num { font-size: 12px; font-weight: 600; color: var(--text); }
.pro-rating-count { font-size: 11px; color: var(--text3); }
.pro-dist { font-size: 11px; color: var(--text3); margin-left: auto; display: flex; align-items: center; gap: 3px; }

.home-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* History rows */
.history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.history-row:last-child { border-bottom: none; }

.history-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.history-info { flex: 1; }
.history-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.history-job   { font-size: 11px; color: var(--text3); }
.history-date  { font-size: 11px; color: var(--text3); margin-top: 2px; }

.history-right { text-align: right; }
.history-stars { color: var(--yellow); font-size: 12px; }
.history-score { font-size: 13px; font-weight: 700; color: var(--text); }
.history-badge { font-size: 10px; color: var(--green-text); background: var(--green-bg); padding: 2px 7px; border-radius: 100px; margin-top: 4px; display: inline-block; }

.search-pros-card {
  margin: 0 14px 20px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-pros-text { flex: 1; }
.search-pros-title { font-size: 13px; font-weight: 700; color: var(--accent); }
.search-pros-sub   { font-size: 12px; color: #3B82F6; margin-top: 1px; }

.search-pros-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   COMMUNAUTÉ SCREEN
══════════════════════════════════════════════════════════════ */
.share-box {
  margin: 0 14px 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.share-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.share-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--text3);
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 12px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 6px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Post cards */
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 14px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}

.post-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.post-user { flex: 1; }
.post-name { font-size: 14px; font-weight: 700; color: var(--text); }
.post-meta { font-size: 11px; color: var(--text3); margin-top: 1px; }

.post-more {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.post-title {
  padding: 0 14px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.post-body {
  padding: 0 14px 10px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.post-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

.post-img img { width: 100%; height: 100%; object-fit: cover; }

.post-list {
  padding: 0 14px 10px;
}

.post-list li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  padding-left: 12px;
  position: relative;
}
.post-list li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

.post-footer {
  display: flex;
  align-items: center;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  gap: 16px;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}

.post-action.liked { color: var(--red); }
.post-action:active { transform: scale(0.9); }

.post-bookmark {
  margin-left: auto;
  color: var(--text3);
  cursor: pointer;
  background: none;
  border: none;
}

/* ══════════════════════════════════════════════════════════════
   INTERNATIONAL SCREEN
══════════════════════════════════════════════════════════════ */
.search-box {
  margin: 0 14px 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: 'Inter', sans-serif;
}
.search-input::placeholder { color: var(--text3); }

.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-btn:active { background: #1D4ED8; }

/* Category icons scroll */
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 14px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  width: 68px;
}

.cat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.cat-item:active .cat-icon { transform: scale(0.92); }

.cat-label { font-size: 10px; color: var(--text2); text-align: center; font-weight: 500; line-height: 1.3; }

/* Country cards */
.countries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 14px 14px;
}

.country-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.country-card:active { transform: scale(0.97); }

.country-flag { font-size: 28px; margin-bottom: 6px; }
.country-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.country-desc { font-size: 11px; color: var(--text3); line-height: 1.4; margin-bottom: 8px; }
.country-link { font-size: 12px; font-weight: 600; color: var(--accent); }

/* Guide rows */
.guide-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.guide-row:last-child { border-bottom: none; }

.guide-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.guide-title { font-size: 13px; font-weight: 600; color: var(--text); }
.guide-sub   { font-size: 11px; color: var(--text3); margin-top: 1px; }

/* Recent searches */
.recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.recent-row:last-child { border-bottom: none; }
.recent-icon { color: var(--text3); flex-shrink: 0; }
.recent-text { flex: 1; font-size: 13px; color: var(--text2); }
.recent-date { font-size: 11px; color: var(--text3); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   PROFIL SCREEN
══════════════════════════════════════════════════════════════ */
.profil-header-content {
  padding: 0 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profil-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
  margin-bottom: 10px;
  background: #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}

.profil-name { font-size: 20px; font-weight: 800; color: #fff; }
.profil-bio  { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; line-height: 1.4; }

.profil-stats {
  display: flex;
  gap: 28px;
  margin-top: 12px;
}

.profil-stat { text-align: center; }
.profil-stat-num { font-size: 18px; font-weight: 800; color: #fff; }
.profil-stat-label { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 1px; }

/* Abonnement card */
.abonnement-card {
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  border: 1.5px solid #FCD34D;
}

.abo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.abo-crown { font-size: 20px; }
.abo-name  { font-size: 15px; font-weight: 800; color: #92400E; flex: 1; }
.abo-renew { font-size: 11px; color: #A16207; margin-top: 2px; }

.abo-desc { font-size: 12px; color: #78350F; line-height: 1.5; margin-top: 4px; }

/* Publications grid */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 14px;
}

.pub-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px;
  font-size: 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.pub-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.pub-likes {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deconnexion-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 14px 20px;
  box-shadow: var(--shadow);
  border: none;
  width: calc(100% - 28px);
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.deconnexion-btn:active { background: var(--red-bg); }

/* ══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════════════════════════ */
.bottom-nav {
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text3);
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
  min-height: 56px;
  position: relative;
}

.nav-tab.active { color: var(--accent); }
.nav-tab:active { opacity: 0.7; }

.nav-tab-icon { display: flex; align-items: center; justify-content: center; }

.nav-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Active indicator dot */
.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 18px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM SHEET MODAL (RDV)
══════════════════════════════════════════════════════════════ */
.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 51;
}

.sheet-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 16px; }

.sheet-rdv-block {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.sheet-date { font-size: 22px; font-weight: 800; color: var(--navy); }
.sheet-time { font-size: 16px; color: var(--text2); margin-top: 2px; }

.sheet-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.sheet-doc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #DBEAFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.sheet-doc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.sheet-doc-job  { font-size: 13px; color: var(--text3); }

.sheet-info-rows { margin-top: 4px; }

.sheet-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
}
.sheet-info-row:last-child { border-bottom: none; }

.sheet-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 16px;
  transition: background 0.2s;
}
.sheet-btn:active { background: var(--navy2); }

.sheet-btn-secondary {
  width: 100%;
  background: var(--red-bg);
  color: var(--red);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   BACK BUTTON (used on desktop)
══════════════════════════════════════════════════════════════ */
.back-to-site {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(calc(-215px - 20px - 100%));
  z-index: 200;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.back-to-site:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 500px) {
  .back-to-site { display: none; }
}

/* ── Utility ──────────────────────────────────────────────────── */
.pt-0  { padding-top: 0; }
.pb-20 { padding-bottom: 80px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.gap-8 { gap: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}
