/* ========================= */
/* TOUT */
/* ========================= */
:root{
  --bg:#0d0d12;
  --card:#1a1a22;
  --accent:#7d22ff;
  --accent2:#c58aff;
}

*{box-sizing:border-box;margin:0;padding:0;}

body{
  background:var(--bg);
  color:white;
  font-family:Poppins,Arial,sans-serif;
  text-align:center;
  padding-bottom:40px;
}

h1{
  margin:25px 0 10px;
  color:var(--accent2);
  text-shadow:0 0 14px #8c3bff;
  font-size:2.3rem;
}

.nav{
  display:inline-block;
  margin-bottom:20px;
  padding:10px 16px;
  background:var(--accent);
  color:white;
  border-radius:12px;
  text-decoration:none;
  transition:.2s;
}
.nav:hover{
  transform:scale(1.05);
  box-shadow:0 0 15px #7d22ff;
}

/* Style pour les images dans les lignes de la calculatrice */
.added-item img {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1); /* Petit fond léger derrière l'icône */
}
/* ========================= */
/* recherche */
/* ========================= */
#search{
  padding:12px 16px;
  width:270px;
  border:2px solid #5323a9;
  border-radius:12px;
  background:#151520;
  color:white;
  margin-bottom:25px;
  outline:none;
  transition:.2s;
}
#search:focus{
  box-shadow:0 0 12px #7d22ff;
}

/* ========================= */
/* CONTAINER */
/* ========================= */
#petsContainer{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:28px;
  padding:0 20px;
}

/* ========================= */
/* CARD */
/* ========================= */
.card{
  width:260px;
  background:var(--card);
  padding:20px;
  border-radius:18px;
  box-shadow:0 0 18px rgba(125,34,255,0.18);
  transition:.25s;
}
.card:hover{
  transform:scale(1.07);
  box-shadow:0 0 30px rgba(125,34,255,0.45);
}

.card h2{
  margin:12px 0 8px;
  font-size:1.2rem;
  color:#d0c4ff;
}
.card p{
  margin:5px 0;
  font-size:0.95rem;
}

/* ========================= */
/* IMAGE WRAPPER */
/* ========================= */
.imgWrapper{
  width:200px;
  height:200px;
  margin:auto;
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#0c0c14;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pet-img{
  width:100%;
  height:100%;
  object-fit:contain;
  z-index:2;
}

/* ========================= */
/*  effet rb */
/* ========================= */
.rainbowOverlay{
  position:absolute;
  inset:0;
  z-index:5;
  display:none;

  background:linear-gradient(90deg,
    #ff0014,
    #ff7b00,
    #ffee00,
    #2cff6b,
    #00eaff,
    #8b28ff
  );
  opacity:0.55;
  background-size:400% 100%;
  mix-blend-mode:screen;

  animation:rainbowMove 4s linear infinite;
}

@keyframes rainbowMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* ========================= */
/* effet shiny */
/* ========================= */
.shinyOverlay{
  position:absolute;
  inset:0;
  z-index:6;
  display:none;
  pointer-events:none;

  background:radial-gradient(circle,
    rgba(255,255,255,0.45),
    transparent 70%
  );
  animation:shinyPulse 2.5s infinite ease-in-out;
}

@keyframes shinyPulse{
  0%{opacity:.25;}
  50%{opacity:.75;}
  100%{opacity:.25;}
}

.sparkle{
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:white;
  filter:blur(2px);
  opacity:0;
  animation:sparkleAnim 1.2s infinite ease-in-out;
}

@keyframes sparkleAnim{
  0%{opacity:0;transform:scale(.2);}
  40%{opacity:1;transform:scale(1);}
  100%{opacity:0;transform:scale(.2);}
}

/* ========================= */
/* boutton */
/* ========================= */
.backBtn {
    position: fixed;
    top: 20px;
    left: 20px;

    background: linear-gradient(135deg, #7d22ff, #b066ff);
    padding: 12px 20px;
    border-radius: 14px;

    text-decoration: none;
    color: white;
    font-weight: bold;

    box-shadow: 0 0 15px rgba(176,102,255,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.backBtn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(176,102,255,1);
}
.variantBox{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.variantBtn{
  padding:8px 14px;
  border-radius:12px;
  border:none;
  background:var(--accent);
  color:white;
  cursor:pointer;
  transition:.2s;
  font-size:.9rem;
}
.variantBtn:hover{
  transform:scale(1.08);
  background:#9c55ff;
}

.activeBtn{
  background:#b066ff !important;
  box-shadow:0 0 15px #b066ff;
  transform:scale(1.15);
}

/* ========================= */
/* credit */
/* ========================= */
.creditBox{
  margin-top:10px;
  font-size:.75rem;
  opacity:.6;
  text-align:right;
}

/* ========================= */
/* DESACTIVER */
/* ========================= */
#popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

#popupImg{
  max-width:90%;
  max-height:90%;
  border-radius:14px;
  box-shadow:0 0 20px rgba(255,255,255,0.25);
}

/* ========================= */
/* MINI ICONS (NYAN / ELECTRIC) */
/* ========================= */

.miniIcon {
    position: absolute;
    top: 12px;               /* descend un peu l’icône */
    right: 8px;
    width: 48px;             /* la taille */
    height: auto;            /* change rien a l'icon */
    aspect-ratio: 1 / 1;     /* carre bien fait*/
    object-fit: contain;     /* bonne resolution */
    z-index: 20;

    image-rendering: auto; /* pas de bordure */
}

.miniIcon.nyan {
    right: 8px;              /* icone de droite */
}

.miniIcon.electric {
    right: 60px;             /* icone de gauche (espacée) */
}

.navBox {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.nav {
  padding: 8px 14px;
  background: #7d22ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.nav:hover {
  background: #b066ff;
}

.navBox {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.navBtn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #7d22ff, #b066ff);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(176,102,255,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.navBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(176,102,255,0.8);
}

.discordMenu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Bouton */
.discordBtn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #7d22ff, #b066ff);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(176,102,255,0.6);
    transition: 0.2s;
}

.discordBtn:hover {
    transform: scale(1.08);
}

/* Menu */
.discordDropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #141414;
    border-radius: 14px;
    padding: 10px;
    display: none;
    min-width: 220px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.discordDropdown a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.discordDropdown a:hover {
    background: #7d22ff;
}
/* Discord menu */
.discordMenu {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.discordDropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #151515;
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    box-shadow: 0 0 20px rgba(176,102,255,0.6);
}

/* Visible */
.discordDropdown.show {
    display: flex;
}

/* Link */
.discordDropdown a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    background: #222;
    transition: 0.2s;
}

.discordDropdown a:hover {
    background: #7d22ff;
}

/* ========================= */
/* DISCORD etc etc flemme de ecrire*/
/* ========================= */

.discordDropdown {
    position: absolute;
    bottom: 60px;
    right: 0;

    background: #151515;
    border-radius: 16px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;

    box-shadow: 0 0 20px rgba(176,102,255,0.6);

    /* 🔒 état fermé */
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(.2,1.3,.4,1);
}

.discordDropdown.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Hover links */
.discordDropdown a {
    background: #222;
    padding: 10px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.discordDropdown a:hover {
    transform: translateX(6px);
    background: linear-gradient(135deg, #7d22ff, #b066ff);
}

/* ========================= */
/* image de fond */
/* ========================= */

.bg-blur {
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url("images/background.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(10px);
    transform: scale(1.1); /* évite les bords blancs du blur */

    opacity: 0.35; /* intensité */
}

/* assombrit un peu pour lisibilité */
.bg-blur::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.6);
}

/* ========================= */
/* retour bouton js plus quoi  */
/* ========================= */

.gameInfoBack {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;

    padding: 10px 18px;
    border-radius: 12px;

    background: linear-gradient(135deg, #7d22ff, #b066ff);
    color: white !important;
    text-decoration: none;
    font-weight: 700;

    box-shadow: 0 0 15px rgba(176,102,255,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gameInfoBack:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(176,102,255,1);
}


/* ========================= */
/* image game info */
/* ========================= */

.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #151520;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(125,34,255,0.25);
    max-width: 900px;
    width: 100%;
}

.info-item img {
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c58aff;
    word-break: break-all;
}
/* ========================= */
/* game info annimation */
/* ========================= */

.info-item {
    display: flex;
    align-items: center;
    gap: 22px;

    background: rgba(20, 20, 30, 0.65);
    border-radius: 20px;
    padding: 18px 22px;
    margin-bottom: 26px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.info-item img {
    width: 360px;
    max-width: 100%;
    border-radius: 14px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.info-item span {
    color: #c58aff;
    font-weight: 700;
    font-size: 1.05rem;

    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

/* jsp g oublier */
.info-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(40, 25, 60, 0.75);
    box-shadow: 0 0 30px rgba(176,102,255,0.45);
}

.info-item:hover img {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(176,102,255,0.6);
}

.info-item:hover span {
    transform: translateX(10px);
    color: #ffffff;
}

/* Animation d'entre de la page */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Conteneur anime */
.page-enter {
    animation: pageEnter 0.6s ease-out forwards;
}

/* ========================= */
/* CALCULATRICE */
/* ========================= */

.calcToggleBtn {
    position: absolute;
    left: 20px;
    bottom: 21px;
    z-index: 10000;

    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #7d22ff, #b066ff);
    color: white;
    font-weight: bold;

    box-shadow: 0 0 15px rgba(176,102,255,0.6);
}

.calcToggleBtn:hover {
    transform: scale(1.08);
}

/* Fenêtre calculatrice */
.calculator {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 230px;

    background: #111;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(176,102,255,0.6);

    z-index: 10001;
}

/* cache */
.hidden {
    display: none;
}

.calculator input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    text-align: right;
    background: #000;
    color: white;
}

.calcGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calcGrid button {
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #7d22ff;
    color: white;
    font-weight: bold;
}

.closeCalc {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #ff5555;
    font-size: 20px;
    cursor: pointer;
}

.calcGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* = en gros */
.equal {
    grid-column: span 4;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: black;
    font-size: 20px;
}

/* Clear normal */
.clear {
    grid-column: span 4;
    background: #ff4444;
}

.item-img-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.added-item {
    display: flex;
    align-items: center; /* Aligne l'image et le texte verticalement */
    justify-content: space-between;
    background: #f9f9f9;
    padding: 8px;
    margin: 5px 0;
    border-radius: 6px;
}

.item-info {
    display: flex;
    align-items: center;
}

.creditBox{
  position: fixed;
  bottom: 10px;
  right: 15px;

  font-size: 26px;  
  font-weight: bold;
  color: white;
  opacity: 0.75;

  z-index: 99999;
  pointer-events: none;
}

