/* ==========================================================================
   abonnement-iptvfr.com — IPTV FR
   Design system : light / white / premium, accent rouge.
   Mobile-first. Vanilla CSS, aucune dependance.
   ========================================================================== */

/* --- 1. Tokens ------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #f1f3f6;
  --text: #111111;
  --muted: #555555;
  --muted-2: #767b84;
  --border: #eaeaea;
  --border-strong: #d9dce1;
  --primary: #d91f26;
  --primary-dark: #b9181f;
  --primary-soft: #fdf2f2;
  --success: #1a7f4b;
  --whatsapp: #1faf54;
  --whatsapp-dark: #178c43;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow: 0 2px 8px rgba(17, 17, 17, .06);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, .10);

  --wrap: 1140px;
  --gutter: 20px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
}

/* --- 2. Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* --- 3. Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.section { padding: 48px 0; }
.section--alt { background: var(--surface); }
.section--tight { padding: 32px 0; }

.section-head { max-width: 660px; margin-bottom: 28px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.lead { font-size: 1.06rem; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- 4. Boutons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--muted-2); }

.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: var(--whatsapp-dark); color: #fff; }

.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 5. Header ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); text-decoration: none; }
.logo__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
}
.logo__text small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1;
  margin-top: 1px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { display: block; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; border-bottom: 1px solid var(--border); }
.nav__list a {
  display: block;
  padding: 13px 2px;
  color: var(--text);
  font-weight: 500;
  font-size: .97rem;
}
.nav__list a:hover { color: var(--primary); text-decoration: none; }
.nav__list a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.nav__cta { display: grid; gap: 10px; margin-top: 18px; }
.header__cta { display: none; }

/* --- 6. Hero -------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}
.hero h1 { font-size: 2.05rem; margin-bottom: 14px; }
.hero__sub { font-size: 1.06rem; color: var(--muted); margin-bottom: 24px; max-width: 560px; }
.hero .btn-row { margin-bottom: 20px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .875rem;
  color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero__trust svg { flex-shrink: 0; color: var(--success); }

.hero__panel {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero__panel h2 { font-size: 1.02rem; margin-bottom: 14px; }
.hero__panel dl { margin: 0; display: grid; gap: 12px; }
.hero__panel .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hero__panel .row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.hero__panel dt { color: var(--muted); font-size: .92rem; margin: 0; }
.hero__panel dd { margin: 0; font-weight: 700; white-space: nowrap; }

/* --- 7. Page header (sous-pages) ------------------------------------------ */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 32px;
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 660px; margin-bottom: 0; }

.breadcrumb { font-size: .84rem; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* --- 8. Cards ------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--link { transition: border-color .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.icon-card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  margin-bottom: 14px;
}

.device-card { text-align: left; }
.device-card__icon { color: var(--text); margin-bottom: 12px; }
.device-card h3 { font-size: 1rem; }
.device-card p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.device-card a { font-size: .89rem; font-weight: 600; }

/* --- 9. Steps ------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
}
.steps__num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: .93rem; color: var(--muted); margin-bottom: 0; }

/* Etapes numerotees (guides installation) */
.howto { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: howto; }
.howto > li {
  position: relative;
  padding: 0 0 22px 46px;
  margin: 0;
  border-left: 2px solid var(--border);
}
.howto > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.howto > li::before {
  counter-increment: howto;
  content: counter(howto);
  position: absolute;
  left: -15px; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
}
.howto h3 { font-size: 1.02rem; margin: 0 0 6px; }
.howto p:last-child { margin-bottom: 0; }

/* --- 10. Pricing ---------------------------------------------------------- */
.pricing { display: grid; gap: 18px; align-items: start; }

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(217, 31, 38, .10);
}
.plan__badge {
  position: absolute;
  top: -11px; left: 22px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
}
.plan__name { font-size: 1.1rem; margin-bottom: 4px; }
.plan__screens { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.plan__amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan__period { font-size: .9rem; color: var(--muted); }
.plan__note { font-size: .82rem; color: var(--muted-2); margin: -10px 0 16px; }

.plan__features { list-style: none; margin: 0 0 22px; padding: 0; font-size: .93rem; flex-grow: 1; }
.plan__features li {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 9px;
  color: var(--muted);
}
.plan__features svg { flex-shrink: 0; margin-top: 4px; color: var(--success); }

/* --- 11. FAQ -------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq__q:hover { color: var(--primary); }
.faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--muted-2);
  transition: transform .18s ease;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--primary); }
.faq__a { padding: 0 0 18px; color: var(--muted); font-size: .95rem; max-width: 760px; }
.faq__a p:last-child, .faq__a ul:last-child { margin-bottom: 0; }
/* Sans JS : tout reste visible et lisible. */
.no-js .faq__a { display: block; }

/* --- 12. Prose (articles, pages legales) ---------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose h3 { margin-top: 26px; }
.prose > *:first-child { margin-top: 0; }
.prose ul li, .prose ol li { color: var(--muted); }
.prose strong { color: var(--text); }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: .93rem;
  color: var(--muted);
}
.note strong { display: block; color: var(--text); margin-bottom: 4px; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .92rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }

/* --- 13. Article / blog --------------------------------------------------- */
.post-meta { font-size: .85rem; color: var(--muted-2); margin-bottom: 0; }
.post-card { display: flex; flex-direction: column; }
.post-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.post-card h2, .post-card h3 { font-size: 1.06rem; }
.post-card h2 a, .post-card h3 a { color: var(--text); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card p { font-size: .93rem; color: var(--muted); }

/* --- 14. Liens connexes --------------------------------------------------- */
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related li { margin: 0; }
.related a { font-weight: 500; }

/* --- 15. CTA band --------------------------------------------------------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}
.cta-band h2 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
.cta-band .btn-row { justify-content: center; }

/* --- 16. Footer ----------------------------------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 56px;
  font-size: .92rem;
}
.footer__grid { display: grid; gap: 28px; }
.footer__brand p { color: var(--muted); max-width: 340px; font-size: .9rem; }
.footer h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }
.footer__wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
}
.footer__wa:hover { color: var(--primary); }
.footer__wa svg { color: var(--whatsapp); flex-shrink: 0; }

.footer__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
  font-size: .82rem;
  color: var(--muted-2);
}
.footer__legal p { margin-bottom: 8px; }
.footer__legal p:last-child { margin-bottom: 0; }

/* --- 17. WhatsApp flottant ------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(17, 17, 17, .18);
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; text-decoration: none; }
.wa-float svg { flex-shrink: 0; }
.wa-float__label { display: none; }

/* --- 18. Utilitaires ------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }

/* --- 19. Breakpoints ------------------------------------------------------ */
@media (min-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .wa-float__label { display: inline; }
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.4rem; }
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; }
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 40px 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero { padding: 56px 0 60px; }
  .hero h1 { font-size: 2.7rem; }
  .page-head { padding: 32px 0 40px; }
  h2 { font-size: 1.75rem; }
  .cta-band { padding: 40px 32px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__list li { border-bottom: 0; }
  .nav__list a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .94rem; }
  .nav__list a:hover { background: var(--surface); }
  .nav__cta { display: none; }
  .header__cta { display: flex; gap: 10px; align-items: center; }

  .hero__inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
  }
  .hero__panel { margin-top: 0; padding: 26px; }
  .hero h1 { font-size: 3rem; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .wa-float { right: 22px; bottom: 22px; }

  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
  .article-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* --- 20. Impression ------------------------------------------------------- */
@media print {
  .header, .footer, .wa-float, .btn-row, .cta-band { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}

/* --- 21. Placeholder editeur ---------------------------------------------
   Marque visiblement une information juridique restant a completer.
   Ne doit plus apparaitre sur le site une fois les pages legales remplies. */
.placeholder {
  display: inline-block;
  background: #fff8e1;
  border: 1px dashed #d9a900;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: .88em;
  font-weight: 600;
  color: #8a6a00;
  font-style: normal;
}
