
nav {
  font-family: Lato, sans-serif;
}

nav ul.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu > li > a {
  color: #777;
  cursor: pointer;
  display: block;
  font-size: 0.875rem;
  padding: 0.625rem 0;
  text-decoration: none;
}

nav ul.menu > li > a:hover {
  color: #000;
}

.submenu {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 0.3125rem;
  display: none;
  left: auto;
  margin: 0;
  min-width: 12rem;
  padding: 0;
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  z-index: 1000;
}

.submenu li {
  border-bottom: 1px solid #e2e2e2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  color: #777;
  cursor: pointer;
  display: block;
  font-size: 0.875rem;
  padding: 0.625rem;
  text-decoration: none;
  width: 100%;
}

.submenu a:hover {
  background: #f0f0f0;
  color: #000;
}

.menu:hover .submenu {
  display: block;
}

body {
  background-color: #f0f0f0;
  color: #000;
  font-family: Lato, sans-serif;
  font-size: 0.875rem;
  margin: 0;
  width: 100%;
}

main {
  background-color: #f0f0f0;
  border-top: 0.0625rem solid #e2e2e2;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.875rem;
  width: 100%;
}

.entete {
  align-items: center;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  padding: 1.875rem;
}

.entete h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.entete nav a {
  color: #777;
  margin-left: 1.5625rem;
  text-decoration: none;
}

.entete nav a:hover {
  color: #000;
}

.articles {
  flex: 1;
  width: 100%;
}

article {
  align-items: flex-start;
  background-color: #fff;
  border: 0.0625rem solid #e2e2e2;
  border-radius: 0.3125rem;
  box-sizing: border-box;
  display: flex;
  height: fit-content;
  margin-bottom: 1.875rem;
  padding: 1.25rem;
  width: 100%;
}

.articles img {
  border-radius: 0.3125rem;
  height: 11.25rem;
  margin-right: 1.25rem;
  object-fit: cover;
  width: 11.25rem;
}

.contenu-article h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.3125rem;
}

.contenu-article {
  flex: 1;
  width: fit-content;
}

.meta {
  color: #777;
  font-size: 0.8125rem;
  margin: 0.3125rem 0 0.9375rem;
}

.contenu-article p {
  line-height: 1.45;
  margin-bottom: 0.625rem;
  width: fit-content;
}

.contenu-article a {
  color: #777;
  text-decoration: none;
}

.contenu-article a:hover {
  color: #000;
}

.biographie {
  background-color: #fff;
  border: 0.0625rem solid #e2e2e2;
  border-radius: 0.3125rem;
  flex: 0 0 18.75rem;
  height: fit-content;
  margin-right: 1.875rem;
  max-width: 100%;
  padding: 1.25rem;
  text-align: center;
  width: 19rem;
}

.biographie img {
  border-radius: 50%;
  height: 10rem;
  margin-bottom: 1.25rem;
  object-fit: cover;
  width: 10rem;
}

.biographie h2 {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  margin-bottom: 0.625rem; /* 10px */
  text-align: left;
  width: fit-content;
}

.biographie p {
  line-height: 1.45;
  text-align: left;
  width: fit-content;
}

.biographie hr {
  background-color: #e2e2e2;
  border: none;
  height: 0.0625rem;
  margin: 0.625rem 0;
}

.pied-de-page {
  background-color: #000;
  color: #fff;
  margin-top: 1.875rem;
  padding: 1.25rem 0;
  text-align: center;
  width: 100%;
}


/* TABLETTE */
@media (width <= 999px) and (width >= 769px) {
  article {
    flex-direction: column;
    padding: 1rem;
  }

  .articles img {
    height: 11.25rem;
    margin-bottom: 1rem;
    margin-right: 0;
    width: 100%;
  }

  .contenu-article h2 {
    font-size: 1.25rem;
  }

  .entete {
    flex-direction: row;
    padding: 1.25rem;
  }

  .entete nav a {
    margin-left: 1rem;
  }

}

/* SMARTPHONE PAYSAGE */
@media (width <= 768px) and (width >= 481px) {
  .entete {
    flex-direction: row;
    padding: 1.25rem;
  }

  .entete h1 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .entete nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  nav ul.menu {
    flex-direction: row;
    gap: 1rem;
  }

  main {
    flex-direction: column;
    padding: 1.25rem;
  }

  article {
    flex-direction: row;
    padding: 1rem;
  }

  .articles img {
    height: 15rem;
    margin-right: 1rem;
    width: 15rem;
  }

  .contenu-article h2 {
    font-size: 1.15rem;
  }

  .contenu-article p {
    font-size: 0.9rem;
  }

  .biographie {
    margin: 0 0 1.5rem;
    order: 2;
    padding: 1.25rem;
    width: 100%;
  }


  .biographie h2 {
    font-size: 1.15rem;
  }

  .articles {
    order: 1;
  }
}

/* SMARTPHONE PORTRAIT */
@media (width <= 480px) {
  main {
    flex-direction: column;
    padding: 1rem;
  }

  article {
    flex-direction: column;
    padding: 1rem;
  }

  .articles img {
    height: auto;
    margin: 0 0 1rem;
    width: 100%;
  }

  .contenu-article {
    width: 100%;
  }

  .biographie {
    margin: 0 0 2rem;
    order: 2;
    width: 100%;
  }

  .biographie img {
    margin: 0 auto 1rem;
  }

  .biographie h2,
  .biographie p {
    text-align: left;
    width: 100%;
  }

  .entete {
    flex-direction: column;
    text-align: center;
  }

  .entete nav a {
    margin: 0.75rem;
    }


  .articles {
    order: 1;
  }
}

