/* =========================================================
   🎨 IRON TV PRO — main.css
   Light UI / Logo-inspired gradients — 2026
   ========================================================= */

:root{
  --bg: #f7fbff;
  --bg-2: #ffffff;

  /* بدون أسود: أزرق غامق لطيف */
  --text: #24324a;
  --muted: #5b6b86;

  /* ألوان مستوحاة من اللوغو */
  --primary: #6d28d9;     /* purple */
  --secondary: #2563eb;   /* blue */
  --tertiary: #06b6d4;    /* cyan */
  --accent: #22c55e;      /* green */
  --warm: #f97316;        /* orange */
  --pink: #ec4899;        /* magenta */

  --light: #eef6ff;
  --card: #ffffff;

  --radius: 1.15rem;
  --shadow: 0 10px 28px rgba(36, 50, 74, 0.10);
  --border: rgba(109, 40, 217, 0.14);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(236,72,153,0.12), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(34,197,94,0.12), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, #f8fafc 100%);
  color: var(--text);
  line-height: 1.65;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--primary);text-decoration:none;}
a:hover{opacity:.92;}

.h1{font-size:2.55rem; margin-bottom:1rem; letter-spacing:-.02em;}
.h2{font-size:2.05rem; margin-bottom:1rem; letter-spacing:-.02em;}
.sub{color:var(--muted); margin:.5rem 0 2rem;}

.container{width:90%; max-width:1200px; margin:0 auto;}
.section{padding:5rem 0;}
.section.alt{background: linear-gradient(180deg, #ffffff 0%, var(--light) 100%);}
.grid-3{display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:2rem;}

/* ---------- Header ---------- */
.header{
  position:sticky; top:0; z-index:1000;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{display:flex; justify-content:space-between; align-items:center; padding:1rem 0;}
.brand{display:flex; align-items:center; gap:.6rem; font-weight:900; color:var(--primary);}
.logo{width:40px;}

.menu{display:flex; gap:1rem; align-items:center;}
.menu a{
  color: var(--text);
  font-weight: 700;
  padding: .45rem .7rem;
  border-radius: .8rem;
}
.menu a:hover{
  background: rgba(109, 40, 217, 0.08);
}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:.35rem;
  background:none;
  border:none;
  cursor:pointer;
}
.hamburger span{
  width:26px;
  height:3px;
  background: rgba(36, 50, 74, 0.72);
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(900px 340px at 50% 5%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(900px 340px at 20% 35%, rgba(109,40,217,0.14), transparent 62%),
    radial-gradient(900px 340px at 82% 35%, rgba(34,197,94,0.12), transparent 62%),
    linear-gradient(135deg, #f4f7ff, #ffffff);
  text-align:center;
  padding: 6.2rem 1rem 5.5rem;
}

.badge-top{
  display:inline-block;
  background: linear-gradient(135deg, rgba(109,40,217,0.14), rgba(37,99,235,0.12), rgba(6,182,212,0.12));
  color: var(--text);
  border: 1px solid var(--border);
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .95rem;
  margin-bottom: 1.1rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.lead{font-size:1.18rem; color:var(--muted); margin-bottom: .9rem;}
.clients{font-size:1rem; margin-bottom:1.6rem; color:var(--primary); font-weight:900;}
.seo-intro{max-width: 920px; margin: 0 auto 2rem; color: var(--muted);}
.hero__content .cta{display:flex; justify-content:center; gap:1rem; flex-wrap:wrap;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding: .85rem 1.55rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 10px 18px rgba(109, 40, 217, 0.12);
}
.btn:active{transform: translateY(1px);}

.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  color: #ffffff;
}
.btn--primary:hover{opacity:.95; box-shadow: 0 14px 26px rgba(109, 40, 217, 0.18);}

.btn--ghost{
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(109, 40, 217, 0.32);
  color: var(--primary);
  box-shadow: none;
}
.btn--ghost:hover{background: rgba(109, 40, 217, 0.07);}

/* ---------- Cards ---------- */
.card{
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align:center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(109, 40, 217, 0.10);
}
.card .icon{font-size:2rem; margin-bottom:1rem;}
.card h3{margin-bottom:.35rem;}
.card p{color:var(--muted);}

/* ---------- Steps ---------- */
.steps{display:flex; gap:2rem; justify-content:center; flex-wrap:wrap; margin:2rem 0;}
.step{flex:1; min-width:220px; text-align:center;}
.step__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  color:#fff;
  border-radius: 50%;
  margin-bottom: .6rem;
  font-weight: 950;
}

/* ---------- Tabs / Pricing ---------- */
.tabs{display:flex; justify-content:center; margin-bottom:2rem; gap:1rem; flex-wrap:wrap;}
.tab-btn{
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.14);
  padding: .65rem 1.2rem;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  color: var(--text);
}
.tab-btn.active{
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  color:#fff;
  border-color: transparent;
}

.tab-content{display:none; transition: opacity .25s ease;}
.tab-content.active{display:block; opacity:1;}

.pricing{display:grid; gap:2rem; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));}
.p-card{
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align:center;
  box-shadow: var(--shadow);
  position:relative;
  border: 1px solid rgba(109, 40, 217, 0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(36, 50, 74, 0.14);
}
.p-name{font-weight:900; color:var(--muted);}
.p-price{font-size:1.9rem; font-weight:950; margin: 1rem 0;}
.p-feats{list-style: disc; text-align:left; margin: 1rem 0 1.2rem 1.25rem; color: var(--muted);}
.p-feats li{margin:.35rem 0;}

.p-card--recommended{
  border: 2px solid rgba(249, 115, 22, 0.55);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.10);
}
.badge{
  position:absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,0.90), rgba(249,115,22,0.88));
  color: #ffffff;
  padding: .35rem .6rem;
  border-radius: .75rem;
  font-size: .82rem;
  font-weight: 950;
}

/* ---------- Stats ---------- */
.stat{text-align:center;}
.stat h3{font-size:2.2rem; margin-bottom:.45rem;}
.stat p{color:var(--muted);}

/* ---------- Comparatif ---------- */
.comparatif{
  width:100%;
  border-collapse:collapse;
  margin-top:2rem;
  overflow:hidden;
  border-radius: var(--radius);
}
.comparatif th, .comparatif td{
  border:1px solid rgba(109,40,217,0.12);
  padding:1rem;
  text-align:center;
}
.comparatif th{
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  color:#fff;
}

/* ---------- Avis ---------- */
.testis{display:flex; gap:2rem; flex-wrap:wrap; justify-content:center;}
.testi{
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(109,40,217,0.10);
  flex: 1; min-width: 250px;
}
.testi blockquote{margin:.6rem 0; color:var(--muted);}

/* ---------- Garanties ---------- */
#garanties .card h3{margin-bottom:.5rem; color: var(--primary);}

/* ---------- Revendeur teaser ---------- */
#revendeur-teaser{text-align:center;}
#revendeur-teaser p{margin: 1rem 0; color: var(--muted);}

/* ---------- FAQ ---------- */
.faq{
  margin-bottom: 1rem;
  border: 1px solid rgba(109,40,217,0.14);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
  box-shadow: 0 10px 20px rgba(36, 50, 74, 0.06);
}
.faq summary{font-weight: 950; cursor: pointer;}
.faq p{margin-top:.6rem; color: var(--muted);}

/* ---------- Contact ---------- */
.contact-list{list-style:none;}
.contact-list li{margin-bottom:.85rem;}
.contact-list a{font-weight:900;}

/* ---------- Footer ---------- */
.footer{
  background: linear-gradient(180deg, var(--light) 0%, #ffffff 100%);
  padding: 2rem 0;
  text-align:center;
  border-top: 1px solid rgba(109,40,217,0.10);
}
.footer nav{
  margin-top: 1rem;
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap;
}
.footer nav a{
  color: var(--text);
  background: rgba(109,40,217,0.06);
  padding: .45rem .8rem;
  border-radius: 999px;
  font-weight: 900;
}

/* ---------- WhatsApp Floating ---------- */
.whatsapp-float{
  position:fixed; bottom: 20px; right: 20px;
  background: #25d366; color:#fff;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.55rem;
  box-shadow: var(--shadow);
  z-index: 1000;
}

/* ---------- Sticky bar (fade/slide) ---------- */
.sticky-bar{
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(109,40,217,.12);
  padding: .85rem 1rem;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;

  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.sticky-bar.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-bar a{font-weight: 800; text-decoration: none;}
.sticky-text{color: var(--text); line-height: 1.2;}
.sticky-cta{min-width: 140px;}

/* ✅ Mobile: النص فوق الزر */
@media (max-width: 768px){
  .sticky-bar{flex-direction: column; align-items: stretch; text-align: center;}
  .sticky-bar a{width: 100%;}
  .whatsapp-float{bottom: 90px;}
}

/* ---------- Shimmer ---------- */
.shimmer{
  position: relative;
  display:inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  overflow:hidden;
}
.shimmer::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer-move 3s infinite;
  pointer-events:none;
}
@keyframes shimmer-move{
  0%{transform:translateX(-100%);}
  50%{transform:translateX(100%);}
  100%{transform:translateX(100%);}
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .menu{
    display:none;
    flex-direction:column;
    gap: .6rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position:absolute;
    top: 64px;
    right: 10px;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(109,40,217,0.12);
    min-width: 220px;
  }
  .menu.show{display:flex;}
  .hamburger{display:flex;}
}

@media (max-width: 480px){
  html, body{font-size: 15px; overflow-x:hidden;}
  .hero{padding: 4.4rem 1rem 4.2rem;}
  .h1{font-size: 1.85rem; line-height: 1.25;}
  .lead{font-size: 1rem;}
  .cta{display:flex; flex-direction:column; gap: .9rem;}
  .btn{width: 100%; text-align:center;}
  .grid-3{grid-template-columns: 1fr; gap: 1.2rem;}
  .card{padding: 1.35rem;}
  .steps{flex-direction: column; gap: 1.2rem;}
  .comparatif{font-size: .88rem;}
  .comparatif th, .comparatif td{padding: .65rem;}
  .testis{flex-direction: column; gap: 1rem;}
  .contact-list li{font-size: .98rem;}
  .footer nav{flex-direction: column; gap: .5rem;}
}

/* FIX: Hero title overflow */
html, body { overflow-x: hidden; }
.hero__content .h1.shimmer{
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  margin-left: auto;
  margin-right: auto;
}
