*{
  box-sizing: border-box;
}

body {
  background-color: #f0f0f0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  height: 1283px;
  margin:0 Auto;
  position: relative;
}
*, ::before, ::after {
  box-sizing: border-box;
}
body {
  display: block;
  margin: 8px;
}



.container {
  background-color: #fff;
  margin: 0 auto;
  flex-direction: column;
  /*width: 1000px;*/
}
.site-header {
  background-color: #fff; /* white background */
  padding: 20px;                  /* space inside header */
  border-bottom: 1px solid #e2e2e2;
  align-items: center;
  display: flex;
  margin: 10px 20px;
  height: 88px;
  justify-content: space-between;


}
.h1 {
  font-size: 24px;
  font-weight: 700;
  margin-left: 25px;
}
nav ul {
  display: flex;
  list-style: none; /* remove bullets */
  margin: 0;
  padding: 0;

}
nav li{
  margin-left: 25px;
}
nav a {
  color: #777;
  font-weight: 400;
  text-decoration: none;
}

nav a:hover {
  color: #000;
}

/* == SITE-MAIN == */

.site-main {
  align-items: flex-start;
  background-color: #f0f0f0;
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  padding: 30px;
}

/* == Biography == */

.biography {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 20px;
  /*width: 300px;*/
}

.biography img {
  border-radius: 50%;
  display: block;
  height: 160px;
  margin: 0 auto 20px;
  object-fit: cover;
  /*width: 160px;*/
}

.biography h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
  text-align: center;
}

.biography p {
  line-height: 145%;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: justify;
}

.biography hr {
  border: none;
  border-top: 1px solid #e2e2e2;
  margin-bottom: 10px;
  margin-top: 10px;
}

/* == ARTICLES == */

.articles {

  border-radius: 5px;
  background-color: transparent;
  margin-bottom: 30px;
  gap: 30px;
  display: flex;
  flex-direction: column;
}

.articles article {
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  box-sizing: border-box;
  /*display: flex;*/
  gap: 20px;
 /* overflow: hidden;*/
  padding: 20px;
  width: 100%;
}

.articles article img {
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
  height: 180px;
  object-fit: cover;
  width: 180px;
}

.articles article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.articles article p {
  line-height: 145%;
  margin-bottom: 10px;
  margin-top: 10px;
}

.articles article .meta {
  color: #777;
  font-size: 14px;
}

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

.articles article a:hover {
  color: #000;
}

.articles article .content {
  flex: 1;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}


/* == SITE FOOTER == */

.site-footer {
  background-color: #000;
  color: #fff;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
 /* width: 1000px;*/
}

.site-footer strong {
  font-weight: 700;
}


/* ==============================
   MENU PRINCIPAL
============================== */
.menu {
  font-family: Lato, sans-serif;
  background: transparent;
}

.menu-principal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu-principal > li {
  position: relative;
}

.menu-principal > li > a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  display: inline-block;
  cursor: pointer;
}

/* ==============================
   SOUS-MENU
============================== */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  min-width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.submenu li {
  border-bottom: 1px solid #e2e2e2;
}

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

.submenu a {
  display: block;
  padding: 10px;
  color: #777;
  text-decoration: none;
  background-color: #fff;
  cursor: pointer;
}

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

/* ==============================
   INTERACTION : hover & focus
============================== */
.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
  display: block;
}


/* == Responsive Web Design == */

/* Styles pour Desktop */
@media (width >= 1000px)  {

  .articles article img {
    display: block;
  }
  .articles article img {
    width: 100%;
  }
}

/* Styles pour les tablettes */
@media (width <= 1000px) and (width >= 769px) {

  .articles article img {
    display: block;
  }
  .articles article img {
    width: 100%;
  }
}

/* Style Smartphone paysage */
@media (width <= 768px) and (width >= 481px) {

  main {
    flex-direction: column;
  }

  aside {
    order: 2;
  }
  .articles article img {
    display: block;
  }
  .articles article img {
    width: 100%;
  }
}

/* Styles pour les smartphones */
@media (width <= 480px) {

  main {
    flex-direction: column;
  }

  aside {
    order: 2;
  }
  /* ton design mobile ici */
  .articles article img {
    display: block;
  }
  .articles article img {
    width: 100%;
  }
}
