* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "VT323", monospace;
    font-weight: 400;
}

/* BODY */
body {
  margin: 0;
  min-height: 100vh;
  flex-direction: column;
  display: flex;
  text-align:center;
}

header{
    background-color:#f7cd89;
    width: 100%;
    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;
}



#logo{
    width: 460px;
    height: 160px;
    
    
    
}


#icon{
    display: flex;
    gap: 20px;
}


main {
    flex:1;
    padding: 20px;
    background-color: white;
    border-radius: 20px;
    margin: 20px auto;
    width: 40%;
    height: 400px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

footer {
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    background-color:#f7cd89;
    width: 100%;
    height: 150px;
    padding: 0 40px;
    box-shadow: 0 5px 8px 8px rgba(0, 0, 0, 0.4);
    
    
}

@media (max-width: 1024px) {

  .navbar {
    justify-content: center;
  }

  .left,
  #icon {
    width: 100%;
    justify-content: center;
  }

  header ul {
    font-size: 1.5rem;
    gap: 20px;
  }

  #logo {
    max-width: 320px;
  }

  main {
    width: 92%;
  }
}

/* =======================
   MOBILE
======================= */
@media (max-width: 768px) {

  header {
    padding: 15px;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  header ul {
    flex-direction: column;
    gap: 10px;
    font-size: 1.4rem;
  }

  #logo {
    max-width: 260px;
  }

  #icon img {
    width: 42px;
  }

  main {
    padding: 18px;
    border-radius: 15px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .ico-foot {
    justify-content: center;
  }

  header #sous-menu {
    position: static;
    width: 100%;
    text-align: center;
  }
}

/* =======================
   PETIT MOBILE
======================= */
@media (max-width: 480px) {

  main h1 {
    font-size: 2rem;
  }

  main h2 {
    font-size: 1.6rem;
  }

  main p,
  main li {
    font-size: 1.2rem;
  }

  #logo {
    max-width: 220px;
  }

  #icon img,
  .ico-foot img {
    width: 36px;
  }
}

