/* ============================================================
   Pas de Tabou v2 — Design System
   ============================================================ */

:root {
  --bg:           #0e0e1a;
  --bg-card:      #16162a;
  --bg-input:     #0b0b18;
  --primary:      #c9507a;
  --primary-dark: #a0305a;
  --primary-glow: rgba(201, 80, 122, 0.2);
  --gold:         #c9a44c;
  --text:         #eeeef5;
  --text-muted:   #7a7a9a;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --success:      #4ade80;
  --error:        #f87171;
  --radius:       14px;
  --radius-sm:    8px;
  --trans:        0.2s ease;
  --shadow:       0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(14, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.navbar-brand span { color: var(--primary); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.navbar-links a { color: var(--text-muted); transition: color var(--trans); }
.navbar-links a:hover { color: var(--text); text-decoration: none; }

.navbar-links .btn-nav-primary {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--trans);
}

.navbar-links .btn-nav-primary:hover { background: var(--primary-dark); text-decoration: none; }

.nav-pseudo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.nav-badge.badge-ok    { background: rgba(74,222,128,0.12);  color: var(--success); border: 1px solid rgba(74,222,128,0.25); }
.nav-badge.badge-limite { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   Containers & Layout
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

main.container { padding-top: 80px; }

/* ============================================================
   Boutons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 80, 122, 0.35);
  color: #fff;
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }

.btn-full { width: 100%; }

/* ============================================================
   Formulaires
   ============================================================ */

.field { margin-bottom: 1.1rem; }

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  font-family: inherit;
}

.field textarea { resize: vertical; min-height: 100px; }

.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a7a9a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field input.valide  { border-color: var(--success); }
.field input.erreur  { border-color: var(--error); }

.field-hint {
  font-size: 0.78rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  min-height: 18px;
}

.field-hint.ok { color: var(--success); }
.field-hint.ko { color: var(--error); }

.input-wrap { position: relative; }

.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  transition: color var(--trans);
}

.btn-eye:hover { color: var(--text); }

/* Checkbox */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.check-field span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.check-field span a { color: var(--primary); }

/* ============================================================
   Alerts
   ============================================================ */

.alerte {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alerte-erreur { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: #fca5a5; }
.alerte-succes { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.25);  color: #86efac; }
.alerte-info   { background: rgba(99,102,241,0.1);  border: 1px solid rgba(99,102,241,0.25);  color: #a5b4fc; }

/* ============================================================
   Badges
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-certif  { background: none; border: none; }
.badge-premium { background: rgba(201,80,122,0.15);  color: var(--primary); border: 1px solid rgba(201,80,122,0.3); }
.badge-ok      { background: rgba(74,222,128,0.12);  color: var(--success); border: 1px solid rgba(74,222,128,0.25); }
.badge-limite  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   Page Inscription — layout split
   ============================================================ */

.page-inscription {
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 100vh;
}

/* Panneau gauche — visuel */
.insc-visuel {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(160deg, #180820 0%, #2a0b2e 40%, #0b0b22 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  overflow: hidden;
}

.insc-visuel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(201,80,122,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 75%, rgba(90,40,120,0.22) 0%, transparent 55%);
  pointer-events: none;
}

/* Cercles décoratifs */
.insc-visuel::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201,80,122,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 80px rgba(201,80,122,0.04), 0 0 0 160px rgba(201,80,122,0.02);
}

.insc-visuel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}

.insc-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.insc-logo img {
  height: 52px;
  width: auto;
  display: inline-block;
}

.insc-tagline {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
}

.insc-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.insc-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.insc-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(6px);
}

.insc-pill-icon { font-size: 1.5rem; flex-shrink: 0; }

.insc-pill-text strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 1px; }
.insc-pill-text span   { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* Panneau droit — formulaire */
.insc-form-side {
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 40px;
  min-height: 100vh;
  border-left: 1px solid var(--border);
}

.insc-form-wrap {
  width: 100%;
  max-width: 400px;
  padding-bottom: 40px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2.2rem;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-dot.active {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(201,80,122,0.1);
}

.step-dot.done {
  border-color: var(--success);
  background: rgba(74,222,128,0.12);
  color: var(--success);
}

.step-dot.done::before { content: '✓'; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.step-line.done { background: var(--primary); }

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.3s ease; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.35rem;
}

.step-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  font-size: 0.92rem;
}

/* Type cards grid */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.8rem;
}

.type-card { position: relative; cursor: pointer; }

.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card-inner {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px 14px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  user-select: none;
}

.type-card:hover .type-card-inner {
  border-color: rgba(201,80,122,0.35);
  background: rgba(201,80,122,0.04);
}

.type-card input:checked + .type-card-inner {
  border-color: var(--primary);
  background: var(--primary-glow);
  box-shadow: 0 0 0 1px var(--primary) inset;
}

.type-card-emoji { font-size: 2rem; line-height: 1; }
.type-card-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.type-card-sub   { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }

/* Nav boutons */
.btn-nav {
  display: flex;
  gap: 10px;
  margin-top: 1.8rem;
}

.btn-nav .btn { flex: 1; }

/* Captcha */
.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0 0.4rem;
}

/* Footer du form */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================================
   Page confirmation email
   ============================================================ */

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.card-confirmation {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.card-confirmation .icon-big {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card-confirmation h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.card-confirmation p {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.card-confirmation p strong { color: var(--text); }

.card-confirmation .separator {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ============================================================
   Page profil complétion
   ============================================================ */

.form-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 60px;
}

.form-page-inner {
  width: 100%;
  max-width: 520px;
}

.form-page-inner h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.form-page-inner .sous-titre {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Photo upload */
.bloc-photo {
  margin-bottom: 1.5rem;
}

.bloc-photo label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.obligatoire { color: var(--primary); }

.photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--trans);
}

.photo-preview:hover { border-color: var(--primary); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Autocomplete */
.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--trans);
}

.suggestion-item:hover { background: rgba(201,80,122,0.1); }

/* ============================================================
   Fil d'actualité & cartes profil
   ============================================================ */

.grille-profils {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.carte-profil {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.carte-profil:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.carte-profil a { text-decoration: none; }

.carte-profil img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.carte-profil img.flou { filter: blur(14px); }

.carte-infos {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.carte-infos strong { font-size: 0.95rem; color: var(--text); }
.carte-infos span   { font-size: 0.78rem; color: var(--text-muted); }

.en-ligne {
  font-size: 0.72rem !important;
  color: var(--success) !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.en-ligne::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .page-inscription { grid-template-columns: 1fr; }
  .insc-visuel { display: none; }
  .insc-form-side { border-left: none; padding: 40px 20px; }
}

@media (max-width: 480px) {
  .navbar { padding: 12px 16px; }
  .type-grid { grid-template-columns: 1fr; }
  .insc-form-side { padding: 32px 16px; }
}

/* ============================================================
   Page Fil d'actualité — Layout
   ============================================================ */

.page-fil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

/* ── Formulaire de post ── */
.post-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin-bottom: 16px;
}

.post-form-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-form-textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 14px;
  resize: none;
  font-family: inherit;
  outline: none;
  line-height: 1.5;
  transition: border-color var(--trans);
  min-height: 52px;
  overflow: hidden;
}

.post-form-textarea:focus { border-color: var(--primary); }
.post-form-textarea::placeholder { color: var(--text-muted); }

.post-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-left: 52px;
}

.post-form-visib {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.post-form-visib input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* ── Boutons media picker ── */
.post-form-media-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.post-media-btn {
  background: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0.85;
  transition: opacity var(--trans), background var(--trans), border-color var(--trans), color var(--trans);
  line-height: 1.6;
  color: var(--text-muted);
}

.post-media-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
  border-color: var(--text);
  color: var(--text);
}

/* ── Prévisualisation média ── */
.post-media-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px 52px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.media-preview-img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.media-preview-name {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.media-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px 6px;
  margin-left: auto;
  border-radius: 50%;
  transition: color var(--trans), background var(--trans);
  flex-shrink: 0;
}

.media-remove-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }

/* ── Carte post ── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.post-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.post-card-author:hover { text-decoration: none; }
.post-card-author:hover .post-card-meta strong { color: var(--primary); }

.post-card-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-hover);
  transition: border-color var(--trans);
}

.post-card-author:hover .post-card-avatar { border-color: var(--primary); }

.post-avatar-wrap {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.post-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  pointer-events: none;
}

.post-card-meta { min-width: 0; }

.post-card-meta strong {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  transition: color var(--trans);
}

.post-card-meta span {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.post-card-menu-wrap { position: relative; flex-shrink: 0; }

.post-card-menu {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: all var(--trans);
}

.post-card-menu:hover { background: rgba(255,255,255,0.07); color: var(--text); }

.post-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: #1e1e34;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  min-width: 195px;
  z-index: 60;
  display: none;
  overflow: hidden;
}

.post-dropdown.open { display: block; animation: fadeIn 0.12s ease; }

@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.post-dropdown a, .post-dropdown button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none !important;
  transition: background var(--trans), color var(--trans);
}

.post-dropdown a:hover, .post-dropdown button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.post-dropdown .danger:hover { color: var(--error); background: rgba(248,113,113,0.07); }

.post-card-body {
  padding: 0 16px 14px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.post-card-body a {
  color: var(--primary);
  text-decoration: none;
}
.post-card-body a:hover { text-decoration: underline; }

.post-gif {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 6px 0;
}

/* Conteneur image/vidéo — clips aux coins de la carte */
.post-card-media {
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 2px;
}

/* Quand l'image est entre texte et footer (pas en dernier), pas de radius bas */
.post-card-media + .post-card-footer,
.post-card-media + .comments-section { border-radius: 0; }

.post-card-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity var(--trans);
}

.post-card-img:hover { opacity: 0.92; }

.post-card-media-locked {
  position: relative;
  overflow: hidden;
}

.post-card-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 1rem;
}

.post-card-lock-icon { font-size: 2rem; line-height: 1; }

.post-card-lock-overlay p {
  margin: 0;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  max-width: 220px;
}

.post-action-btn--locked {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.comment-form-locked {
  padding: .5rem .75rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.comment-form-locked a {
  color: var(--primary);
  text-decoration: none;
}

.comment-form-locked a:hover { text-decoration: underline; }

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

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
  font-family: inherit;
  user-select: none;
}

.post-action-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.post-action-btn.liked { color: var(--primary); font-weight: 600; }
.post-action-btn.liked:hover { background: var(--primary-glow); }

@keyframes likePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.post-action-btn.pop { animation: likePop 0.3s ease; }

/* ── Tooltip "qui a liké" ── */
.like-tooltip {
  position: absolute;
  z-index: 9000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  min-width: 160px;
  max-width: 230px;
  pointer-events: none;
  animation: tooltipFadeIn .15s ease;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.like-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.like-tooltip-row + .like-tooltip-row {
  border-top: 1px solid rgba(255,255,255,.05);
}

.like-tooltip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.like-tooltip-row span {
  font-size: .83rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-tooltip-more {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 5px;
  border-top: 1px solid var(--border);
  margin-top: 3px;
}

/* ── Section commentaires ── */
.comments-section {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
}

.comments-section.open { display: block; }

.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.comment-input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.88rem;
  padding: 8px 14px;
  outline: none;
  font-family: inherit;
  transition: border-color var(--trans);
}

.comment-input:focus { border-color: var(--primary); }
.comment-input::placeholder { color: var(--text-muted); }

.comment-send-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--trans);
}

.comment-send-btn:hover { background: var(--primary-dark); }

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-item-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-bubble {
  background: rgba(255,255,255,0.04);
  border-radius: 0 12px 12px 12px;
  padding: 8px 12px;
  flex: 1;
}

.comment-bubble strong {
  font-size: 0.82rem;
  color: var(--text);
}

.comment-bubble p {
  font-size: 0.88rem;
  color: rgba(238,238,245,0.8);
  margin: 2px 0 0;
}

.comment-bubble .cmt-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.comments-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

/* ── Actions d'un commentaire (like + répondre) ── */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.comment-actions .cmt-time {
  margin-top: 0;
  display: inline;
}

.cmt-like-btn,
.cmt-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color var(--trans);
}

.cmt-like-btn:hover   { color: var(--primary); }
.cmt-reply-btn:hover  { color: var(--text); }
.cmt-like-btn.liked   { color: var(--primary); }

.cmt-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  padding: 0;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--trans), color var(--trans);
}
.comment-item:hover .cmt-delete-btn,
.sub-comment-item:hover .cmt-delete-btn { opacity: 1; }
.cmt-delete-btn:hover { color: var(--danger, #e74c3c); }

/* ── Sous-commentaires ── */
.sub-comments {
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-comments:empty { display: none; }

.sub-comment-item {
  display: flex;
  gap: 8px;
}

.sub-comment-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-comment-form {
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.2); }

.lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-content video {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 6px;
  display: block;
  background: #000;
}

/* ── Load more ── */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 8px;
}

/* ── Sidebar droite ── */
.sidebar-fil {
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
}

.member-row img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.member-row-info strong {
  font-size: 0.88rem;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.member-row-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-fil {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-fil a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all var(--trans);
}

.nav-fil a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-fil a.active { background: var(--primary-glow); color: var(--primary); font-weight: 600; }

/* ── Toast notification ── */
.toast-notif {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
}

.toast-notif.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Widget membres en ligne ── */
.en-ligne-widget { padding-bottom: 0; }

.sidebar-widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.en-ligne-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.en-ligne-filtres-type {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.ftype {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.ftype:hover { color: var(--text); border-color: var(--border-hover, var(--border)); }
.ftype.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.en-ligne-amis-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  transition: color var(--trans);
}
.en-ligne-amis-toggle:hover { color: var(--text); }
.en-ligne-amis-toggle input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.en-ligne-liste {
  max-height: 440px;
  overflow-y: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.en-ligne-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--trans);
}
.en-ligne-card:hover { background: rgba(255,255,255,0.04); }

.en-ligne-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.en-ligne-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.en-ligne-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.en-ligne-info {
  min-width: 0;
  flex: 1;
}
.en-ligne-info strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.en-ligne-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-certif {
  display: inline;
  flex-shrink: 0;
  font-size: .9em;
  line-height: 1;
}

.en-ligne-card strong {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
}

.en-ligne-vide {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 20px 12px;
  margin: 0;
}

/* ── Bouton GIF ── */
#btn-add-gif {
  letter-spacing: 0.04em;
}

/* ── Overlay règles visibilité publique ── */
.visib-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.visib-overlay.open { display: flex; }

.visib-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(480px, 92vw);
  padding: 28px 24px 20px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.5));
}

.visib-modal h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}

.visib-modal .visib-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.visib-rules {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visib-rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.visib-rules li .rule-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.visib-modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.visib-modal-btns .btn-cancel-visib {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--trans), color var(--trans);
}
.visib-modal-btns .btn-cancel-visib:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.visib-modal-btns .btn-accept-visib {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity var(--trans);
}
.visib-modal-btns .btn-accept-visib:hover { opacity: 0.88; }

/* ── Modal Giphy ── */
.giphy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.giphy-overlay.open { display: flex; }

.giphy-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(560px, 95vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
}

.giphy-modal-header {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.giphy-search-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}
.giphy-search-input:focus { border-color: var(--primary); }

.giphy-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--trans);
}
.giphy-close-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.giphy-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  overflow-y: auto;
}
.giphy-grid img {
  width: calc(33.333% - 3px);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.giphy-grid img:hover { opacity: 0.82; transform: scale(1.03); }

.giphy-placeholder {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 30px 0;
}

.giphy-attr {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px;
  border-top: 1px solid var(--border);
  margin: 0;
}
.giphy-attr a { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-fil { grid-template-columns: 1fr; }
  .page-sorties { grid-template-columns: 1fr; }
  .page-clubs { grid-template-columns: 1fr; }
  .club-detail-layout { grid-template-columns: 1fr; }

  .sidebar-fil {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100dvh;
    overflow-y: auto;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 68px 16px 32px;
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 28px rgba(0,0,0,.45);
  }

  .sidebar-fil.sidebar-open {
    transform: translateX(0);
  }
}

/* Backdrop mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

@media (max-width: 1024px) {
  .sidebar-backdrop { display: block; }
  .sidebar-backdrop.sidebar-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .post-form-bottom {
    padding-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .post-media-preview {
    margin-left: 0;
  }
  .g2-range { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   PAGE DÉFIS
   ════════════════════════════════════════════════════════════ */

.page-defis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

.defis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.defis-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.defis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.defi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--trans);
}

.defi-card:hover { box-shadow: var(--shadow); }

.defi-card.actif { border-color: var(--primary); }

.defi-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.defi-card-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.status-actif  { color: #22c55e; }
.status-fini   { color: var(--text-muted); }

.defi-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.defi-card-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.defi-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.defi-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}

.defi-badge-type    { background: rgba(201,80,122,.15); color: var(--primary); }
.defi-badge-hard    { background: rgba(239,68,68,.12);  color: #ef4444; }
.defi-badge-soft    { background: rgba(34,197,94,.12);  color: #22c55e; }
.defi-badge-cible   { background: rgba(255,255,255,.07); color: var(--text-muted); border: 1px solid var(--border); }

.defi-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
  line-height: 1.5;
}

.defi-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.defi-card-note {
  font-size: 0.7rem;
  color: var(--error);
  text-align: center;
}

@media (max-width: 1024px) {
  .page-defis { grid-template-columns: 1fr; }
}

/* ── Page détail défi ── */
.defi-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

.defi-detail-main {}

.defi-detail-hero {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.defi-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.defi-detail-card-body { padding: 20px; }

.defi-participation-box {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.defi-participation-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.defi-galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.defi-galerie-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--trans);
}

.defi-galerie-item:hover { box-shadow: var(--shadow); }

.defi-galerie-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.defi-galerie-footer {
  padding: 8px 10px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.defi-galerie-pseudo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.defi-galerie-pseudo:hover { color: var(--primary); }

.btn-vote {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans);
  margin-top: 6px;
  width: 100%;
}

.btn-vote:hover   { border-color: #ef4444; color: #ef4444; }
.btn-vote.voted   { background: rgba(239,68,68,.1); border-color: #ef4444; color: #ef4444; }

.defi-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.defi-podium-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.defi-podium-item.gold   { border-color: #FFD700; background: rgba(255,215,0,.06); }
.defi-podium-item.silver { border-color: #C0C0C0; background: rgba(192,192,192,.06); }
.defi-podium-item.bronze { border-color: #CD7F32; background: rgba(205,127,50,.06); }

.defi-podium-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
}

.defi-podium-pseudo {
  font-size: 0.75rem; font-weight: 600;
  margin-top: 6px; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); text-decoration: none;
}

.defi-podium-pseudo:hover { color: var(--primary); }

.defi-podium-score { font-size: 0.72rem; color: #ef4444; font-weight: 700; margin-top: 2px; }

@media (max-width: 1024px) {
  .defi-detail-layout { grid-template-columns: 1fr; }
}

.defi-certif-wall {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.defi-certif-wall .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.defi-certif-wall h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.defi-certif-wall p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   PAGE SORTIES
   ════════════════════════════════════════════════════════════ */

.page-sorties {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

/* ── Header ── */
.sorties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.sorties-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* ── Mur certification / localisation ── */
.sorties-certif-wall {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 60px 24px;
}
.sorties-certif-wall .emoji { font-size: 3rem; margin-bottom: 12px; }
.sorties-certif-wall h2 { font-size: 1.2rem; margin-bottom: 8px; }
.sorties-certif-wall p { color: var(--text-muted); margin-bottom: 20px; }

/* ── Filtre distance ── */
.sorties-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.sorties-filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.sorties-slider {
  flex: 1;
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
}
.sorties-distance-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 64px;
  text-align: right;
}

/* ── Grille de cards ── */
.sorties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  transition: opacity .2s;
}

/* ── Card sortie ── */
.sortie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.sortie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.sortie-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.sortie-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.sortie-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sortie-club-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  align-self: flex-start;
}
.sortie-titre {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.sortie-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sortie-participants {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.sortie-avatars { display: flex; }
.sortie-avatar, .sortie-avatar-more {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-right: -7px;
  flex-shrink: 0;
}
.sortie-avatar { object-fit: cover; display: block; align-self: center; min-width: 26px; max-width: 26px; }
.sortie-avatar-more {
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sortie-participants-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 10px;
}
.sortie-participants-link:hover { color: var(--primary); }
.sortie-card-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* ── Bouton inscription ── */
.btn-sortie-join {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all .18s;
}
.btn-sortie-join:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}
.btn-sortie-join.inscrit {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-sortie-join.inscrit:hover:not(:disabled) {
  background: #a03d60;
  border-color: #a03d60;
}
.btn-sortie-join:disabled { opacity: .5; cursor: default; }

/* ── Vide ── */
.sorties-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.sorties-empty .emoji { font-size: 2.8rem; margin-bottom: 12px; }

/* ── Modal ── */
.sortie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sortie-modal-overlay.open { display: flex; }
.sortie-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUp .22s ease;
}
.sortie-modal-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.sortie-modal label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.sortie-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Page détail ── */
.sorties-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.sortie-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 24px;
}
.sortie-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 60%);
  pointer-events: none;
}
.sortie-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 24px;
  width: 100%;
}
.sortie-hero-date {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  min-width: 72px;
  flex-shrink: 0;
}
.sortie-hero-jour {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 8px;
  letter-spacing: .05em;
}
.sortie-hero-num {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 8px;
  color: var(--text);
}
.sortie-hero-info h1 { font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.sorties-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.78rem;
}
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.participant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.participant-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 6px;
}
.participant-avatar-wrap a { display: block; line-height: 0; }
.participant-avatar-wrap.en-ligne {
  display: block;
  color: inherit !important;
  font-size: inherit !important;
}
.participant-avatar-wrap.en-ligne::before { display: none; }
.participant-avatar-wrap.en-ligne::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-card);
}
.participant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.participant-pseudo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.participant-pseudo:hover { color: var(--primary); }
.participant-type, .participant-ville {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Responsive sorties (≤ 600 px) ── */
@media (max-width: 600px) {
  /* Bouton pleine largeur sur sa propre ligne */
  #btn-ajouter-sortie {
    flex: 1 1 100%;
  }

  /* Wall certification / localisation */
  .sorties-certif-wall {
    padding: 40px 16px;
  }

  /* Filtre distance : label sur sa propre ligne */
  .sorties-filter {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }
  .sorties-filter-label {
    flex-basis: 100%;
  }

  /* Modal ajout sortie : boutons empilés pleine largeur */
  .sortie-modal {
    padding: 20px 16px;
  }
  .sortie-modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .sortie-modal-actions .btn {
    width: 100%;
  }

  /* Page détail – nav retour + bouton */
  .sorties-detail-nav {
    flex-wrap: wrap;
  }
  .sorties-detail-nav .btn-sortie-join {
    flex: 1;
    min-width: 0;
  }

  /* Hero : padding réduit, titre plus petit */
  .sortie-hero-content {
    padding: 14px;
    gap: 10px;
  }
  .sortie-hero-info h1 {
    font-size: 1.05rem;
  }

  /* Grille participants : 2 colonnes */
  .participants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Lightbox affiche : infos en colonne */
  .affiche-modal-info {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }
}

/* ════════════════════════════════════════════════════════════
   PAGE CLUBS & SAUNAS
   ════════════════════════════════════════════════════════════ */

.page-clubs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

.clubs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.clubs-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  transition: opacity .2s;
}

.club-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none !important;
  color: var(--text);
}
.club-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  color: var(--text);
}
.club-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.club-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.club-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,80,122,.12);
  color: var(--primary);
  border: 1px solid rgba(201,80,122,.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  width: fit-content;
}

/* ── Page détail club ── */
.club-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}

.club-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.club-detail-card-body {
  padding: 20px;
}
.club-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.club-detail-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.club-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}
.club-stars { color: #f59e0b; }

.club-horaires {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.club-horaires-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.club-horaires-row:last-child { border-bottom: none; }
.club-horaires-day { font-weight: 600; }
.club-horaires-time { color: var(--text-muted); }

.club-soirees-section { margin-top: 24px; }
.club-soirees-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX AFFICHE SOIRÉE
   ════════════════════════════════════════════════════════════ */

.sortie-hero-zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .18s;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.sortie-hero-zoom:hover { background: rgba(0,0,0,.75); color: #fff; }

.affiche-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.affiche-modal-overlay.open { display: flex; }

.affiche-modal {
  position: relative;
  max-width: 700px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.affiche-modal img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}
.affiche-modal-info {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.affiche-modal-date {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  flex-shrink: 0;
  min-width: 56px;
}
.affiche-modal-date-jour { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.affiche-modal-date-num  { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.affiche-modal-date-mois { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.affiche-modal-text h2   { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.affiche-modal-text p    { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.affiche-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.6);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.affiche-modal-close:hover { background: rgba(0,0,0,.85); }

/* ── Protection médias (filigrane + anti-clic droit) ─────────────────────── */

/* Désactiver longpress mobile et sélection sur les médias de contenu */
.post-card-img,
.chat-img,
.post-gif,
.video-thumb img,
#lightbox img,
#lightbox video,
#video-player-el {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Overlay filigrane sur image individuelle */
.wm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-repeat: repeat;
  background-size: 300px 130px;
  border-radius: inherit;
}

/* Overlay filigrane couvrant toute la lightbox */
.wm-lb-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8910;
  background-repeat: repeat;
  background-size: 300px 130px;
}

/* ── Emoji Picker ─────────────────────────────────────────────────────────── */
.ep-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  width: 272px;
  overflow: hidden;
  animation: ep-in .12s ease both;
}
.ep-panel.ep-closing { animation: ep-out .15s ease forwards; }
@keyframes ep-in  { from { opacity:0; transform:translateY(6px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes ep-out { to   { opacity:0; transform:translateY(4px) scale(.97); } }

.ep-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 4px 4px 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ep-tabs::-webkit-scrollbar { display: none; }

.ep-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 5px 8px 4px;
  line-height: 1;
  transition: background .15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ep-tab:hover  { background: rgba(255,255,255,.07); }
.ep-tab--active {
  background: var(--bg-card);
  border-bottom-color: var(--primary);
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 6px;
  max-height: 224px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}
.ep-grid::-webkit-scrollbar       { width: 4px; }
.ep-grid::-webkit-scrollbar-track { background: transparent; }
.ep-grid::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
.ep-hidden { display: none !important; }

.ep-emoji {
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 2px;
  text-align: center;
  transition: background .12s, transform .1s;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-emoji:hover { background: rgba(255,255,255,.09); transform: scale(1.2); }
.ep-emoji:active { transform: scale(1.05); }

/* Bouton emoji générique */
.btn-emoji-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  opacity: .65;
  transition: opacity .15s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}
.btn-emoji-trigger:hover { opacity: 1; transform: scale(1.15); }
