/* ============================================================
 * ad-engine.css — Style carrousel publicitaire E10
 * V1 (23/05/2026) — Responsive + touch friendly
 * Charte MonolithV3 : Obsidian #0A0A0C, Gold #C9A832, Red #B71C1C
 * ============================================================ */

/* -- Wrapper carrousel ------------------------------------- */
.adc-wrap {
  position: relative;
  margin-bottom: 18px;
  /* touch-action manipulation : laisse le scroll vertical natif passer,
     n intercepte que le swipe horizontal */
  touch-action: pan-y;
  user-select: none;
}

/* -- Card HERO (image fullwidth + overlay) ----------------- */
.adc-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #0A0A0C center/cover no-repeat;
  border: 1px solid #C9A832;
  transition: transform .15s ease;
}

.adc-hero-overlay {
  position: absolute;
  inset: 0;
  /* Gradient renforce pour assurer la lisibilite du texte
     meme sur les zones claires de l illustration */
  background: linear-gradient(90deg,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.85) 45%,
    rgba(0,0,0,0.55) 72%,
    rgba(0,0,0,0.25) 100%);
}

.adc-hero-content {
  position: relative;
  height: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62%;
  box-sizing: border-box;
}

/* En carrousel multi-ads : decaler le contenu pour laisser place aux fleches */
.adc-wrap.adc-multi .adc-hero-content {
  padding-left: 64px; /* fleche 44px + 8px left + 12px gap */
  padding-right: 64px;
  max-width: 70%;
}
.adc-wrap.adc-multi .adc-urgency {
  left: 60px; /* apres la fleche prev */
}

.adc-advert {
  font-size: 11px;
  font-weight: 900;
  color: #C9A832;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.adc-headline {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 18px rgba(0,0,0,0.5);
  /* Clamp 2 lignes pour eviter le debordement */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adc-desc {
  font-size: 13px;
  color: #D0D0D8;
  line-height: 1.4;
  margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  /* Clamp 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adc-cta {
  display: inline-block;
  background: #C9A832;
  color: #0A0A0C;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

.adc-sponsored {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 9px;
  color: #C9A832;
  opacity: .4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* -- Card fallback (pas d image) --------------------------- */
.adc-sober {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0A0A0C, #1a1208);
  border: 1px solid #C9A832;
  border-radius: 10px;
  cursor: pointer;
}

.adc-sober-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #C9A832;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #C9A832;
  letter-spacing: 1px;
}

.adc-sober-body {
  flex: 1;
  min-width: 0;
}

.adc-sober-body .adc-advert {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.adc-sober-headline {
  font-size: 15px;
  font-weight: 700;
  color: #E8ECF0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adc-sober-desc {
  font-size: 13px;
  color: #A0A0A8;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adc-sober-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #C9A832;
  letter-spacing: .5px;
}

/* -- Carrousel : badge urgence ----------------------------- */
.adc-urgency {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #B71C1C;
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  z-index: 2;
}

/* -- Carrousel : fleches ----------------------------------- */
.adc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 1px solid #C9A832;
  color: #C9A832;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  transition: background .15s ease;
}
.adc-arrow:hover { background: rgba(0,0,0,.85); }
.adc-arrow:active { transform: translateY(-50%) scale(.92); }
.adc-arrow-prev { left: 8px; }
.adc-arrow-next { right: 8px; }

/* -- Carrousel : dots -------------------------------------- */
.adc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  padding: 6px 0; /* zone tactile etendue */
}

.adc-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  background: #3a3a3a;
  transition: all .25s ease;
  padding: 0;
  /* zone tactile etendue via pseudo-element (44x44 invisible) */
  position: relative;
}
.adc-dot::before {
  content: '';
  position: absolute;
  top: -17px;
  left: -17px;
  width: 44px;
  height: 44px;
}
.adc-dot.is-active {
  width: 26px;
  background: #C9A832;
}

/* -- Mobile (≤ 600px) -------------------------------------- */
@media (max-width: 600px) {
  .adc-hero {
    height: 200px;
    border-radius: 10px;
  }
  /* Gradient adapte mobile : zone texte plus large = overlay plus etendu */
  .adc-hero-overlay {
    background: linear-gradient(90deg,
      rgba(0,0,0,0.96) 0%,
      rgba(0,0,0,0.90) 55%,
      rgba(0,0,0,0.60) 85%,
      rgba(0,0,0,0.25) 100%);
  }
  .adc-hero-content {
    padding: 16px 18px;
    max-width: 80%;
  }
  /* Mobile : fleches 36px + 6px = 42px, on decale moins */
  .adc-wrap.adc-multi .adc-hero-content {
    padding-left: 52px;
    padding-right: 52px;
    max-width: 90%;
  }
  .adc-wrap.adc-multi .adc-urgency {
    left: 48px;
  }
  .adc-advert {
    font-size: 12px;
    letter-spacing: 1.8px;
    margin-bottom: 7px;
  }
  .adc-headline {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  .adc-desc {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 14px;
    -webkit-line-clamp: 2;
  }
  .adc-cta {
    padding: 9px 18px;
    font-size: 13px;
  }
  .adc-sponsored {
    display: none;
  }
  .adc-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .adc-arrow-prev { left: 6px; }
  .adc-arrow-next { right: 6px; }
  .adc-urgency {
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* -- Tres petits ecrans (≤ 360px) -------------------------- */
@media (max-width: 360px) {
  .adc-hero { height: 190px; }
  .adc-hero-content {
    padding: 14px 16px;
    max-width: 82%;
  }
  .adc-wrap.adc-multi .adc-hero-content {
    padding-left: 48px;
    padding-right: 48px;
    max-width: 92%;
  }
  .adc-headline { font-size: 22px; }
  .adc-desc {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
}
