/* ============================================
   IPTVAvis.fr — Stylesheet
   Editorial magazine aesthetic
   ============================================ */

:root {
  --bg: #f5f1ea;
  --bg-alt: #ebe5d9;
  --ink: #15110d;
  --ink-soft: #4a423a;
  --ink-muted: #8a7f70;
  --accent: #d63a1e;
  --accent-dark: #a02913;
  --accent-soft: #fde8e2;
  --line: #d8cfbf;
  --green: #2a7a3e;
  --amber: #c47a08;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --container: 1240px;
  --container-narrow: 780px;

  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(214, 58, 30, 0.04) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196, 122, 8, 0.03) 0, transparent 50%);
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}

em { font-style: italic; font-family: var(--font-display); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-mark {
  color: var(--accent);
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}
.logo-text em {
  color: var(--accent);
  font-weight: 400;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.main-nav a {
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }

.header-date {
  font-size: 12px;
  color: var(--ink-muted);
  font-feature-settings: 'tnum';
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 70px 0 90px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(214, 58, 30, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(21, 17, 13, 0.18));
}
.hero-visual .float-badge {
  transform-origin: center;
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

.hero-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  color: var(--accent);
  font-weight: 300;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 30px;
  font-weight: 400;
}
.intro p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 4px;
}

.disclaimer {
  margin-top: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.disclaimer summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}
.disclaimer p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================
   POSTS SECTION
   ============================================ */
.posts-section {
  padding: 90px 0;
}
.section-header {
  margin-bottom: 50px;
  display: flex;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  flex: 1;
}
.section-header p {
  color: var(--ink-muted);
  font-size: 15px;
}
.section-num {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

/* Featured post card */
.post-card-featured {
  margin-bottom: 50px;
  background: #ebe5d9 !important;
  color: #15110d !important;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.post-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(214, 58, 30, 0.08) 0%, transparent 55%);
  pointer-events: none;
}
.post-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 17, 13, 0.08);
}
.post-card-featured .post-link {
  display: block;
  padding: 0;
  position: relative;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  align-items: stretch;
}
.featured-content {
  padding: 48px 52px;
}
.featured-visual {
  background: linear-gradient(135deg, #1a140e 0%, #2d2419 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.featured-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.post-card-featured h3 {
  color: #15110d !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin: 14px 0 16px;
  max-width: 820px;
  transition: color .2s;
}
.post-card-featured:hover h3 { color: var(--accent) !important; }
.post-card-featured .post-excerpt {
  color: #4a423a !important;
  font-size: 17px;
  max-width: 760px;
  margin-bottom: 24px;
}
.post-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-card {
  background: var(--bg);
  transition: background .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { background: var(--bg-alt); }
.post-card .post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.post-thumb svg {
  width: 80%;
  height: 80%;
  max-height: 110px;
}
.post-thumb-warning { background: linear-gradient(135deg, #f5f1ea 0%, #f0e6d2 100%); }
.post-thumb-orange { background: linear-gradient(135deg, #f5f1ea 0%, #ffe8d4 100%); }
.post-thumb-guide { background: linear-gradient(135deg, #ebe5d9 0%, #e0ead8 100%); }
.post-thumb-premium { background: linear-gradient(135deg, #2d2419 0%, #15110d 100%); }
.post-thumb-compare { background: linear-gradient(135deg, #ebe5d9 0%, #f5f1ea 100%); }
.post-thumb-security { background: linear-gradient(135deg, #ebe5d9 0%, #fde8e2 100%); }

.post-card-inner {
  padding: 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.post-cat {
  position: relative;
  padding-left: 14px;
}
.post-cat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.post-card h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color .2s;
}
.post-card:hover h3 { color: var(--accent); }

.post-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.post-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rating-score {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
}
.rating-score.rating-low { color: var(--accent); }
.rating-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.see-all {
  margin-top: 40px;
  text-align: center;
}

/* ============================================
   COMPARE TABLE
   ============================================ */
.compare-section {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th {
  background: var(--ink);
  color: var(--bg);
  text-align: left;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.compare-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-alt); }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
}
.badge-good { background: rgba(42, 122, 62, 0.15); color: var(--green); }
.badge-mid { background: rgba(196, 122, 8, 0.15); color: var(--amber); }

/* ============================================
   ABOUT / METHOD
   ============================================ */
.about-section { padding: 90px 0; }
.about-section h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 50px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.method-card {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.method-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.method-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}
.method-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  padding: 100px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.newsletter h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.newsletter p {
  color: rgba(245, 241, 234, 0.65);
  margin-bottom: 32px;
  font-size: 16px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(245, 241, 234, 0.2);
  background: transparent;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
}
.newsletter-form input::placeholder { color: rgba(245, 241, 234, 0.4); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.newsletter-form .btn-primary {
  background: var(--accent);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 70px 0 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-tag {
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 8px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-weight: 600;
}
.footer-grid a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { grid-column: 1; grid-row: 2; max-width: 400px; margin: 0 auto; }
  .hero-stats { grid-row: 3; grid-template-columns: repeat(3, 1fr); padding-top: 30px; margin-top: 0; gap: 24px; }
  .main-nav { display: none; }
  .header-date { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-visual { border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 40px; }
  .featured-content { padding: 32px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 50px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .stat-num { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { flex-direction: column; }
  .posts-section, .compare-section, .about-section { padding: 60px 0; }
  .post-thumb { height: 110px; }
}
