/* ==========================================================================
   MWFT Hero Slider — Premium full-width slider (Swiper.js)
   ========================================================================== */

/* ---- CSS Custom Properties (configurable per-instance via style attr) ---- */
.mwft-hero {
  --mwft-hero-h-mobile: 560px;
  --mwft-hero-h-tablet: 400px;
  --mwft-hero-h-desktop: 320px;
  --mwft-hero-h-xl: 420px;
  --mwft-hero-accent: #CC0000;
  --mwft-hero-cta2-bg: #262626;
  --mwft-hero-badge-bg: #CC0000;
  --mwft-hero-badge-fg: #fff;
  --mwft-hero-speed: 500ms;
  --mwft-hero-bar-color: #CC0000;
}

/* ---- Container ---- */
.mwft-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mwft-hero,
.mwft-hero * {
  box-sizing: border-box;
}

/* Responsive heights */
.mwft-hero { height: var(--mwft-hero-h-mobile); }

@media (min-width: 768px) {
  .mwft-hero { height: var(--mwft-hero-h-tablet); }
}
@media (min-width: 1024px) {
  .mwft-hero { height: var(--mwft-hero-h-desktop); }
}
@media (min-width: 1440px) {
  .mwft-hero { height: var(--mwft-hero-h-xl); }
}

/* Swiper overrides */
.mwft-hero .swiper { width: 100%; height: 100%; }
.mwft-hero .swiper-slide { position: relative; overflow: hidden; }

/* ---- Background images ---- */
.mwft-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mwft-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Mobile: show mobile image, hide desktop */
.mwft-hero__bg-desktop { display: none; }
.mwft-hero__bg-mobile  { display: block; }

@media (min-width: 1024px) {
  .mwft-hero__bg-desktop { display: block; }
  .mwft-hero__bg-mobile  { display: none; }
  .mwft-hero__bg img { object-position: center center; }
}

/* ---- Content overlay ---- */
.mwft-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  padding: 16px;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.mwft-hero__inner {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  max-width: 100%;
  width: 100%;
  color: #1a1a1a;
  pointer-events: auto;
}

/* Desktop: content at left, no background */
@media (min-width: 1024px) {
  .mwft-hero__content {
    align-items: center;
    justify-content: flex-start;
    padding: 32px 64px;
  }
  .mwft-hero__inner {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
    max-width: 400px;
    width: auto;
    color: #fff;
  }
  .mwft-hero__inner--dark  { color: #1a1a1a; }
  .mwft-hero__inner--light { color: #fff; }

  /* Position modifiers */
  .mwft-hero__content--center { justify-content: center; }
  .mwft-hero__content--center .mwft-hero__inner { text-align: center; }
  .mwft-hero__content--right  { justify-content: flex-end; }
  .mwft-hero__content--right .mwft-hero__inner  { text-align: right; }
}

@media (min-width: 1440px) {
  .mwft-hero__inner { max-width: 496px; }
}

/* ---- Badge ---- */
.mwft-hero__badge {
  display: inline-block;
  background: var(--mwft-hero-badge-bg);
  color: var(--mwft-hero-badge-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Title ---- */
.mwft-hero__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}
@media (min-width: 1024px) { .mwft-hero__title { font-size: 28px; } }
@media (min-width: 1440px) { .mwft-hero__title { font-size: 32px; line-height: 40px; } }

/* ---- Subtitle ---- */
.mwft-hero__subtitle {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 8px;
  opacity: 0.85;
}

/* ---- Price ---- */
.mwft-hero__price {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 4px;
  line-height: 1.1;
}
.mwft-hero__price-secondary {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
  margin: 0 0 8px;
}

/* ---- CTA row ---- */
.mwft-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 1024px) {
  .mwft-hero__ctas { flex-direction: row; }
  .mwft-hero__content--center .mwft-hero__ctas { justify-content: center; }
  .mwft-hero__content--right  .mwft-hero__ctas { justify-content: flex-end; }
}

/* CTA base */
.mwft-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, transform 100ms ease;
  white-space: nowrap;
}
.mwft-hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mwft-hero__cta--primary {
  background: var(--mwft-hero-accent);
  color: #fff;
}
.mwft-hero__cta--primary:hover { background: #E04040; }

.mwft-hero__cta--secondary {
  background: var(--mwft-hero-cta2-bg);
  color: #fff;
}
.mwft-hero__cta--secondary:hover { background: #404040; }

/* ---- Conditions link ---- */
.mwft-hero__conditions {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.6;
}
.mwft-hero__conditions a { color: inherit; text-decoration: underline; }
.mwft-hero__conditions a:hover { opacity: 1; }

.mwft-hero__conditions-detail {
  display: none;
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
  line-height: 1.4;
}
.mwft-hero__conditions-detail.is-open { display: block; }

.mwft-hero__conditions-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  opacity: 0.6;
}
.mwft-hero__conditions-toggle:hover { opacity: 1; }

/* ---- Navigation arrows ---- */
.mwft-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 200ms ease, transform 200ms ease;
}
.mwft-hero__nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.mwft-hero__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
}
.mwft-hero__nav--prev { left: 8px; }
.mwft-hero__nav--next { right: 8px; }
@media (min-width: 1024px) {
  .mwft-hero__nav--prev { left: 16px; }
  .mwft-hero__nav--next { right: 16px; }
}
.mwft-hero__nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

/* ---- Progress bar indicators ---- */
.mwft-hero__bars {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}
.mwft-hero__bar {
  width: 45px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
}
.mwft-hero__bar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.mwft-hero__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mwft-hero-bar-color);
  border-radius: 2px;
  transition: width 0ms linear;
}
.mwft-hero__bar.is-active .mwft-hero__bar-fill { width: 100%; }
.mwft-hero__bar.is-done   .mwft-hero__bar-fill { width: 100%; transition: none; }

/* ---- Pause / Play button ---- */
.mwft-hero__playpause {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 200ms;
}
.mwft-hero__playpause:hover { opacity: 1; }
.mwft-hero__playpause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
}
.mwft-hero__playpause svg { width: 14px; height: 14px; fill: #fff; }
.mwft-hero__playpause .mwft-icon-play  { display: none; }
.mwft-hero__playpause .mwft-icon-pause { display: block; }
.mwft-hero__playpause[aria-pressed="true"] .mwft-icon-play  { display: block; }
.mwft-hero__playpause[aria-pressed="true"] .mwft-icon-pause { display: none; }

/* ---- Accessibility ---- */
.mwft-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mwft-hero .swiper-slide { transition: none; }
  .mwft-hero__bar-fill     { transition: none; }
}

/* ---- Clickable slide overlay ---- */
.mwft-hero__slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: transparent;
}
.mwft-hero__slide-link:focus-visible {
  outline: 3px solid var(--mwft-hero-accent);
  outline-offset: -3px;
}

/* ===== CDM 2026 hero polish (2026-06-09 v2) ===== */
/* Espace au-dessus/en dessous du slider */
.mwft-hero{margin:clamp(16px,3vw,40px) 0!important}
/* Pas de boîte/surlignage : texte directement sur l'image, largeur contrainte */
.mwft-hero__content{padding:20px!important}
.mwft-hero__inner{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:0!important;color:#fff!important;padding:0!important;width:auto!important;max-width:min(86%,520px)!important}
.mwft-hero__inner--dark,.mwft-hero__inner--light{color:#fff!important}
/* Texte blanc + ombre LÉGÈRE (lisible sur toutes les slides, pas de halo) */
.mwft-hero__title,.mwft-hero__subtitle,.mwft-hero__price,.mwft-hero__price-secondary,.mwft-hero__conditions{color:#fff!important;text-shadow:0 1px 4px rgba(0,0,0,.6),0 0 2px rgba(0,0,0,.4)!important}
/* Tailles responsives */
.mwft-hero__title{font-size:clamp(20px,5vw,26px)!important;line-height:1.15!important}
.mwft-hero__subtitle{font-size:clamp(14px,3.4vw,16px)!important;opacity:.95}
.mwft-hero__price{font-size:clamp(24px,5.5vw,30px)!important;line-height:1.1}
.mwft-hero__price-secondary{font-size:13px!important;opacity:.9}
.mwft-hero__ctas{flex-wrap:wrap}
@media(min-width:768px){
  .mwft-hero__inner{max-width:430px!important}
  .mwft-hero__title{font-size:30px!important}.mwft-hero__subtitle{font-size:17px!important}.mwft-hero__price{font-size:32px!important}
}
@media(min-width:1024px){
  .mwft-hero__content{padding:32px 64px!important}
  .mwft-hero__inner{max-width:520px!important}
  .mwft-hero__title{font-size:34px!important;line-height:1.2!important}.mwft-hero__subtitle{font-size:18px!important}.mwft-hero__price{font-size:36px!important}
}
@media(min-width:1440px){
  .mwft-hero__title{font-size:40px!important}.mwft-hero__subtitle{font-size:19px!important}.mwft-hero__price{font-size:40px!important}
}
