@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─────────────────────────────────────────────
   LITTLE STINT — Design System · Glassmorphism Dark · Violet
───────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:   #09090D;
  --bg-2: #0E0D14;
  --bg-3: #14121C;
  --bg-4: #1A1825;

  /* Verre glassmorphism */
  --glass:       rgba(255,255,255,0.038);
  --glass-hover: rgba(255,255,255,0.065);
  --glass-high:  rgba(255,255,255,0.05);

  /* Borders */
  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --border-3: rgba(255,255,255,0.22);

  /* Accent — violet lumineux */
  --accent:      #A78BFA;
  --accent-dim:  rgba(167,139,250,0.12);
  --accent-glow: rgba(167,139,250,0.28);

  /* Rose/corail secondaire */
  --coral:     #F472B6;
  --coral-dim: rgba(244,114,182,0.10);

  /* Texte */
  --t1: #F1EFFF;
  --t2: rgba(241,239,255,0.50);
  --t3: rgba(241,239,255,0.25);

  /* Sémantique */
  --success: #34D399;
  --danger:  #F87171;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --z-nav:   30;
  --z-modal: 50;
  --z-toast: 60;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Désactive le pinch-to-zoom (autorise le scroll vertical/horizontal) */
  touch-action: pan-x pan-y;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

/* Orbes de lumière glassmorphism */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80vw 70vh at 10% -5%,  rgba(139,92,246,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60vw 50vh at 90% 90%,  rgba(244,114,182,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40vw 35vh at 50% 50%,  rgba(167,139,250,0.04) 0%, transparent 60%);
}

.page-wrap { position: relative; z-index: 1; }

/* ── Topnav ── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  background: rgba(9,9,13,0.72);
  backdrop-filter: saturate(160%) blur(28px);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-nav);
}
.topnav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
  text-decoration: none;
}
.topnav-logo span { color: var(--accent); }
.topnav-spacer { flex: 1; }
.topnav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
  background: none;
  border: none;
  font-family: inherit;
}
.topnav-back:hover { opacity: 0.7; }
/* ── Nav search ── */
.nav-srch-btn {
  width: 34px; height: 34px; border-radius: var(--r-xs);
  background: none; border: 1px solid var(--border);
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; margin-left: 8px; flex-shrink: 0;
}
.nav-srch-btn:hover { background: var(--glass-hover); color: var(--t1); border-color: var(--border-2); }
.nav-srch-panel {
  position: fixed; top: 62px; right: 16px;
  width: min(360px, calc(100vw - 32px));
  background: #1A1825; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  backdrop-filter: blur(24px); z-index: 9999;
  display: none; overflow: hidden;
  animation: fadeSlideDown 0.16s ease;
}
.nav-srch-panel.open { display: block; }
@keyframes fadeSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.nav-srch-inner { padding: 12px; }
.nav-srch-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 12px; margin-bottom: 6px;
}
.nav-srch-input { flex: 1; background: none; border: none; outline: none; color: var(--t1); font-size: 14px; font-family: inherit; }
.nav-srch-input::placeholder { color: var(--t3); }
.nav-srch-close { background: none; border: none; color: var(--t3); cursor: pointer; font-size: 14px; padding: 0; line-height: 1; }
.nav-srch-close:hover { color: var(--t1); }
.nav-srch-result {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--t1); transition: background 0.15s;
}
.nav-srch-result:hover { background: var(--glass-hover); }
.nav-srch-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-srch-av-fb { background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.nav-srch-name { font-size: 14px; font-weight: 600; }
.nav-srch-meta { font-size: 12px; color: var(--t3); margin-top: 1px; }
.nav-srch-hint { text-align: center; color: var(--t3); font-size: 12px; padding: 16px 8px; }
.topnav-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  border: 1px solid var(--border);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ── Page layout ── */
.page-content {
  padding-top: 72px;
  padding-bottom: 64px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.page-content.wide { max-width: 1020px; }

/* ── Cards ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { background: var(--glass-hover); border-color: var(--border-2); }
.card.interactive { cursor: pointer; }
.card.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 24px var(--accent-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.16s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 17px;
  line-height: 1;
  letter-spacing: -0.1px;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(139,92,246,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:active { transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--glass-high);
  color: var(--t1);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
}
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--border-3); }

.btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { color: var(--t1); background: var(--glass); border-color: var(--border-3); }

.btn-danger {
  background: var(--coral-dim);
  color: var(--coral);
  border: 1px solid rgba(244,114,182,0.18);
}
.btn-danger:hover { background: rgba(244,114,182,0.16); }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--r-xs); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.35; pointer-events: none; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--t2); }
.form-input {
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--t1);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--t3); }
.form-input option { background: #1A1825; color: var(--t1); }
textarea.form-input { resize: vertical; min-height: 84px; }
select.form-input { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { font-size: 12px; color: var(--danger); display: none; }
.form-group.has-error .form-input { border-color: var(--danger); }
.form-group.has-error .form-error { display: block; }

/* ── Upload zone ── */
.upload-zone {
  background: var(--bg-4);
  border: 1.5px dashed var(--border-2);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone p { font-size: 13px; color: var(--t2); margin: 0; }
.upload-zone span { font-size: 11px; color: var(--t3); }

/* ── Photo carousel ── */
.carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a0a0f;
  user-select: none;
  touch-action: pan-y;
  width: 100%;
}
.carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.32s var(--ease);
}
/* Pastille "lecture" superposée sur les vignettes vidéo (carte, liste, bandes). */
.media-play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(8,8,12,0.6); backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
}
.media-play-badge svg { margin-left: 2px; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(9,9,13,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  color: var(--t1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  opacity: 0; transition: opacity 0.2s;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(9,9,13,0.82); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
/* Sur tactile (pas de survol possible) : flèches toujours visibles */
@media (hover: none) {
  .carousel-btn { opacity: 0.85; }
}
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.carousel-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.35); transition: all 0.2s; cursor: pointer;
}
.carousel-dot.active { width: 18px; border-radius: 3px; background: var(--accent); }
.carousel-counter {
  position: absolute; top: 10px; right: 10px;
  background: rgba(9,9,13,0.62); backdrop-filter: blur(8px);
  border-radius: 100px; padding: 3px 9px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); z-index: 2;
}

/* ── Stories ── */
.stories-row {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; flex-shrink: 0; cursor: pointer;
}
.story-item span {
  font-size: 11px; font-weight: 500; color: var(--t2);
  text-align: center; max-width: 64px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.story-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 2.5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 100%);
  transition: transform 0.2s var(--ease), box-shadow 0.2s; flex-shrink: 0;
}
.story-ring:hover { transform: scale(1.07); box-shadow: 0 0 20px var(--accent-glow); }
.story-ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2.5px solid var(--bg); overflow: hidden;
  background: var(--bg-4);
  display: flex; align-items: center; justify-content: center;
}
.story-ring-inner img { width: 100%; height: 100%; object-fit: cover; }
.story-add-ring {
  width: 68px; height: 68px; border-radius: 50%;
  border: 1.5px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s var(--ease);
  background: var(--bg-4); flex-shrink: 0;
}
.story-add-ring:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ── Story sur la photo de profil (éphémère 24h) ── */
.avatar-ring-wrap { position: relative; display: inline-block; border-radius: 50%; flex-shrink: 0; }
.avatar-ring-wrap.has-story { padding: 3px; background: linear-gradient(135deg, var(--accent) 0%, var(--coral) 100%); }
/* Déjà tout vu : anneau grisé (il reste cliquable pour revoir). */
.avatar-ring-wrap.has-story.all-seen { background: linear-gradient(135deg, #4a4658 0%, #3a3746 100%); }
.avatar-ring-wrap.has-story .avatar { border: 3px solid var(--bg); cursor: pointer; }
.avatar-add-story {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s var(--ease); z-index: 2; padding: 0;
}
.avatar-add-story:hover { transform: scale(1.1); }

.story-viewer {
  position: fixed; inset: 0; background: rgba(8, 6, 14, 0.92); z-index: 400;
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.story-viewer.open { display: flex; }
/* Carte façon téléphone : 9/16, centrée. Plein écran sur mobile, carte arrondie sur desktop. */
.story-viewer-card {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  max-width: min(440px, calc(100vh * 9 / 16));
  max-height: min(100vh, calc(100vw * 16 / 9));
  background: #05040a;
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
@media (min-width: 600px) {
  .story-viewer-card { border-radius: 20px; max-height: 92vh; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
}
/* Fond flou (même image en cover) pour habiller sans rogner ni zoomer la vraie photo. */
.story-viewer-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(0.42) saturate(1.1); transform: scale(1.15);
}
.story-viewer-media { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.story-viewer-media img, .story-viewer-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-viewer-progress-row { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 4; }
.story-viewer-progress-bar { flex: 1; height: 2.5px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.story-viewer-progress-fill { height: 100%; width: 0%; background: #fff; }
/* Marqueur "libre" : barre pulsée, pas d'auto-défilement */
.story-viewer-progress-bar.free .story-viewer-progress-fill {
  width: 100%; background: rgba(255,255,255,0.55); animation: sv-free-pulse 1.6s ease-in-out infinite;
}
@keyframes sv-free-pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.story-viewer-head { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.story-viewer-user { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.sv-repost { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-repost:hover { text-decoration: underline; }
.story-viewer-close, .story-viewer-delete {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.12);
  border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.story-viewer-close:hover, .story-viewer-delete:hover { background: rgba(255,255,255,0.22); }
.story-viewer-tap-zone { position: absolute; top: 0; bottom: 0; width: 33%; z-index: 2; }
.story-viewer-tap-zone.prev { left: 0; }
.story-viewer-tap-zone.next { right: 0; }

/* ── Barre du bas : like (visiteur) / stats vues+likes (créateur) ── */
.story-viewer-foot {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.sv-like-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.28); color: #fff;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.sv-like-btn:hover { background: rgba(0,0,0,0.42); }
.sv-like-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.sv-like-btn.liked svg { fill: var(--coral, #ff5a76); stroke: var(--coral, #ff5a76); }
.sv-like-btn.pop { animation: sv-like-pop 0.32s var(--ease); }
@keyframes sv-like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
.sv-stats-btn {
  margin-right: auto; display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border: none; border-radius: 100px; cursor: pointer;
  background: rgba(0,0,0,0.32); color: #fff; font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sv-stats-btn:hover { background: rgba(0,0,0,0.46); }
.sv-stat { display: inline-flex; align-items: center; gap: 5px; }
.sv-stat svg { width: 17px; height: 17px; }

/* ── Confirmation d'action dans la visionneuse (le toast est masqué derrière) ── */
.sv-reply-status {
  position: absolute; left: 50%; bottom: 76px; z-index: 5;
  transform: translateX(-50%) translateY(8px);
  max-width: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 10px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.sv-reply-status.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sv-reply-status.ok  { background: rgba(46,160,110,0.94); }
.sv-reply-status.err { background: rgba(200,60,70,0.94); }

/* ── Feuille "Vu par" (créateur) ── */
.story-viewer-sheet {
  position: absolute; inset: 0; z-index: 6; display: none;
  align-items: flex-end; background: rgba(0,0,0,0.4);
}
.story-viewer-sheet.open { display: flex; }
.sv-sheet-inner {
  width: 100%; max-height: 70%; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--border-2); box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
  animation: sv-sheet-up 0.22s var(--ease);
}
@keyframes sv-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sv-sheet-head {
  padding: 14px 16px 10px; font-size: 14px; font-weight: 700; color: var(--t1);
  border-bottom: 1px solid var(--border-2); position: relative;
}
.sv-sheet-close {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--bg-4); color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sv-sheet-list { overflow-y: auto; padding: 6px 8px 14px; }
.sv-viewer-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; }
.sv-viewer-av {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--bg-4); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--t2);
}
.sv-viewer-av img { width: 100%; height: 100%; object-fit: cover; }
.sv-viewer-meta { flex: 1; min-width: 0; }
.sv-viewer-name { font-size: 14px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-viewer-sub { font-size: 12px; color: var(--t3); }
.sv-viewer-liked svg { width: 18px; height: 18px; fill: var(--coral, #ff5a76); stroke: var(--coral, #ff5a76); }
.sv-sheet-empty { padding: 24px 16px; text-align: center; color: var(--t3); font-size: 13px; }

/* ── Champ de réponse (réaction → MP au créateur) ── */
.sv-reply { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sv-reply-input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px;
  border-radius: 100px; border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.28); color: #fff; font-size: 14px; font-family: inherit;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sv-reply-input::placeholder { color: rgba(255,255,255,0.7); }
.sv-reply-input:focus { outline: none; border-color: #fff; background: rgba(0,0,0,0.42); }
.sv-reply-send {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center;
}
.sv-reply-send.show { display: flex; }
.sv-reply-send svg { width: 20px; height: 20px; }

/* ── Bulle "réponse à une story" dans la messagerie ── */
.msg-story-ref {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  padding: 5px 8px 5px 5px; border-radius: 12px;
  background: var(--bg-4, rgba(255,255,255,0.06));
  max-width: 240px;
}
.bubble-row.mine .msg-story-ref { margin-left: auto; }
.msg-story-thumb {
  width: 34px; height: 54px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
  background: #000; display: block;
}
.msg-story-ref-label { font-size: 11px; color: var(--t3); font-weight: 600; }

/* ── Compositeur de story (choix de la durée avant publication) ── */
.story-composer {
  position: fixed; inset: 0; background: rgba(8, 6, 14, 0.92); z-index: 420;
  display: none; align-items: center; justify-content: center; padding: 16px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.story-composer.open { display: flex; }
.story-composer-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 380px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-xl, 20px); padding: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.story-composer-preview {
  position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 46vh;
  border-radius: var(--r-lg); overflow: hidden; background: #05040a;
  display: flex; align-items: center; justify-content: center;
}
.story-composer-preview img, .story-composer-preview video { max-width: 100%; max-height: 100%; object-fit: contain; z-index: 1; }
.story-composer-preview .story-viewer-bg { z-index: 0; }
.story-composer-label { font-size: 12px; font-weight: 600; color: var(--t2); }
.story-composer-durations { display: flex; flex-wrap: wrap; gap: 8px; }
.story-dur-chip {
  flex: 1 1 auto; min-width: 52px; padding: 9px 10px;
  border: 1px solid var(--border-2); border-radius: 100px; background: none;
  color: var(--t2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s var(--ease);
}
.story-dur-chip:hover { border-color: var(--accent); color: var(--accent); }
.story-dur-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.story-composer-hint { font-size: 11px; color: var(--t3); line-height: 1.4; }
.story-composer-actions { display: flex; gap: 8px; margin-top: 2px; }
.story-composer-actions .btn { flex: 1; justify-content: center; }

/* ── Avatar ── */
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--border-2);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; font-size: 28px; }
.avatar-xl { width: 96px; height: 96px; font-size: 34px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; flex-shrink: 0;
}
.badge-restaurant { background: rgba(244,114,182,0.12); color: var(--coral); }
.badge-hotel, .badge-hôtel { background: var(--accent-dim); color: var(--accent); }
.badge-activite, .badge-activité { background: rgba(52,211,153,0.10); color: var(--success); }
.badge-vue { background: rgba(200,200,240,0.08); color: rgba(200,200,240,0.65); }
.badge-boutique { background: rgba(251,191,36,0.10); color: #FBBF24; }
.badge-transport { background: rgba(100,210,255,0.08); color: #64D2FF; }
.badge-autre { background: var(--bg-4); color: var(--t3); }

/* ── Rating ── */
.rating {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--accent);
}
.g-rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--t1);
}
.fav-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #FF6B6B;
  background: rgba(255,107,107,0.10); border-radius: 100px;
  padding: 2px 9px;
}
/* Google reviews section in detail sheet */
.g-rating-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border-radius: var(--r-sm);
  padding: 12px 14px; margin-bottom: 12px;
}
.g-rating-big { font-size: 26px; font-weight: 800; color: var(--t1); line-height: 1; }
.g-stars { font-size: 13px; color: #FBBC04; }
.g-review {
  background: var(--bg-3); border-radius: var(--r-sm);
  padding: 12px 14px; margin-bottom: 8px;
}
.g-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.g-review-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.g-av-fb {
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.g-review-author { font-size: 13px; font-weight: 600; color: var(--t1); }
.g-review-stars { font-size: 10px; color: #FBBC04; margin-top: 2px; }
.g-review-text { font-size: 12px; color: var(--t2); line-height: 1.55; margin: 0; }

/* ── Step cards ── */
.step-card-c {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: all 0.2s var(--ease); margin-bottom: 10px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.step-card-c:hover { background: var(--glass-hover); border-color: var(--border-2); }
.step-card-c-main { display: flex; gap: 12px; padding: 14px; }
.step-img-sm {
  width: 76px; height: 76px; border-radius: var(--r-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-4);
}
.step-body { flex: 1; min-width: 0; }
.step-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.step-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.step-review { font-size: 12px; color: var(--t2); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.step-btns { display: flex; gap: 6px; padding: 0 14px 12px; }

.step-photo-strip {
  display: flex; gap: 3px; padding: 0 14px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.step-photo-strip::-webkit-scrollbar { display: none; }
.step-photo-strip-img {
  width: 52px; height: 52px; border-radius: var(--r-xs);
  object-fit: cover; flex-shrink: 0;
  opacity: 0.72; transition: opacity 0.2s; cursor: pointer;
}
.step-photo-strip-img:hover { opacity: 1; }
.step-photo-more {
  width: 52px; height: 52px; border-radius: var(--r-xs);
  background: var(--bg-4); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--t2);
  flex-shrink: 0; cursor: pointer;
}

/* ── Day group ── */
.day-group { margin-bottom: 28px; }
.day-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 10px;
}
.day-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 8px var(--accent-glow); }
.day-title { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* ── Trip cards ── */
.trip-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: all 0.2s var(--ease); flex-shrink: 0;
  backdrop-filter: blur(24px);
}
.trip-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.trip-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px var(--accent-glow); }
.trip-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.trip-card-body { padding: 10px 12px 12px; }
.trip-card-body h3 { font-size: 13px; font-weight: 600; }
.trip-card-body p { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* ── Country gauge donut ── */
.gauge-wrap {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: blur(24px);
}
.gauge-info h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--accent); }
.gauge-info p { font-size: 12px; color: var(--t2); margin-top: 3px; }
.gauge-info small { font-size: 11px; color: var(--t3); display: block; margin-top: 2px; }

/* ── Map ── */
#map {
  width: 100%; height: 340px;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-4);
}

/* ── Sections ── */
.section { margin-bottom: 28px; }
.section-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--t3); margin-bottom: 12px; display: block;
}
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-row h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Chip ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--border-2);
  color: var(--t2); cursor: pointer; transition: all 0.16s;
  white-space: nowrap; backdrop-filter: blur(16px);
}
.chip:hover { border-color: var(--border-3); color: var(--t1); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ── Instagram btn ── */
.instagram-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border-2); background: var(--glass);
  color: var(--t2); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.2s; backdrop-filter: blur(16px);
}
.instagram-btn:hover { background: var(--glass-hover); color: var(--t1); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 20px; max-width: 300px;
  background: var(--bg-4); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--t1);
  z-index: var(--z-toast);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  pointer-events: none; backdrop-filter: blur(20px);
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.toast.success { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.25); color: var(--success); }
.toast.error   { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.25); color: var(--danger); }

/* ── Modal ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-4); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 28px;
  width: 100%; max-width: 400px;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.26s var(--ease);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.overlay.open .modal { transform: scale(1) translateY(0); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-desc  { font-size: 13px; color: var(--t2); line-height: 1.5; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Bottom sheet ── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); z-index: var(--z-modal);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.sheet-overlay.open { opacity: 1; pointer-events: all; }
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-4); border-top: 1px solid var(--border-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: calc(var(--z-modal) + 1);
  transform: translateY(100%); transition: transform 0.3s var(--ease);
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 -16px 48px rgba(0,0,0,0.6);
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle { width: 32px; height: 3px; background: var(--border-2); border-radius: 2px; margin: 12px auto 0; }

/* Desktop : panneau centré et limité en largeur (sinon plein écran, carousel géant) */
@media (min-width: 640px) {
  .bottom-sheet {
    left: 50%; right: auto;
    width: 100%; max-width: 480px;
    border-radius: var(--r-xl);
    max-height: 84vh;
    transform: translate(-50%, 100%);
  }
  .bottom-sheet.open { transform: translate(-50%, 0); }
}
.sheet-close-btn {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(14,13,20,0.80); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--t2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  z-index: 5; flex-shrink: 0;
}
.sheet-close-btn:hover { background: rgba(255,255,255,0.12); color: var(--t1); }
.sheet-content { padding: 16px 20px 48px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 70; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--r-lg); }
.lightbox-content { display: flex; align-items: center; justify-content: center; }
.lightbox video { max-width: 92vw; max-height: 88vh; border-radius: var(--r-lg); background: #000; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: white; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.16); }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* ── Empty state ── */
.empty { text-align: center; padding: 44px 24px; color: var(--t3); }
.empty h3 { font-size: 15px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.empty p { font-size: 13px; line-height: 1.6; }

/* ── Photos grid (add-step) ── */
.photos-grid-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.photo-thumb { aspect-ratio: 3/4; border-radius: var(--r-xs); overflow: hidden; position: relative; background: var(--bg-4); border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.7); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: 0; transition: opacity 0.15s; }
.photo-thumb:hover .photo-del { opacity: 1; }
.photo-add { aspect-ratio: 3/4; border-radius: var(--r-xs); border: 1.5px dashed var(--border-2); background: var(--bg-4); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--t3); transition: all 0.2s; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 500; }
.photo-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── Creator card (explore) ── */
.creator-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; cursor: pointer;
  transition: all 0.22s var(--ease);
  text-decoration: none; display: block; color: inherit;
  backdrop-filter: blur(24px);
}
.creator-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.6); transform: translateY(-3px); border-color: var(--border-2); }
.creator-card-cover { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: var(--bg-4); }
.creator-card-body { padding: 14px; }
.creator-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.creator-card-name { font-size: 14px; font-weight: 700; }
.creator-card-handle { font-size: 11px; color: var(--t3); }
.creator-card-bio { font-size: 12px; color: var(--t2); line-height: 1.5; }
.creator-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.creator-card-tag { padding: 3px 8px; border-radius: 100px; font-size: 10px; font-weight: 600; background: var(--bg-4); color: var(--t3); border: 1px solid var(--border); }

/* ── Country hero card ── */
.country-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  cursor: pointer; aspect-ratio: 3/4;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.country-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 48px rgba(0,0,0,0.65); }
.country-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.country-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.country-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; color: white; }
.country-card-name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.country-card-sub { font-size: 11px; opacity: 0.65; margin-top: 2px; }
.country-card-avatars { display: flex; margin-top: 10px; }
.country-card-avatars .mini-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  overflow: hidden; margin-left: -6px; background: rgba(255,255,255,0.1);
}
.country-card-avatars .mini-avatar:first-child { margin-left: 0; }
.country-card-avatars .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.anim-up   { animation: fadeUp 0.4s var(--ease) both; }
.anim-up-1 { animation: fadeUp 0.4s 0.05s var(--ease) both; }
.anim-up-2 { animation: fadeUp 0.4s 0.10s var(--ease) both; }
.anim-up-3 { animation: fadeUp 0.4s 0.15s var(--ease) both; }
.anim-up-4 { animation: fadeUp 0.4s 0.20s var(--ease) both; }
.anim-up-5 { animation: fadeUp 0.4s 0.25s var(--ease) both; }
.anim-up-6 { animation: fadeUp 0.4s 0.30s var(--ease) both; }

/* ── Responsive ── */
@media (min-width: 960px) {
  .page-content { max-width: 740px; }
  .page-content.wide { max-width: 1060px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  #map { height: 260px; }
  .page-content { padding-left: 16px; padding-right: 16px; }
  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─────────────────────────────────────────────
   Navigation unifiée (style TikTok)
   • Mobile (≤680px)  : barre fixe en BAS
   • Desktop (>680px) : barre fixe en HAUT
   Remplace totalement l'ancien header .topnav.
───────────────────────────────────────────── */
.topnav { display: none !important; }

.civ-bottom-nav {
  position: fixed;
  left: 0; right: 0;
  z-index: 90;
  background: rgba(9, 9, 13, 0.90);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  display: flex;
  align-items: center;
}
.cbn-brand {
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--t1); text-decoration: none; white-space: nowrap;
}
.cbn-brand span { color: var(--accent); }
.cbn-item {
  display: flex; align-items: center;
  text-decoration: none; color: var(--t3);
  position: relative; transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cbn-icon { display: flex; }
.cbn-badge {
  position: absolute;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 100px;
  background: var(--coral); color: #fff;
  font-size: 9px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

/* ── Bouton central « Créer » (style TikTok) ── */
.cbn-create .cbn-icon {
  background: linear-gradient(135deg, #A78BFA, #7C5CFF);
  color: #fff;
  border-radius: 14px;
  padding: 6px 18px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cbn-create .cbn-icon svg { stroke: #fff; }
.cbn-create:active .cbn-icon { transform: scale(0.94); }
/* Label présent pour l'accessibilité mais masqué visuellement (juste le +). */
.cbn-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Desktop : barre du HAUT (items centrés) ── */
@media (min-width: 681px) {
  .civ-bottom-nav {
    top: 0; height: 56px;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    justify-content: center;
  }
  .cbn-brand { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
  .cbn-items { display: flex; gap: 4px; }
  .cbn-item {
    flex-direction: row; gap: 8px;
    padding: 8px 14px; border-radius: 10px;
  }
  .cbn-item:hover { color: var(--t1); background: var(--glass-hover); }
  .cbn-item.active { color: var(--t1); background: var(--accent-dim); }
  .cbn-icon svg { width: 18px; height: 18px; }
  .cbn-label { font-size: 13px; font-weight: 600; }
  .cbn-badge { top: 1px; right: 3px; }
}

/* ── Mobile : barre du BAS ── */
@media (max-width: 680px) {
  .civ-bottom-nav {
    bottom: 0;
    border-top: 1px solid var(--border);
    padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  }
  .cbn-brand { display: none; }
  .cbn-items { display: flex; flex: 1; }
  .cbn-item {
    flex: 1; flex-direction: column; gap: 3px; justify-content: center;
  }
  .cbn-item.active { color: var(--t1); }
  .cbn-item:active { opacity: 0.6; }
  .cbn-icon svg { width: 23px; height: 23px; display: block; }
  .cbn-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1px; }
  .cbn-badge { top: -3px; left: 50%; margin-left: 8px; }

  /* Plus de header en haut : on récupère l'espace */
  body.has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.has-bottom-nav .page-content { padding-top: 16px; }
  body.has-bottom-nav .hero-wrap { padding-top: 14px; }
}

/* ── Barre « Retour » des pages d'édition (remplace la nav) ── */
.civ-edit-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(9, 9, 13, 0.90);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 1px solid var(--border);
}
.civ-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 6px; -webkit-tap-highlight-color: transparent;
}
.civ-back:hover { opacity: 0.75; }

/* ── Panneau de recherche (centré, indépendant de l'ancien header) ── */
.nav-srch-panel {
  top: 66px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(440px, 92vw);
}
@media (max-width: 680px) {
  .nav-srch-panel { top: 14px; }
}

/* ─────────────────────────────────────────────
   Barre avion — pays du monde
───────────────────────────────────────────── */
.plane-bar-wrap {
  display: flex; flex-direction: column; gap: 7px;
}
.plane-track {
  width: 100%; height: 6px; border-radius: 100px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.plane-fill {
  display: block; height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 1.4s cubic-bezier(0.22,0.61,0.36,1);
}
.plane-label {
  font-size: 11px; color: var(--t2); font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────
   LITTLE STINT — Social actions (likes, comments, favorites)
───────────────────────────────────────────── */
.civ-actions-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 4px 4px;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
}
.civ-actions-bar .civ-actions-spacer { flex: 1; }

.civ-like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  color: var(--t2);
  font-family: inherit; font-weight: 600;
  cursor: pointer; user-select: none;
  border-radius: 100px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.civ-like-btn:hover { background: var(--glass-hover); color: var(--t1); }
.civ-like-btn:active { transform: scale(0.94); }
.civ-like-btn.liked { color: #F472B6; }
.civ-like-btn .civ-like-heart {
  width: 18px; height: 18px;
  transition: transform 0.18s var(--ease);
}
.civ-like-btn.liked .civ-like-heart { color: #F472B6; }
.civ-like-btn.pop .civ-like-heart {
  animation: civHeartPop 0.36s var(--ease);
}
@keyframes civHeartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.civ-like-count {
  font-size: 13px; font-variant-numeric: tabular-nums;
  min-width: 8px;
}
.civ-like-count:empty { display: none; }

/* Large variant — under trip cover */
.civ-like-lg { padding: 8px 14px; font-size: 14px; }
.civ-like-lg .civ-like-heart { width: 20px; height: 20px; }

/* Small variant — on step cards */
.civ-like-sm { padding: 4px 8px; font-size: 12px; gap: 4px; }
.civ-like-sm .civ-like-heart { width: 14px; height: 14px; }
.civ-like-sm .civ-like-count { font-size: 12px; }

/* Step actions row sits flush right on the step card */
.civ-step-actions {
  display: flex; align-items: center; gap: 4px;
  margin-top: 6px;
}

/* "Voir qui a liké" — clickable count for trip owner */
.civ-likers-link {
  font-size: 12px; color: var(--t3);
  background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}
.civ-likers-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ─────────────────────────────────────────────
   LITTLE STINT — Shared modal (likers, etc)
───────────────────────────────────────────── */
.civ-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: civModalFade 0.2s var(--ease);
}
@keyframes civModalFade { from { opacity: 0; } to { opacity: 1; } }
.civ-modal {
  width: 100%; max-width: 460px;
  background: #15131F;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  max-height: 80vh; display: flex; flex-direction: column;
  animation: civModalSlide 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes civModalSlide { from { transform: translateY(20px); } to { transform: translateY(0); } }
@media (min-width: 640px) {
  .civ-modal-overlay { align-items: center; padding: 24px; }
  .civ-modal { border-radius: 18px; max-height: 70vh; }
}
.civ-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.civ-modal-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.civ-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.civ-modal-close:hover { color: var(--t1); }
.civ-modal-body { overflow-y: auto; padding: 8px; }

.civ-liker-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--t1);
  transition: background 0.18s var(--ease);
}
.civ-liker-row:hover { background: var(--glass-hover); }
.civ-liker-av {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--coral));
}
.civ-liker-av-fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--bg);
}
.civ-liker-name { font-size: 14px; font-weight: 600; }
.civ-liker-handle { font-size: 12px; color: var(--t3); margin-top: 1px; }

/* ─────────────────────────────────────────────
   LITTLE STINT — Comments
───────────────────────────────────────────── */
.civ-comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.civ-comments-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.civ-comments-count {
  font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 9px;
  font-weight: 600;
}
.civ-c-loading { padding: 20px 0; color: var(--t3); font-size: 13px; text-align: center; }
.civ-c-empty {
  padding: 24px 12px; text-align: center;
  color: var(--t3); font-size: 13px;
  background: var(--glass);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* Composer */
.civ-composer {
  display: flex; gap: 10px;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.civ-composer-guest {
  justify-content: center; align-items: center;
  padding: 16px;
}
.civ-composer-inputwrap { flex: 1; min-width: 0; }
.civ-composer-input {
  width: 100%; min-height: 36px; max-height: 160px;
  background: transparent; border: none; outline: none;
  color: var(--t1); font-family: inherit; font-size: 14px;
  line-height: 1.45; resize: none;
  padding: 8px 0 0;
}
.civ-composer-input::placeholder { color: var(--t3); }
.civ-composer-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 8px;
}
.civ-composer-submit {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 100px;
  padding: 6px 16px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity 0.18s var(--ease), background 0.18s var(--ease);
}
.civ-composer-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.civ-composer-submit:not(:disabled):hover { background: #B79DFD; }
.civ-composer-cancel {
  background: transparent; color: var(--t2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 14px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.civ-composer-cancel:hover { color: var(--t1); border-color: var(--border-2); }

/* Comment item */
.civ-comments-list { display: flex; flex-direction: column; gap: 14px; }
.civ-comment { display: flex; gap: 10px; border-radius: 10px; transition: background 0.4s var(--ease); }
/* Surbrillance temporaire quand on arrive depuis "voir le commentaire" (notification). */
.civ-comment-highlight { background: rgba(167, 139, 250, 0.14); }
.civ-c-av-wrap { flex-shrink: 0; display: block; line-height: 0; text-decoration: none; }
.civ-c-av {
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  display: flex; align-items: center; justify-content: center;
}
.civ-c-av img { width: 100%; height: 100%; object-fit: cover; }
.civ-c-av-fb { font-weight: 700; color: var(--bg); }
.civ-c-main { flex: 1; min-width: 0; }
.civ-c-bubble {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 13px;
  display: inline-block; max-width: 100%;
}
.civ-c-head {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.civ-c-name {
  font-size: 13px; font-weight: 700; color: var(--t1);
  text-decoration: none;
}
.civ-c-name:hover { color: var(--accent); }
.civ-c-handle { font-size: 11px; color: var(--t3); }
.civ-c-text {
  font-size: 14px; color: var(--t1); line-height: 1.5;
  word-wrap: break-word; overflow-wrap: anywhere;
}

/* ── Mentions @pseudo (commentaires + messages) ── */
.civ-mention {
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.civ-mention:hover { text-decoration: underline; }

.civ-mention-dropdown {
  position: fixed; z-index: 1100;
  background: #15131F; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden; padding: 4px;
  max-height: 260px; overflow-y: auto;
}
.civ-mention-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 9px; cursor: pointer;
}
.civ-mention-item.active, .civ-mention-item:hover { background: var(--glass-hover); }
.civ-mention-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}
.civ-mention-av img { width: 100%; height: 100%; object-fit: cover; }
.civ-mention-meta { min-width: 0; }
.civ-mention-name {
  font-size: 13px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.civ-mention-handle { font-size: 11px; color: var(--t3); }
.civ-c-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px; padding-left: 4px;
  font-size: 12px;
}
.civ-c-time { color: var(--t3); }
.civ-c-edited { color: var(--t3); font-style: italic; }
.civ-c-action {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--t2); cursor: pointer;
}
.civ-c-action:hover { color: var(--t1); }

/* Comment like */
.civ-clike-btn {
  background: none; border: none; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--t2); cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600;
  transition: color 0.18s var(--ease), transform 0.12s var(--ease);
}
.civ-clike-btn svg { width: 14px; height: 14px; }
.civ-clike-btn:hover { color: var(--t1); }
.civ-clike-btn.liked { color: #F472B6; }
.civ-clike-btn:active { transform: scale(0.92); }
.civ-clike-count { font-variant-numeric: tabular-nums; }
.civ-clike-count:empty { display: none; }

.civ-cmenu-btn {
  background: none; border: none; padding: 0 4px;
  font-family: inherit; font-size: 16px; line-height: 1;
  color: var(--t3); cursor: pointer;
  margin-left: auto;
}
.civ-cmenu-btn:hover { color: var(--t1); }

.civ-cmenu {
  background: #1A1825;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  min-width: 140px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
}
.civ-cmenu button {
  background: none; border: none; padding: 8px 12px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--t1); text-align: left; cursor: pointer;
  border-radius: 6px;
}
.civ-cmenu button:hover { background: var(--glass-hover); }
.civ-cmenu .civ-cmenu-danger { color: #F87171; }
.civ-cmenu .civ-cmenu-danger:hover { background: rgba(248, 113, 113, 0.1); }

/* Reply toggle + replies block */
.civ-c-toggle {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 8px 4px 4px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  color: var(--t2); cursor: pointer;
  margin-top: 2px;
}
.civ-c-toggle:hover .civ-c-toggle-label { color: var(--t1); }
.civ-c-toggle-line { width: 26px; height: 1px; background: var(--border-2); }
.civ-c-toggle-label { transition: color 0.18s var(--ease); }
.civ-c-replies { padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.civ-c-replies .civ-comment { padding-left: 0; }
.civ-c-replies .civ-c-bubble { background: rgba(255,255,255,0.02); }

/* Inline reply composer slot */
.civ-reply-composer-slot { margin-top: 10px; }
.civ-reply-composer-slot .civ-composer { padding: 10px; }

/* Edit box */
.civ-c-editbox {
  width: 100%; min-height: 44px; max-height: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--t1); font-family: inherit; font-size: 14px;
  line-height: 1.45; padding: 8px 10px; resize: none;
  outline: none;
}
.civ-c-editbox:focus { border-color: var(--accent); }
.civ-c-editactions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 6px;
}
.civ-c-editactions .civ-composer-submit { padding: 5px 14px; font-size: 12px; }
.civ-c-editactions .civ-composer-cancel { padding: 5px 12px; font-size: 12px; }

/* ─────────────────────────────────────────────
   LITTLE STINT — Favorite button + Collections modal
───────────────────────────────────────────── */
.civ-fav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  color: var(--t2);
  cursor: pointer; user-select: none;
  border-radius: 100px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.civ-fav-btn:hover { background: var(--glass-hover); color: var(--t1); }
.civ-fav-btn:active { transform: scale(0.94); }
.civ-fav-btn.saved { color: var(--accent); }
.civ-fav-btn.pop .civ-fav-icon { animation: civHeartPop 0.36s var(--ease); }
.civ-fav-lg { padding: 8px 12px; }
.civ-fav-lg .civ-fav-icon { width: 20px; height: 20px; }
.civ-fav-sm { padding: 4px 8px; }
.civ-fav-sm .civ-fav-icon { width: 14px; height: 14px; }

/* Collections list inside the "save to" modal */
.civ-fav-coll-list { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.civ-fav-coll-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s var(--ease);
}
.civ-fav-coll-row:hover { background: var(--glass-hover); }
.civ-fav-coll-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}
.civ-fav-coll-body { flex: 1; min-width: 0; }
.civ-fav-coll-name { font-size: 14px; font-weight: 600; color: var(--t1); display: flex; align-items: center; gap: 6px; }
.civ-fav-coll-priv {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--t3); background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 1px 6px; font-weight: 700;
}
.civ-fav-check {
  width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.16s var(--ease);
}
.civ-fav-check svg { width: 14px; height: 14px; }
.civ-fav-coll-row.checked .civ-fav-check {
  background: var(--accent); border-color: var(--accent); color: var(--bg);
}

.civ-report-opts { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.civ-report-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; color: var(--t1);
  transition: background 0.16s var(--ease);
}
.civ-report-opt:hover { background: var(--glass-hover); }
.civ-report-opt input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.civ-report-other {
  width: calc(100% - 8px); margin: 4px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 10px; color: var(--t1);
  font-family: inherit; font-size: 13.5px; line-height: 1.45;
  padding: 10px 12px; resize: none;
}
.civ-report-other:focus { border-color: var(--accent); }

.civ-fav-new-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 16px 12px;
  background: var(--glass); border: 1px dashed var(--border-2);
  color: var(--t1);
  padding: 10px 14px; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.civ-fav-new-btn:hover { background: var(--glass-hover); border-color: var(--accent); color: var(--accent); }

.civ-fav-new-form {
  display: flex; flex-direction: column; gap: 10px;
  margin: 4px 16px 14px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.civ-fav-new-row { display: flex; gap: 8px; }
.civ-fav-new-emoji, .civ-fav-new-name {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--t1); font-family: inherit; font-size: 14px;
  padding: 9px 12px; outline: none;
}
.civ-fav-new-emoji { width: 60px; text-align: center; font-size: 18px; }
.civ-fav-new-name { flex: 1; min-width: 0; }
.civ-fav-new-emoji:focus, .civ-fav-new-name:focus { border-color: var(--accent); }
.civ-fav-new-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--t2); cursor: pointer;
}
.civ-fav-new-toggle input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.civ-fav-new-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ─────────────────────────────────────────────
   LITTLE STINT — Profile tabs + Likes grid
───────────────────────────────────────────── */
.profil-tabs {
  display: flex; gap: 4px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 24px 0 22px;
}
.profil-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: none;
  padding: 12px 8px;
  color: var(--t2); text-decoration: none;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  position: relative;
}
.profil-tab:hover { color: var(--t1); background: var(--glass-hover); }
.profil-tab.active { color: var(--accent); }
.profil-tab.active::after {
  content: ''; position: absolute; bottom: -7px; left: 25%; right: 25%;
  height: 2px; background: var(--accent); border-radius: 100px;
}
.profil-tab svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 480px) {
  .profil-tab { font-size: 12px; padding: 10px 4px; gap: 6px; }
  .profil-tab svg { width: 15px; height: 15px; }
}

.likes-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.likes-subhead {
  font-size: 13px; font-weight: 700; color: var(--t1);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.likes-subhead span { color: var(--t3); font-weight: 500; }

.liked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.liked-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: var(--t1);
  display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.liked-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.liked-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--bg-2); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.liked-card-thumb img, .liked-card-thumb video { width: 100%; height: 100%; object-fit: cover; }
.liked-card-thumb-fb { font-size: 32px; opacity: 0.6; }
.liked-card-body { padding: 10px 12px 12px; }
.liked-card-title {
  font-size: 13px; font-weight: 700; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.liked-card-meta {
  font-size: 11px; color: var(--t3);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.liked-card-creator { color: var(--accent); font-weight: 600; }

/* ─────────────────────────────────────────────
   LITTLE STINT — Notifications (liste réutilisée dans l'onglet
   "Notifications" de messages.html — voir app.js civSocial.notif.renderInto)
───────────────────────────────────────────── */
.civ-bell-empty {
  padding: 32px 16px; text-align: center;
  color: var(--t3); font-size: 13px;
}
.civ-bell-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--t1);
  transition: background 0.16s var(--ease);
  position: relative;
}
.civ-bell-row:hover { background: var(--glass-hover); }
.civ-bell-row.unread {
  background: rgba(167, 139, 250, 0.08);
}
.civ-bell-row.unread::before {
  content: ''; position: absolute; left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
/* Deux zones cliquables distinctes : l'avatar → le profil de la personne,
   le reste (texte + vignette) → le contenu concerné (voyage/lieu/story/commentaire). */
.civ-bell-avlink { flex-shrink: 0; display: block; line-height: 0; }
.civ-bell-bodylink {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.civ-bell-av {
  width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--coral));
}
.civ-bell-av-fb {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--bg);
}
.civ-bell-body { flex: 1; min-width: 0; }
.civ-bell-msg {
  font-size: 13px; line-height: 1.4;
  color: var(--t1);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.civ-bell-msg strong { color: var(--t1); font-weight: 700; }
.civ-bell-quote {
  font-size: 12px; color: var(--t2); font-style: italic;
  margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.civ-bell-time {
  font-size: 11px; color: var(--t3);
  margin-top: 2px;
}
.civ-bell-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: var(--bg-4);
}

/* Bannière "activer les notifications push" (onglet Notifications) */
.civ-push-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 4px 10px; padding: 12px 14px;
  border: 1px solid var(--accent); border-radius: 12px;
  background: rgba(167, 139, 250, 0.08);
}
.civ-push-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--t1); line-height: 1.4; }
.civ-push-txt b { color: var(--accent); font-weight: 700; }
.civ-push-enable {
  flex-shrink: 0; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 100px;
}
.civ-push-enable:disabled { opacity: 0.6; cursor: default; }

/* ── Répondre directement depuis une notification de commentaire ── */
.civ-bell-item { display: flex; flex-direction: column; }
.civ-bell-inline-reply { padding: 0 12px 8px 58px; }
.civ-bell-reply-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--accent);
}
.civ-bell-reply-btn:hover { text-decoration: underline; }
.civ-bell-reply-box { display: none; gap: 8px; margin-top: 6px; }
.civ-bell-reply-input {
  flex: 1; min-width: 0; height: 32px; padding: 0 12px;
  border-radius: 100px; border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--t1); font-size: 12px; font-family: inherit;
}
.civ-bell-reply-input:focus { outline: none; border-color: var(--accent); }
.civ-bell-reply-send {
  flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 100px;
  border: none; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.civ-bell-reply-send:disabled { opacity: 0.6; cursor: default; }

/* ─────────────────────────────────────────────
   LITTLE STINT — Share button
───────────────────────────────────────────── */
.civ-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  color: var(--t2);
  cursor: pointer; user-select: none;
  border-radius: 100px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.civ-share-btn:hover { background: var(--glass-hover); color: var(--t1); }
.civ-share-btn:active { transform: scale(0.94); }
.civ-share-lg { padding: 8px 12px; }
.civ-share-lg .civ-share-icon { width: 18px; height: 18px; }
.civ-share-sm { padding: 4px 8px; }
.civ-share-sm .civ-share-icon { width: 14px; height: 14px; }
