
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #1a1a1a;
}

header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

header h1 {
    color: #28a745;
    font-size: 24px;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: #28a745;
    border-bottom: 2px solid #28a745;
}

main {
    padding: 40px;
}

section {
    margin-bottom: 60px;
}


.main-content {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 50px;
    background: #ffffff;
}


.hero {
    text-align: center;
    padding: 40px 20px;
}
.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
/* .card {
    border: 1px solid #ddd;
    padding: 40px;
    border-radius: 10px;
    min-width: 150px;
    text-align: center;
} */

.card span {
    display: block;
    margin-top: 30px;
    background: #f0f0ff;
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 12px;
}

.cat-title {
    font-weight: 600
}

.articles {
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}
.article {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
}
.article span {
    display: inline-block;
    background: #e0f7e0;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}




 .hero {
      padding: 80px 20px 40px;
    }

    .hero h1 {
      font-size: 48px;
      font-weight: bold;
    }

    .hero h1 .green {
      color: #28a745;
    }

    .hero p {
      font-size: 18px;
      color: #5a705f;
      max-width: 700px;
      margin: 20px auto;
      line-height: 1.6;
    }

    .buttons {
      margin: 30px 0;
    }

    /* .btn {
      padding: 12px 25px;
      border: none;
      margin: 0 10px;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
    }

    .btn-green {
      background-color: #228B22;
      color: white;
    }

    .btn-outline {
      border: 2px solid #228B22;
      color: #228B22;
      background: white;
    } */

    .arrow {
      font-size: 30px;
      margin-top: 40px;
      color: #228B22;
      animation: bounce 2s infinite;
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
      }
      40% {
        transform: translateY(10px);
      }
      60% {
        transform: translateY(5px);
      }
    }

    .section {
      padding: 60px 20px;
      background-color: #fff;
    }

    .section h2 {
      font-size: 36px;
      margin-bottom: 10px;
    }

    .section p {
      font-size: 18px;
      color: #5a705f;
      max-width: 700px;
      margin: 0 auto;
    }


    .hero {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(to bottom, #d9f8df, #ffffff);
      color: #222;
      text-align: center;
    }




    /* ----- */
    .card.upcoming {
      border-left-color: #1ea425;
      border-left-width: 5px;
      margin-bottom: 20px;
    }

    .card.finished {
      border-left-color: #e11d1d;
      border-left-width: 5px;
      margin-bottom: 20px;
    }

    .badge {
      /* display: inline-block; */
      background-color: #e8f5e9;
      color: #2e7d32;
      font-size: 13px;
      font-weight: bold;
      padding: 4px 10px;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .badge.finished {
      background-color: #e6e6e6;
      color: #23aa33;
    }

    .level {
      float: right;
      background-color: #f2f2f2;
      color: #000000;
      font-size: 12px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 8px;
    }

    .card h3 {
      font-size: 18px;
      margin: 10px 0;
    }

    .info {
      font-size: 14px;
      color: #555;
      margin: 5px 0;
    }

    .info i {
      margin-right: 6px;
    }

       p.subtitle {
      color: #5a705f;
      font-size: 18px;
      margin-top: 10px;
      margin-bottom: 40px;
    }

    .container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      max-width: 1200px;
      margin: auto;
      padding: 0 20px 60px;
    }

    .column {
      flex: 1;
      min-width: 300px;
    }

    .column h2 {
      font-size: 24px;
      text-align: left;
      margin-bottom: 20px;
    }

    .btn.green {
      background-color: #24aa2a;
      color: white;
    }

     .btn.outline {
      border: 1px solid #ccc;
      background-color: white;
      color: #333;
    }

    /* ---- BLOG ----- */

     .blog-container {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .search-bar input {
      width: 100%;
      padding: 15px 20px;
      border: 1px solid #ddd;
      border-radius: 10px;
      font-size: 16px;
      margin-bottom: 30px;
    }

    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 40px;
    }

    .filter-btn {
      padding: 8px 16px;
      background-color: #f1fdf4;
      border: 1px solid #d1e7dd;
      border-radius: 20px;
      font-weight: 500;
      color: #198754;
      cursor: pointer;
    }

    .filter-btn.active {
      background-color: #198754;
      color: white;
    }

    .featured-article {
      background: white;
      border-left: 5px solid #198754;
      border-radius: 12px;
      padding: 25px;
      margin-bottom: 40px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .featured-tags {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }

    .tag {
      background-color: #f1fdf4;
      color: #198754;
      font-size: 13px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 20px;
    }

    .featured-article h2 {
      margin: 10px 0;
      font-size: 24px;
    }

    .featured-article p {
      color: #555;
      margin-bottom: 15px;
    }

    .meta {
      color: #888;
      font-size: 14px;
      display: flex;
      gap: 20px;
      align-items: center;
      margin-bottom: 20px;
    }

    .btn-read {
      background-color: #198754;
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
    }

    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .article-card {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .article-card .tag {
      margin-bottom: 10px;
      display: inline-block;
    }

    .article-card h3 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .article-card p {
      font-size: 15px;
      color: #555;
      margin-bottom: 15px;
    }

    .meta-card {
      display: flex;
      justify-content: space-between;
      color: #888;
      font-size: 14px;
      margin-bottom: 15px;
    }

    .btn-outline {
      background-color: white;
      color: #198754;
      border: 1px solid #198754;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
    }

    @media screen and (max-width: 600px) {
      .featured-article h2 {
        font-size: 20px;
      }

      .btn-read, .btn-outline {
        width: 100%;
      }
  }

  /* ----- A PROPOS DE MOI ------ */
  .section {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-bottom: 50px;
    }
    .column {
      flex: 0 0 48%;
    }
    h2 {
      color: #000;
    }
    ul {
      padding-left: 20px;
    }
    .stats {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .stat-box {
      flex: 0 0 23%;
      background-color: #fff;
      padding: 20px;
      margin-bottom: 20px;
      text-align: center;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .stat-box .number {
      font-size: 24px;
      font-weight: bold;
      color: #008000;
    }
    .stat-box .label {
      margin-top: 5px;
      color: #666;
    }


    /* ----- */
    .top-section {
      background: linear-gradient(to bottom, #f3f9f3, #ffffff);
      padding: 60px 20px 40px;
      text-align: center;
    }

    .top-section h1 {
      font-size: 36px;
      font-weight: bold;
      margin-bottom: 10px;
      color: #111;
    }

    .top-section p {
      font-size: 18px;
      color: #5c6b5c;
      margin-bottom: 30px;
    }

    .top-section .btn {
      background-color: #2e7d32;
      color: white;
      padding: 12px 28px;
      border: none;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .top-section .btn:hover {
      background-color: #256429;
    }


footer {
    background: #28a745;
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer div {
    flex: 1 1 200px;
    margin: 10px;
}
