        :root {
            --primary: #008751; /* Vert du Bénin */
            --secondary: #fcd116; /* Jaune du Bénin */
            --accent: #e8112d; /* Rouge du Bénin */
            --light: #f5f5f5;
            --dark: #333333;
            --gray: #6c757d;
        }

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-y: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.hero,
.contact-section {
  width: 100%;
  max-width: 1200%;
  margin: 0;
  box-sizing: border-box;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://miro.medium.com/1*yOtYWhsTe51f_BDvVvXWoA.jpeg") no-repeat center center;
  background-size: cover;
  margin-top: 80px; /* ajuste selon la hauteur de ton header */
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #f8f9fa;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}


/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


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

     

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        /* Filter Section */
        .filters {
            background: white;
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 2rem;
        }

        .filters h2 {
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .filter-options {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .filter-btn {
            padding: 10px 20px;
            background: var(--light);
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* Events Section */
        .events-section {
            padding: 2rem 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--primary);
            position: relative;
        }

        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--secondary);
            margin: 10px auto;
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 3rem;
        }

        .event-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .event-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .event-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .event-card:hover .event-image img {
            transform: scale(1.05);
        }

        .event-date {
            background: var(--primary);
            color: white;
            padding: 10px 15px;
            display: inline-block;
            position: absolute;
            top: 15px;
            left: 15px;
            border-radius: 5px;
            font-weight: 600;
        }

        .event-info {
            padding: 20px;
        }

        .event-type {
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 10px;
            display: block;
            font-size: 0.9rem;
        }

        .event-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .event-desc {
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .event-details {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .event-detail {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--gray);
            font-size: 0.9rem;
        }

        .event-actions {
            display: flex;
            justify-content: space-between;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 500;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background: #006b44;
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        /* Newsletter Section */
        .newsletter {
            background: var(--light);
            padding: 4rem 0;
            margin: 4rem 0;
            text-align: center;
        }

        .newsletter-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .newsletter h2 {
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .newsletter p {
            margin-bottom: 2rem;
            color: var(--gray);
        }

        .newsletter-form {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .newsletter-form input {
            flex: 1;
            min-width: 250px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modal-content {
            background: white;
            width: 90%;
            max-width: 900px;
            border-radius: 10px;
            padding: 2rem;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray);
        }

        .modal-title {
            margin-bottom: 1.5rem;
            color: var(--primary);
            text-align: center;
        }

        .event-detail-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .event-detail-image {
            border-radius: 10px;
            overflow: hidden;
        }

        .event-detail-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .event-detail-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .detail-group {
            margin-bottom: 20px;
        }

        .detail-group h3 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .detail-item {
            display: flex;
            margin-bottom: 8px;
        }

        .detail-label {
            min-width: 120px;
            font-weight: 600;
            color: var(--dark);
        }

        .speakers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }

        .speaker-card {
            text-align: center;
        }

        .speaker-image {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 10px;
            overflow: hidden;
        }

        .speaker-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .schedule-item {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .schedule-time {
            font-weight: 600;
            color: var(--primary);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--dark);
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            nav ul {
                gap: 10px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .events-grid {
                grid-template-columns: 1fr;
            }

            .event-actions {
                flex-direction: column;
                gap: 10px;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .newsletter-form input {
                min-width: auto;
            }

            .event-detail-content {
                grid-template-columns: 1fr;
            }
        }

    /* Contact Section */
   .contact-section {
  max-width: 900px;
  margin: 0 auto 80px; /* ← ajoute de l'espace avant le footer */
  padding: 0 10px;
}

    .contact-section small{
      display:block;
      text-align:center;
      color:#555;
      margin-bottom:5px;
      font-size:0.9rem;
    }
    .contact-section h2{
      text-align:center;
      font-size:1.8rem;
      font-weight:700;
      margin-bottom:8px;
    }
    .contact-section > p{
      text-align:center;
      color:#666;
      margin-bottom:30px;
      font-size:1rem;
    }

    form{
      display:flex;
      flex-direction:column;
      gap:20px;
    }
    
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .form-group label {
      font-weight: 600;
      color: #333;
    }
    
    .form-row{
      display:flex;
      gap:15px;
      flex-wrap:wrap;
    }
    .form-row .form-group {
      flex:1;
      min-width:250px;
    }
    
    input, select, textarea{
      width:100%;
      padding:12px 14px;
      border:1px solid #ccc;
      border-radius:6px;
      font-size:1rem;
      outline:none;
    }
    textarea{
      min-height:100px;
      resize:vertical;
    }

    button.submit{
      background:#20ff76;
      border:none;
      color:#111;
      padding:12px 30px;
      border-radius:6px;
      font-weight:600;
      cursor:pointer;
      transition:.3s;
      width:max-content;
      margin:10px auto 0;
      font-size:1rem;
    }
    button.submit:hover{
      background:#1ae56c;
    }

    /* Responsive */
    @media(max-width:768px){
      body{
        padding:0;
      }
       footer {
    padding: 25px 15px; /* juste un padding interne */
  }
      .hero{
        padding:40px 15px;
        margin-bottom:30px;
      }
      .hero h1{
        font-size:1.7rem;
      }
      .contact-section h2{
        font-size:1.5rem;
      }
      .form-row{
        gap:12px;
      }
      .form-row .form-group {
        min-width:100%;
      }
    }

    @media(max-width:480px){
      .hero h1{
        font-size:1.5rem;
      }
      .hero p{
        font-size:0.95rem;
      }
      .contact-section h2{
        font-size:1.4rem;
      }
      button.submit{
        width:50%;
      }
    }