:root {
  --primary: #eae200;
  --primary-light: #fff176;
  --white: #ffffff;
  --black: #030304;
  --gray: #f5f5f5;
  --dark-gray: #757575;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

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

/* Section Offres */
#offers {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Onglets */
.offers-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  background: var(--black);
  padding: 4px;
  border-radius: 50px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 10px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-radius: 50px;
  z-index: 1;
}

.tab-btn.active {
  color: var(--black);
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Contenu des onglets */
.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grille des offres - 2 cartes par ligne */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.offer-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.offer-card-header {
  background: var(--primary);
  padding: 20px;
  text-align: center;
  position: relative;
}

.offer-number {
  width: 50px;
  height: 50px;
  background: var(--black);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.offer-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.offer-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--black);
  text-align: center;
}

.offer-card p {
  color: var(--dark-gray);
  margin-bottom: 0;
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
}

/* Boutons CTA */
.cta-container {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.slide-btn {
  padding: 16px 35px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  background: var(--primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(234, 226, 0, 0.3);
}

.slide-btn i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.slide-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234, 226, 0, 0.4);
  background: #f5e600;
}

/* Éléments animés en arrière-plan */
.animated-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  z-index: 1;
  animation: float 8s infinite ease-in-out;
  filter: blur(1px);
}

.shape-1 {
  width: 350px;
  height: 350px;
  background: var(--primary);
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  bottom: -40px;
  right: -40px;
  animation-delay: 2s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: var(--primary);
  top: 25%;
  right: 8%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, -15px) rotate(3deg);
    opacity: 0.12;
  }
}

/* Responsive */
@media (max-width: 992px) {
  #offers {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .offers-grid {
    gap: 20px;
  }

  .offer-card-header {
    padding: 18px;
  }

  .offer-card-body {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .offers-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .offers-tabs {
    flex-direction: column;
    background: none;
    gap: 8px;
    max-width: 280px;
  }

  .tab-btn {
    background: var(--secondary);
    width: 100%;
  }
}

@media (max-width: 576px) {
  #offers {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .offer-card h3 {
    font-size: 1.2rem;
  }

  .slide-btn {
    padding: 14px 30px;
    font-size: 0.95rem;
  }
}
