
/* ════════════════════════════════
   SPLASH SCREEN
   ════════════════════════════════ */

/* Conteneur */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0f0310;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* QR Code */
.splash-qr {
  width: 120px;
  height: 120px;
  opacity: 1;
}

.splash-qr img {
  width: 100%;
  height: 100%;
}

/* Titre */
.splash-title {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.splash-drop {
  font-size: 2.5rem;
  font-weight: 700;
}

.splash-ta {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

.splash-vibe {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Loader 3 points */
.splash-loader {
  display: flex;
  gap: 8px;
}

.splash-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: splashDot 1.2s ease-in-out infinite;
}

.splash-loader span:nth-child(2) { animation-delay: 0.2s; }
.splash-loader span:nth-child(3) { animation-delay: 0.4s; }


/* ════════════════════════════════
   TERMS OF CONSENT
   ════════════════════════════════ */
#termsOffcanvas {
  background: #000;               
  color: #fff;
  z-index: 10500 !important;
}

/* Titre du header */
#termsOffcanvas .offcanvas-header .title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

/* Texte principal en italique */
#termsOffcanvas .terms-message {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}
#termsOffcanvas .terms-message a {
  color: #C2185B;
  text-decoration: underline;
}

/* Checkbox collée au label */
#termsOffcanvas .form-check {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* aligné à droite */
  gap: 0.5rem;
  margin-bottom: 1rem;
}
#termsOffcanvas .form-check-input {
  margin: 0;
  flex-shrink: 0;
}
#termsOffcanvas .form-check-label {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: #fff;
  line-height: 1.4;
}

/* Bouton */
#termsOffcanvas .btn-vibe {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}


/* ════════════════════════════════
   FIRST USER
   ════════════════════════════════ */

#firstProfileOffcanvas {
  background: #1a1a1a;
  color: #fff;
}
#firstProfileOffcanvas .vibes-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
}
#firstProfileOffcanvas .vibes-subtitle {
    font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
#firstProfileOffcanvas .vibes-btn {
  background: transparent;
  border: 2px solid #C2185B;
  color: #C2185B;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
#firstProfileOffcanvas .vibes-btn:hover {
  background: #C2185B;
  color: #fff;
}


/* Croix de fermeture - toujours au-dessus de la carte */
.btn-close-welcome {
  z-index: 10;        /* ajouté pour passer au-dessus de la carte */
}

/* Carte compacte */
.welcome-card--compact {
  max-width: 380px;
  padding: 20px;
  margin-top: 0;       /* plus besoin de margin-top excessif */
}

/* Titre agrandi */
.welcome-title--large {
  font-size: 2rem;
  margin-bottom: 24px;
  margin-top: 0;       /* éviter un décalage inutile */
}

/* Liste des features resserrée */
.discovery .welcome-features--tight {
  gap: 8px;
}

/* Bouton espacé de la liste */
.discovery .btn-welcome--spaced {
  margin-top: 24px;
}

/* ════════════════════════════════
   ANIMATIONS
   ════════════════════════════════ */

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splashDot {
  0%, 100% { transform: translateY(0);    opacity: 0.4; }
  50%       { transform: translateY(-6px); opacity: 1;   }
}


/* Overlay premier pas */
.firststep-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.firststep-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.firststep-tags .theme-tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.firststep-tags .theme-tag-btn:hover {
  background: rgba(255, 80, 162, 0.15);
  border-color: rgba(255, 80, 162, 0.3);
  color: #ff50a2;
}

/* ════════════════════════════════
   AUTRES (hors splash)
   ════════════════════════════════ */

/* Suppression visuelle item liste */
.explore-item.removing {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* ════════════════════════════════
   ANIMATIONS
   ════════════════════════════════ */
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}
@keyframes splashDot {
  0%, 100% { transform: translateY(0);    opacity: 0.4; }
  50%      { transform: translateY(-6px); opacity: 1;   }
}

/* Suppression visuelle item liste */
.explore-item.removing {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ════════════════════════════════════════════════
   DISCOVERY PAGE – SWIPER D'AVATARS RONDS
   ════════════════════════════════════════════════ */

/* ----- Base : fond gradient bleu profond → noir ----- */
.discovery {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(50, 80, 160, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 80, 162, 0.10), transparent 50%),
    linear-gradient(160deg, #0a1630 0%, #060b1a 45%, var(--abyss) 100%);
  background-attachment: fixed;
}

/* Cercles décoratifs flous d'ambiance */
.discovery::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -20%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 80, 162, 0.06);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 80, 162, 0.06), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 8s ease-in-out infinite;
}
.discovery::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: -10%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(102, 126, 234, 0.06);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 110, 220, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 10s ease-in-out infinite reverse;
}

.discovery .geometric-line {
  position: fixed;
  top: 30%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
  z-index: 0;
  animation: pulse-line 6s ease-in-out infinite;
}
.discovery .geometric-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(255, 80, 162, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: pulse-dot 4s ease-in-out infinite;
}
.discovery .dot-1 { top: 20%; left: 15%; animation-delay: 0s; }
.discovery .dot-2 { top: 60%; right: 20%; animation-delay: 1.3s; }
.discovery .dot-3 { bottom: 30%; left: 25%; animation-delay: 2.6s; }

@keyframes pulse-slow {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.05); opacity: 1; }
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.03; }
  50%      { opacity: 0.1; }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 0.15; box-shadow: 0 0 0 0 rgba(255,80,162,0.2); }
  50%      { transform: scale(1.5); opacity: 0.4;  box-shadow: 0 0 12px 3px rgba(255,80,162,0.4); }
}

/* ----- Filtre Header ----- */
.filter-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* ----- Page Content ----- */
.discovery .page-content {
  padding-top: 60px;
  padding-bottom: 100px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ----- Explore Header ----- */
.discovery .explore-header {
  padding: 20px 24px 12px;
  text-align: center;
  position: relative;
}
.discovery .explore-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0.9;
  gap: 0px;
}

.discovery .vibin-text {
  align-self: flex-start;
  margin-left: 70px;
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2; 
}

.discovery .bar-name-highlight {
  color: #C2185B;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
  font-size: 2rem;
  line-height: 1.2; 
}
.discovery .explore-header-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #C2185B;
  margin-top: 4px;
}

/* ---- Tags de badges (clubs) version discrète ---- */
.badge-tags-section {
  text-align: center;
}

.badge-tags-container {
  margin: 0 auto;
}

.badge-tags-intro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #C2185B;
  margin-top: 4px;
  margin-bottom: 6px;
}

.badge-tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.badge-tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.badge-tag-btn:hover {
  background: rgba(255, 80, 162, 0.15);
  border-color: rgba(255, 80, 162, 0.3);
  color: #C2185B;
}

.badge-tags-toggle {
  position: absolute;
  right: 6px;
  top: 2px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}
.badge-tags-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ----- Bouton flottant switch online ----- */
.discovery .floating-btn--switch {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #C2185B;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
}
.discovery .floating-btn--switch:hover {
  background: #e0488f;
}

/* ════════════════════════════════════════════════
   SWIPER DISCOVERY – AVATARS RONDS
   ════════════════════════════════════════════════ */
.discovery-swiper {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
}

.discovery-swiper .swiper-wrapper {
  align-items: center;
}

.discovery-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

  /* Wrapper pour aligner le pseudo et le like côte à côte, centrés */
  .swipe-name-like-wrapper {
    display: flex;
    align-items: baseline; /* aligne le texte et l'icône sur la ligne de base */
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
  }

  /* Bloc like dans le swipe */
  .swipe-like-block {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .swipe-like-icon {
    width: 14px;
    height: 14px;
    filter: grayscale(1);
    transition: filter 0.3s;
  }
  .swipe-like-icon.liked {
    filter: none;
  }
  .swipe-likes-count {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #C2185B;
  }

#infoLikeContainer .like-icon {
  width: 18px;
  height: 18px;
}

.info-name-like-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
   margin-bottom: 10px;  
  /* aucune marge négative */
}
.info-name-like-wrapper .action-name {
  margin-bottom: 0; /* on garde 0 pour éviter un espace trop grand sous le nom */
}

/* Carte profil */
.discovery .explore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.discovery .explore-item:hover {
  transform: scale(1.05);
}

/* Conteneur des icônes d'action sous le pseudo */
.explore-item .profile-actions {
  display: flex;           /* reste en flux normal, pas de position absolute */
  gap: 5px;
  margin-top: 0px;         /* petit espace après le nom */
}

/* Style des icônes */
.profile-action-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  padding: 6px;
  transition: background 0.2s;
}
.profile-action-icon:hover {
  background: transparent;
}

/* Animation de swing pour l'icône de demande de chat entrante */
.profile-action-icon.icon-chat-incoming {
  animation: iconSwing 1.2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes iconSwing {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(12deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

.pointer {
  cursor: pointer;
}

/* ════════════════════════════════════════════════
   SWIPER DISCOVERY – AVATARS RONDS
   ════════════════════════════════════════════════ */
.discovery-swiper {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
}

.discovery-swiper .swiper-wrapper {
  align-items: center;
}

.discovery-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
}
/* =============================================
   CARTE DE SORTIE (OUTING CARD) – VERSION FINALE
   ============================================= */

/* ---------- SWIPER & CELL ---------- */
.outings-swiper .swiper-slide {
  height: auto;
}
.outings-swiper .quiz-cell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- CARTE ELLE-MÊME ---------- */
.outings-swiper .outing-card {
  position: relative;     
  background-color: transparent;
  background-image: var(--outing-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Overlay sombre */
.outing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Conteneur interne au-dessus de l'overlay */
.outing-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---------- PLACEHOLDER "+" ---------- */
.outings-swiper .quiz-cell.outings-placeholder-bg {
  background-image: url('/assets/images/outgoings/outgoings.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.outings-plus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 2.5rem;
  color: #C2185B;
  font-weight: 700;
  line-height: 1;
}

/* ---------- ORGANISATEUR (avatar + nom) ---------- */
.outing-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.outing-names {
  display: flex;
  flex-direction: column;
  padding-left: 8px;          /* Alignement uniforme avec l’avatar */
}
.outing-organizer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  /* margin-left supprimé */
}
.outing-title-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 3px;            /* Léger espace après le nom de l’organisateur */
  /* margin-left supprimé */
}
.outing-datetime-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 1px;            /* Très léger espace après l’intitulé */
  /* margin-left supprimé */
}

/* ---------- PRIX (au-dessus des tags) ---------- */
.outing-price-wrapper {
  display: flex;
  justify-content: flex-end;   /* aligne le cercle à droite */
  margin: 8px 10px 4px 0;      /* petite marge à droite */
}

.outings-swiper.viewing-participants .swiper-wrapper {
  align-items: flex-start;        /* évite le centrage vertical qui peut compresser */
  padding-top: 10px;
}

/* Animation combinée flip + swing */
@keyframes flipSwing {
  0%   { transform: perspective(400px) rotateY(0deg) rotateZ(0deg); }
  20%  { transform: perspective(400px) rotateY(180deg) rotateZ(0deg); }
  40%  { transform: perspective(400px) rotateY(180deg) rotateZ(0deg); }
  60%  { transform: perspective(400px) rotateY(360deg) rotateZ(0deg); }
  70%  { transform: perspective(400px) rotateY(360deg) rotateZ(-10deg); }
  80%  { transform: perspective(400px) rotateY(360deg) rotateZ(10deg); }
  90%  { transform: perspective(400px) rotateY(360deg) rotateZ(-5deg); }
  100% { transform: perspective(400px) rotateY(360deg) rotateZ(0deg); }
}

/* Cercle prix */
.outing-price-circle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed #C2185B;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 80, 162, 0.15) 2px,
    rgba(255, 80, 162, 0.15) 4px
  );
  flex-shrink: 0;
  animation: flipSwing 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* ---------- TAGS ---------- */
.outing-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  overflow: hidden;
  max-height: 60px;
}
.outing-themes .badge-vibes {
  font-size: 0.6rem;
  padding: 2px 6px;
  margin-bottom: 6px;
}

/* ---------- BOUTON ---------- */
.outing-bottom {
  margin-top: auto;
}
.outing-participate-btn {
  position: relative;    
  z-index: 10;   
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* supprime le délai de 300 ms sur mobile */
  user-select: none;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border: none;
  border-top: 1px solid rgba(255, 80, 162, 0.25);
  color: #C2185B;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 10px 0;
}
.outing-participate-btn:hover {
  background: rgba(0, 0, 0, 0.40);
  color: #ff80c0;
}
.outing-participate-btn.pending {
  background: rgba(255, 80, 162, 0.15);
  color: #ff80c0;
    cursor: default;
}
.outing-participate-btn.cancelled {
  background: rgba(255, 0, 0, 0.15) !important;
  color: #ff4444 !important;
    cursor: default;
}

.outing-participate-btn.validated {
  background: rgba(255, 80, 162, 0.15);
  color: #ff80c0;
  cursor: default;
}

/* ---------- PARTICIPANTS (espace pour le bouton Retour) ---------- */
#participantsSwiperWrapper {
  padding-top: 20px;
}

.participant-back-circle {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.participant-back-arrow {
  font-size: 2rem;
  color: #C2185B;
}
.participant-empty {
  opacity: 0.6;
}
.participant-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.participant-status-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
}
.participant-status-icon.icon-hourglass {
  animation: spin360 2s linear infinite;
}
.participant-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.participant-action-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: rgba(255, 80, 162, 0.15);
  border-radius: 6px;
  padding: 5px;
  transition: background 0.2s;
}
.participant-action-icon:hover {
  background: rgba(255, 80, 162, 0.35);
}

/* ---------- OFFCANVAS ---------- */
#outingParticipateCanvas .action-compat {
  font-weight: 400;
  margin-top: 20px;
}
.become-member-link {
  color: #C2185B;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.become-member-link:hover {
  color: #ff80c0;
}
.pending-participants-canvas {
  height: auto !important;
  min-height: auto !important;
  max-height: 40vh !important;
}

.community-chat-btn .chat-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* Vignette boutique Vibes (même style que la carte Personnalité) */
.vibes-shop-section {
  width: 100%;
  margin-bottom: 16px;
}

.vibes-shop-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111118;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vibes-shop-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,80,162,0.5);
}

.vibes-shop-img {
  width: 100%;
  height: calc(((100vw - 48px) / 2.2) * 1.5);
  max-height: 330px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Superposition du texte sur l'image, comme pour la personnalité */
.vibes-shop-card .quiz-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vibes-shop-card .quiz-info::before {
  display: none;
}

.bottom-spacer {
  height: 100px;
}

/* ════════════════════════════════════════════════
   AVATAR CIRCLE – FLIP 3D AVEC BLUR REVEAL
   ════════════════════════════════════════════════ */

.avatar-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  perspective: 1200px;
}

.avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: animation-play-state 0.2s ease;
  animation: flipCoinProper 3s ease-in-out infinite;
}

/* ✨ Au survol : pause la rotation */
.avatar-circle:hover .avatar-inner {
  animation-play-state: paused;
}

.avatar-circle.avatar-loading {
  pointer-events: none;          /* empêche les clics supplémentaires */
}

/* Effet de chargement autour de l'avatar */
.avatar-circle.avatar-loading::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #C2185B;
  animation: spin 0.8s linear infinite;
  z-index: 10;
  pointer-events: none;
}



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

/* ─── FACES ─── */
.avatar-front,
.avatar-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── FACE AVANT (IMAGE) ─── */
.avatar-front {
  background: #0a0a14;
  box-shadow: 0 0 20px rgba(255, 80, 162, 0.25);
  transform: translateZ(0);
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ─── FACE ARRIÈRE (POURCENTAGE) ─── */
.avatar-back {
  background: transparent;
  box-shadow: none;
  transform: rotateY(180deg) translateZ(0);
  z-index: 1;
}

/* ✨ TEXTE COMPATIBILITY SUR LE DOS ✨ */
.avatar-back .compatibility-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin: 0;
  padding: 0;
  line-height: 1;
  letter-spacing: -2px;

  /* Animation du blur reveal – RESTE VISIBLE */
  animation: blurReveal 3s ease-out infinite;
}

/* ═══ KEYFRAMES : ROTATION RAPIDE ═══ */
@keyframes flipCoinProper {
  0%   { transform: rotateY(0deg); }
  25%  { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg); }
  75%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* ═══ KEYFRAMES : BLUR REVEAL AVEC MAINTIEN ═══ */
@keyframes blurReveal {
  0%   { opacity: 0;   filter: blur(25px); }
  15%  { opacity: 0;   filter: blur(25px); }
  30%  { opacity: 0.3; filter: blur(12px); }
  45%  { opacity: 1;   filter: blur(0);    }
  65%  { opacity: 1;   filter: blur(0);    }  /* ✨ RESTE VISIBLE PLUS LONGTEMPS */
  100% { opacity: 1;   filter: blur(0);    }  /* ✨ RESTE VISIBLE À LA FIN */
}

/* ─── NOM ─── */
.profile-name-small {
  display: block;
  margin-top: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-align: center;
  text-shadow: 1px 2px 3px rgba(180, 20, 80, 0.75);
}

/* ----- Placeholder avatar avec logo ----- */
.avatar-placeholder {
  box-shadow: none;
  animation: none;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder .logo-drop-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 0;
}

/* ════════════════════════════════════════════════
   PAGINATION SWIPER
   ════════════════════════════════════════════════ */
.discovery-swiper .swiper-pagination {
  position: relative;
  margin-top: 15px;
}
.discovery-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
}
.discovery-swiper .swiper-pagination-bullet-active {
  background: #C2185B;
}

.swiper-slide-placeholder {
  width: 130px;
  height: auto;
  opacity: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  box-shadow: none;
  animation: none;
  opacity: 0.25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.avatar-placeholder .logo-drop-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  border-radius: 0;
}
/* Tags de filtrage par thème */
.theme-tags-section {
  text-align: center;
}
.theme-tags-intro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #C2185B;
  margin-bottom: 6px;
}
.theme-tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-tag-btn.active {
  border-color: #C2185B;
  color: #C2185B;
  background: rgba(255, 80, 162, 0.15);
}


/* ════════════════════════════════════════════════
   ÉTAT VIDE
   ════════════════════════════════════════════════ */
.discovery .explore-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(60vh - 200px);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 0 40px;
}

/* ----- Offcanvas commun ----- */
.discovery .action-offcanvas {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-radius: 24px 24px 0 0;
  border: none;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}
.discovery .action-offcanvas .offcanvas-header {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 10;
  padding: 20px;
  border: none;
  display: flex;
  justify-content: flex-end;
}
.discovery .action-offcanvas .offcanvas-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 32px !important;
  box-sizing: border-box;
  overflow-y: auto; 
}
.discovery .action-offcanvas .action-buttons,
.discovery .action-offcanvas .unlock-section {
  margin-top: 20px;
  flex-shrink: 0;
}

.discovery .flex-spacer {
  flex: 1 1 0;
  min-height: 16px;
}

.discovery .tap-here-icon {
  width: 64px;
  height: 64px;
}

/* Avatar & photo dans les offcanvas */
.discovery .action-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}
.discovery .action-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.discovery .unlocked-photo {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(128, 128, 128, 0.1);
}
.discovery .unlocked-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Avatar pour l'offcanvas "Aucun thème commun" */
.discovery .no-common-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Espace sous le titre */
#noCommonThemeCanvas .action-name {
  margin-bottom: 8px;
}

/* Texte du message – poids normal, interlignage agréable */
#noCommonThemeCanvas .offcanvas-body .action-compat {
  font-weight: 400 !important;
}
/* Barre de tags sous la photo */
.discovery .photo-tags-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.discovery .photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255, 80, 162, 0.08);
  border: 1px solid rgba(255, 80, 162, 0.25);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discovery .photo-tag:hover {
  background: rgba(255, 80, 162, 0.15);
  border-color: rgba(255, 80, 162, 0.4);
  color: #C2185B;
  transform: translateY(-1px);
}

.discovery .photo-tag:active {
  transform: scale(0.98);
}

.discovery .photo-tag-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.discovery .photo-tag-text {
  letter-spacing: 0.02em;
}

.discovery .content-blurred {
  position: relative;
}
.discovery .content-blurred::after {
  content: "Signalé";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 80, 162, 0.8);
  border-radius: 16px;
  z-index: 5;
}

/* Bouton fermeture custom */
.discovery .btn-close-custom {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 80, 162, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.discovery .btn-close-custom:hover {
  background: rgba(255, 80, 162, 0.2);
  border-color: #C2185B;
}
.discovery .btn-close-custom svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Icône close.svg dans les boutons de fermeture */
.discovery .btn-close-custom .close-icon,
.discovery .btn-close-custom img {  /* au cas où tu oublies la classe */
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.discovery .btn-close-custom .close-icon {
    opacity: 1;
}

/* Textes d'action */
.discovery .action-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: -10px;
}

/* Badge membre dans les offcanvas */
.discovery .action-name .member-badge-check {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.8;
}

.discovery .action-compat {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #C2185B;
  margin-top: 8px; 
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Pour les éléments de compatibilité (pourcentage) */
.compat-value-highlight {
  color: #C2185B;
}

.explore-item.removing {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Offcanvas "Restrictions" – texte blanc, normal, bien espacé */
#restrictedOffcanvas .action-compat {
  color: #ffffff;
  font-weight: 400;
  margin-top: 8px;   /* ou 12px selon le rendu souhaité */
}

/* Grade et badges dans les offcanvas */
.offcanvas-grade {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0;
  text-align: center;
}

.offcanvas-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 12px;
}

.offcanvas-badges .badge {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.7rem;
  font-style: italic;
  background: rgba(255, 80, 162, 0.15);
  color: #C2185B;
  border: 1px solid rgba(255, 80, 162, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Centrage vertical pour l'offcanvas générique de succès */
#genericSuccessCanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

/* Titre de l'offcanvas succès – plus d'espace sous le titre */
#genericSuccessCanvas .action-name {
  margin-bottom: 12px;      /* écart entre le titre et le texte */
}

/* Texte de l'offcanvas succès – poids normal */
#genericSuccessCanvas .action-compat {
  font-weight: 400;
  margin-bottom: 20px;      /* écart avant le bouton */
}

/* ---- Offcanvas "Rejoins le club" ---- */
#joinClubCanvas .action-name {
  color: #C2185B !important;      /* titre rose */
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 12px;
}

#joinClubCanvas .offcanvas-body p,
#joinClubCanvas .offcanvas-body a {
  font-family: 'Fraunces', Georgia, serif;
  font-style: normal;
}

/* ---- Offcanvas "Aucun profil avec ce thème" (identique à celui des clubs) ---- */
#noThemeProfileCanvas .action-name {
  color: #C2185B !important;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 12px;
}

#noThemeProfileCanvas .offcanvas-body p,
#noThemeProfileCanvas .offcanvas-body a {
  font-family: 'Fraunces', Georgia, serif;
  font-style: normal;
}

#noThemeProfileCanvas .action-name {
  font-weight: 400;
  color: #C2185B !important;
}

#noThemeProfileCanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.discovery .offcanvas-body > .flex-spacer:first-child {
  min-height: 80px;   /* assez pour passer sous le header absolu */
}

.like-block {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.like-btn .like-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(1); /* grisé par défaut */
  transition: filter 0.3s;
}
.like-btn.liked .like-icon {
  filter: none; /* couleur d’origine (rose) */
}
.likes-count {
  font-size: 14px;
  color: #C2185B;
  font-weight: 600; /* optionnel */
}

/* Section unlock */
.discovery .unlock-section {
  width: 100%;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.discovery .unlock-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
  font-style: italic;
}
.discovery .unlock-subtext {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}
.discovery .btn-unlock {
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.discovery .btn-unlock:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.discovery .btn-unlock:active {
  transform: translateY(0);
}
.discovery .btn-unlock:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.discovery .unlock-info {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px 0;
  text-align: center;
}

/* Boutons d'action (Drop / No Way / Vibe) */
.discovery .action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  margin-bottom: auto;
}
.discovery .btn-action {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.discovery .vibes-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}
.discovery .vibes-actions .vibes-btn {
  width: 100%;
}

.discovery .btn-drop {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}
.discovery .btn-drop:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.discovery .btn-vibe {
  background: transparent;
  color: #fff;
  border: 2px solid #C2185B;
  box-shadow: 0 4px 20px rgba(255, 80, 162, 0.25);
}
.discovery .btn-vibe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 80, 162, 0.35);
}
.discovery .btn-vibe:active {
  transform: translateY(0);
}
.discovery .btn-outline-pink {
  background: transparent;
  border: 2px solid #C2185B;
  color: #C2185B;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.discovery .btn-outline-pink:hover {
  background: rgba(255, 80, 162, 0.1);
  transform: translateY(-2px);
}

.discovery .action-buttons-unlock {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}


/* ----- First Visit Overlay ----- */
.discovery .lock-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* ← le scroll gère le reste */
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 16px;
}

.discovery .welcome-card {
  flex: 0 0 auto;                /* ← ne pas forcer 100% */
  width: 100%;
  min-height: min-content;      /* grandit avec le contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  scroll-snap-align: center;
  max-width: none;

  /* 🔑 LA CLÉ : centre verticalement SANS couper le haut */
  margin-top: auto;
  margin-bottom: auto;
}

/* Titre principal (rose) */
.discovery .welcome-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #C2185B;
  text-align: center;
  font-style: italic;
  margin: 0 0 40px 0;
  letter-spacing: 1px;
}


/* Titre secondaire avec marge inférieure réduite */
.discovery .welcome-subtitle-small {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  color: #C2185B;
  text-align: center;
  margin: 0 0 30px 0;     
}

/* Paragraphe normal (blanc) */
.discovery .welcome-feature p {
  font-family: 'Quicksand', sans-serif;   /* ou Merriweather selon ton choix */
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;                     /* pas d'italique */
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
}

/* Étoiles décoratives */
.discovery .welcome-star {
  font-size: 1.2rem;
  color: #C2185B;
  text-shadow: 0 0 8px rgba(255, 80, 162, 0.6);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Sous-titre (si tu veux l'utiliser) */
.discovery .welcome-subtitle {
  text-align: center;
  color: #C2185B;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 10px 0;
}



.discovery .lock-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.discovery .btn-close-welcome {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 80, 162, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.discovery .btn-close-welcome:hover {
  border-color: rgba(255, 80, 162, 0.3);
  color: #C2185B;
  box-shadow: 0 4px 20px rgba(255, 80, 162, 0.1);
}
.discovery .btn-close-welcome i {
  font-size: 1.25rem;
}

.discovery .welcome-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 80, 162, 0.15);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.discovery .welcome-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.discovery .welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.discovery .welcome-star {
  font-size: 1.2rem;
  color: #C2185B;                      /* couleur du contour */
  margin-top: 4px;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 80, 162, 0.6);
}
.discovery .welcome-card .welcome-features .welcome-feature p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.discovery .welcome-card .welcome-features .welcome-feature p strong {
  font-size: 2rem;         
  font-weight: 700;
  vertical-align: baseline;   
  line-height: 1;             
}

.discovery .welcome-text-normal {
  font-style: normal !important;
}

.discovery .welcome-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  text-align: center;
}

.discovery .btn-welcome {
  width: auto;           
  max-width: 300px;      
  background: transparent;
  border: 1px solid rgba(255, 80, 162, 0.3);
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 16px 32px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  color: #C2185B;
  cursor: pointer;
  transition: all 0.3s ease;
}
.discovery .btn-welcome:hover {
  background: #C2185B;
  color: #fff;
  border-color: #C2185B;
  box-shadow: 0 4px 20px rgba(255, 80, 162, 0.2);
}

.discovery .welcome-swipe-container {
  flex: 1 1 auto;               /* occupe l'espace restant entre le header et le bouton */
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;           /* pas de scroll vertical parasite */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 1rem;
}

.discovery .welcome-swipe-container::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

/* Chaque carte occupe toute la largeur du swipe */
.discovery .welcome-swipe-container .welcome-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  max-width: none;                /* annule le max-width: 480px dans le contexte du swipe */
  margin: 0;
}

/* Indicateurs ronds */
.discovery .welcome-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0.5rem 0 1rem;
}

.discovery .welcome-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}

.discovery .welcome-dots .dot.active {
  background: #C2185B;
}

/* ----- Share Style (Error Offcanvas) ----- */
.discovery .share-style {
  background: #0a0a0a;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.discovery .share-style .offcanvas-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.discovery .offcanvas-title {
   font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;           /* Quicksand a besoin d'un peu de graisse */
  font-style: normal;         /* pas d'italique avec Quicksand */
  margin: 0;
}

.discovery .btn-close-white-simple .close-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.discovery .btn-close-white-simple:hover .close-icon {
  opacity: 1;
}
.discovery .offcanvas-body-text {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ----- Restricted Offcanvas ----- */
.discovery .restricted-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background-color: transparent !important;
  box-shadow: none !important; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.discovery .restricted-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.discovery .restricted-default-icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
  opacity: 0.6;
}
.discovery #restrictedName {
  color: #C2185B;
}
.discovery .restricted-text {
  margin: 20px 0;
  padding: 0 20px;
}
.discovery .restricted-text p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
}
.discovery .restricted-buttons {
  gap: 12px;
}
.discovery .btn-action.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discovery .btn-action.btn-outline:hover {
  border-color: #C2185B;
  color: #C2185B;
}

/* ----- Invite Offcanvas ----- */
.discovery .invite-body {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.discovery .invite-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 80, 162, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
}
.discovery .invite-qr-icon {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}
.discovery .invite-icon.success {
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.discovery .invite-icon svg {
  width: 36px;
  height: 36px;
}
.discovery .invite-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 8px;
}
.discovery .invite-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
}
.discovery .invite-input-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #C2185B;
  box-shadow: 0 0 10px 2px rgba(255, 80, 162, 0.5);
  transition: width 0.3s ease;
}
.discovery .invite-input-wrapper:focus-within::after {
  width: 100%;
  animation: input-pulse 2s ease-in-out infinite;
}
@keyframes input-pulse {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(255, 80, 162, 0.3); }
  50%      { box-shadow: 0 0 20px 4px rgba(255, 80, 162, 0.6); }
}
.discovery .invite-input {
  width: 100%;
  max-width: 200px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.15em;
  padding: 16px 8px;
  outline: none;
  transition: border-color 0.3s ease;
}
.discovery .invite-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}
.discovery .invite-input:focus {
  border-bottom-color: #C2185B;
}
.discovery .invite-error {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.875rem;
  font-style: italic;
  color: #C2185B;
  margin-top: -10px;
}


/* Ligne nom + like centrée */
.discovery .name-like-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}


/* ----- Intérêts communs (tags dans offcanvas) ----- */
.discovery .common-interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0px 0 8px;
  max-width: 280px;
}

/* Intérêts personnels (container) */
.discovery .profile-interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;                 /* ← espace entre les tags */
  margin-top: 8px;
  max-width: 280px;
}

.discovery .interest-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 80, 162, 0.15);
  border: 1px solid rgba(255, 80, 162, 0.3);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #C2185B;
}
.discovery .profile-interest-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.7rem;
  gap: 8px;
  font-weight: 400;
  text-transform: capitalize;
}
.discovery .profile-interest-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.discovery .profile-interest-tag.common {
  background: rgba(255, 80, 162, 0.2);
  border-color: #C2185B;
  color: #C2185B;
}

#infoInterests .interest-tag {
  text-transform: capitalize;
}

.discovery .interests-group {
  display: inline-block;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.discovery .interests-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 4px 0;
}

/* Tag "Aucun" dans les intérêts communs */
.interest-tag.no-common-interest {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* ----- Classes JS manquantes (ajoutées pour discovery.js) ----- */
/* Utilisée par le signalement pour afficher le bloc détails */
.discovery .d-block {
  display: block !important;
}

/* Feedback erreur dans le formulaire de signalement */
.discovery .error-border {
  border: 2px solid #C2185B !important;
  transition: border-color 0.2s;
}

/* Message "Aucun centre d'intérêt" dans les offcanvases */
.discovery .no-interests-message {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.6;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* "+X autres" à côté des intérêts */
.discovery .more-interests {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-style: italic;
}

/* Lien "Découvre ta compatibilité" (déjà géré par .btn-link-compat, ci-dessous) */
.discovery .btn-link-compat {
  font-size: 1.2rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  background: none;
  border: none;
  cursor: pointer;
  color: #C2185B;
  text-decoration: underline;
}

/* Mode dégradé */
.discovery .degraded-notice {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #888;
  opacity: 0.9;
}
.discovery .btn-reload-degraded {
  background: none;
  border: none;
  color: #C2185B;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}
.discovery .btn-reload-degraded:hover {
  color: #AD1457;
}

/* Utilitaires conservées car référencées par Bootstrap ou par le JS */
.discovery .d-none {
  display: none !important;
}
.discovery .object-fit-cover {
  object-fit: cover;
}

.discovery .invisible-placeholder {
  visibility: hidden;
}


.discovery .offcanvas-blocking {
  z-index: 10500;
}

.discovery .placeholder-hidden {
  visibility: hidden;
}

/* ============================================
   CANVAS VIBES INSUFFISANTS (Discovery)
   ============================================ */
.discovery .vibes-canvas {
  border-radius: 24px 24px 0 0;
  border: none;
  height: 70vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.discovery .vibes-canvas .offcanvas-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px;
  border: none;
}

.discovery .vibes-canvas .offcanvas-body {
  padding: 60px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.discovery .vibes-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: 8px;
}

.discovery .vibes-subtitle {
  font-size: 14px;
  color: #C2185B;
  margin-bottom: 24px;
}

.discovery .vibes-text {
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.discovery .vibes-btn {
  width: 100%;
  max-width: 280px;
  padding: 18px;
  background: linear-gradient(135deg, #C2185B 0%, #AD1457 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 80, 162, 0.25);
}

.discovery .vibes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 80, 162, 0.35);
}

.discovery .vibes-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}



/* ════════════════════════════════════════════════
   QUESTIONNAIRES SWIPER (Discovery)
   Reprend le style des vignettes originales
   sans la grille, sans les overlays.
   ════════════════════════════════════════════════ */

/* ----- Slide Swiper ----- */
.questionnaires-swiper .swiper-slide {
  width: auto;
  height: auto;
}

/* ----- Cellule avec ratio affiche ----- */
.quiz-cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111118;
  aspect-ratio: 2 / 3;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-cell:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.7),
    0 0 0 2px rgba(255, 80, 162, 0.5);
  z-index: 2;
}

/* ---------- ANIMATIONS SWIPER ---------- */

/* Flip domino (questionnaires) */
@keyframes flipDomino {
  0%   { transform: perspective(600px) rotateY(0deg) scale(1); }
  25%  { transform: perspective(600px) rotateY(90deg) scale(1.02); }
  50%  { transform: perspective(600px) rotateY(180deg) scale(1); }
  75%  { transform: perspective(600px) rotateY(270deg) scale(1.02); }
  100% { transform: perspective(600px) rotateY(360deg) scale(1); }
}

/* Swing (clubs) */
@keyframes swing {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(8deg); }
  30%  { transform: rotate(-6deg); }
  45%  { transform: rotate(4deg); }
  60%  { transform: rotate(-2deg); }
  75%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

/* Pulse (sorties) */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Classes d'animation */
.questionnaires-swiper .quiz-cell.animate-flip {
  animation: flipDomino 0.8s ease-in-out;
}
.clubs-swiper .quiz-cell.animate-swing {
  animation: swing 0.8s ease-in-out;
  transform-origin: center bottom;
}
.outings-swiper .quiz-cell.animate-pulse {
  animation: pulse 0.6s ease-in-out;
}

/* Transitions douces pour tous les swipers */
.questionnaires-swiper .quiz-cell,
.clubs-swiper .quiz-cell,
.outings-swiper .quiz-cell {
  transition: transform 0.3s ease;
  will-change: transform;
}

/* ----- Lien wrapper ----- */
.quiz-thumb {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

/* ----- Image ----- */
.quiz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.quiz-cell:hover .quiz-thumb img {
  transform: scale(1.06);
}

/* ----- Badge check (complété) ----- */
.badge-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: #C2185B;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.badge-check-right {
  left: auto;
  right: 8px;
}

/* ----- Bouton Débloquer ----- */
.rewards-unlock-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-top: 1px solid rgba(255, 80, 162, 0.25);
  color: #C2185B;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, color 0.2s ease;
}

.rewards-unlock-btn:hover {
  background: rgba(0, 0, 0, 0.40);
  color: #ff80c0;
}

/* ----- Info bas : titre + badge récompense ----- */
.quiz-info {
  position: absolute;
  bottom: 36px;                  /* laisse place au bouton Débloquer */
  left: 0;
  right: 0;
  padding: 10px 10px 6px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Carte non lockée → infos tout en bas */
.quiz-cell:not(:has(.rewards-unlock-btn)) .quiz-info {
  bottom: 0;
  padding-bottom: 12px;
}

/* ----- Micro dégradé sous les infos (optionnel) ----- */
.quiz-info::before {
  content: '';
  position: absolute;
  inset: -40px 0 -40px 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,0,0,0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ----- Titre ----- */
.quiz-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Badge rose (Disponible, Complété, Coût) ----- */
.badge-pink-transparent {
  display: inline-flex;
  align-items: center;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.06) 2px,
      rgba(255, 255, 255, 0.06) 4px
    ),
    linear-gradient(135deg, rgba(255, 80, 162, 0.6), rgba(255, 128, 192, 0.6));
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

/* ----- Titres de section (Thèmes, Clubs) – style discret ----- */
.theme-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);   /* gris subtil */
  text-align: center;
  margin: 12px 0 6px 0;
}


/* ----- Clubs : même fond sombre que les questionnaires ----- */
.clubs-swiper .quiz-cell {
  background: #111118;                     /* identique aux questionnaires */
  box-shadow: 0 2px 8px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clubs-swiper .quiz-cell:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7),
              0 0 0 2px rgba(255, 80, 162, 0.5);
}


/* Conserver la cohérence du titre */
.clubs-swiper .quiz-title {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ----- Swiper des clubs ----- */
.clubs-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.club-owned {
  box-shadow: 0 0 12px rgba(255, 80, 162, 0.4);
  border: 1px solid rgba(255, 80, 162, 0.6);
}

/* ----- Carte Personnalité (pleine largeur) ----- */
/* ----- Carte Personnalité (pleine largeur, image croppée) ----- */
.personality-section {
  width: 100%;
  margin-bottom: 16px;
}

.personality-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111118;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personality-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,80,162,0.5);
}

/* ✅ CROP : même hauteur que les vignettes du swiper */
.personality-img {
  width: 100%;
  height: calc(((100vw - 48px) / 2.2) * 1.5);  /* hauteur d'une slide swiper */
  max-height: 330px;  /* plafond basé sur max-width 220px × 1.5 */
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ⭐ NOUVEAU : superposition du texte sur la bande noire du bas */
.personality-card .quiz-info {
  position: absolute;        /* superposé sur l’image */
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 14px;  /* un peu plus d’espace autour du texte */
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;

  
}

/* Supprimer le pseudo-élément gradient qui n'est plus nécessaire */
.personality-card .quiz-info::before {
  display: none;
}

/* Animation de rotation continue (360°) */
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Appliquer l'animation à l'icône sablier */
.profile-action-icon.icon-hourglass {
  animation: spin360 2s linear infinite;
}


/* Réutilisation des styles de quiz-info déjà définis (titre + badge) */

/* ════════════════════════════════════════════════
   OFFCANVAS QUESTIONNAIRES (IDs Discovery)
   Reprise intégrale du style original sans
   dépendance à .questionnaires-page
   ════════════════════════════════════════════════ */

/* Appliquer à tous les offcanvas de questionnaires dans Discovery */
#offcanvasUnlockQuest,
#offcanvasInsufficientQuest,
#offcanvasErrorQuest {
  border-radius: 24px 24px 0 0;
  border: none;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
}

#offcanvasUnlockQuest .offcanvas-header,
#offcanvasInsufficientQuest .offcanvas-header,
#offcanvasErrorQuest .offcanvas-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#offcanvasUnlockQuest .offcanvas-title-block,
#offcanvasInsufficientQuest .offcanvas-title-block,
#offcanvasErrorQuest .offcanvas-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

#offcanvasUnlockQuest .offcanvas-title,
#offcanvasInsufficientQuest .offcanvas-title,
#offcanvasErrorQuest .offcanvas-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: #C2185B;
  margin: 0;
}

#offcanvasUnlockQuest .offcanvas-vibes-badge,
#offcanvasInsufficientQuest .offcanvas-vibes-badge,
#offcanvasErrorQuest .offcanvas-vibes-badge {
  background: rgba(255, 80, 162, 0.12);
  border: 1px solid rgba(255, 80, 162, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  color: #C2185B;
  white-space: nowrap;
}

#offcanvasUnlockQuest .btn-close,
#offcanvasInsufficientQuest .btn-close,
#offcanvasErrorQuest .btn-close {
  filter: invert(1);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

#offcanvasUnlockQuest .btn-close:hover,
#offcanvasInsufficientQuest .btn-close:hover,
#offcanvasErrorQuest .btn-close:hover {
  opacity: 1;
}

#offcanvasUnlockQuest .offcanvas-body,
#offcanvasInsufficientQuest .offcanvas-body,
#offcanvasErrorQuest .offcanvas-body {
  padding: 24px 24px 32px;
}

#offcanvasUnlockQuest .texte-font,
#offcanvasInsufficientQuest .texte-font,
#offcanvasErrorQuest .texte-font {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

#offcanvasUnlockQuest .rewards-confirm-btn,
#offcanvasInsufficientQuest .rewards-confirm-btn,
#offcanvasErrorQuest .rewards-confirm-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #C2185B 0%, #AD1457 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 80, 162, 0.25);
}

#offcanvasUnlockQuest .rewards-confirm-btn:hover,
#offcanvasInsufficientQuest .rewards-confirm-btn:hover,
#offcanvasErrorQuest .rewards-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 80, 162, 0.35);
}

#offcanvasUnlockQuest .rewards-close-btn,
#offcanvasInsufficientQuest .rewards-close-btn,
#offcanvasErrorQuest .rewards-close-btn {
  width: 100%;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#offcanvasUnlockQuest .rewards-close-btn:hover,
#offcanvasInsufficientQuest .rewards-close-btn:hover,
#offcanvasErrorQuest .rewards-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#noThemeProfileCanvas .action-compat {
  font-weight: 400 !important;
  color: #ffffff !important;
}

/* ============================================
   ANIMATIONS POUR LES OVERLAYS PÉDAGOGIQUES
   ============================================ */

/* Fond de l'overlay – fondu rapide */
#chatTutorialOverlay.visible,
#personalityTutorialOverlay.visible {
  animation: overlayFadeIn 0.3s ease both;
}

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

/* --- Overlay Chat : balle qui rebondit (4 gros rebonds) --- */
#chatTutorialOverlay .welcome-card {
  animation: chatBounceIn 2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes chatBounceIn {
  0%   { transform: translateY(-150px); opacity: 0; }
  18%  { transform: translateY(0); opacity: 1; }         /* premier impact */
  36%  { transform: translateY(-90px); }                  /* 1er rebond (haut) */
  54%  { transform: translateY(0); }                      /* 2ème impact */
  68%  { transform: translateY(-40px); }                  /* 2ème rebond */
  80%  { transform: translateY(0); }                      /* 3ème impact */
  90%  { transform: translateY(-15px); }                  /* 3ème rebond */
  100% { transform: translateY(0); }                      /* arrêt */
}

/* --- Overlay Personnalité : balle avec rotation légère --- */
#personalityTutorialOverlay .welcome-card {
  animation: personalityBounceIn 2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes personalityBounceIn {
  0%   { transform: translateY(-150px) rotate(-4deg); opacity: 0; }
  18%  { transform: translateY(0) rotate(1deg); opacity: 1; }
  36%  { transform: translateY(-90px) rotate(-3deg); }
  54%  { transform: translateY(0) rotate(1deg); }
  68%  { transform: translateY(-40px) rotate(-1.5deg); }
  80%  { transform: translateY(0) rotate(0.5deg); }
  90%  { transform: translateY(-15px) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ========== Média Queries pour résolutions mobiles courantes ========== */

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .discovery .page-content {
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .discovery .explore-header {
    padding: 16px 16px 24px;
  }
  .discovery .explore-name {
    font-size: 1.3rem;
  }
  .discovery .explore-avatar {
    width: 48px;
    height: 48px;
  }

  .discovery .action-avatar {
    width: 120px;
    height: 120px;
    font-size: 2.8rem;
  }
  .discovery .restricted-avatar {
    width: 80px;
    height: 80px;
  }
  .discovery .compatibility-value {
    font-size: 1.8rem;
  }
  .discovery .compatibility-value.zero {
    font-size: 1.6rem;
  }

  /* --- Garder le nombre et le % côte à côte --- */
  .discovery .compatibility-flip {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    white-space: nowrap;
  }

  .discovery .compatibility-flip .compatibility-value,
  .discovery .compatibility-flip .compatibility-percent {
    display: inline-block;
    vertical-align: baseline;
  }

  /* Libère la largeur de l’avatar uniquement quand il contient le pourcentage */
  .discovery .explore-avatar:has(.compatibility-flip) {
    width: auto;
    height: auto;
    display: inline-flex;
  }

  .discovery .action-name {
    font-size: 1.4rem;
  }
  .discovery .invite-input {
    font-size: 1.5rem;
  }
  .discovery .btn-welcome {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}

/* iPhone 5/SE (320px - 374px) */
@media (min-width: 321px) and (max-width: 374px) {
  .discovery .explore-name {
    font-size: 1.4rem;
  }
}

/* iPhone 6/7/8 (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
  .discovery .report-trigger {
    width: 32px;
    height: 32px;
    bottom: 8px;
    right: 8px;
  }
  .discovery .welcome-card {
    padding: 24px;
  }
  .discovery .welcome-title {
    font-size: 1.8rem;
  }
  .discovery .welcome-feature p {
    font-size: 0.9rem;
  }
}

/* iPhone 11 Pro Max / grands mobiles (414px - 480px) */
@media (min-width: 414px) and (max-width: 480px) {
  .discovery .welcome-card {
    padding: 28px;
  }
  .discovery .welcome-title {
    font-size: 1.8rem;
  }
}

/* Extra large mobiles (> 480px) */
@media (min-width: 481px) {
  .discovery .page-content {
    max-width: 600px;
  }
}

/* Sur les très petits écrans (hauteur < 600px), on autorise le scroll de l'overlay */
@media (max-height: 600px) {
  .discovery .lock-overlay {
    overflow-y: auto;
  }
  .discovery .welcome-card {
    max-height: none;
  }
}