/*
Theme Name: Iron ProIPTV
Theme URI: https://iron-proiptv.fr
Author: HautDebitIPTV
Description: Thème WordPress sur-mesure pour iron-proiptv.fr — abonnement IPTV premium. Performance optimisée, SEO on-page intégré (schema.org, hiérarchie de titres propre), design premium sans fioritures.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iron-proiptv
*/

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #141d33;
  --surface-light: #1c2740;
  --text: #eef1f8;
  --text-muted: #9aa6c3;
  --border: #26314d;
  --accent: #6c69e0;
  --accent-dark: #4d4ad2;
  --accent-pink: #e96cc7;
  --accent-orange: #f9a372;
  --accent-green: #a3c93a;
  --accent-blue: #64caf6;
  --accent-violet: #a65fdd;
  --grad-brand: linear-gradient(135deg, #4d4ad2, #a65fdd 55%, #e96cc7);
  --success: #2fbf71;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { color: var(--text-muted); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 18px rgba(236,72,153,.28);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,17,32,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.site-logo span { color: var(--accent); }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 12% 15%, rgba(124,58,237,.16), transparent 42%),
    radial-gradient(circle at 55% 0%, rgba(236,72,153,.10), transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(56,189,248,.10), transparent 42%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.1rem; margin-bottom: 28px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.hero-card-stats > div:nth-child(2) .stat-number { color: var(--accent-pink); }
.hero-card-stats > div:nth-child(3) .stat-number { color: var(--accent-green); }
.hero-card-stats > div:nth-child(4) .stat-number { color: var(--accent-blue); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. PRICING
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border-color: var(--accent-pink);
  background: var(--surface-light);
  box-shadow: 0 0 0 1px rgba(236,72,153,.25), 0 12px 30px rgba(124,58,237,.15);
}
.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-duration { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 6px; }
.price-amount { font-size: 2.1rem; font-weight: 800; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-per-month { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.price-features { flex-grow: 1; margin-bottom: 22px; }
.price-features li { display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; align-items: flex-start; }
.price-features svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. FEATURES / USP
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(139,92,246,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }

/* Rotation de couleurs sur les cartes USP pour un rendu "multicolor" cohérent */
.feature-card:nth-of-type(5n+2) .feature-icon { background: rgba(236,72,153,.14); }
.feature-card:nth-of-type(5n+2) .feature-icon svg { color: var(--accent-pink); }
.feature-card:nth-of-type(5n+3) .feature-icon { background: rgba(251,146,60,.14); }
.feature-card:nth-of-type(5n+3) .feature-icon svg { color: var(--accent-orange); }
.feature-card:nth-of-type(5n+4) .feature-icon { background: rgba(34,197,94,.14); }
.feature-card:nth-of-type(5n+4) .feature-icon svg { color: var(--accent-green); }
.feature-card:nth-of-type(5n+5) .feature-icon { background: rgba(56,189,248,.14); }
.feature-card:nth-of-type(5n+5) .feature-icon svg { color: var(--accent-blue); }

@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. COMPARATIF
   ========================================================================== */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.compare-table th { background: var(--surface); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: .04em; }
.compare-table td.highlight-col { background: rgba(139,92,246,.08); font-weight: 700; color: var(--accent); }
.compare-table tr:last-child td { border-bottom: none; }
.check-yes { color: var(--success); font-weight: 700; }
.check-no { color: #ef5b5b; font-weight: 700; }

/* ==========================================================================
   8. STEPS
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. DEVICES
   ========================================================================== */
.devices-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.device-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
}
.device-chip svg { width: 18px; height: 18px; color: var(--accent); }

/* ==========================================================================
   10. AVIS
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stars { color: var(--accent-orange); margin-bottom: 12px; letter-spacing: 2px; }
.review-author { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; font-size: 0.92rem; }

/* ==========================================================================
   12. ALERTE LEGALE / TRANSPARENCE
   ========================================================================== */
.notice-box {
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.notice-box strong { color: var(--text); }

/* ==========================================================================
   13. BLOG TEASER
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.blog-card-body { padding: 20px; }
.blog-card .cat { color: var(--accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   15. FINAL CTA
   ========================================================================== */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 32px;
}
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { max-width: 500px; margin: 0 auto 28px; }

/* ==========================================================================
   16. GENERIC PAGE (mentions légales, CGV, etc.)
   ========================================================================== */
.page-content { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin-top: 32px; }
.page-content p, .page-content li { color: var(--text-muted); margin-bottom: 12px; }
.page-content ul { list-style: disc; padding-left: 20px; }

/* Hero accueil — texte visible sur image */
.home .hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 96px 0;
  background-image: linear-gradient(90deg, rgba(4,12,30,.94) 0%, rgba(4,12,30,.78) 42%, rgba(4,12,30,.22) 72%, rgba(4,12,30,.08) 100%), url('https://iron-proiptv.fr/wp-content/uploads/2026/08/iron-pro-iptv-hero.webp');
  background-size: cover;
  background-position: center;
}
.home .hero-grid { display: block !important; width: 100%; }
.home .hero-grid > div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.home .hero h1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.08;
  max-width: 760px;
  text-shadow: 0 3px 24px rgba(0,0,0,.48);
}
.home .hero .lead {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #e7edf8;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 680px;
}
.home .hero-ctas, .home .trust-row {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 700px) {
  .home .hero { min-height: 620px; padding: 72px 0; background-position: 62% center; }
  .home .hero-grid > div { max-width: 100%; }
  .home .hero h1 { font-size: 2.15rem; }
}


/* Hero centre — style final */
.home .hero {
  background-image: linear-gradient(rgba(4,12,30,.62), rgba(4,12,30,.72)), url('https://iron-proiptv.fr/wp-content/uploads/2026/08/iron-pro-iptv-hero.webp') !important;
}
.home .hero-grid > div {
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.home .hero h1 {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home .hero .lead {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home .hero-ctas, .home .trust-row {
  justify-content: center !important;
}
