@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f7f7f7;
}

/* Gestion typographique responsive sans media query */
h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
 
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);

}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
 
}

 .news-description, .news-date {
  font-size: clamp(12.5px, 1.2vw, 14px);
}
.news-title a{
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    color: #003366;
}

/* News section */
.news {
  padding: 30px 0;
  background-color: #092a49 !important;
}

.container-news {
  width: 75%;
  margin: 0 auto;
  min-height: 80vh;
}

.flex {
  display: flex;
  gap: 15px;
}

.container-news h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.news-wrapper {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.left-column {
  width: 40%;
  min-height: 100%;
}

.right-column {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-column > .news-card {
  min-height: 100%;
}

.news-card {
  position: relative;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

}

.flex > .news-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.news-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.news-images {
  height: 170px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-date {
  color:#003366;
}

.news-content .links {
  position: absolute;
  bottom: 40px;
  right: 0px;
}

.news-content .links a i {
  color: #555;
}

.news-title {
  color:#003366;
  margin-bottom: 5px;
  font-weight: 600;
}

.news-description {
  color: #555;
  margin-bottom: 15px;
}

/* -------------------------
   RESPONSIVE STRUCTURE SEULEMENT
------------------------- */

@media (max-width: 500px) {
  .flex {
    flex-direction: column;
    gap: 10px;
  }
  .flex > .news-card {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 1199px) {
  .container-news {
    width: 90%;
  }

  .news-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .left-column,
  .right-column {
    width: 100%;
    height: auto;
  }

  .news-image {
    height: 250px;
  }

  .news-images {
    height: 120px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .container-news {
    width: 90%;
  }

  .news-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .news-image {
    height: 300px;
  }

  .news-images {
    height: 130px;
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .container-news {
    width: 75%;
  }

  .left-column {
    width: 45%;
  }

  .right-column {
    width: 55%;
  }
}

@media (min-width: 1601px) {
  .container-news {
    width: 75%;
  }

  .news-image {
    height: 500px;
  }

  .news-images {
    height: 180px;
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .container-news {
    width: 90%;
  }
}

@media (max-width: 1199px) {
  .container-news {
    width: 90%;
  }
}