
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.827);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  .popup-box {
    background: #fff;
    color: #333;
    max-width: 500px;
    width: 100%;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.475);
    animation: fadeIn 0.5s ease;
  }
  .popup-box h2 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #007bff;
  }
  .popup-box p {
    font-size: 0.8rem;
    margin: 10px 0;
  }
  .strong {
    color: #c0590a;
    font-size: 0.5rem;
    font-weight: bold;
    
  }
  .popup-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 15px 0;
  }
  .popup-box ul li {
    margin: 6px 0;
    font-size: 0.8rem;
  }
  .popup-box .merci {
    margin-top: 15px;
    font-style: italic;
    color: #555;
  }
  .popup-box button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
  }
  .popup-box button:hover {
    background: #f3da1f;
  }
  @keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  @media screen and (max-width: 600px) {
    .popup-overlay {
      padding: 10px;
    }
    .popup-box {
      width: 95%;
      padding: 15px;
    }
    .popup-box h2 {
      font-size: 0.8rem;
    }
    .popup-box p, .popup-box ul li {
      font-size: 0.7rem;
    }
    .popup-box button {
      width: 50%;
      padding: 5px;
      margin: 10px 0;
      font-size: 0.8rem;
      border-radius: 20px;
    }
    .popup-box .merci {
      font-size: 0.6rem;
    }
    .popup-box{
      max-width: 300px;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
  }


  .hero-carousel {
  position: relative;
  margin: 0 auto 32px auto;
  max-width: 1400px;
  padding: 0 12px;
}
.hero-title {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 4px 8px #000;
}
.hero-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
}
.hero-card {
  flex: 0 0 auto;
  width: 350px;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px #000a;
  background: #181818;
  cursor: pointer;
  position: relative;
  transition: transform .2s;
}
.hero-card:hover {
  transform: scale(1.04);
}
.hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg,rgba(0,0,0,.8),rgba(0, 0, 0, 0.56));
  color: #e99a06;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 18px 16px 10px 16px;
  text-shadow: 0 2px 8px #000;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1d1b1b;
  color: #ec7f09;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(213, 203, 203, 0.667);
}
.hero-nav.prev { left: 0; }
.hero-nav.next { right: 0; }

/* Popup styles (reprend ton style existant) */
.popup {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 14px;
  z-index: 9999;
}
.popup-card {
  width: min(880px, 96vw);
  background: #181818;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  max-height: 90vh;
  overflow: auto;
}
.popup-close {
  position: absolute; top: 8px; right: 8px; background: #000; color: #3e3d3d;
  border: 1px solid #333; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1.5rem;
  z-index: 1;
}
.popup-title {
  margin: 0 40px 10px 6px; font-size: 1.2rem;
}
.player {
  aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 10px; overflow: hidden;
}
.player iframe {
  width: 100%; height: 100%; border: 0;
}
@media screen and (max-width: 600px) {
  .hero-card {
    width: 220px;
    height: 360px;
  }
  .hero-caption {
    font-size: 1rem;
    padding: 12px 10px 8px 10px;
  }
  .hero-nav {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .popup-card {
    width: 100%;
    padding: 12px;
  }
  .popup-title {
    font-size: 1rem;
    margin: 0 36px 8px 4px;
  }
  .popup-close {
    width: 30px; height: 30px; font-size: 1.2rem; top: 6px; right: 6px;
  }
  .hero-title {
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
}

.baner {
  width: 100%;                 /* toujours prendre toute la largeur */
  max-height: 200px;           /* limite la hauteur maximale */
  height: auto;                /* hauteur automatique selon l'image */
  background: url('https://i.postimg.cc/3x3QzSGq/baner.png') no-repeat center center;
  background-size: cover;      /* l'image couvre entièrement le conteneur */
  margin: 50px 0 10px 0;       /* margin-top:50px ; margin-bottom:10px */
  box-shadow: 0 4px 8px #e1dede; /* ombre portée */
  border-radius: 12px;        /* coins arrondis */
}

/* Optionnel : ajustements pour écrans très petits */
@media screen and (max-width: 768px) {
  .baner {
    max-height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .baner {
    max-height: 120px;
  }
}
