/* =========================================================
   📱 STREAMING WORLD — MOBILE STYLES
========================================================= */

/* ===== RESET DE BASE ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0a2046;
  color: #ffffff;
  font-size: 16px;
}

/* ===== CONTAINERS ===== */
.container,
.hero-wrapper,
.hero-container,
.hero-services {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header,
.navbar {
  position: relative;
  height: auto;
  background: linear-gradient(120deg, #0a2046, #06172e);
}

.site-content {
  padding-top: 0;
}

.site-logo-small {
  height: 42px;
}

/* ===== HERO HOME ===== */
.hero-home-bg {
  padding: 30px 0 40px;
  background-position: center top;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Slider / banner */
.hero-banner {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Texte hero */
.hero-text {
  text-align: center;
  padding: 10px;
}

.hero-text h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.5;
}

/* CTA */
.btn,
.btn-primary,
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
}

/* ===== SERVICES ===== */
.hero-services h2 {
  text-align: center;
  font-size: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.service-card img {
  height: 45px;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  padding: 18px;
  border-radius: 16px;
}

.product-title {
  font-size: 18px;
}

.product-desc {
  font-size: 14px;
}

.product-price {
  font-size: 17px;
}

/* ===== CART ===== */
.cart,
.cart-wrapper,
.cart-summary,
.cart-content {
  background: #ffffff;
  color: #000000;
  padding: 16px;
  border-radius: 12px;
}

.cart *,
.cart-summary * {
  color: #000000;
}

.cart-table-container {
  width: 100%;
}

/* Table → empilée mobile */
table {
  width: 100%;
  font-size: 14px;
}

table thead {
  display: none;
}

table tbody tr {
  display: block;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

table tbody td {
  display: block;
  padding: 6px 0;
}

/* Quantité / inputs */
input,
select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}

/* Bouton commander */
.btn-commander {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
}

/* ===== ACCOUNT ===== */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}
/* =========================================================
   📱 PRODUCT IMAGES — MOBILE FIX
========================================================= */

/* Wrapper image produit */
.product-img-wrapper {
  height: auto !important;
  max-height: 160px;
  margin-bottom: 12px;
}

/* Image produit */
.product-img {
  max-height: 140px !important;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* =========================================================
   📱 DEVICES — FORCE VERTICAL LAYOUT
========================================================= */

/* Carte device = colonne */
.device-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* Image device au-dessus */
.device-card img {
  width: 90px !important;
  height: auto !important;
  margin-bottom: 6px;
}

/* Texte device */
.device-card span {
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
}

/* =========================================================
   📱 DEVICES — CATEGORY SELECT
========================================================= */

.devices-stack {
  gap: 14px;
}

/* Lien catégorie device */
.devices-stack a,
.devices-stack .device-card {
  width: 100%;
}

/* Titre */
.hero-devices-content h1 {
  font-size: 24px;
  text-align: center;
}

/* Désactiver layout desktop complexe */
.hero-devices-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
}

/* =========================================================
   🛒 CART — MOBILE ORDER FIX (FINAL)
   Force l'ordre HTML normal
========================================================= */
@media (max-width: 768px) {

  .cart-layout {
    display: flex;
    flex-direction: column;
  }

/* Produits d'abord */
  .cart-desktop {
    order: 1 !important;
  }

  /* Résumé + points ensuite */
  .cart-summary-desktop {
    order: 2 !important;
    margin-top: 20px;
  }

}
/* =========================================
   ⭐ POINTS GAGNÉS — FIX NOIR SUR NOIR
   PRIORITÉ ABSOLUE
========================================= */

.points-earned-box,
.points-earned-box * {
  color: #ffffff !important;
}

.points-earned-box {
  background: rgba(0, 140, 255, 0.22) !important;
  border: 1px solid rgba(0, 140, 255, 0.45) !important;
  padding: 14px !important;
  border-radius: 10px !important;
}

.points-earned-sub {
  color: #e5e7eb !important;
  font-size: 12px;
  opacity: 0.9;
}
