* {
  margin: 0;
  padding: 0;
}
html {
  font-size: 14px;
}

/*Section #1 */
.container-actualite {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
}

.container-Image-Actu {
  width: 100%;
  height: 300px;
}

.container-Image-Actu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.container-info-actu article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container-info-actu span {
  color: #6b7280;
  font-size: 1rem;
}

.container-title-actu h1 {
  font-size: 2.5rem;
  line-height: 1.3;
}

.container-title-actu a {
  color: #111827;
}

.container-title-actu a:hover {
  color: #2563eb;
}

.container-previous-Actu {
  color: #4b5563;
  line-height: 1.7;
}

.publicite {
  height: 50vh;
  padding: 1em;
  margin-bottom: 10px;
}
.swiperPub {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Section pour les autres publications récentes*/
.recentPost {
  padding: 1em 0.7em;
}
.recentPost h2 {
  font-size: clamp(0.6rem, 5vw, 2.2rem);
}
.allPost {
  margin-top: 2em;
}
.post {
  display: flex;
  margin-bottom: 0.5em;
  gap: 05px;
  align-items: stretch;
}
.postImage {
  flex: 0 0 40%;
}
.postImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.postText {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.postText a {
  text-decoration: none;
  color: #0e0e0e;
  font-size: clamp(0.1rem, 3.7vw, 1.5em);
  line-height: 1.4;
}
.postText span {
  font-size: clamp(0.01rem, 3.4vw, 1.2rem);
  color: #565656;
}

/*Pour les tablettes*/
/* @media screen and (min-width: 450px) {
  .actuImage {
    height: 40vh;
  }
  .actuTexte span {
    font-size: 1.5rem;
  }
  .titreActu a {
    font-size: 2.5rem;
  }
  .nouvelleActu {
    font-size: 1.5rem;
  }
} */

/*Pour les grandes Ecrans: Ordi...*/
@media screen and (min-width: 800px) {
  /*Premiere section: Actualité*/
  .container-actualite {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    padding: 3rem;
  }
  .container-Image-Actu {
    flex: 0 0 55%;
    height: 500px;
  }
  .container-info-actu {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
  }
  .container-title-actu h1 {
    font-size: 3rem;
  }
  .container-info-actu span {
    font-size: 1.5rem;
  }

  /*Section publicité*/
  .publicite {
    height: 70vh;
    padding: 1em;
    margin-bottom: 10px;
    display: block;
  }

  .swiperPub {
    width:75%;
    height:auto;
    max-height: 100%;
    overflow:hidden;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /*Section recents Posts:*/
  .recentPost {
    padding: 3.5rem;
  }
.allPost {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
}

.postImage {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.postImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.post:hover .postImage img {
    transform: scale(1.05);
}

.postText {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px;
}

.postText span:first-child {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #c40000;
}

.postText h4 {
    font-size: 1rem;
    line-height: 1;
}

.postText h4 a {
    text-decoration: none;
    color: #111;
    transition: 0.3s ease;
}

.postText h4 a:hover {
    color: #c40000;
}

.postText span:last-child {
    font-size: 0.85rem;
    color: #777;
}
}
