/* =============================================
   SmartZone — Premium Design Layer
   TECNO · INFINIX · itel — Awwwards-level UX
   ============================================= */

:root {
  --color-tecno: #0066FF;
  --color-infinix: #D4AF37;
  --color-itel: #E31E24;
  --color-accent: #0066FF;
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --hero-height: clamp(520px, 92vh, 900px);
  --section-spacing-lg: 120px;
}

/* Typographie — rendu net, proportions normales */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
[class*="__title"],
[class*="__logo"],
[class*="__label"],
[class*="__tag"],
[class*="__brand"] {
  font-stretch: normal;
  font-variant: normal;
}

/* --- Premium Hero --- */
.hero {
  background: #050505;
}

.hero__slider {
  height: var(--hero-height);
}

.hero__slide-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.55) 45%,
    rgba(5, 5, 5, 0.15) 100%
  );
}

.hero__slide-content {
  padding-bottom: 80px;
}

.hero__tag {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.08em;
  font-size: 11px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 10;
  width: 0%;
  transition: width 0.1s linear;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-hint svg {
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 36px;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.4);
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Brand Showcase --- */
.brand-showcase {
  padding: var(--section-spacing-lg) 0;
  background: var(--color-white);
  overflow: hidden;
}

.brand-showcase__header {
  text-align: center;
  margin-bottom: 64px;
}

.brand-showcase__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 16px;
}

.brand-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-black);
  line-height: 1.05;
}

.brand-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.brand-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  cursor: pointer;
}

.brand-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-card__bg {
  transform: scale(1.08);
}

.brand-card__overlay {
  position: absolute;
  inset: 0;
  transition: opacity var(--transition-base);
}

.brand-card--tecno .brand-card__overlay {
  background: linear-gradient(to top, rgba(0, 40, 120, 0.95) 0%, rgba(0, 102, 255, 0.3) 60%, transparent 100%);
}

.brand-card--infinix .brand-card__overlay {
  background: linear-gradient(to top, rgba(20, 15, 0, 0.95) 0%, rgba(212, 175, 55, 0.25) 60%, transparent 100%);
}

.brand-card--itel .brand-card__overlay {
  background: linear-gradient(to top, rgba(80, 0, 0, 0.95) 0%, rgba(227, 30, 36, 0.3) 60%, transparent 100%);
}

.brand-card--default .brand-card__overlay {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(60, 60, 60, 0.35) 60%, transparent 100%);
}

.brand-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 32px;
  z-index: 2;
}

.brand-card__logo {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.brand-card__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  line-height: 1.5;
}

.brand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.brand-card__cta svg {
  transition: transform var(--transition-fast);
}

.brand-card:hover .brand-card__cta svg {
  transform: translateX(4px);
}

/* --- Innovation Section --- */
.innovation-section {
  padding: var(--section-spacing-lg) 0;
  background: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.innovation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 102, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.innovation-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.innovation-section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.innovation-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.innovation-section__text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.innovation-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.innovation-feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.innovation-feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.innovation-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.innovation-feature__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.innovation-feature__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* --- Marquee --- */
.marquee-section {
  padding: 24px 0;
  background: var(--color-primary);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 48px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.9;
}

.marquee-item::after {
  content: '◆';
  margin-left: 48px;
  opacity: 0.4;
  font-size: 8px;
  vertical-align: middle;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Premium Product Cards --- */
.product-card {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.product-card__image-wrap {
  grid-area: media;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

.product-card__image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.06) translateY(-4px);
}

.product-card__name a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: normal;
  line-height: 1.35;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 575px) {
  .product-card:hover {
    transform: none;
  }

  .product-card__body {
    padding: 10px 8px 12px;
  }

  .product-card__name a {
    font-size: 12px;
    line-height: 1.25;
  }

  .product-card__desc {
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

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

  .product-card__price-old {
    font-size: 11px;
  }

  .product-card__discount {
    font-size: 10px;
  }

  .product-card__pricing {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* --- Section Headers Premium --- */
.section-header__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* --- Features Strip Premium --- */
.features-strip {
  background: var(--color-gray-50);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-item__icon {
  background: rgba(0, 102, 255, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.feature-item__title {
  font-family: var(--font-display);
  font-weight: 700;
}

/* --- Category Tiles Premium --- */
.cat-tile {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.cat-tile__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --- Topbar Premium --- */
.topbar {
  background: var(--color-black);
}

.topbar__promo-item strong {
  color: var(--color-primary);
}

/* --- Header Premium --- */
.site-header.is-scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.site-nav {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* --- Footer Premium --- */
.site-footer {
  background: var(--color-black);
}

.footer-brand__desc {
  color: rgba(255, 255, 255, 0.55);
}

/* --- Preloader --- */
.page-preloader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  animation: preloaderFallback 1.5s ease forwards;
}

.page-preloader:not(.is-hidden) {
  pointer-events: auto;
}

.page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes preloaderFallback {
  0%, 60% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.page-preloader__logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.page-preloader__bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.page-preloader__bar-fill {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .brand-showcase__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .brand-card {
    aspect-ratio: 16 / 10;
  }

  .innovation-section__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .innovation-features {
    grid-template-columns: 1fr;
  }

  .hero__scroll-hint {
    display: none;
  }

  .brand-card__cta {
    opacity: 1;
    transform: none;
  }
}

/* Search suggest — coins droits (pas d'héritage arrondi) */
.header-search .search-suggest,
.header-search.is-suggest-open .search-suggest,
.mobile-menu__search .search-suggest {
  border-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
