/* ── CSS GLOBAL ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    /* Deep Midnight Blue Gradient */
    background: radial-gradient(circle at center, #0B1E3B 0%, #050914 100%);
    min-height: 100vh;
    font-family: 'Patrick Hand', cursive;
    color: white;
    overflow-x: hidden;
}

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Fond bleu nuit très profond */
    background: radial-gradient(circle at center, #0B1E3B 0%, #050914 100%);
    overflow: hidden;
}

/* Génération de minuscules étoiles */
.page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px; /* Répète ce motif d'étoiles */
    opacity: 0.4;
    z-index: 0;
}
@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}


/* ── HEADER ── */
header {
  text-align: center;
  padding: 28px 0 10px;
  position: relative;
  z-index: 10;
}

.logo-img {
  height: 80px;
  object-fit: contain;

}

/* ── SCENE ── */
.scene {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  overflow: hidden;
}



/* ── NAV ZONE ── */
.nav-zone {
  position: relative;
  width: 650px;
  height: 550px;
  z-index: 10;
}

/* PUFY au centre */
.character-wrap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 280px;
  z-index: 5;
  animation: float 3.2s ease-in-out infinite;
}

.character-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Effet de brillance (glow) stylé autour du personnage */
  filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.8));
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, -58%); filter: drop-shadow(0 15px 35px rgba(0, 229, 255, 1)); }
}

/* ── NAV ITEMS ── */
.nav-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  z-index: 20;
  text-decoration: none;
}

.nav-item:hover { transform: scale(1.14) rotate(-3deg); }
.nav-item .icon { 
    width: 68px; 
    height: 68px; 
    object-fit: contain; /* Évite de déformer l'image */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); 
  }
.nav-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E0F7FA; /* Texte bleu très clair */
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.5); /* Texte légèrement brillant */
}

/* Positions */
.item-lore     { top: 22px;   left: 155px; }
.item-partners { top: 22px;   right: 85px; }
.item-culture  { top: 175px;  left: 18px;  }
.item-contact  { top: 175px;  right: 22px; }
.item-shop     { bottom: 50px; left: 130px; }
.item-coin     { bottom: 50px; right: 95px; }

/* Badge 777 */
.icon-wrap { position: relative; display: inline-block; }
.badge {
  position: absolute; top: -9px; right: -9px;
  background: #ff2a55; color: #fff;
  font-family: 'Permanent Marker', cursive;
  font-size: 9px; border-radius: 10px;
  padding: 2px 6px; letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.6);
}

/* ── FOOTER ── */
footer {
  background: #0A192F; /* Match la vague */
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  position: relative;
  z-index: 10;
}

.copyright {
  font-family: 'Permanent Marker', cursive;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00e5ff;
}

.socials { display: flex; gap: 12px; align-items: center; }

.social-icon {
  width: 32px; height: 32px;
  border: 2px solid #00e5ff; /* Contour néon */
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: rgba(0, 229, 255, 0.05);
}
.social-icon:hover {
  background: rgba(0, 229, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-zone { width: 340px; height: 420px; }
  .character-wrap { width: 140px; height: 160px; }
  .nav-item .icon { width: 50px; height: 50px; }
  .nav-label { font-size: 10px; }
  .item-lore     { top: 14px;  left: 70px; }
  .item-partners { top: 14px;  right: 30px; }
  .item-culture  { top: 140px; left: 4px;  }
  .item-contact  { top: 140px; right: 4px; }
  .item-shop     { bottom: 40px; left: 60px; }
  .item-coin     { bottom: 40px; right: 40px; }
}
/* =========================================
   STYLE SPECIFIQUE POUR LA PAGE LORE 
   ========================================= */

   .lore-page {
    background: #050914; /* Conserve le fond sombre */
    color: #E0F7FA;
    display: block; /* Retire le flex du body de l'index */
  }
  
  /* ── HEADER LORE ── */
  .lore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  }
  
  .nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .back-arrow, .next-arrow {
    font-family: 'Permanent Marker', cursive;
    font-size: 35px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s, text-shadow 0.2s;
  }
  
  .back-arrow:hover, .next-arrow:hover {
    color: #00e5ff;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
  }
  
  .header-icon {
    width: 45px;
    height: 45px;
    object-fit: contain; /* Empêche l'image de se déformer */
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5)); /* Donne un petit effet néon bleu derrière ton image */
  }
  
  .nav-center {
    text-align: center;
  }
  
  .lore-logo {
    height: 50px;
    
  }
  
  .lore-subtitle {
    font-family: 'Permanent Marker', cursive;
    font-size: 12px;
    letter-spacing: 3px;
    color: #00e5ff;
  }
  
  /* ── CONTENU (2 COLONNES) ── */
  .lore-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 60px;
    align-items: center;
  }
  
  .lore-text-section {
    flex: 1; /* Prend 50% de l'espace */
  }
  
  .lore-image-section {
    flex: 1; /* Prend 50% de l'espace */
    display: flex;
    justify-content: center;
  }
  
  /* ── TYPOGRAPHIE LORE ── */
  .lore-text-section h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
  }
  
  .lore-text-section h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px;
    margin: 40px 0 15px;
    color: #fff;
  }
  
  .lore-text-section p {
    font-family: 'Patrick Hand', cursive;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b3e5fc; /* Bleu très clair pour la lecture */
    letter-spacing: 0.5px;
  }
  
  /* ── IMAGE DU PERSONNAGE ── */
  .lore-big-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 229, 255, 0.4));
    animation: floatLore 4s ease-in-out infinite;
  }
  
  @keyframes floatLore {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
  }
  
  /* ── RESPONSIVE (Mobiles & Tablettes) ── */
  @media (max-width: 900px) {
    .lore-container {
      flex-direction: column; /* Passe en une seule colonne sur mobile */
      text-align: center;
      padding: 30px 20px;
    }
    
    .lore-header {
      padding: 15px 20px;
    }
    
    .lore-text-section h1 {
      font-size: 30px;
    }
    
    .lore-big-image {
      max-width: 80%;
    }
  }
  /* =========================================
   STYLE SPECIFIQUE POUR LA PAGE PARTNERS
   ========================================= */

.partners-container {
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
  }
  
  .partners-titles h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 35px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    margin-bottom: 10px;
  }
  
  .partners-titles p {
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    color: #00e5ff;
    letter-spacing: 2px;
    margin-bottom: 50px;
  }
  
  /* ── CAROUSEL STRUCTURE ── */
  .carousel-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 450px;
  }
  
  .carousel-track {
    position: relative;
    width: 320px; /* Largeur de la carte centrale */
    height: 400px;
  }
  
  .slide-arrow {
    background: none;
    border: none;
    font-family: 'Permanent Marker', cursive;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
  }
  
  .slide-arrow:hover {
    color: #00e5ff;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
  }
  
  /* ── LES CARTES (L'effet 3D) ── */
  .partner-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F172A; /* Fond sombre de la carte */
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease, opacity 0.4s ease, z-index 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  /* Carte du milieu (Active) */
  .partner-card.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    border-color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  }
  
  /* Carte de gauche (Prev) */
  .partner-card.prev {
    transform: translateX(-60%) scale(0.85);
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
  }
  
  /* Carte de droite (Next) */
  .partner-card.next {
    transform: translateX(60%) scale(0.85);
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
  }
  
  /* Cartes cachées (S'il y en a plus de 3) */
  .partner-card.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
  
  /* ── CONTENU DES CARTES ── */
  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #112240; /* Couleur si l'image est transparente */
  }
  
  .partner-card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    color: #fff;
    margin-bottom: 5px;
  }
  
  .partner-card p {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    color: #b3e5fc;
    margin-bottom: auto; /* Pousse le bouton vers le bas */
  }
  
  .card-btn {
    display: inline-block;
    background: #00e5ff;
    color: #050914;
    font-family: 'Permanent Marker', cursive;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  }
  
  .card-btn:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
  }