@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;
}

/* ===================================================
   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;
  }
}