/* === STYLE GLOBAL === */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #f5f5f5;
}



.hero-actualites h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-actualites p {
  font-size: 1.2rem;
}

/* === ARTICLES RECENTS === */
.articles-recents {
  padding: 60px 10%;
  background: #fff;
  text-align: center;
}

.articles-recents h2 {
  color: #003366;
  margin-bottom: 40px;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
}

.article-card {
  background: #f0f4f8;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-text {
  padding: 15px;
}

.article-text h3 {
  margin: 10px 0;
  color: #003366;
}

.article-text p {
  font-size: 0.95rem;
  color: #555;
}

/* === CONSEILS PRATIQUES === */
.conseils-pratiques {
  padding: 60px 10%;
  background: #e6f0fa;
  text-align: center;
}

.conseils-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 25px;
}

.conseil-card {
  background: #fff;
  flex: 1 1 280px;
  max-width: 300px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.conseil-card:hover {
  transform: translateY(-5px);
}

.conseil-card i {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 10px;
}

/* === GALERIE === */
.galerie-actualites {
  padding: 60px 10%;
  text-align: center;
}

.galerie-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
}

.galerie-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.galerie-item img:hover {
  transform: scale(1.05);
}

/* === NEWSLETTER === */
.newsletter-actualites {
  background: #003366;
  color: white;
  padding: 50px 10%;
  text-align: center;
}

.newsletter-actualites input[type="email"] {
  padding: 10px;
  width: 250px;
  max-width: 80%;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter-actualites button {
  padding: 10px 20px;
  border: none;
  background: #00c3ff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}

.newsletter-actualites button:hover {
  background: #0090cc;
}

/* === RESPONSIVE === */
@media(max-width:768px) {
  .conseils-container {
    flex-direction: column;
    align-items: center;
  }
}
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero__img {
    display: block;
    width: 100%;
    height: auto;          /* garde les proportions naturelles */
    max-width: 100%;       /* empêche le dépassement sur petits écrans */
    object-fit: cover;     /* adapte l’image sans la déformer */
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}
