/* ═══════════════════════════════
   BANDEAU
   ═══════════════════════════════ */
.qwest-banner {
  background: #DE624E;
  overflow: hidden;
  white-space: nowrap;
  height: 48px;
  display: flex;
  align-items: center;
}
.qwest-banner__track {
  display: inline-flex;
  align-items: center;
  animation: qwest-scroll linear infinite;
}
.qwest-banner__segment {
  display: inline-flex;
  align-items: center;
}
.qwest-banner__word {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  padding: 0 24px;
  line-height: 1;
  flex-shrink: 0;
}
.qwest-banner__event {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a2e;
  padding: 0 4px;
  flex-shrink: 0;
}
.qwest-banner__date { font-weight: 700; }
@keyframes qwest-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-16.666%); }
}
@media (min-width: 768px) {
  .qwest-banner { height: 52px; }
  .qwest-banner__word { font-size: 34px; padding: 0 30px; }
  .qwest-banner__event { font-size: 14px; }
}

/* ═══════════════════════════════
   WIDGET ÉVÉNEMENTS
   ═══════════════════════════════ */
.qwest-ew__empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #888;
  font-style: italic;
}

.qwest-ew { padding: 0 0 40px; }

/* Wrapper position relative pour flèches absolues */
.qwest-ew__wrap { position: relative; }

/* overflow hidden : clippe les cards hors écran */
.qwest-ew__overflow { overflow: hidden; }

/* Track : flex sur mobile */
.qwest-ew__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Card mobile : 1 card = 100% */
.qwest-ew__card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Thumb : identique à .qw-card__thumb */
.qwest-ew__thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.qwest-ew__thumb img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s ease;
  z-index: 0;
  display: block !important;
}

.qwest-ew__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.qwest-ew__card:hover .qwest-ew__thumb img {
  transform: scale(1.07);
}

/* Badge : data-icon via ::before, identique à .qw-card__badge */
.qwest-ew__badge {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 12px 5px 8px !important;
  margin: 0 0 12px 12px !important;
  border-radius: 20px !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-transform: none !important;
  gap: 0 !important;
}

.qwest-ew__badge::before {
  content: attr(data-icon) !important;
  display: inline-block !important;
  margin-right: 6px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

/* Body : identique à .qw-card__body */
.qwest-ew__body {
  background: #FBF2EB;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.qwest-ew__title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.qwest-ew__desc {
  font-size: 13px;
  color: #4a3a28;
  line-height: 1.55;
  margin: 0 0 10px;
  flex: 1;
}

.qwest-ew__date {
  font-size: 13px;
  font-weight: 600;
  color: #32323E;
  margin: 0 0 8px;
  line-height: 1.4;
}

.qwest-ew__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.qwest-ew__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  background: rgba(26,26,46,0.07);
  border: 1px solid rgba(26,26,46,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1;
}

.qwest-ew__btn {
  display: inline-block;
  background: #DE624E;
  color: #EBD3AF;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 20px;
  text-decoration: none;
  border-radius: 0;
  box-shadow: inset 4px 4px 0px -1px #EBD3AF;
  transition: transform 0.18s ease;
  align-self: flex-start;
  margin-top: auto;
}
.qwest-ew__btn:hover  { transform: scale(1.05); color: #EBD3AF; text-decoration: none; }
.qwest-ew__btn:active { transform: scale(0.97); color: #EBD3AF; }

/* Flèches */
.qwest-ew__arrow {
  position: absolute;
  z-index: 20;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  padding: 0;
  background: #DE624E;
  border: none;
  border-radius: 0;
  color: #EBD3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(222,98,78,0.5);
  animation: qw-arrow-glow 2s ease-in-out infinite;
  transition: opacity 0.18s ease;
}
.qwest-ew__arrow--prev { left: 0; }
.qwest-ew__arrow--next { right: 0; }
.qwest-ew__arrow:hover  { opacity: 0.85; animation: none; box-shadow: 0 0 12px 4px rgba(222,98,78,0.6); }
.qwest-ew__arrow:active { opacity: 0.7; }
@keyframes qw-arrow-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(222,98,78,0.5); }
  50%       { box-shadow: 0 0 10px 4px rgba(222,98,78,0.35); }
}

/* Dots */
.qwest-ew__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.qwest-ew__dots .qw-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(26,26,46,0.2); border: none;
  cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.qwest-ew__dots .qw-dot--active {
  background: #DE624E; transform: scale(1.3);
}

/* ── Desktop <= 3 events : grille statique ── */
@media (min-width: 768px) {
  .qwest-ew__overflow { overflow: visible; }
  .qwest-ew__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    transition: none;
    padding: 0 48px;
  }
  .qwest-ew__card {
    flex: none; width: auto; padding: 0; height: 100%;
  }
  .qwest-ew__thumb { height: 220px; }
  .qwest-ew__dots { display: none; }
  .qwest-ew__arrow { display: none; }
}

/* ── Desktop > 3 events : carousel ── */
@media (min-width: 768px) {
  /* Le wrap a le padding latéral et clippe les cards qui dépassent */
  .qwest-ew--carousel .qwest-ew__wrap {
    padding: 0 68px;
    overflow: hidden;
  }
  /* L'overflow laisse dépasser 20px de chaque côté */
  .qwest-ew--carousel .qwest-ew__overflow {
    overflow: visible;
    padding: 0;
    margin: 0 -20px;
  }
  /* Le track : flex, gap de 20px */
  .qwest-ew--carousel .qwest-ew__track {
    display: flex;
    padding: 0;
    transition: transform 0.35s ease;
    gap: 20px;
    transform: translateX(0);
  }
  /* Chaque card = 1/3 du clientWidth de l'overflow */
  .qwest-ew--carousel .qwest-ew__card {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: 0;
    padding: 0;
    height: auto;
  }
  .qwest-ew--carousel .qwest-ew__dots {
    display: flex;
  }
  /* Flèches au bord de l'overflow */
  .qwest-ew--carousel .qwest-ew__arrow--prev { left: 30px; }
  .qwest-ew--carousel .qwest-ew__arrow--next { right: 30px; }
}
