/* Variables globales */
:root {
    --primary: #0077B6;
    --secondary: #90E0EF;
    --accent: #03045E;
    --light: #ecf0f1;
  }
  
  /* Corps de la page */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light);
  }
  
  /* Navigation */
  nav {
    background: var(--primary);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }
  
  .nav-links .active {
    font-weight: bold;
    text-decoration: underline;
  }
  
  .adherer-button {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .adherer-button:hover {
    background: #c0392b;
    transform: scale(1.05);
  }
 /* Section héro */
.hero-section {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-bottom: 5px solid var(--accent);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-section .cta-button {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-section .cta-button:hover {
  background: #005580;
  transform: scale(1.1);
}

/* Blog Container */
.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 50px auto;
  max-width: 1200px;
  padding: 40px 20px;
  background-color: #f7f9fc;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-featured {
  width: 100%;
  max-width: 700px;
}

.blog-content {
  padding: 20px;
  text-align: center;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: bold;
}

.blog-card-featured h2 {
  font-size: 2.2rem;
}

.blog-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 25px;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.blog-card .read-more:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Date */
.date {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
  font-style: italic;
}
/* Carousel Section */
.blog-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
}

.carousel-container {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out; ;
}

.blog-card {
  flex: 0 0 30%; /* Ajuster la largeur à 30% pour afficher 3 articles */
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.featured-article-container {
  padding: 30px;
  background: #f0f8ff;
  border: 2px solid var(--primary);
  border-radius: 15px;
  margin-bottom: 20px;
}

.blog-card-featured h2 {
  font-size: 2.5rem;
  color: var(--accent);
}

.blog-card-featured p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}


