/* =========================================================
   HOME.CSS - Page d'accueil avec NOUVEAU DESIGN HERO
   ========================================================= */

/* =========================
   HERO SECTION REDESIGNÉE
   ========================= */
.site-main {
  padding: 16px 0 40px;
}

.hero {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SLIDER EN HAUT (plus grand maintenant) */
.heroMedia {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0b2f7a;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 55px rgba(12, 18, 32, 0.10);
  height: 500px;
  width: 100%;
}

@media (max-width: 980px) {
  .heroMedia {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .heroMedia {
    height: 320px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .heroMedia {
    height: 280px;
    border-radius: 18px;
  }
}

.heroTrack {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s ease;
  will-change: transform;
}

.heroSlide {
  flex: 0 0 calc(100% / 3);
  width: calc(100% / 3);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.heroSlide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.heroDots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.heroDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
}

.heroDot.is-active {
  background: #fff;
}

.heroDot:hover {
  background: rgba(255, 255, 255, 0.60);
}

/* CARD EN BAS (rectangle arrondi compact) */
.heroCard {
  background: linear-gradient(135deg, rgba(224, 25, 42, 0.10), rgba(15, 81, 175, 0.08));
  border: 1px solid rgba(12, 18, 32, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(12, 18, 32, 0.10);
  padding: 20px 24px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .heroCard {
    padding: 18px 20px;
    border-radius: 18px;
  }
}

.heroPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.70);
  font-weight: 800;
  font-size: 11px;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.heroTitle {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0C1220;
}

@media (max-width: 980px) {
  .heroTitle {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .heroTitle {
    font-size: 24px;
  }
}

.heroText {
  margin: 0 0 16px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .heroText {
    font-size: 14px;
    margin-bottom: 14px;
  }
}

.heroBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .heroBtns {
    flex-direction: column;
  }
  
  .heroBtns .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn-ghost {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #111827;
}

.btn-ghost:hover {
  border-color: rgba(15, 81, 175, 0.25);
  color: var(--blue);
}

.heroMarquee {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  padding: 9px 0;
  margin-top: 4px;
}

.heroMarqueeTrack {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 20s linear infinite;
  padding-left: 18px;
  color: #111827;
  font-weight: 700;
  font-size: 12px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   SECTIONS
   ========================= */
.sectionTitle {
  margin: 32px 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.sectionTitle h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.sectionTitle p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sectionTitle .miniBtn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sectionTitle .miniBtn:hover {
  border-color: rgba(15, 81, 175, 0.25);
  color: var(--blue);
}

.miniBtn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.miniBtn:hover {
  border-color: rgba(15, 81, 175, 0.25);
  color: var(--blue);
}

/* =========================
   PRODUCT GRID (Page d'accueil)
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.emptyBox {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(10, 25, 60, 0.16);
}

.cardMedia {
  position: relative;
  background: #eef2ff;
  height: 210px;
}

@media (max-width: 520px) {
  .cardMedia {
    height: 240px;
  }
}

.cardMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGES - CORRECTION IMPORTANTE */
.badgeNew {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2a2a, #c8001c);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(224, 25, 42, 0.35);
  z-index: 2;
}

.badgePromo {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2a2a, #c8001c);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(224, 25, 42, 0.35);
  z-index: 2;
}

.badgeMulti {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.badgeMulti i {
  font-size: 14px;
}

.cardBody {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pName {
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* PRIX ROW - AFFICHAGE ANCIEN PRIX */
.pPriceRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pPrice {
  font-weight: 900;
  font-size: 20px;
  margin: 0;
  color: var(--text);
}

.pPriceOld {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  text-decoration: line-through;
}

.pStock {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
}

.pStock.in-stock {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.pStock.out-stock {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

.cardActions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.cardActions .btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
}

.btn-add {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border: 1px solid rgba(15, 81, 175, 0.35);
  color: #fff;
  font-weight: 800;
}

.btn-add:hover {
  background: linear-gradient(135deg, var(--red), #b51221);
  border-color: rgba(224, 25, 42, 0.35);
}

@media (max-width: 520px) {
  .cardActions {
    flex-direction: column;
  }
  
  .cardActions .btn {
    width: 100%;
  }
}