:root {
    /* couleurs principales */
    --main-color-1: darkred;
    --main-color-2: white;
    --sec-color-1: rgb(0, 191, 255);
    --bg-body: lightgray;
    --color-black: black;

    /* font sizes */
    --font-size-title: 1.4rem;
    --font-size-text: 0.8rem;
    --font-size-text-2: 0.6rem;

    /* shadows */
    --shadow-1: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-inset-light: inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    --shadow-inset-dark: inset -2px -2px 4px rgba(255, 255, 255, 0.3);
}


*{
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: "Audiowide", sans-serif;
}



/*pkedex style general*/
.pokedex {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
  
}

.pokedex-top-part, .pokedex-bottom-part {
    height: 120px;
    max-width: 500px;
    width: 95%;
    background-color: var(--main-color-1);
    z-index: 2;
    box-shadow: var(--shadow-1);
    border: 4px solid var(--color-black);
}


.pokedex-top-part{
    border-radius: 25px  25px 5px 5px;
    border: 4px solid black;

    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.pokedex-bottom-part{
    border-radius: 5px 5px 25px  25px;
    border: 4px solid black;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.top-circle{
    width: 200px;
    height: 100px;
    background-color: var(--color-black);
    border-left: 4px solid var(--main-color-2);
    border-right: 4px solid var(--main-color-2);
    border-top: 4px solid white;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.small-top-circle {
    width: 100px;
    height: 50px;
    box-shadow: 0 0 0 4px var(--main-color-2);
    background-color: white;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;    
}

.bottom-circle{
    width: 200px;
    height: 100px;
    background-color: var(--color-black);
    border-left: 4px solid var(--main-color-2);
    border-right: 4px solid var(--main-color-2);
    border-bottom: 4px solid white;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.small-bottom-circle{
    width: 100px;
    height: 50px;
    background-color: var(--main-color-2);
    box-shadow: 0 0 0 4px var(--main-color-2);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px; 
    display: flex;

}

.pokedex-center-part {
    min-height: 450px; 
    height: auto; 
    width: 470px;
    background: linear-gradient(135deg, #a8d8ff 0%, #7ec8ff 100%);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-1), inset 0 2px 10px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;


}

.pokedex-center-part::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 1;
}

/* Reflet holographique */
.pokedex-center-part::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: holographic 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes holographic {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


/*pokedex container */
#pokedex-container{
    height: auto; 
    min-height: 330px;
    width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.img-description-container{
    width: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}


/*poke-description*/
.poke-description {
    height: 40px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5px;
    margin-top: 5px;
    padding: 5px;
    z-index: 2;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2), var(--shadow-inset-light), var(--shadow-inset-dark);

    border-radius: 15px;
    position: relative;
}

.poke-description h1 {
    text-align: center;
    font-size: var(--font-size-title);
    padding: 0;
    margin: 0;
}
.p-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.p-container p {
    padding: 0;
    margin: 0;
    font-size: var(--font-size-text);

}

.shiny-toggle-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 32px;
    height: 32px;
    padding: 1px;
    
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.shiny-toggle-button:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.6);
}

.shiny-toggle-button:active {
    transform: translateY(-50%) scale(0.95);
}

.shiny-toggle-button svg {
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.shiny-toggle-button svg circle {
    fill: #b8b8b8;
    transition: fill 0.2s ease;
}

.shiny-toggle-button.shiny-active svg circle {
    fill: #ffd700;
}

/*pok-imgs*/
.poke-imgs {
    display: flex;
    flex-direction: row;
    z-index: 2;
}

.img-sprites {
    height: 150px;
    width: 240px ;
    object-fit: contain;
    margin: 5px;
    border-radius: 50%;
}

/*poke-types*/
.poke-types{
    height: auto;
    width: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 5px;
    padding: 5px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2), var(--shadow-inset-light), var(--shadow-inset-dark);

    border-radius: 10px;
    font-size: 0.9rem;
}

.poke-types img {
    height: 30px;
    width: 30px;
    object-fit: cover;
}

/*pke-talents et stats */
.talents-stats-container {
    height: 65px;
    width: 400px;

    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2), var(--shadow-inset-light), var(--shadow-inset-dark);

    border-radius: 16px;
    padding-left: 15px;
    padding-right: 20px;
}

/*poke talents */
.poke-talents {
    height: 50px;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.poke-talents p {
line-height: 0.1;
font-size: var(--font-size-text-2);
}

/*poke-stats*/
.poke-stats {
    height: 50px;
    width: 200px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--font-size-text-2);
}

.poke-stats ul{
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: 20px;
}

.poke-stats ul li {
    font-size: 0.5rem;
    max-width: 80px;
    max-height: 20px;
    list-style: none;
}


/* btn */
.btn-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 150px;
    margin: 15px;
}

.right-btn, .left-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

.right-btn:hover, .left-btn:hover {
    cursor: pointer;
}

.right-btn {
    transform: rotateY(180deg);
}

.right-btn:hover {
    transform: rotateY(180deg) scale(1.2);
}

.left-btn:hover {
    transform: scale(1.2);
}

.right-btn:active {
    transform: rotateY(180deg) scale(1.1);
    transition: transform 0.1s ease-in-out;
}

.left-btn:active {
    transform: scale(1.1);
    transition: transform 0.1s ease-in-out;
}

.right-btn img, .left-btn img {
    height: 35px;
}



@media (max-width: 600px) {
    .pokedex {
        transform: scale(0.85); 
        transform-origin: center top;
    }

    .pokedex-top-part, .pokedex-bottom-part {
        height: 120px;
        max-width: 500px;
        width: 400px;
    }

    .pokedex-center-part,  .img-description-container {
        width: 370px;
    }

    .poke-description,  .talents-stats-container{
        width: 300px;
    }

    .poke-types {
        width: 280px;
    }


}

@media (max-width: 450px) {
    .pokedex {
        transform: scale(0.7); 
    }
    body {
        align-items: flex-start; 
        padding-top: 20px;
    }
}


@media (max-width: 360px) {
    .pokedex {
        transform: scale(0.6); 
    }
}

/* ===== Types (badges) ===== */
.type-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}

.type-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  color:#fff;
  font-weight:800;
  font-size:0.85rem;
  line-height:1;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.25);
}

/* Icône dans le badge */
.type-badge img{
  height:18px;
  width:18px;
  object-fit:cover;
}

/* Couleurs types */
.type-normal     { background: rgb(159, 161, 159); }
.type-feu        { background: rgb(230, 40, 41); }
.type-eau        { background: rgb(41,128, 239); }
.type-electrik   { background: rgb(250, 192, 1); }
.type-plante     { background: rgb(63, 161, 41); }
.type-glace      { background: rgb(62,216, 255);  }
.type-combat     { background: rgb(255, 128, 1); }
.type-poison     { background: rgb(143, 65, 203); }
.type-sol        { background: rgb(145, 81, 34);  }
.type-vol        { background: rgb(125, 185, 239); }
.type-psy        { background: rgb(240, 65, 120); }
.type-insecte    { background: rgb(145, 160, 25);  }
.type-roche      { background: rgb(175, 169, 129);  }
.type-spectre    { background: rgb(113, 65, 112); }
.type-dragon     { background: rgb(79, 98, 225); }
.type-tenebres   { background: rgb(80, 65, 64); }
.type-acier      { background: rgb(96, 161, 184); }
.type-fee        { background: rgb(239, 113, 239); }
