/* ========================================================= */
/* >>> GLOBAL STYLES — STREAMING WORLD THEME                */
/* ========================================================= */

/* BACKGROUND & FONTS */
body {
    background: linear-gradient(120deg, #0a2046, #06172e);
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* LOGO */
.site-logo-small {
    height: 70px !important;
    width: auto;
}

@media (max-width: 992px) { .site-logo-small { height: 55px; } }
@media (max-width: 576px) { .site-logo-small { height: 42px; } }

/* ===============================
   HERO HOME — BACKGROUND MASTER
================================ */
.hero-home-bg {
    position: relative;
    width: 100%;
    padding: 60px 0 80px; /* 🔥 au lieu de min-height */
    background-image: url('/themes/streamingworld/img/bg_home.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.site-content {
    padding-top: 90px; /* = hauteur réelle du header */
}

/* ========================================================= */
/*                        HERO WRAPPER                        */
/* ========================================================= */

.hero-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    padding: 20px;
    position: relative;
    z-index: 2;
}


/* BANNIÈRE HOME */
.hero-banner {
    width: 100%;
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #0e2240;
    margin: 40px 0 20px -10px;
    width: calc(100% + 20px);
}

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

.hero-banner .slider-track { display: flex; height: 100%; }
.hero-banner .slide { flex: 0 0 100%; height: 100%; }

/* ===============================
   HERO GENERIC
================================ */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center top;
}

.hero-home-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 15, 35, 0.15),
        rgba(5, 15, 35, 0.85)
    );
    z-index: 1;
}


.hero-container .banner-slider,
.hero-container .slider-wrapper {
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 10px;
}

/* ===============================
   URL BACKGROUND
================================ */
/* HOME */
.hero-home {
  background-image: url('/themes/streamingworld/img/bg_home.jpg');
}

/* IPTV / FORFAITS */
.hero-streaming {
  background-image: url('/themes/streamingworld/img/bg_streaming.jpg');
}

/* MATÉRIEL */
.hero-devices {
  background-image: url('/themes/streamingworld/img/bg_devices.jpg');
  background-size: contain;           /* ⬅️ CRUCIAL */
  background-repeat: no-repeat;
  background-position: right center;  /* visage à droite */
}
  background-image: url('/themes/streamingworld/img/bg_devices.jpg');
}
.product-thumb.active {
  border-color:#2dd4bf;
  background:#0f172a;
}


/* REVENDEUR */
.hero-reseller {
  background-image: url('/themes/streamingworld/img/bg_reseller.jpg');
}

/* =========================================================
   HERO — DEVICES
========================================================= */
/* HERO DEVICES — une seule colonne centrée */
.hero-category.hero-products .hero-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
	margin-top: 120px;   /* ⬅️ magie ici */
}
.hero-devices .hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;     /* ⬅️ titre à gauche */
}
.hero-devices {
  background-image: url('/themes/streamingworld/img/bg_devices.jpg');
  background-size: cover;
  background-position: right center;
  padding: 80px 0;
}

.hero-devices-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
}

/* LEFT */
.hero-devices-content {
  color: #fff;
  padding-left: 40px;
}

.hero-devices-content h1 {
  margin-bottom: 30px;
}

/* STACKED CATEGORIES */
.devices-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CARD */
.device-card {
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #fff;
  width: 320px;          /* ⬅️ PLUS LARGE */
  padding: 24px 26px;    /* ⬅️ PLUS HAUT */
}

.device-card img {
  width: 120px;          /* ⬅️ AVANT : 90px */
  height: 120px;
  object-fit: contain;
}

/* RIGHT spacer = laisse respirer l’homme */
.hero-devices-spacer {
  min-height: 1px;
}


/* =========================================================
   HERO — PRODUITS / CATÉGORIES (CHANNELS BACKGROUND)
========================================================= */
.hero-products {
    position: relative;

    /* BACKGROUND */
    background-image: url('/themes/streamingworld/img/bg_channels.jpg');
    background-repeat: repeat;          /* 🔥 répétition OK */
    background-size: auto 420px;          /* 🔥 PAS étiré */
    background-position: center top;

    /* ESPACEMENT */
    padding-top: 40px;    /* ↓ remonte titre */
    padding-bottom: 20px;
}

/* Overlay léger (pas trop sombre) */
.hero-products::before {
    content: "";
    position: absolute;
    inset: 0;

    /* 🔧 AJUSTEMENT FIN */
    background: rgba(6, 12, 30, 0.55);   /* avant 0.65 */
    
    backdrop-filter: blur(4px) saturate(75%);
    -webkit-backdrop-filter: blur(4px) saturate(75%);

    z-index: 1;
}

/* Tout le contenu au-dessus */
.hero-products > * {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HERO CONTENT
========================================================= */

.hero-products .hero-wrapper {
    min-height: 180px;    /* ↓ titre plus haut */
    margin-top: 10px;      /* ↓ garde un peu d’air */
    margin-bottom: 10px;   /* ↓ rapproche produits */
    display: flex;
    align-items: center;
}

/* =========================================================
   PRODUCTS POSITION
========================================================= */

.hero-products .container {
    padding-top: 10px;   /* ↓ produits plus haut */
}


/* ===============================
   HERO CATEGORIES
================================ */
/* HERO étendu pour pages catégories */
.hero-home-bg.hero-streaming {
    min-height: 520px;       /* image plus grande */
    padding-bottom: 220px;  /* espace pour laisser passer les catégories */
}
/* Categories qui flottent dans le hero */
.categories-overlay {
    margin-top: 80px;   /* plus besoin de négatif */
    position: relative;
    z-index: 3;
}
.categories-overlay .service-card {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
}

/* =========================================================
   CATEGORY / PRODUITS IPTV
========================================================= */
.page-products-bg {
    background-image: url('/themes/streamingworld/img/bg_channels.jpg');
    background-repeat: repeat-y;
    background-size: cover;
    background-position: center top;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding: 10px 0 40px;
}

.product-card {
    background: rgba(15, 25, 50, 0.92); /* + opaque */
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 14px 30px rgba(0,0,0,0.55);
    transition: transform .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-img {
    max-height: 150px;
    object-fit: contain;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: #ddd;
    min-height: 45px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.old-price {
    color: #ff6b6b;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 15px;
}

.promo-price {
    color: #4cd964;
    font-weight: 700;
}

.normal-price {
    color: #fff;
    font-weight: 700;
}

/* ==========================================
   HERO COMPACT — CATEGORY / PRODUCTS
========================================== */

.hero-category {
    min-height: 360px !important;
    padding-bottom: 80px;
}

/* Le contenu produits remonte dans le hero */
.category-products-wrapper {
    position: relative;
    z-index: 5;
    padding-top: 20px;
	margin-top: -20px; /* 🔥 remonte les cartes */
}
/* 🔓 Autoriser un nombre illimité de catégories dans le hero */
.hero-home-bg.hero-streaming {
    min-height: auto !important;
    padding-bottom: 120px; /* garde de l’air, mais non bloquant */
}

/* =========================================================
   HOME / BANNER SLIDER
========================================================= */

/* NAVIGATION SLIDER */
.hero-banner .nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 32px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    color: #fff;
}

.hero-banner .prev { left: 10px; }
.hero-banner .next { right: 10px; }

/* TITRE SOUS SLIDER */
.banner-title {
    font-size: 18px;
    font-weight: 600;
    margin: 6px 0 0 5px;
}

/* ========================================================= */
/*                      SERVICE CARDS                         */
/* ========================================================= */

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.hero-services .service-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.service-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    transition: .25s;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.06);
    background: rgba(255,255,255,0.20);
    opacity: 0.92;
}

.service-card img {
    height: 55px;
    margin-bottom: 8px;
    object-fit: contain;
}

.service-card span {
    font-size: 15px;
    font-weight: 500;
}

/* ========================================================= */
/*                         FOOTER                             */
/* ========================================================= */

footer,
footer .text-muted,
footer span,
footer p,
footer a {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

footer a:hover {
    opacity: 1 !important;
    text-decoration: underline;
}

/* ========================================================= */
/*                    HEADER / NAVIGATION                     */
/* ========================================================= */

.navbar-dark .navbar-nav .nav-link {
    color: #eaf2ff !important;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.9);
}
header,
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;              /* IMPORTANT */
    z-index: 10000;
    background: linear-gradient(120deg, #0a2046, #06172e);
}

main,
.page-content {
    position: relative;
    z-index: 1;
}

/* ========================================================= */
/*                     PRODUCT / FORMS                        */
/* ========================================================= */

.product-info h2,
.product-info label,
.product-info .price,
.product-info .product-description {
    color: #fff !important;
}

.product-info select,
.product-info input {
    color: #000 !important;
}

/* ========================================================= */
/*                  SIGNUP / LOGIN PAGES                      */
/* ========================================================= */

.signup-page .login-form label,
.signup-page .login-form input,
.signup-page .login-form select,
.signup-page .login-form p,
.signup-page .login-form a {
    color: #fff !important;
}

/* ========================================================= */
/*                🔥 DROPDOWN FIX GLOBAL (BOOTSTRAP)         */
/* ========================================================= */

/* Bootstrap dropdown fix — version propre */
.dropdown-menu {
    z-index: 5000 !important;
}

/* Bootstrap met .show sur le parent .dropdown */
.dropdown.show .dropdown-menu {
    display: block !important;
}

/* Ne touche pas la navbar entière ! */
.navbar {
    overflow: visible !important;
}


.mac-inputs {
    display: flex;
    gap: 6px;
}

.mac-field {
    width: 28px !important;
    padding: 2px 4px !important;
    text-align: center;
    font-size: 13px;
}

/* Fix avatar dans la page Mon compte */
.account-page .sw-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* === ACCOUNT GRID (3 COLONNES) === */
.account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Responsive tablette */
@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive mobile */
@media (max-width: 650px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* === CARD STYLE === */
.account-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
}

.account-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Avatar */
.account-avatar-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.25);
}

.account-avatar-preview img {
    width:100%;
    height:100%;
    object-fit: cover;
}

/* Boutons */
.btn-account-edit, .btn-account-save, .btn-account-cancel {
    width: 100%;
    margin-top: 15px;
}
/* === MES COMMANDES ======================================= */

.sw-orders-wrapper {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.sw-orders-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.sw-orders-table thead tr th {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-weight: 600;
}

.sw-orders-table tbody tr td {
    border-top: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}


/* =========================================================
   FICHIER CART.CSS
========================================================= */
.cart-table-container td img {
  padding: 10px;
}

.cart-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 30px;
  gap: 20px;
}

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

.cart-summary {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background: #fafafa;
  width: 300px;
}

.cart-summary table {
  width: 100%;
  margin-bottom: 15px;
}

.cart-summary th {
  font-weight: 600;
}

.btn-commander {
  background-color: #e91e63;
  color: #fff;
  font-weight: bold;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-commander:hover {
  background-color: #d81b60;
}

.option-box,
.attr-box {
  margin-top: 8px;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.option-box {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.option-box h5,
.attr-box h5 {
  font-size: 13px;
  margin: 0 0 5px;
  font-weight: bold;
  color: #000;
}
/* =========================================================
   🎁 CART — POINTS FIDÉLITÉ (GLOBAL)
========================================================= */

.cart-points-earned {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0,140,255,.22);
  border: 1px solid rgba(0,140,255,.45);
  font-size: 13px;
  color: #ffffff;
}

.cart-points-earned strong {
  font-weight: 600;
}

.cart-points-earned div {
  font-size: 12px;
  opacity: .9;
}

/* Labels du résumé */
.cart-summary-desktop label,
.cart-summary-desktop .small {
  color: #e5e7eb;
}
/* ===============================
   ⭐ POINTS GAGNÉS — VISIBILITÉ
================================ */
.points-earned-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 140, 255, 0.22);
  border: 1px solid rgba(0, 140, 255, 0.45);
  color: #ffffff !important;
  font-size: 14px;
}

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

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