/*
Theme Name: ABO4K
Theme URI: https://abo4k.fr
Author: ABO4K
Description: Abonnement IPTV 4K — light shop, full marketing site.
Version: 0.3.0
Text Domain: abo4k
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
  --abo-canvas: #f4f7f5;
  --abo-surface: #e8f0ed;
  --abo-ink: #0e1412;
  --abo-muted: #5a6b64;
  --abo-cta: #0a7c6b;
  --abo-cta-hover: #086557;
  --abo-on-cta: #f4f7f5;
  --abo-4k: #f5b700;
  --abo-line: rgba(14, 20, 18, 0.12);
  --abo-max: 1120px;
  --abo-pad: clamp(1.25rem, 4vw, 2rem);
  --abo-radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Chivo, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--abo-ink);
  background: var(--abo-canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--abo-cta);
}

a:hover {
  color: var(--abo-cta-hover);
}

.abo-skip {
  position: absolute;
  left: -9999px;
}
.abo-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--abo-cta);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.abo-wrap {
  width: min(100% - 2 * var(--abo-pad), var(--abo-max));
  margin-inline: auto;
}

/* —— Header —— */
.abo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 245, 0.94);
  border-bottom: 1px solid var(--abo-line);
  backdrop-filter: blur(8px);
}

.abo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  width: min(100% - 2 * var(--abo-pad), var(--abo-max));
  margin-inline: auto;
}

.abo-logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--abo-ink);
  text-decoration: none;
}
.abo-logo span {
  color: var(--abo-4k);
}

.abo-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
}
.abo-nav a {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--abo-ink);
  text-decoration: none;
}
.abo-nav a:hover {
  color: var(--abo-cta);
}

@media (min-width: 860px) {
  .abo-nav {
    display: flex;
  }
}

.abo-header__cta {
  display: inline-flex;
}

/* —— Buttons —— */
.abo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--abo-radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.abo-btn--primary {
  background: var(--abo-cta);
  color: var(--abo-on-cta);
  border-color: var(--abo-cta);
}
.abo-btn--primary:hover {
  background: var(--abo-cta-hover);
  color: var(--abo-on-cta);
  border-color: var(--abo-cta-hover);
}
.abo-btn--ghost {
  background: transparent;
  color: var(--abo-ink);
  border-color: var(--abo-ink);
}
.abo-btn--ghost:hover {
  background: var(--abo-ink);
  color: var(--abo-canvas);
}
.abo-btn--light {
  background: #fff;
  color: var(--abo-cta);
  border-color: #fff;
}
.abo-btn--light:hover {
  color: var(--abo-ink);
}
.abo-btn--block {
  width: 100%;
}

/* —— Hero —— */
.abo-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, var(--abo-surface) 0%, var(--abo-canvas) 72%);
  border-bottom: 1px solid var(--abo-line);
}

.abo-hero__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .abo-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

.abo-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--abo-4k);
  color: var(--abo-ink);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  margin: 0 0 1rem;
}

.abo-hero h1 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.abo-hero h1 em {
  font-style: normal;
  color: var(--abo-cta);
}

.abo-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.125rem;
  color: var(--abo-muted);
}

.abo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.abo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--abo-line);
}
.abo-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.abo-stats span {
  font-size: 0.8125rem;
  color: var(--abo-muted);
  font-weight: 700;
}

.abo-hero__panel {
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  padding: 1.5rem 1.35rem;
}
.abo-hero__panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
}
.abo-hero__panel p {
  margin: 0 0 1.25rem;
  color: var(--abo-muted);
  font-size: 0.95rem;
}
.abo-hero__panel ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.abo-hero__panel li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--abo-line);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.abo-hero__panel li:last-child {
  border-bottom: 0;
}
.abo-hero__panel .pop {
  color: var(--abo-cta);
  font-size: 0.75rem;
  font-weight: 700;
}

/* —— Sections —— */
.abo-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.abo-section--surface {
  background: var(--abo-surface);
}
.abo-section--ink {
  background: var(--abo-ink);
  color: var(--abo-canvas);
}
.abo-section--ink .abo-muted {
  color: rgba(244, 247, 245, 0.7);
}

.abo-section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}
.abo-section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.abo-section__head p {
  margin: 0;
  color: var(--abo-muted);
  font-size: 1.0625rem;
}
.abo-section--ink .abo-section__head p {
  color: rgba(244, 247, 245, 0.7);
}

/* Feature grid */
.abo-features {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .abo-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.abo-feature {
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
}
.abo-section--surface .abo-feature {
  background: var(--abo-canvas);
}
.abo-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 900;
}
.abo-feature p {
  margin: 0;
  color: var(--abo-muted);
  font-size: 0.975rem;
}

/* Steps */
.abo-steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .abo-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.abo-step {
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  counter-increment: step;
}
.abo-step::before {
  content: counter(step);
  display: block;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--abo-cta);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.abo-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 900;
}
.abo-step p {
  margin: 0;
  color: var(--abo-muted);
}

/* Plans */
.abo-plans {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .abo-plans {
    grid-template-columns: repeat(4, 1fr);
  }
}
.abo-plan {
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  padding: 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.abo-plan--hot {
  border-color: var(--abo-cta);
  box-shadow: inset 0 0 0 1px var(--abo-cta);
}
.abo-plan__label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--abo-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.abo-plan__price {
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.abo-plan__price small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--abo-muted);
}
.abo-plan__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--abo-muted);
  flex: 1;
}
.abo-plan__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--abo-4k);
  color: var(--abo-ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
}

/* Devices */
.abo-devices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 800px) {
  .abo-devices {
    grid-template-columns: repeat(4, 1fr);
  }
}
.abo-device {
  display: block;
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--abo-ink);
  font-weight: 900;
  font-size: 1.125rem;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.abo-device:hover {
  border-color: var(--abo-cta);
  color: var(--abo-cta);
  background: var(--abo-canvas);
}
.abo-device small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--abo-muted);
}

/* Debit table */
.abo-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  overflow: hidden;
}
.abo-table th,
.abo-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--abo-line);
}
.abo-table th {
  background: var(--abo-ink);
  color: var(--abo-canvas);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.abo-table tr:last-child td {
  border-bottom: 0;
}
.abo-table strong {
  color: var(--abo-cta);
}

/* FAQ */
.abo-faq {
  display: grid;
  gap: 0;
  border: 1px solid var(--abo-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.abo-faq__item {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--abo-line);
}
.abo-faq__item:last-child {
  border-bottom: 0;
}
.abo-faq__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 900;
}
.abo-faq__item p {
  margin: 0;
  color: var(--abo-muted);
}

/* CTA band */
.abo-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--abo-cta);
  color: var(--abo-on-cta);
}
.abo-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.abo-band h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.abo-band p {
  margin: 0;
  opacity: 0.9;
  max-width: 36ch;
}

/* Inner pages */
.abo-page {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 4rem;
}
.abo-page__inner {
  width: min(100% - 2 * var(--abo-pad), 42rem);
  margin-inline: auto;
}
.abo-page__inner--wide {
  width: min(100% - 2 * var(--abo-pad), var(--abo-max));
}
.abo-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.abo-page .entry-content > * + * {
  margin-top: 1rem;
}
.abo-page .entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.abo-page .entry-content th,
.abo-page .entry-content td {
  border: 1px solid var(--abo-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

/* Footer */
.abo-footer {
  background: var(--abo-ink);
  color: rgba(244, 247, 245, 0.85);
  padding: 3rem 0 2rem;
}
.abo-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .abo-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.abo-footer__brand {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}
.abo-footer__brand span {
  color: var(--abo-4k);
}
.abo-footer p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  max-width: 28ch;
  line-height: 1.5;
}
.abo-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 245, 0.5);
}
.abo-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.abo-footer li + li {
  margin-top: 0.45rem;
}
.abo-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.abo-footer a:hover {
  color: var(--abo-4k);
}
.abo-footer__copy {
  border-top: 1px solid rgba(244, 247, 245, 0.12);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(244, 247, 245, 0.45);
  margin: 0;
}
