@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette PulSaaS / -Me */
  --pulsaas-dark: #0f2b48;
  --pulsaas-blue: #0077b6;
  --pulsaas-cyan: #00b4d8;
  --pulsaas-light-bg: #f8fafc;
  --pulsaas-gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  --pulsaas-gradient-hover: linear-gradient(135deg, #005f92 0%, #0096b4 100%);

  /* Couleurs primaires unifiées sur l'identité -Me */
  --primary: #0077b6;
  --primary-hover: #005f92;
  --primary-light: #e0f2fe;
  --border-color: #e2e8f0;
  --white: #ffffff;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #00b4d8;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 180, 216, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--pulsaas-light-bg);
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 55%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 520px;
}

.event-container {
  max-width: 860px;
}

/* Layout & Navbar */
.navbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.2s;
}

.navbar a:hover {
  color: var(--pulsaas-blue);
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
  }
  .navbar nav {
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.9rem;
  }
}

.brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pulsaas-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 119, 182, 0.2);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand span {
  background: var(--pulsaas-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header applicatif (ex: pages secondaires) */
.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: var(--pulsaas-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Card General */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--pulsaas-dark);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pulsaas-dark);
}

.label-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 0.25rem;
}

input[type="text"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--pulsaas-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}

.btn-primary:hover {
  background: var(--pulsaas-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--pulsaas-blue);
}

.btn-secondary:hover {
  background-color: #bae6fd;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Result Box */
.success-card {
  display: none;
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.success-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-title {
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.success-description {
  font-size: 0.875rem;
  color: #047857;
  margin-bottom: 1rem;
}

.link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.link-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  color: #065f46;
}

.btn-copy {
  width: auto;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.badge-standard {
  background-color: var(--primary-light);
  color: var(--pulsaas-blue);
}

.badge-secret_santa {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-birthday {
  background-color: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.badge-trip {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-halloween {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid #fdba74;
}

/* Event Details View */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.event-meta-item strong {
  color: var(--text-main);
}

.event-description-box {
  background: var(--bg-page);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  white-space: pre-wrap;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Alert / Notification */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  display: block;
}

.alert-success {
  background-color: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
  display: block;
}

/* Loader */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--pulsaas-cyan);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

/* Section RSVP */
.rsvp-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.rsvp-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--pulsaas-dark);
}

.status-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .status-btn-group {
    grid-template-columns: 1fr;
  }
}

.btn-status {
  padding: 0.65rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  background: #fff;
}

.btn-status-going {
  border-color: #a7f3d0;
  color: #065f46;
  background-color: #f0fdf4;
}

.btn-status-going:hover {
  background-color: #dcfce7;
  border-color: #86efac;
}

.btn-status-going.active {
  background-color: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.btn-status-maybe {
  border-color: #fde68a;
  color: #92400e;
  background-color: #fffbeb;
}

.btn-status-maybe:hover {
  background-color: #fef3c7;
  border-color: #fcd34d;
}

.btn-status-maybe.active {
  background-color: #f59e0b;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.btn-status-declined {
  border-color: #fecaca;
  color: #991b1b;
  background-color: #fef2f2;
}

.btn-status-declined:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
}

.btn-status-declined.active {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

/* Badges de statut */
.badge-going {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-maybe {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-declined {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Liste des participants */
.participants-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.participants-summary {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.summary-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.participants-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--pulsaas-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.participant-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.empty-state {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* Badge Organisateur */
.badge-admin {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}

/* Boutons d'action légers / Suppression */
.btn-icon-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.btn-icon-delete:hover {
  background-color: #fee2e2;
  color: #ef4444;
}

/* Module Fournitures / À apporter */
.items-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.items-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.items-form input {
  flex: 1;
}

.items-form button {
  width: auto;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Grille 2 Colonnes pour Fournitures & Discussion */
.event-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .event-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.event-card-subblock {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 2px 10px -2px rgba(15, 43, 72, 0.04);
  display: flex;
  flex-direction: column;
}

.items-section.event-card-subblock,
.chat-section.event-card-subblock {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 0.5rem;
}

.item-title-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  flex: 1;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-claim {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--pulsaas-blue);
  border: 1px solid rgba(0, 180, 216, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-claim:hover {
  background-color: #bae6fd;
  border-color: var(--pulsaas-cyan);
}

/* Tag vert 'Prénom ✅' aligné à droite (style Mockup) */
.item-claimed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.item-claimed-tag.my-item {
  background: #dcfce7;
  border-color: #86efac;
}

.btn-unclaim-inline {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0 0.15rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.btn-unclaim-inline:hover {
  color: #ef4444;
}

.btn-unclaim:hover {
  color: #ef4444;
}

/* Module Secret Santa */
.santa-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.santa-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(244, 63, 94, 0.08);
}

.santa-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.santa-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 0.5rem;
}

.santa-subtitle {
  font-size: 0.9rem;
  color: #881337;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.santa-admin-panel {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.btn-santa-draw {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-santa-draw:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.35);
}

.btn-santa-draw:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.santa-reveal-box {
  background: #ffffff;
  border: 2px dashed #f43f5e;
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  margin-top: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.santa-reveal-box.revealed {
  border-style: solid;
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  animation: revealPulse 0.5s ease;
}

.santa-target-display {
  display: none;
}

.santa-target-display.active {
  display: block;
}

.santa-target-label {
  font-size: 0.95rem;
  color: #065f46;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.santa-target-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.santa-target-hint {
  font-size: 0.8rem;
  color: #059669;
  font-style: italic;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes revealPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Module Tchat Événement & Secret Santa */
.chat-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.chat-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chat-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.chat-tab:hover {
  background: #ffffff;
  color: var(--text-main);
}

.chat-tab.active {
  background: var(--pulsaas-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.chat-tab.active.santa-tab {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: #be123c;
}

.chat-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-msg-row.me {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.other {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  padding: 0 0.25rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.chat-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg-row.me .chat-bubble {
  background: var(--pulsaas-gradient);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-msg-row.other .chat-bubble {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.chat-msg-row.santa .chat-bubble {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid #fecdd3;
  color: #881337;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex: 1;
}

.chat-form button {
  width: auto;
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Grilles & Sections Tarifs/Dashboard */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-section {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin-bottom: 2rem;
}

.pricing-card {
  text-align: left;
}

.pricing-card.featured {
  border: 2px solid var(--pulsaas-cyan);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin: 0.5rem 0 1rem 0;
}

.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: "✓ ";
  color: var(--pulsaas-cyan);
  font-weight: bold;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Encart d'incitation à la conversion */
.conversion-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.conversion-title {
  font-weight: 700;
  color: var(--pulsaas-dark);
  margin-bottom: 0.25rem;
}

.conversion-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.badge-past {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* ===================================================
   HERO UI MOCKUP PREVIEW
=================================================== */
.hero-mockup-wrapper {
  margin: 3rem auto 0 auto;
  max-width: 680px;
  perspective: 1000px;
}

.hero-mockup-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -15px rgba(0, 119, 182, 0.22), 0 0 0 1px rgba(0, 180, 216, 0.15);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: rotateX(2deg);
}

.hero-mockup-card:hover {
  transform: translateY(-4px) rotateX(0deg);
  box-shadow: 0 25px 55px -12px rgba(0, 119, 182, 0.28);
}

.mockup-header {
  background: #f1f5f9;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

.mockup-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-browser-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.15rem 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  flex: 1;
  max-width: 320px;
  font-family: monospace;
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.mockup-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mockup-pill {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.mockup-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin-bottom: 0.25rem;
}

.mockup-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .mockup-grid {
    grid-template-columns: 1fr;
  }
}

.mockup-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.mockup-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pulsaas-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mockup-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mockup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
  gap: 0.5rem;
}

.mockup-claimed {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.mockup-chat-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.mockup-chat-msg.santa {
  align-self: flex-start;
}

.mockup-chat-msg.me {
  align-self: flex-end;
}

.mockup-chat-author {
  font-size: 0.7rem;
  color: #be123c;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.mockup-chat-bubble {
  font-size: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  line-height: 1.3;
}

.mockup-chat-msg.santa .mockup-chat-bubble {
  background: #fff1f2;
  color: #881337;
  border: 1px solid #fecdd3;
  border-bottom-left-radius: 2px;
}

.mockup-chat-msg.me .mockup-chat-bubble {
  background: var(--pulsaas-blue);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

/* ===================================================
   SECTION ÉTAPES "COMMENT ÇA MARCHE ?"
=================================================== */
.steps-section {
  margin: 4.5rem auto 4.5rem auto;
  text-align: center;
}

.section-tagline {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pulsaas-blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}

.step-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--pulsaas-blue);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.icon-yellow { background: #fef3c7; }
.icon-cyan { background: #e0f2fe; }
.icon-blue { background: #e0e7ff; }
.icon-green { background: #dcfce7; }
.icon-pink { background: #ffe4e6; }

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================
   COMPTEUR D'ÉVÉNEMENTS IMMERSIF
=================================================== */
.counter-card {
  text-align: center;
  padding: 2rem 1.75rem;
  margin: 4rem auto 2rem auto;
  max-width: 560px;
  background: #ffffff;
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px -5px rgba(0, 180, 216, 0.18);
  position: relative;
  overflow: hidden;
}

.counter-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  margin-bottom: 1rem;
}

.counter-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.counter-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
}

.counter-stat {
  flex: 1;
  text-align: center;
}

.counter-divider {
  width: 1px;
  height: 48px;
  background: #e2e8f0;
}

.counter-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--pulsaas-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.counter-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pulsaas-dark);
}

@media (max-width: 480px) {
  .counter-grid {
    flex-direction: column;
    gap: 1.25rem;
  }
  .counter-divider {
    width: 60%;
    height: 1px;
  }
}

/* Bandeau de réassurance discret (< 50 participants) */
.reassurance-card {
  text-align: center;
  padding: 1.25rem 1.75rem;
  margin: 3.5rem auto 2rem auto;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px -3px rgba(0, 180, 216, 0.08);
}

.reassurance-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pulsaas-dark);
  line-height: 1.5;
}

/* ===================================================
   FOOTER MODERNE PULSAAS
=================================================== */
.app-footer {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background-color: #ffffff;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 380px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pulsaas-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: var(--pulsaas-blue);
  transform: translateX(2px);
}

.footer-contact-btn {
  color: var(--pulsaas-blue) !important;
  font-weight: 700 !important;
}

/* ===================================================
   THÈMES VISUELS DYNAMIQUES PAR TYPE D'ÉVÉNEMENT
=================================================== */
/* Thème Standard */
body.theme-standard {
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 55%);
}

/* Thème Secret Santa (Rouge Rubis & Or) */
body.theme-santa {
  background: radial-gradient(circle at 50% 0%, #ffe4e6 0%, #fff1f2 35%, #f8fafc 70%);
}
body.theme-santa .btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}
body.theme-santa .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}
body.theme-santa .badge-secret_santa {
  background-color: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Thème Anniversaire (Violet Festif / Ambre) */
body.theme-birthday {
  background: radial-gradient(circle at 50% 0%, #f3e8ff 0%, #fae8ff 35%, #f8fafc 70%);
}
body.theme-birthday .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}
body.theme-birthday .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* Thème Week-end & Voyage (Émeraude / Lagon) */
body.theme-trip {
  background: radial-gradient(circle at 50% 0%, #ccfbf1 0%, #d1fae5 35%, #f8fafc 70%);
}
body.theme-trip .btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
body.theme-trip .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

/* ===================================================
   STYLES MODULE ANNIVERSAIRE (CAGNOTTE & CADEAUX)
=================================================== */
.cagnotte-banner {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1px solid #f0abfc;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cagnotte-total {
  font-size: 1.75rem;
  font-weight: 800;
  color: #a21caf;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.contributions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contribution-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #f5d0fe;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.contribution-amount {
  font-weight: 700;
  color: #c026d3;
  background: #fdf4ff;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #f0abfc;
}

/* ===================================================
   STYLES MODULE COVOITURAGE (WEEK-END & VOYAGE)
=================================================== */
.carpool-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.carpool-card {
  background: #ffffff;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.08);
}

.carpool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.carpool-driver {
  font-weight: 700;
  color: #115e59;
  font-size: 0.95rem;
}

.carpool-departure {
  font-size: 0.85rem;
  color: #0f766e;
  margin-bottom: 0.5rem;
}

.carpool-seats-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.seats-available {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #5eead4;
}

.seats-full {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.carpool-passengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.carpool-passenger-tag {
  font-size: 0.75rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #134e4a;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===================================================
   STYLES WISHLIST SECRÈTE (SECRET SANTA)
=================================================== */
.wishlist-secret-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.target-wishlist-card {
  background: #ffffff;
  border: 1px solid #f43f5e;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #881337;
  line-height: 1.5;
  text-align: left;
}

/* ===================================================
   STYLES PASS FIESTA & SONDAGES (POLLS)
=================================================== */
.fiesta-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fiesta-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #93c5fd;
}

.polls-locked-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.poll-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.poll-question {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--pulsaas-dark);
}

.poll-total-votes {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poll-option-item {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s ease;
  background: #ffffff;
}

.poll-option-item:hover {
  border-color: var(--pulsaas-blue);
}

.poll-option-item.my-vote {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

.poll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #e0f2fe;
  z-index: 1;
  transition: width 0.3s ease;
  opacity: 0.7;
}

.poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.poll-option-text {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.poll-option-stats {
  font-weight: 700;
  color: var(--pulsaas-blue);
  font-size: 0.8rem;
}

.poll-voters {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
}

/* ===================================================
   MODULE DÉGUISEMENTS / COSTUMES HALLOWEEN (BASE)
=================================================== */
.costumes-section {
  border-left: 3px solid #f97316;
}

.costumes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.costume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.costume-item.is-secret {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.costume-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.costume-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.costume-desc {
  font-size: 0.88rem;
  color: #475569;
}

.costume-secret-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f3e8ff;
  color: #7e22ce;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #d8b4fe;
}

/* ===================================================
   INTERFACE MODIFICATION CONTRÔLÉE DE DATE (BASE)
=================================================== */
.date-edit-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.btn-edit-date {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.btn-edit-date:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.date-edits-badge {
  font-size: 0.72rem;
  color: #64748b;
  background: #f8fafc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.edit-date-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  display: none;
}

/* ===================================================
   THÈME HALLOWEEN IMMERSIF (.theme-halloween) - DARK MODE
=================================================== */

/* 1. Fond et Navbar */
body.theme-halloween {
  background: #0b0914;
  color: #f8fafc;
}

body.theme-halloween .navbar {
  background: rgba(15, 12, 27, 0.95);
  border-bottom: 1px solid #201b35;
  backdrop-filter: blur(10px);
}

body.theme-halloween .navbar .brand {
  color: #f8fafc;
}

body.theme-halloween .navbar nav a {
  color: #e2e8f0;
  transition: color 0.15s ease;
}

body.theme-halloween .navbar nav a:hover {
  color: #f97316;
}

body.theme-halloween .app-footer {
  background: #0b0914;
  border-top: 1px solid #201b35;
  color: #94a3b8;
}

body.theme-halloween .app-footer .brand {
  color: #f8fafc;
}

body.theme-halloween .app-footer .footer-desc,
body.theme-halloween .app-footer .footer-copyright {
  color: #94a3b8;
}

body.theme-halloween .app-footer .footer-heading {
  color: #ffffff;
}

body.theme-halloween .app-footer .footer-links a {
  color: #cbd5e1;
}

body.theme-halloween .app-footer .footer-links a:hover {
  color: #f97316;
}

body.theme-halloween .app-footer .footer-contact-btn {
  background: #201b35;
  border-color: #3b3355;
  color: #f8fafc;
}

body.theme-halloween .app-footer .footer-contact-btn:hover {
  background: #2d2547;
  border-color: #f97316;
  color: #f97316;
}

/* 2. Cartes, Conteneurs et Encarts */
body.theme-halloween .card,
body.theme-halloween .section-box,
body.theme-halloween .event-card-subblock {
  background: #161324;
  border: 1px solid rgba(249, 115, 22, 0.25);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 115, 22, 0.08);
  color: #f8fafc;
}

/* Bloc RSVP Halloween */
body.theme-halloween .rsvp-card,
body.theme-halloween #rsvp-section {
  background: #1e1b2e !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #f8fafc !important;
}

body.theme-halloween .event-meta {
  border-bottom-color: #201b35;
}

body.theme-halloween .participants-section,
body.theme-halloween .items-section,
body.theme-halloween .chat-section,
body.theme-halloween .polls-section {
  border-top-color: #201b35;
}

body.theme-halloween .event-description-box {
  background: #201b35;
  color: #f8fafc;
  border: 1px solid #3b3355;
}

body.theme-halloween .empty-state {
  background: #201b35;
  color: #94a3b8;
  border: 1px dashed #3b3355;
}

body.theme-halloween .participant-item,
body.theme-halloween .item-row,
body.theme-halloween .costume-item,
body.theme-halloween .poll-card,
body.theme-halloween #costume-form,
body.theme-halloween .edit-date-box,
body.theme-halloween .chat-container,
body.theme-halloween .wishlist-secret-box,
body.theme-halloween #santa-wishlist-box,
body.theme-halloween .santa-card {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

/* 3. Textes, Titres et Labels */
body.theme-halloween h1,
body.theme-halloween h2,
body.theme-halloween .card-title,
body.theme-halloween .hero h1,
body.theme-halloween .rsvp-title,
body.theme-halloween #rsvp-title {
  color: #f97316 !important;
}

body.theme-halloween h3,
body.theme-halloween h4,
body.theme-halloween strong {
  color: #ffffff;
}

body.theme-halloween label,
body.theme-halloween #rsvp-section label,
body.theme-halloween .rsvp-card label,
body.theme-halloween .form-group label {
  color: #e2e8f0 !important;
  font-weight: 600;
}

body.theme-halloween p,
body.theme-halloween span,
body.theme-halloween .text-muted,
body.theme-halloween .event-meta-item,
body.theme-halloween .label-hint,
body.theme-halloween .tagline,
body.theme-halloween .chat-time,
body.theme-halloween .poll-voters {
  color: #94a3b8;
}

body.theme-halloween .event-meta-item strong {
  color: #ffffff;
}

/* 4. Formulaires & Saisie */
body.theme-halloween input[type="text"],
body.theme-halloween input[type="number"],
body.theme-halloween input[type="datetime-local"],
body.theme-halloween input[type="email"],
body.theme-halloween textarea,
body.theme-halloween select {
  background: #0f0c1b !important;
  color: #ffffff !important;
  border: 1px solid #3b3355 !important;
}

body.theme-halloween input::placeholder,
body.theme-halloween textarea::placeholder {
  color: #64748b;
}

body.theme-halloween input:focus,
body.theme-halloween textarea:focus,
body.theme-halloween select:focus {
  border-color: #f97316 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

/* Boutons Généraux */
body.theme-halloween .btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

body.theme-halloween .btn-primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

body.theme-halloween .btn-secondary {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #e2e8f0;
}

body.theme-halloween .btn-secondary:hover {
  background: #2d2547;
  border-color: #f97316;
  color: #f97316;
}

/* 5. Boutons RSVP sur Fond Sombre */
body.theme-halloween .btn-status {
  background: #161324;
  color: #f8fafc;
}

body.theme-halloween .btn-status-going {
  background: #0f291e !important;
  color: #34d399 !important;
  border: 1px solid #059669 !important;
}

body.theme-halloween .btn-status-going:hover {
  background: #134e3a !important;
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
}

body.theme-halloween .btn-status-going.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

body.theme-halloween .btn-status-maybe {
  background: #2a1f07 !important;
  color: #fbbf24 !important;
  border: 1px solid #d97706 !important;
}

body.theme-halloween .btn-status-maybe:hover {
  background: #453109 !important;
  color: #fde68a !important;
  border-color: #f59e0b !important;
}

body.theme-halloween .btn-status-maybe.active {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

body.theme-halloween .btn-status-declined {
  background: #2b1113 !important;
  color: #f87171 !important;
  border: 1px solid #dc2626 !important;
}

body.theme-halloween .btn-status-declined:hover {
  background: #4c1d21 !important;
  color: #fca5a5 !important;
  border-color: #ef4444 !important;
}

body.theme-halloween .btn-status-declined.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
}

/* Badges de Statut & Pilules Participants */
body.theme-halloween .badge-going {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #059669;
}

body.theme-halloween .badge-maybe {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #d97706;
}

body.theme-halloween .badge-declined {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #dc2626;
}

body.theme-halloween .summary-pill {
  background: #201b35;
  color: #f8fafc;
  border: 1px solid #3b3355;
}

body.theme-halloween .participant-name {
  color: #ffffff;
}

body.theme-halloween .participant-avatar {
  background: #3b3355;
  color: #f97316;
}

/* 6. Module Déguisements Halloween Spécifique */
body.theme-halloween .costumes-section {
  border-left: 3px solid #f97316;
}

body.theme-halloween .costume-item {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

body.theme-halloween .costume-item.is-secret {
  background: #26193d;
  border-color: #6b21a8;
}

body.theme-halloween .costume-author {
  color: #ffffff;
}

body.theme-halloween .costume-desc {
  color: #cbd5e1;
}

body.theme-halloween .costume-secret-tag {
  background: #4c1d95;
  color: #e9d5ff;
  border: 1px solid #7e22ce;
}

body.theme-halloween #costume-form {
  background: #201b35;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

body.theme-halloween #costume-form label {
  color: #f97316;
}

/* 7. Fournitures / À apporter */
body.theme-halloween .item-row {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

body.theme-halloween .item-title {
  color: #ffffff;
}

body.theme-halloween .item-assigned-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

body.theme-halloween .item-assignee {
  color: #94a3b8;
}

/* 8. Discussion / Tchat */
body.theme-halloween .chat-container {
  background: #201b35;
  border: 1px solid #3b3355;
}

body.theme-halloween .chat-tab {
  background: #161324;
  color: #94a3b8;
  border: 1px solid #3b3355;
}

body.theme-halloween .chat-tab.active {
  background: #201b35;
  color: #f97316;
  border-color: #f97316;
}

body.theme-halloween .chat-bubble-other {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

body.theme-halloween .chat-bubble-me {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
}

body.theme-halloween .chat-author {
  color: #f97316;
}

body.theme-halloween .chat-time {
  color: #94a3b8;
}

/* 9. Modification Contrôlée de Date */
body.theme-halloween .btn-edit-date {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #e2e8f0;
}

body.theme-halloween .btn-edit-date:hover {
  background: #2d2547;
  color: #f97316;
  border-color: #f97316;
}

body.theme-halloween .date-edits-badge {
  background: #201b35;
  border: 1px solid #3b3355;
  color: #94a3b8;
}

body.theme-halloween .edit-date-box {
  background: #201b35;
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #f8fafc;
}

body.theme-halloween .edit-date-box label {
  color: #f97316 !important;
}

/* 10. Sondages & Pass Fiesta */
body.theme-halloween #polls-section,
body.theme-halloween .polls-section,
body.theme-halloween .polls-locked-card,
body.theme-halloween #polls-locked-section,
body.theme-halloween .fiesta-banner,
body.theme-halloween #fiesta-upgrade-banner,
body.theme-halloween #fiesta-organizer-banner {
  background: #1e1b2e !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
  color: #f8fafc !important;
}

body.theme-halloween #polls-locked-section strong,
body.theme-halloween .polls-locked-card strong,
body.theme-halloween .fiesta-banner strong {
  color: #ffffff !important;
}

body.theme-halloween #polls-locked-section div,
body.theme-halloween .polls-locked-card div,
body.theme-halloween .fiesta-banner div,
body.theme-halloween .fiesta-banner span {
  color: #cbd5e1 !important;
}

body.theme-halloween .fiesta-badge-active {
  background: #3b2064 !important;
  color: #f97316 !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
}

body.theme-halloween #create-poll-form {
  background: #161324 !important;
  border: 1px solid #3b3355 !important;
  color: #f8fafc;
}

body.theme-halloween #create-poll-form label {
  color: #e2e8f0 !important;
}

body.theme-halloween .poll-card {
  background: #1e1b2e;
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #f8fafc;
}

body.theme-halloween .poll-question {
  color: #f97316;
}

body.theme-halloween .poll-total-votes {
  color: #94a3b8;
}

body.theme-halloween .poll-option-item {
  background: #161324;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

body.theme-halloween .poll-option-item:hover {
  background: #261f3e;
  border-color: #f97316;
}

body.theme-halloween .poll-option-item.my-vote {
  border-color: #f97316;
  box-shadow: 0 0 0 1px #f97316;
}

body.theme-halloween .poll-progress-fill {
  background: rgba(249, 115, 22, 0.25);
}

body.theme-halloween .poll-option-text {
  color: #f8fafc;
}

body.theme-halloween .poll-option-stats {
  color: #f97316;
}

body.theme-halloween .poll-voters {
  color: #94a3b8;
}

body.theme-halloween .badge-halloween {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid #f97316;
}

body.theme-halloween .badge-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #d97706;
}

body.theme-halloween .btn-icon-delete {
  color: #64748b;
}

body.theme-halloween .btn-icon-delete:hover {
  background: #4c1d21;
  color: #f87171;
}

body.theme-halloween .link-box {
  background: #0f0c1b;
  border: 1px solid #3b3355;
}

body.theme-halloween .link-input {
  background: #0f0c1b;
  border: 1px solid #3b3355;
  color: #f8fafc;
}

/* ===================================================
   BANDEAU DE SUCCÈS PAIEMENT STRIPE (.alert-success)
=================================================== */
.alert-success,
#payment-success-alert,
#payment-success-banner {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-success strong,
.alert-success b,
#payment-success-alert strong,
#payment-success-alert b,
#payment-success-banner strong,
#payment-success-banner b {
  color: #ffffff !important;
  font-weight: 700;
}

body.theme-halloween .alert-success,
body.theme-halloween #payment-success-alert,
body.theme-halloween #payment-success-banner {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(16, 185, 129, 0.2);
}

body.theme-halloween .alert-success strong,
body.theme-halloween #payment-success-alert strong,
body.theme-halloween #payment-success-banner strong {
  color: #ffffff !important;
}

/* ===================================================
   BANDEAU D'ANNONCES & PROMO EN HAUT DE PAGE
=================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 40%, #ec4899 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
  z-index: 100;
  transition: all 0.25s ease;
}

.announcement-bar.hidden {
  display: none !important;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding-right: 1.5rem;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.announcement-text {
  font-weight: 500;
}

.announcement-text strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

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

/* ===================================================
   BANDEAU DE COOKIES INFORMATIF (CNIL / STRIPE)
=================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 780px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 10000;
  animation: slideUpCookie 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cookie-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-link {
  color: var(--pulsaas-blue);
  text-decoration: underline;
  margin-left: 0.25rem;
  font-weight: 500;
}

.cookie-actions {
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
    padding: 1rem;
  }
  .cookie-actions {
    text-align: right;
  }
}

body.theme-halloween .cookie-banner {
  background: #161324;
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.theme-halloween .cookie-text {
  color: #cbd5e1;
}

body.theme-halloween .cookie-link {
  color: #f97316;
}

/* ===================================================
   MODALE DE RÉCUPÉRATION MULTI-APPAREILS (MAGIC LINK)
=================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10001;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--pulsaas-dark);
}

.sync-badge-connected {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===================================================
   STYLES D'IMPRESSION & EXPORT PDF (@media print)
=================================================== */
.print-document {
  display: none;
}

@media print {
  /* 1. Masquer tout le site interactif */
  .navbar,
  .app-footer,
  .event-container,
  .container,
  .card,
  main,
  #event-loading,
  #event-error,
  #event-content {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. Afficher uniquement le document synthétique */
  #print-summary,
  .print-document {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2.5px solid #0077b6;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }

  .print-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f2b48;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .print-brand span {
    color: #0077b6;
  }

  .print-badge-tag {
    font-size: 8pt;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
  }

  .print-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2b48;
    margin: 0.35rem 0 0.5rem 0;
  }

  .print-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .print-meta-item strong {
    color: #0077b6;
    font-size: 7.5pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.1rem;
  }

  .print-section {
    margin-bottom: 1.15rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2b48;
    border-bottom: 1.5px solid #cbd5e1;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .print-section-count {
    font-size: 8pt;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-bottom: 0.4rem;
  }

  .print-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-align: left;
    padding: 0.4rem 0.55rem;
    border: 1px solid #cbd5e1;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .print-table td {
    padding: 0.4rem 0.55rem;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
  }

  .print-table tr:nth-child(even) td {
    background: #fbfcfe;
  }

  .print-status-tag {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 7.5pt;
    font-weight: 700;
  }

  .print-status-going {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
  }

  .print-status-maybe {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
  }

  .print-status-declined {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
  }

  .print-assigned-tag {
    font-weight: 700;
    color: #0369a1;
  }

  .print-unassigned-tag {
    color: #94a3b8;
    font-style: italic;
  }

  .print-footer {
    border-top: 1px solid #cbd5e1;
    padding-top: 0.5rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7.5pt;
    color: #64748b;
  }
}

/* ===================================================
   PLAY-ME — STYLES D'INTERFACE & SALONS EN DIRECT
   =================================================== */

.theme-playme {
  background: radial-gradient(circle at 50% 0%, #f3e8ff 0%, #fdf4ff 40%, #f8fafc 85%);
  color: #1e1b4b;
}

.play-main-container {
  max-width: 680px;
  width: 100%;
}

.nav-link-saas {
  font-size: 0.9rem;
  color: #6b21a8;
  font-weight: 600;
  text-decoration: none;
}

.badge-play-pill {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.alert-box {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* 1. VUE ACCUEIL (#view-home) */
.hero-header {
  text-align: center;
  margin-bottom: 2rem;
}

.badge-hero-tag {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4c1d95;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.play-card-home {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e9d5ff;
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.12);
  padding: 2rem 1.75rem;
}

.card-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #3b0764;
  margin-bottom: 1.25rem;
  text-align: center;
}

.join-form .form-group {
  margin-bottom: 1.25rem;
}

.join-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 0.4rem;
}

.join-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e9d5ff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.join-form input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-join {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #a855f7;
  font-size: 0.85rem;
  font-weight: 800;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #d8b4fe;
}

.divider-text span {
  padding: 0 0.8rem;
}

.btn-create-host {
  background: #faf5ff;
  color: #7e22ce;
  border: 2px dashed #c084fc;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-create-host:hover {
  background: #f3e8ff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .home-features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: #ffffff;
  border: 1px solid #f3e8ff;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.feature-item strong {
  font-size: 0.9rem;
  color: #3b0764;
}

.feature-item small {
  font-size: 0.78rem;
  color: #6b21a8;
}

/* 2. VUE HUB & SALON (#view-hub) */
.hub-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-host {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
}

.badge-guest {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
}

.btn-leave {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-leave:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.room-code-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 2px solid #e9d5ff;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.1);
}

.room-code-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c3aed;
  margin-bottom: 0.25rem;
}

.room-code-display {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #4c1d95;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.25rem 0;
  line-height: 1.1;
  font-family: monospace, sans-serif;
}

.room-code-hint {
  font-size: 0.88rem;
  color: #6b21a8;
  margin-bottom: 1.25rem;
}

.room-actions-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: #f5f3ff;
  border-color: #c084fc;
}

/* Modale QR Code */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.qr-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 0.75rem auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.qr-code-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #5b21b6;
}

.modal-footer-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
}

/* Joueurs connectés */
.hub-players-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e9d5ff;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.card-subtitle {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3b0764;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: all 0.15s ease;
}

.player-card.is-me {
  background: #fdf4ff;
  border-color: #f0abfc;
  box-shadow: 0 0 0 1px #e879f9;
}

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.player-details {
  flex: 1;
  min-width: 0;
}

.player-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-host {
  font-size: 0.68rem;
  font-weight: 700;
  color: #be185d;
}

.status-online {
  font-size: 0.68rem;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.player-score-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: #6b21a8;
}

/* Grille des modules (Hôte) */
.hub-host-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e9d5ff;
  padding: 1.5rem;
}

.badge-host-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.section-desc {
  font-size: 0.88rem;
  color: #6b21a8;
  margin-bottom: 1.25rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.module-card {
  position: relative;
  background: #faf5ff;
  border: 2px solid #f3e8ff;
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #c084fc;
  box-shadow: 0 6px 15px -3px rgba(139, 92, 246, 0.15);
}

.module-card.selected {
  border-color: #8b5cf6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 8px 18px -4px rgba(139, 92, 246, 0.2);
}

.module-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.module-badge.badge-game {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.module-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.module-title {
  font-size: 1rem;
  font-weight: 800;
  color: #3b0764;
  margin-bottom: 0.25rem;
}

.module-desc {
  font-size: 0.82rem;
  color: #6b21a8;
  line-height: 1.4;
}

.host-launch-bar {
  margin-top: 1rem;
}

.btn-launch {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.btn-launch:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-launch:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

/* Attente Invité */
.hub-guest-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e9d5ff;
}

.waiting-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3e8ff;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  animation: spin 1s linear infinite;
}

.waiting-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3b0764;
  margin-bottom: 0.35rem;
}

.waiting-desc {
  font-size: 0.92rem;
  color: #6b21a8;
  margin-bottom: 1.25rem;
}

.selected-module-pill {
  display: inline-block;
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  color: #86198f;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
}

/* 3. VUE JEU ACTIF (#view-game) */
.game-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-module-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #3b0764;
}

.btn-back-hub {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-hub:hover {
  background: #f5f3ff;
  border-color: #c084fc;
}

/* Mini-Jeu 1 : Buzzer */
.buzzer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.buzzer-button {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef4444 0%, #b91c1c 70%, #7f1d1d 100%);
  border: 8px solid #fca5a5;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45), inset 0 -8px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  user-select: none;
  outline: none;
}

.buzzer-button:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.55);
}

.buzzer-button:active:not(:disabled) {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.buzzer-button.buzzed {
  background: radial-gradient(circle at 35% 30%, #10b981 0%, #047857 70%, #064e3b 100%);
  border-color: #6ee7b7;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  cursor: default;
}

.buzzer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.buzzer-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.buzzer-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buzzer-leaderboard-card {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e9d5ff;
  padding: 1.25rem;
}

.buzzer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.buzzer-rank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #faf5ff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.buzzer-rank-item.first {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 1.05rem;
}

.module-card.locked {
  opacity: 0.65;
  cursor: not-allowed;
  border-style: dashed;
  background: #faf5ff;
}

.module-card.locked:hover {
  transform: none;
  border-color: #cbd5e1;
  box-shadow: none;
}

.module-badge.badge-locked {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.buzzer-time-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6b21a8;
  background: #ffffff;
  border: 1px solid #d8b4fe;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: auto;
}

.buzzer-rank-name {
  flex: 1;
}

.waiting-players-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border: 2px dashed #d8b4fe;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.waiting-players-card h3 {
  color: #581c87;
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.waiting-players-card p {
  color: #6b21a8;
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 1.25rem auto;
}

.buzzer-rank-badge {
  font-weight: 800;
}

.buzzer-empty {
  text-align: center;
  color: #6b21a8;
  font-style: italic;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Mini-Jeu 2 : Dés & Roulettes & Dé Personnalisé */
.dice-wheel-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dice-panel-card,
.wheel-panel-card,
.custom-dice-card {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.dice-panel-card,
.wheel-panel-card {
  text-align: center;
}

.custom-dice-card {
  text-align: left;
}

.panel-desc {
  font-size: 0.88rem;
  color: #6b21a8;
  margin-bottom: 1rem;
}

.dice-buttons-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-roll-dice {
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Configurateur de Dé Personnalisé */
.custom-dice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.custom-dice-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #581c87;
  font-size: 1.15rem;
  font-weight: 800;
}

.dice-name-input-group {
  margin-bottom: 1rem;
}

.dice-name-input-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b21a8;
  margin-bottom: 0.35rem;
  display: block;
}

.dice-name-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #d8b4fe;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b0764;
  background: #faf5ff;
  box-sizing: border-box;
}

.dice-name-input:focus {
  border-color: #a855f7;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.presets-container {
  margin-bottom: 1rem;
}

.presets-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7e22ce;
  margin-bottom: 0.4rem;
  display: block;
}

.presets-grid {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-preset {
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-preset:hover {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #7c3aed;
  transform: translateY(-1px);
}

.faces-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faces-count-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #581c87;
}

.faces-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-stepper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stepper:hover:not(:disabled) {
  background: #a855f7;
  color: #ffffff;
}

.btn-stepper:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.faces-count-badge {
  font-weight: 800;
  font-size: 0.95rem;
  color: #7e22ce;
  min-width: 24px;
  text-align: center;
}

.custom-faces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .custom-faces-grid {
    grid-template-columns: 1fr;
  }
}

.custom-face-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
}

.face-number-tag {
  font-weight: 800;
  font-size: 0.75rem;
  color: #8b5cf6;
  background: #ffffff;
  border: 1px solid #d8b4fe;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}

.face-text-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3b0764;
  outline: none;
  padding: 0.2rem 0;
}

.face-text-input:focus {
  color: #000000;
}

.btn-roll-custom {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-roll-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.custom-result-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  margin-top: 0.4rem;
}

.btn-spin {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.result-card {
  background: linear-gradient(135deg, #fdf4ff 0%, #ffffff 100%);
  border: 2px solid #f0abfc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.result-author {
  font-size: 0.85rem;
  color: #86198f;
  margin-bottom: 0.35rem;
}

.result-highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: #701a75;
}

.history-card {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  background: #faf5ff;
  border-radius: 4px;
}

.history-value {
  color: #7c3aed;
  font-weight: 700;
}

/* Mini-Jeu 3 : Tableau de scores */
.scoreboard-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scoreboard-card {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.scores-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #faf5ff;
  border-radius: var(--radius-sm);
}

.score-row.leader {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.score-rank {
  font-size: 1.25rem;
  font-weight: 800;
}

.score-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e1b4b;
}

.score-points {
  font-size: 1.1rem;
  color: #7c3aed;
  min-width: 60px;
  text-align: right;
}

.score-controls {
  display: flex;
  gap: 0.35rem;
}

.btn-score-ctrl {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-score-ctrl:hover {
  background: #f3e8ff;
}

/* Mini-Jeu 4 & 5 : L'Imposteur & Saboteur */
.secret-word-card,
.saboteur-role-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.card-impostor,
.card-traitor {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px solid #f43f5e;
  color: #9f1239;
}

.card-crew,
.card-loyal {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  color: #166534;
}

.role-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.secret-word-display {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0.75rem 0;
}

.role-instruction {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

.impostor-rules-card,
.mission-card {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.rules-list {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #4c1d95;
  line-height: 1.6;
}

.mission-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b0764;
  margin: 0.35rem 0;
}

/* Style lecture seule pour les invités sur les dés */
.custom-face-item.face-item-readonly {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.9;
}

.custom-face-item.face-item-readonly .face-text-input {
  cursor: not-allowed;
  color: #64748b;
}

/* Boutons scores avancés */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reset-all {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.55rem !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
  cursor: pointer;
}

.btn-reset-all:hover {
  background: #fee2e2 !important;
}

.btn-score-ctrl.btn-score-custom {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}

.btn-score-ctrl.btn-score-zero {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Révélation de fin de manche / tour */
.card-revealed {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%) !important;
  border: 2px solid #eab308 !important;
  color: #713f12 !important;
}

.revealed-header-title {
  color: #854d0e;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.revealed-result-box {
  font-size: 1.15rem;
  font-weight: 700;
  color: #713f12;
  margin: 0.5rem 0;
}

.revealed-highlight {
  font-weight: 900;
  color: #b45309;
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #fde047;
  display: inline-block;
}

.round-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

/* Carte de contrôle de l'hôte */
.host-controls-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.host-controls-card h4 {
  color: #5b21b6;
  font-size: 1rem;
  font-weight: 800;
}

.host-controls-grid {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.host-controls-grid .btn {
  flex: 1;
  min-width: 180px;
}

.btn-reveal {
  background: #ffffff !important;
  color: #7c3aed !important;
  border: 1px solid #c4b5fd !important;
}

.btn-reveal:hover {
  background: #f3e8ff !important;
}

.btn-next-round {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #ffffff !important;
}

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

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

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}