/* ClaudeCon — Modern Art Museum Gallery Theme (Light Mode) */

:root {
  --bg-gallery: #fbfbf9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-subtle: #e7e5e4;
  --border-focus: #1c1917;
  
  --ink-primary: #1c1917;
  --ink-secondary: #57534e;
  --ink-muted: #a8a29e;
  --ink-faint: #d6d3d1;
  
  --accent-ink: #0c0a09;
  --accent-warm: #b45309;
  --accent-ochre: #d97706;
  
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--bg-gallery);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas (Gentle dust motes in gallery light) */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Header / Navigation */
.luxury-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 249, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 28px;
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-crown {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--ink-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* User Pseudo Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.user-badge:hover {
  border-color: var(--ink-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.avatar-icon {
  font-size: 0.9rem;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-edit-pseudo {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 2px;
}

.btn-edit-pseudo:hover {
  color: var(--ink-primary);
}

/* Modern Museum Action Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #18181b;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid #18181b;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: #f5f5f4;
  color: var(--ink-primary);
  border-color: var(--ink-muted);
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1350px;
  margin: 0 auto;
  padding: 40px 28px 90px;
}

/* Hero Section : Épurée, uniquement le nom du site */
.hero-section {
  text-align: center;
  max-width: 950px;
  margin: 15px auto 45px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #0c0a09;
}

.gradient-text {
  color: #1c1917;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #d6d3d1;
  opacity: 0.8;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.model-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.filter-chip.active {
  background: #18181b;
  border-color: #18181b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.luxury-select {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
}

.luxury-select:focus {
  border-color: var(--ink-primary);
}

/* Cards Grid — Aérien et aéré pour laisser flotter les messages */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 50px 38px;
  perspective: 1200px;
  padding: 30px 0 70px;
  min-height: 350px;
}

/* Floating Message Item — Aucun cadre par défaut */
.fame-card {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  box-shadow: none;
  cursor: default;
  will-change: transform;
}

/* Trajectoires de flottement aériennes individuelles */
@keyframes floatAirA {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(-5px, -11px, 0) rotate(0.6deg); }
  66%  { transform: translate3d(6px, -20px, 0) rotate(-0.5deg); }
  100% { transform: translate3d(-2px, -9px, 0) rotate(0.3deg); }
}

@keyframes floatAirB {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(7px, -15px, 0) rotate(-0.7deg); }
  66%  { transform: translate3d(-5px, -24px, 0) rotate(0.5deg); }
  100% { transform: translate3d(3px, -11px, 0) rotate(-0.3deg); }
}

@keyframes floatAirC {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(-8px, -9px, 0) rotate(-0.6deg); }
  66%  { transform: translate3d(5px, -18px, 0) rotate(0.7deg); }
  100% { transform: translate3d(-4px, -13px, 0) rotate(-0.2deg); }
}

@keyframes floatAirD {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(6px, -13px, 0) rotate(0.6deg); }
  66%  { transform: translate3d(-7px, -22px, 0) rotate(-0.6deg); }
  100% { transform: translate3d(4px, -7px, 0) rotate(0.4deg); }
}

@keyframes floatAirE {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(-6px, -17px, 0) rotate(0.4deg); }
  66%  { transform: translate3d(4px, -12px, 0) rotate(-0.8deg); }
  100% { transform: translate3d(-2px, -21px, 0) rotate(0.3deg); }
}

@keyframes floatAirF {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(7px, -10px, 0) rotate(-0.5deg); }
  66%  { transform: translate3d(-6px, -19px, 0) rotate(0.6deg); }
  100% { transform: translate3d(2px, -15px, 0) rotate(-0.4deg); }
}

/* Surbrillance dorée & grossissement au survol */
.fame-card:hover {
  animation-play-state: paused !important;
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 50px -10px rgba(217, 119, 6, 0.22),
              0 0 40px rgba(245, 158, 11, 0.22),
              0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 25;
}

/* Card Header: Masqué par défaut, apparaît au survol */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fame-card:hover .card-top {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Minimalist Museum Model Chips */
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  color: var(--ink-secondary);
}

.model-chip.fable {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.model-chip.opus {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.model-chip.sonnet {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.model-chip.haiku {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.model-chip.thinking {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-action {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
  background: #f5f5f4;
}

/* Card Body */
.card-content {
  flex-grow: 1;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 600;
  color: #18181b;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Thinking block formatting inside quotes (Museum Curator Note style) */
.thinking-block {
  display: block;
  background: rgba(245, 245, 244, 0.75);
  border-left: 3px solid #0284c7;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #44403c;
  margin: 12px 0;
}

.thinking-title {
  color: #0369a1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Image Attachment inside Card — Flotte sans cadre lourd */
.card-image-wrap {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  max-height: 320px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-image-wrap:hover {
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.22);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-image-wrap:hover img {
  transform: scale(1.02);
}

/* Card Footer: Metadata (Author, Timestamp, Likes) — Masqué par défaut, révélé au survol */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid transparent;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.fame-card:hover .card-footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-top-color: rgba(217, 119, 6, 0.2);
}

@media (hover: none) {
  .fame-card .card-top,
  .fame-card .card-footer {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-top-color: var(--border-subtle);
  }
}

.meta-author-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f4;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.meta-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--ink-primary);
}

.meta-timestamp {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.btn-like:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn-like.liked {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
  font-weight: 700;
}

.btn-like .like-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.btn-like:hover .like-icon {
  transform: scale(1.15);
}

.btn-like.liked .like-icon {
  fill: currentColor;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-sm {
  max-width: 420px;
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-secondary);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #0c0a09;
  margin-top: 4px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--ink-primary);
}

.modal-form, .modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
  min-width: 220px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.required {
  color: #b91c1c;
}

.form-group input, .form-select, textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 95px;
}

.form-group input:focus, .form-select:focus, textarea:focus {
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* File Drop Zone */
.drop-zone {
  position: relative;
  border: 2px dashed #d6d3d1;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: #fbfbf9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--ink-primary);
  background: #f5f5f4;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.drop-text {
  font-weight: 600;
  color: var(--ink-primary);
  font-size: 0.9rem;
}

.drop-subtext {
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 4px;
}

.drop-zone-preview {
  position: relative;
}

.drop-zone-preview img {
  max-height: 180px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: block;
  margin: 0 auto;
}

.btn-remove-preview {
  margin-top: 10px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.form-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-backdrop.active {
  display: flex !important;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e7e5e4;
  border-top-color: #18181b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #18181b;
  border: 1px solid #27272a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 400;
  display: none;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Footer */
.luxury-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- Nouvelles fonctionnalités : Sus, Top Hebdo, OCR & Modal Aléatoire --- */

.card-votes-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton Sus 🤔 */
.btn-sus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.btn-sus:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

.btn-sus.sus-voted {
  background: #fef9c3;
  border-color: #eab308;
  color: #854d0e;
  font-weight: 700;
}

.badge-sus {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  margin-left: 6px;
}

/* Top Hebdo Chip & Medals */
.filter-chip.chip-gold {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--gold-primary);
  font-weight: 700;
}

.filter-chip.chip-gold:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--gold-primary);
}

.filter-chip.chip-gold.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.badge-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.badge-rank-1 { background: #fef08a; color: #854d0e; border: 1px solid #facc15; }
.badge-rank-2 { background: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; }
.badge-rank-3 { background: #fed7aa; color: #9a3412; border: 1px solid #fb923c; }

/* Section Transcription OCR */
.card-ocr-section {
  margin-top: 10px;
}

.btn-toggle-ocr {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-ocr:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--ink-primary);
}

.ocr-text-box {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  font-family: var(--font-mono);
  max-height: 160px;
  overflow-y: auto;
}

.btn-copy-ocr {
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 2px 8px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-ocr:hover {
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}

/* Modal Pépite au Hasard */
.modal-card-random {
  max-width: 650px;
}

.user-name.placeholder {
  color: var(--gold-primary);
  font-style: italic;
  font-weight: 700;
}

.btn-mcp-link {
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: var(--gold-primary) !important;
  text-decoration: none !important;
}

.btn-mcp-link:hover {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: var(--gold-primary) !important;
}

