/* Styles personnalisés pour MysticOdyssey */

/* ========================================
   FONTS
   ======================================== */

/* Arturo - Titres & textes importants */
@font-face {
  font-family: "Arturo";
  src: url("/assets/ArturoLight-4ac0cf65.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arturo";
  src: url("/assets/ArturoBold-623075ba.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arturo";
  src: url("/assets/ArturoExtraBold-610bb1c6.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arturo";
  src: url("/assets/ArturoLight-4ac0cf65.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Application globale des fonts */
body {
  font-family: "Nunito", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arturo", serif;
}

/* Classe utilitaire pour forcer Arturo */
.font-arturo {
  font-family: "Arturo", serif;
}

/* Classe utilitaire pour forcer Nunito */
.font-nunito {
  font-family: "Nunito", sans-serif;
}

/* ========================================
   NAVBAR BOUTONS
   ======================================== */

/* Décalage vertical du texte dans les boutons-image de la navbar.
   - padding-top : augmenter = texte descend davantage
   - Pour ajuster : modifier la valeur de padding-top ci-dessous */
.nav-btn-text {
  padding-bottom: 8px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Animation personnalisée pour les particules */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Barre de vote - shimmer animé */
@keyframes voteShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.vote-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: voteShimmer 2.5s linear infinite;
}

/* Bouton Voter — transition ciblée sur la couleur uniquement */
.vote-btn {
  transition: color 0.3s;
}

.vote-progress-bar {
  transition: width 1s ease-in-out;
}

/* Étoiles / étincelles qui traversent la barre */
@keyframes voteSpark {
  0% {
    left: -5%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 105%;
    opacity: 0;
  }
}

.vote-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.5),
    0 0 8px 2px rgba(250, 204, 21, 0.3);
  animation: voteSpark 3s linear infinite;
  pointer-events: none;
}

/* Pulsation subtile de la bordure de la barre */
@keyframes voteBorderPulse {
  0%,
  100% {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    border-color: rgba(250, 204, 21, 0.7);
    box-shadow:
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 10px rgba(250, 204, 21, 0.15);
  }
}

.vote-bar-container {
  animation: voteBorderPulse 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
  }
}

/* Classe utilitaire pour l'animation flottante */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Classe utilitaire pour l'effet de lueur */
.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Styles pour les messages flash */
.flash-message {
  animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Amélioration des gradients violets personnalisés */
.bg-mystic-purple {
  background: linear-gradient(
    135deg,
    #3b0764 0%,
    #581c87 25%,
    #7c3aed 50%,
    #581c87 75%,
    #3b0764 100%
  );
}

.bg-mystic-gold {
  background: linear-gradient(
    135deg,
    #f59e0b 0%,
    #fbbf24 25%,
    #fcd34d 50%,
    #fbbf24 75%,
    #f59e0b 100%
  );
}

/* Effet de particules scintillantes */
.sparkle::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(250, 204, 21, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(250, 204, 21, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(250, 204, 21, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
  border-radius: inherit;
}

/* Style pour les bordures magiques */
.magic-border {
  position: relative;
  overflow: hidden;
}

.magic-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 204, 21, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.magic-border:hover::before {
  left: 100%;
}

/* Amélioration du scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #3b0764;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #fcd34d, #fbbf24);
}

/* Styles pour les tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background: linear-gradient(135deg, #581c87, #3b0764);
  color: #fcd34d;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  border: 1px solid rgba(250, 204, 21, 0.3);
  font-size: 14px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Animation pour les éléments au scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Styles pour les cartes avec effet de profondeur */
.depth-card {
  box-shadow:
    0 4px 6px -1px rgba(139, 69, 19, 0.1),
    0 2px 4px -1px rgba(139, 69, 19, 0.06);
  transition: all 0.3s ease;
}

.depth-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(139, 69, 19, 0.1),
    0 10px 10px -5px rgba(139, 69, 19, 0.04),
    0 0 0 1px rgba(250, 204, 21, 0.2);
  transform: translateY(-2px);
}

/* Style pour les boutons avec effet de ripple */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ========================================
   BOUTIQUE — ONGLETS
   ======================================== */

/* Onglet inactif */
.shop-tab {
  color: #c4b5fd; /* purple-300 */
  background: transparent;
  cursor: pointer;
  border: none;
}

.shop-tab:hover {
  color: #fde68a; /* yellow-200 */
  background: rgba(139, 92, 246, 0.2);
}

/* Onglet actif */
.shop-tab.active {
  color: #fbbf24; /* yellow-400 */
  background: rgba(250, 204, 21, 0.15);
  border-bottom: 3px solid #fbbf24;
}

/* Animation fade-in du contenu des onglets */
.shop-tab-panel {
  opacity: 0;
  transform: translateY(8px);
  animation: shopTabFadeIn 0.3s ease-out forwards;
}

.shop-tab-panel.hidden {
  display: none;
}

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

.shop-tab-fade-in {
  animation: shopTabFadeIn 0.3s ease-out forwards;
}

/* ========================================
   RESPONSIVE — MOBILE MENU
   ======================================== */

/* Hero section : hauteur auto sur mobile au lieu de min-h-screen */
@media (max-width: 767px) {
  .hero-section-responsive {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
}
