/* ==========================================================================
   page.css — styles de la page publique (index.html)
   Ce fichier est utilisé par index.html, régénéré depuis admin_page.php.
   Tu peux le modifier librement : la génération ne l'écrase jamais.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

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

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background-color: #14110f;
  color: #333333;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* En-tête / Layout global */
.event-wrapper {
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 850px) {
  .event-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Cartes & Conteneurs */
.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  overflow: hidden;
}

.sidebar-flyer-wrapper {
  position: relative;
  width: 100%;
  background-color: #111;
  overflow: hidden;
}

.sidebar-flyer {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.organizer-box {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.organizer-avatar {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.organizer-info .name {
  font-weight: 700;
  color: #ff4757;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  transition: color 0.2s;
}

.organizer-info .name:hover {
  color: #e03040;
  text-decoration: underline;
}

.organizer-info .type {
  font-weight: 600;
  font-size: 0.88rem;
  color: #4b5563;
  margin-top: 2px;
}

.organizer-info .category {
  font-size: 0.82rem;
  color: #888888;
}

.sidebar-section {
  padding: 18px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff4757;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title .count {
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.info-item {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.info-details .label {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-details .text {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
}

.info-details a.text {
  color: #ff4757;
  text-decoration: none;
  font-weight: 600;
}

.info-details a.text:hover {
  text-decoration: underline;
}

/* Liste de participants (1 par ligne) */
.participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.participant-name {
  background-color: #f9fafb;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  border: 1px solid #f3f4f6;
  transition: background-color 0.2s, color 0.2s;
}

.participant-name:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Styles pour les sections de participants */
.participant-category {
  margin-bottom: 12px;
}

.participant-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Masquer la petite flèche native du navigateur */
.category-title::-webkit-details-marker {
  display: none;
}

.category-title:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

/* Style quand l'accordéon est ouvert */
.participant-category[open] .category-title {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  margin-bottom: 8px;
}

.category-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title.couples { color: #a855f7; }
.category-title.femmes { color: #ec4899; }
.category-title.hommes { color: #3b82f6; }
.category-title.trans  { color: #eab308; }

.category-count {
  background-color: #ffffff;
  color: #4b5563;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.chevron {
  font-size: 0.75rem;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.participant-category[open] .chevron {
  transform: rotate(180deg);
}

.participant-category[open] .participants-list {
  animation: fadeIn 0.3s ease-in-out;
}

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

.main-banner-container {
  position: relative;
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #8b6508 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-banner-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.main-content {
  padding: 24px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.event-date {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}



.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.event-meta a {
  color: #ff4757;
  font-weight: 600;
  text-decoration: none;
}

.event-meta a:hover {
  text-decoration: underline;
}

/* Style du logo inséré sous la bannière principale */
.header-logo {
  display: block;
  max-width: 400px; /* Taille augmentée pour être bien visible */
  max-height: 240px; /* Hauteur augmentée */
  width: auto;
  height: auto;
  margin: 20px auto 10px auto;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Grid des Tarifs */
.pricing-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  text-align: center;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.price-box {
  flex: 0 1 160px;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.price-box .amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.price-box .tag {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.tag-couples { color: #a855f7; }
.tag-femmes { color: #ec4899; }
.tag-hommes { color: #3b82f6; }
.tag-trans { color: #eab308; }

/* ====================================================================
   BLOC INSCRIPTION (ajouté)
   ==================================================================== */
.cta-box {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.cta-box .cta-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.cta-box .cta-sub {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-inscription {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ff4757;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-inscription:hover {
  background-color: #e03040;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.4);
}

.btn-inscription:active { transform: translateY(1px); }

.btn-inscription--sidebar {
  width: 100%;
  font-size: 0.95rem;
  padding: 13px 20px;
}

.liste-vide {
  font-size: 0.88rem;
  color: #9ca3af;
  padding: 12px 14px;
  font-style: italic;
}

/* Description & Filigrane arrière-plan */
.description-box {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Filigrane en arrière-plan strictement confiné au bloc du descriptif */
.description-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('logo.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% auto;
  opacity: 0.08; /* Filigrane discret qui préserve la lisibilité du texte */
  pointer-events: none;
  z-index: 1;
}

.description-content {
  position: relative;
  z-index: 2;
}

.badge-prive {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ==========================================================================
   Retour vers la liste des soirées — sous l'encadré des participants
   ========================================================================== */
.retour-liste {
  margin-top: -6px;
  margin-bottom: 20px;
  text-align: center;
}

.retour-liste a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.retour-liste a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* ==========================================================================
   Moyens de paiement
   ========================================================================== */
.paiements {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  margin-bottom: 28px;
  text-align: center;
}

.paiements-titre {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
}

.paiements-boutons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  color: #ffffff;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.12s;
}

.pay:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pay:active { transform: translateY(1px); }

.pay-marque { font-weight: 800; letter-spacing: 0.2px; }
.pay-billet { font-size: 1.15rem; line-height: 1; }

.pay--paypal { background: #0070ba; box-shadow: 0 3px 10px rgba(0, 112, 186, 0.35); }
.pay--paypal .pay-marque { font-style: italic; font-size: 1.08rem; }

.pay--wero { background: #f57c00; box-shadow: 0 3px 10px rgba(245, 124, 0, 0.35); }
.pay--wero .pay-marque { font-size: 1.12rem; text-transform: lowercase; letter-spacing: 0.5px; }

.pay--rib { background: #16a34a; box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35); }

/* ---- Fenêtre de paiement ---- */

.paiements-reference {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  line-height: 1.5;
  display: inline-block;
  max-width: 520px;
}

/* ---- Fenêtre de paiement ---- */
.pay-voile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 17, 15, 0.78);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay-voile.ouvert { display: flex; }

.pay-fenetre {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.pay-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 800;
  color: #111827;
  font-size: 1rem;
}

.pay-fermer {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.pay-fermer:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

.pay-corps { padding: 20px; }

.pay-mode {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 18px;
  text-align: center;
}

.pay-champ { margin-bottom: 16px; }

.pay-champ label {
  display: block;
  font-weight: 700;
  color: #111827;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.pay-ligne { display: flex; gap: 8px; }

.pay-ligne input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  font-size: 0.92rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  color: #111827;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.pay-copier {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #ff4757;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
}

.pay-copier:hover { background: #e03040; }
.pay-copier.copie { background: #16a34a; }

.pay-note {
  font-size: 0.82rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 560px) {
  .pay { width: 100%; }
}

/* ==========================================================================
   Jauge des participants
   ========================================================================== */
.jauge-bloc { margin: -6px 0 14px 0; }

.jauge {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.jauge i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transition: width 0.4s ease;
}

.jauge-bloc.presque .jauge i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.jauge-bloc.complet .jauge i { background: linear-gradient(90deg, #dc2626, #f87171); }

.jauge-texte {
  margin-top: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
}

.jauge-bloc.presque .jauge-texte { color: #b45309; }
.jauge-bloc.complet .jauge-texte { color: #b91c1c; }

/* ==========================================================================
   Bloc date et heure — bandeau pleine largeur
   ========================================================================== */
.event-date-bloc {
  display: flex; align-items: center; gap: 20px; width: 100%; flex-wrap: wrap;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 20px;
}

.date-vignette {
  flex: 0 0 76px; width: 76px; border-radius: 10px; overflow: hidden;
  background: #ffffff; border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); text-align: center;
}

.date-mois {
  background: linear-gradient(135deg, #b8860b, #ffd700 55%, #8b6508);
  color: #ffffff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 5px 2px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.date-jour { font-size: 2rem; font-weight: 800; color: #111827; line-height: 1.05; padding: 6px 2px 0; }
.date-annee { font-size: 0.72rem; font-weight: 700; color: #9ca3af; padding: 0 2px 7px; letter-spacing: 0.5px; }

.date-infos { flex: 1 1 240px; min-width: 0; }
.date-titre { font-size: 1.24rem; font-weight: 600; color: #374151; line-height: 1.3; }
.date-semaine { font-weight: 800; color: #111827; text-transform: capitalize; }

.date-droite { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }

.date-heure {
  display: inline-block; background: #fff1f2; border: 1px solid #fecdd3; color: #ff4757;
  font-size: 0.9rem; font-weight: 800; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}

.date-compte { font-size: 0.82rem; font-weight: 700; color: #15803d; white-space: nowrap; }
.date-compte.proche { color: #b45309; }
.date-compte.passe { color: #9ca3af; font-weight: 600; }

.event-date-simple {
  font-weight: 700; font-size: 1.05rem; color: #111827; text-align: center;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 20px;
}

@media (max-width: 620px) {
  .event-date-bloc { gap: 14px; padding: 14px; }
  .date-vignette { flex-basis: 62px; width: 62px; }
  .date-jour { font-size: 1.7rem; }
  .date-titre { font-size: 1.05rem; }
  .date-droite { flex: 1 1 100%; align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   Titre principal
   ========================================================================== */
.event-title {
  display: block;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  font-weight: bold;
  color: #111827;
  line-height: 1.25;
  letter-spacing: 0.3px;
  margin: 0 0 12px 0;
  text-wrap: balance;
}

.titre-ornement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto 22px auto;
}

.titre-ornement--haut { margin: 6px auto 12px auto; }

.titre-ornement i {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(184, 134, 11, 0), #e0b52e, rgba(184, 134, 11, 0));
}

.titre-ornement b {
  flex: 0 0 auto;
  color: #c9a227;
  font-size: 0.62rem;
  letter-spacing: 3px;
  font-weight: 400;
  line-height: 1;
}

/* ==========================================================================
   Tarif gratuit
   ========================================================================== */
.price-box .amount--gratuit {
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}

.amount--gratuit span {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: bold;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0.4px;
  color: #15803d;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 3px 20px;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.14);
}

/* ==========================================================================
   Emblèmes : type de soirée et catégorie
   ========================================================================== */
.emblemes {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid #f0f0f0;
}

.embleme {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid;
}

.embleme::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px; bottom: 3px; left: 3px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.embleme-ico { font-size: 0.95rem; line-height: 1; }

.embleme-texte {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.embleme--privee {
  background: linear-gradient(135deg, #b8860b, #ffd700 50%, #8b6508);
  color: #ffffff; border-color: #8b6508;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.embleme--secrete {
  background: linear-gradient(135deg, #1f2937, #111827 55%, #0b0f16);
  color: #e0b52e; border-color: #e0b52e;
}
.embleme--secrete::after { border-color: rgba(224, 181, 46, 0.35); }

.embleme--categorie {
  background: linear-gradient(135deg, #15803d, #22c55e 50%, #14532d);
  color: #ffffff; border-color: #14532d;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}
.embleme--categorie::after { border-color: rgba(255, 255, 255, 0.32); }

