@font-face {
  font-family: "Montserrat";
  src: url(./fonts/Montserrat-Medium.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  list-style: none;
}

button {
  background: none;
  outline: none;
  cursor: pointer;
  border: 1px solid whitesmoke;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  transition: 0.5s ease;
}

button:hover {
  background: whitesmoke;
  color: black;
}

a {
  text-decoration: none;
}

body {
  margin: 0 auto;
  text-align: center;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
}

nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
}

nav li {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
  padding: 20px 0;
}

nav li:first-child {
  color: rgb(95, 4, 170);
}

nav li:first-child::before {
  content: "";
  width: 100%;
  height: 5px;
  background: rgb(95, 4, 170);
  position: absolute;
  transform: translateY(-20px);
}

nav li:hover::before {
  content: "";
  width: 100%;
  height: 5px;
  background: rgb(95, 4, 170);
  position: absolute;
  transform: translateY(-20px);
}

nav li:last-child::before {
  background: none;
}

#language {
  background: rgba(128, 128, 128, 0.5);
  border-radius: 50px;
  padding: 8px 16px;
}

.main-header {
  background: url(./img/bg.jpg) fixed center/cover;
  color: white;
  padding: 60px;
}

h1 {
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 800;
  margin: 30px 0 35px;
}

.main-header button {
  padding: 10px 20px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.main-header i {
  transform: translateX(5px);
}

.header-text {
  padding: 45px 0;
  max-width: 1100px;
  font-size: 1.2rem;
  line-height: 34px;
  margin: 0 auto;
}

.icon-partner {
  background: rgb(15, 15, 15);
  padding: 65px 0;
  color: whitesmoke;
}

.icon-partner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.lip-logo {
  margin-bottom: 30px;
}

.icon-partner h3 {
  text-transform: uppercase;
  font-weight: 700;
}

.icon-partner p {
  width: 80%;
  margin: 10px auto 20px;
}

.icon-partner button {
  padding: 9px 32px;
}

.news-part {
  background: rgba(245, 245, 245, 0.9);
  padding: 80px 0 45px;
}

.header-news {
  display: grid;
  grid-template-columns: 70% 30%;
  max-width: 1000px;
  margin: 0 auto;
}

.left-part {
  line-height: 30px;
}

.left-part h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-align: left;
}

.left-part p {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.right-part button {
  color: black;
  border-color: black;
  letter-spacing: 1px;
  padding: 10px 20px;
}

.right-part button:hover {
  background: rgba(0, 0, 0, 0.9);
  color: whitesmoke;
}

.main-news-container {
  display: flex;
  justify-content: space-around;
  max-width: 1100px;
  margin: 45px auto;
}

.main-news-container > div {
  position: relative;
  max-width: 23%;
}

.main-img img {
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 10px #888;
}

.main-news-container h4 {
  text-align: left;
  margin: 15px 0;
}

.main-news-container p {
  text-align: left;
  font-size: 0.8rem;
  line-height: 20px;
  margin-bottom: 45px;
}

.link {
  text-align: left;
  position: absolute;
  bottom: 0;
}

.main-news a {
  text-transform: uppercase;
  color: rgb(95, 4, 170);
  font-size: 0.7rem;
  letter-spacing: 1px;
  font-weight: 900;
}

.main-news a:hover {
  color: rgb(167, 137, 192);
}

.main-news i {
  transform: translateX(5px);
}

.contact {
  padding: 65px 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-list {
  display: flex;
  justify-content: space-around;
  font-weight: 400;
  position: relative;
}

.contact-list::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 1px;
  background: rgb(235, 235, 235);
  bottom: -28px;
}

.contact-list .list {
  text-align: left;
  width: 24%;
}

#contact-img img {
  margin: 0 auto;
  display: block;
}

.contact-list h5 {
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 15px;
}

.info-p li {
  margin: 15px 0;
}

.list p {
  line-height: 22px;
  margin-bottom: 15px;
}

.list h6 {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.list .network {
  margin: 20px 0 8px;
}

.réseaux-sociaux i {
  font-size: 0.8rem;
  margin: 0 12px 30px 0;
}

.copyright {
  margin: 0;
}

.contact-presse {
  padding: 60px 0 15px;
  display: flex;
  align-items: center;
  width: 95%;
  margin: 0 auto;
}

.media-text {
  text-align: left;
  width: 30%;
}

.media-text h3 {
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.media-text p {
  font-size: 0.8rem;
}

.logo-press {
  display: flex;
  justify-content: space-around;
  width: 70%;
}

.logo-press img {
  width: 60px;
}

footer {
  background: rgb(15, 15, 15);
  color: whitesmoke;
  padding: 25px;
}

footer h3 {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 32px;
}

footer ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

footer li img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer li img:hover {
  opacity: 1;
}

/* *********** HAMBURGER MENU *************** */

.hamburger {
  display: none;
  border: none;
  background: none;
  color: black;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 16px;
  position: absolute;
  right: 16px;
  top: 4px;
}

/* *********** MEDIA QUERIES *************** */

@media screen and (max-width: 704px) {
  nav {
    position: relative;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px 16px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 100;
  }

  nav ul.open {
    display: flex;
  }

  nav li {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav li:first-child::before,
  nav li:hover::before {
    display: none;
  }

  .main-header {
    display: block;
  }

  .contact {
    display: none;
  }

  .icon-partner-container {
    display: block;
  }

  .icon-partner {
    padding: 0 0 30px;
  }

  .icon-partner-list {
    padding-top: 40px;
  }

  .right-part {
    text-align: center;
    margin-top: 15px;
  }

  .header-news {
    display: block;
  }

  .left-part {
    width: 100%;
  }

  .left-part h2 {
    text-align: center;
  }

  .left-part p {
    text-align: center;
    margin-bottom: 10px;
  }

  .main-news-container {
    display: block;
  }

  .main-news-container > div {
    max-width: 90%;
    margin: 40px auto 0;
    padding-bottom: 15px;
  }

  .main-news-container > div:first-child {
    margin-top: 20px;
  }

  .main-news-container img {
    width: 100%;
  }

  .link {
    position: static;
    margin-top: 12px;
  }
}

@media screen and (max-width: 400px) {
  .main-header img {
    width: 60%;
  }

  footer li {
    margin: 5px;
  }
}
