*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "VT323", monospace;
    font-weight: 400;
}

body {
  margin: 0;
  min-height: 100vh;
  flex-direction: column;
  display: flex;
  text-align:center;
}

header{
    background-color:#f7cd89;
    width: 100vw;
    height: 150px;
    padding: 0 40px;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);

}

header ul {
    display: flex;
    gap: 40px;
    align-items: center;
    font-size: 1.7rem;
}


header li {
    list-style: none;
    font-weight: 600;
}

header ul li a {
    text-decoration: none;
    color: black;
}


/*Sous menu*/
header #sous-menu {
    height: 0;
    width: 100%;
    background-color: #f4f0f0;
    overflow: hidden;
    text-align: left;
    transition: all ease 0.3s;
    position: absolute;
}

header li:has(#sous-menu) {
    position: relative;
}

header li:hover #sous-menu {
    display: block;
    height: auto;
    width: auto;
    overflow: visible;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    
}

header #sous-menu li {
    padding: 10px;
}
/*navigation*/
.navbar {
    height: 150px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-around;
    
}

.left{
    display: flex;
    align-items: center;
    gap: 90px;
}

#loupe{
    width: 45px;
    height: 45px;
}

#logo{
    width: 460px;
    height: 160px;
    
    
    
}


#icon{
    display: flex;
    gap: 20px;
}


/* MENU */
ul {
  list-style: none;
}

ul li {
  display: inline-block;
  margin-right: 15px;
}

ul li a {
  color: white;
  text-decoration: none;
}

/* MAIN */
main {
  padding: 30px;
  text-align: center;
}

/* TITRE */
h1 {
  margin-bottom: 20px;
}

main {
    flex:1;
   
}


/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* CARD */
.pokemon-card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  font-size: 32px;
}

.pokemon-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.pokemon-card img {
  width: 300px;
}

/* NOM */
.pokemon-card h3 {
  margin: 10px 0;
  text-transform: capitalize;
}

/* BOUTON SUPPRIMER */
.pokemon-card button {
  padding: 18px 22px;
  border: none;
  border-radius: 10px;
  background: #ff5252;
  color: white;
  cursor: pointer;
  font-size: 50px;
}

.pokemon-card button:hover {
  background: #ff0000;
}



/* RESPONSIVE */
@media (max-width: 500px) {
  #logo {
    width: 90px;
  }

  .pokemon-card img {
    width: 80px;
  }
}

footer{
  
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    background-color:#f7cd89;
    width: 100vw;
    height: 150px;
    padding: 0 40px;
    box-shadow: 0 5px 8px 8px rgba(0, 0, 0, 0.4);
    

}