/****************************************
   RESET DE BASE
*****************************************/
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/****************************************
   TICKET CARD WRAPPER
*****************************************/
.ticket-card {
  --couponColor: #FF5B5B; /* Mets ici ta couleur pastel (#FFC2C2, #FFDCDC, etc.) */
  position: relative;
  width: 100%;
  max-width: 280px; /* Largeur "carte" conseillée */
  margin: 1rem auto;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  box-shadow: none; /* L’ombre est gérée par drop-shadow du SVG */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card:hover {
  transform: translateY(-5px) scale(1.03) rotate(0.5deg);
}

/****************************************
   COUPON BACKGROUND (SVG + RATIO)
*****************************************/
.coupon-bg-ratio {
  position: relative;
  width: 100%;
  padding-top: calc(171.9 / 97.71 * 100%);
  background: none;
}

/* Ombre qui suit la forme du SVG */
.coupon-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--couponColor);
  opacity: 0.15;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.ticket-card:hover .coupon-svg-bg {
  transform: translateY(2px);
}

/****************************************
   COUPON CONTENT
*****************************************/
.coupon-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/****************************************
   COUPON TOP (Titre + Remise)
   => Fond dépendant de var(--couponColor)
*****************************************/
.coupon-top {
  position: relative; /* Nécessaire pour le pseudo-élément */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  margin-top: 0.4em;
  padding: 7px;
  border-radius: 10px;
  z-index: 1; /* Pour que le texte passe au-dessus du ::before */
}

/* Pseudo-élément pour appliquer le fond transparent */
.coupon-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--couponColor); 
  opacity: 0.1; /* Ajuste l’opacité selon l’effet souhaité */
  border-radius: 10px;
  z-index: -1; /* Sous le contenu */
}

.coupon-brand {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: #333;
  letter-spacing: 0.5px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  margin-right: 0.5rem;
}

.coupon-discount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--couponColor);
  transition: transform 0.2s;
}
.coupon-discount:hover {
  transform: scale(1.1) rotate(-3deg);
}

/****************************************
   COUPON IMAGE
*****************************************/
.coupon-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid #eee;
  margin-top: 40px;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
}
.coupon-image:hover {
  transform: scale(1.02);
}
.coupon-image img {
  width: 98%;
  height: 98%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.coupon-image.no-image {
  color: #999;
  font-style: italic;
}

/****************************************
   COUPON DESCRIPTION
   => 4 lignes max
*****************************************/
.coupon-description {
  flex-grow: 1;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/****************************************
   PROGRESS BAR (Codes restants)
*****************************************/
.coupon-progress-wrapper {
  margin-bottom: 0.6rem;
}
.coupon-progress-label {
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
  color: #666;
  font-weight: 500;
}
.coupon-progress-bar {
  height: 6px;
  background-color: var(--couponColor);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/****************************************
   EXPIRATION
*****************************************/
.coupon-expire {
  font-size: 0.75rem;
  color: #C03546;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/****************************************
   RATING (étoiles)
*****************************************/
.coupon-rating-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}
.coupon-rating-wrapper span {
  font-size: 0.85rem;
  color: #333;
}
.coupon-rating-wrapper .fa-star {
  margin: 0 2px;
  color: #ccc;
}
.coupon-rating-wrapper .filled-star {
  color: gold;
}
.coupon-rating-value {
  margin-left: 4px;
  color: #666;
  font-size: 0.8rem;
}

/****************************************
   CTA
*****************************************/
.coupon-cta {
  text-align: center;
  margin-bottom: 0.8rem;
}
.coupon-cta-btn {
  background-color: var(--couponColor);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.coupon-cta-btn:hover {
  background-color: var(--wpt-brand-color);
  transform: scale(1.03);
}

/****************************************
   FOOTER (Réactions)
*****************************************/
.coupon-footer {
  margin-top: auto;
}
.coupon-reactions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.ticket-react-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--couponColor);
  color: var(--couponColor);
  padding: 0.3rem 0.6rem;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0.85rem;
}
.ticket-react-btn:hover {
  background-color: var(--couponColor);
  color: #fff;
}
.ticket-react-btn i {
  margin-right: 4px;
}
.ticket-reactions-count {
  font-size: 0.85rem;
  color: #333;
}

/****************************************
   CARDS GRID LAYOUT
*****************************************/
.cards-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: #FFF;
}
.airbnb-filter-btn  {
  background: #ffffff;
  color: #ff746b;
  border: 1px solid #615eff30;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 10px 10px 10px;
  width: 95%;
}
.airbnb-filter-btn :hover {
  background-color:#FF5B5B;
  color:#fff;
}
/* ———————— BLOC CONSEILS ———————— */




