/* IPTV-FR.PRO — feuille de style unique, sans police ni ressource externe. */
:root {
  --ink: #0a1b3d;
  --blue: #1f4fd8;
  --blue-dark: #173ba6;
  --sky: #eef3fc;
  --sky-2: #dce7fa;
  --line: #d3ddee;
  --text: #1c2b4a;
  --muted: #4a5b7a;
  --white: #fff;
  --warn-bg: #fff6e0;
  --warn-line: #d9a93a;
  --warn-text: #5c4300;
  --ok: #0f6b3e;
  --no: #8a2a2a;
  --radius: 10px;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
.small { font-size: 0.9375rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--text); max-width: 62ch; }
.links { margin-top: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 0.75rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 48rem); }

/* ---- En-tête ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.menu-btn { font: inherit; font-weight: 600; background: var(--sky); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 1rem; min-height: 44px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { display: block; padding: 0.55rem 0.7rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 6px; }
.site-nav a:not(.btn):hover { background: var(--sky); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }

/* Mobile : le menu est replié seulement si le JS est actif (sans JS, il reste visible). */
.js .menu-btn { display: inline-block; }
.menu-btn { display: none; }
.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem; }
.js .site-nav.open { display: block; }
.js .site-nav ul { flex-direction: column; margin-bottom: 1rem; }
.site-nav .nav-cta { width: 100%; }
html:not(.js) .bar { flex-wrap: wrap; padding-block: 0.5rem; }

@media (min-width: 71rem) {
  .menu-btn { display: none !important; }
  .js .site-nav, .site-nav { display: flex !important; position: static; align-items: center; gap: 0.75rem; padding: 0; border: 0; background: none; }
  .js .site-nav ul { flex-direction: row; flex-wrap: nowrap; margin: 0; }
  .site-nav a:not(.btn) { white-space: nowrap; padding-inline: 0.6rem; }
  .site-nav .nav-cta { width: auto; white-space: nowrap; padding-inline: 1rem; }
}

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; font-weight: 600; text-decoration: none; padding: 0.75rem 1.25rem; min-height: 48px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.icon { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---- Héros ---- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.6rem; }
.facts li { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.975rem; }
.facts .icon { color: var(--blue); }

/* ---- Règle des durées (élément signature) ---- */
.ruler { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; box-shadow: 0 1px 0 var(--line); }
.ruler figcaption { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: 0.5rem; }
.ruler-list { list-style: none; margin: 0; padding: 0; }
.ruler-list li + li { border-top: 1px solid var(--line); }
.ruler-list a { display: block; padding: 0.9rem 0.5rem; text-decoration: none; color: var(--text); border-radius: 8px; }
.ruler-list a:hover, .ruler-list .is-current a { background: var(--sky); }
.ruler-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ruler-dur { font-weight: 600; color: var(--ink); }
.ruler-price { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.ruler-track { display: block; height: 10px; background: var(--sky-2); border-radius: 99px; margin: 0.45rem 0; overflow: hidden; }
.ruler-bar { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar-3 { width: 12.5%; } .bar-6 { width: 25%; } .bar-12 { width: 50%; } .bar-24 { width: 100%; background: var(--ink); }
.ruler-sub { display: block; font-size: 0.9rem; color: var(--muted); }
.ruler-note { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }

/* ---- Sections ---- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.tint { background: var(--sky); }
.section-head { max-width: 48rem; margin-bottom: 1.5rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }

.page-head { background: var(--sky); padding-block: clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---- Étapes (séquence réelle) ---- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .steps:not(.compact) { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
.steps > li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.steps p { font-size: 0.95rem; margin: 0; color: var(--muted); }
@media (min-width: 56rem) {
  .steps:not(.compact) > li { padding: 3.4rem 1rem 1rem; }
  .steps:not(.compact) > li::before { left: 1rem; top: 1rem; }
}

/* ---- Définitions ---- */
.defs { margin: 0; display: grid; gap: 1.1rem; }
.defs > div { border-left: 3px solid var(--blue); padding-left: 1rem; }
.defs dt { font-weight: 700; color: var(--ink); }
.defs dd { margin: 0.15rem 0 0; color: var(--text); }

/* ---- Listes ---- */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist .icon { margin-top: 0.2em; }
.checklist.yes .icon { color: var(--ok); }
.checklist.no .icon { color: var(--no); }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.device-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 500; color: var(--ink); }
.device-list .icon { color: var(--blue); }
.plain-links { padding-left: 1.1em; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 500; }
.chips a:hover { border-color: var(--blue); }

/* ---- Tableaux ---- */
.table-wrap { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.plans caption { text-align: left; font-size: 0.9rem; color: var(--muted); padding: 0 0 0.6rem; }
.plans th, .plans td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9rem; }
.plans tbody th { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.plans tbody th a { color: var(--ink); }
.plans .is-current { background: var(--sky); }
.price { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.row-icon { color: var(--blue); vertical-align: -4px; margin-right: 0.5rem; }
.devices tbody th { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.devices tbody th span { display: inline; }
@media (max-width: 47.99rem) {
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans, .plans tbody, .plans tr, .plans th, .plans td, .plans caption { display: block; }
  .plans caption { padding: 0.75rem 1rem; }
  .plans tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .plans th, .plans td { border: 0; padding: 0.35rem 1rem; }
  .plans td[data-label]::before { content: attr(data-label) " : "; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
  .plans td .btn { margin-top: 0.25rem; }
}
.compare-notes { margin-top: 1.25rem; display: grid; gap: 0.5rem; }

/* ---- Boîtes ---- */
.price-box { background: var(--ink); color: #fff; border-radius: 14px; padding: 1.5rem; }
.price-box p { color: #fff; margin: 0 0 0.5rem; }
.price-box-label { font-weight: 600; opacity: 0.85; }
.price-box-amount { font-family: var(--serif); font-size: 3.25rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.price-box-sub { font-size: 0.95rem; opacity: 0.9; margin-bottom: 1.25rem !important; }
.price-box .btn-primary { background: #fff; color: var(--ink); }
.price-box .btn-primary:hover { background: var(--sky-2); }
.note { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.note > .icon { color: var(--blue); width: 28px; height: 28px; }
.note h2 { font-size: 1.2rem; margin-top: 0.4rem; }
.note ul { padding-left: 1.1em; display: grid; gap: 0.5rem; }

/* ---- FAQ ---- */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 1rem 2rem 1rem 0; list-style: none; position: relative; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.5rem; line-height: 1; color: var(--blue); }
.qa[open] summary::after { content: "−"; }
.qa-body { padding: 0 0 1rem; }
.qa-body p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 2.5rem; }

/* ---- Guides ---- */
.guides { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .guides { grid-template-columns: 1fr 1fr; } }
.guide { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; scroll-margin-top: 1rem; }
.guide h3 { display: flex; gap: 0.6rem; align-items: center; }
.guide h3 .icon { color: var(--blue); }
.guide-steps { padding-left: 1.3em; display: grid; gap: 0.5rem; }
.guide-note { font-size: 0.95rem; color: var(--muted); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--white); }
.toc-h { font-size: 1.1rem; }
.toc ul { padding-left: 1.1em; columns: 2; }
.toc li { break-inside: avoid; padding-block: 0.15rem; }

/* ---- Contact ---- */
.reasons { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.reasons li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.reasons h3 { margin: 0; font-size: 1.1rem; }
.reasons p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Bandeau d'appel à l'action ---- */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem); }
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: #e5ecfb; margin-bottom: 0; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--sky-2); }

/* ---- Pied de page ---- */
.site-footer { background: var(--sky); border-top: 1px solid var(--line); padding-top: 2.5rem; font-size: 0.975rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4rem; }
.footer-h { font-size: 1rem; font-family: var(--sans); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-note { color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-block: 1.25rem 2rem; color: var(--muted); font-size: 0.875rem; }
.footer-legal p { max-width: none; margin: 0; }

/* ---- Pages légales ---- */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0.1rem 1.5rem; margin: 0 0 1rem; }
.kv dt { font-weight: 600; color: var(--ink); margin-top: 0.6rem; }
.kv dd { margin: 0; }
@media (min-width: 48rem) { .kv { grid-template-columns: 18rem 1fr; } .kv dt { margin-top: 0; } }
.todo { background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-text); padding: 0.05rem 0.5rem; border-radius: 4px; font-weight: 600; font-size: 0.9em; }
.todo-banner { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); padding: 0.9rem 1rem; border-radius: var(--radius); max-width: none; }

/* ---- Formulaire de commande (étapes) ---- */
.page-head.compact { padding-block: clamp(1.25rem, 3vw, 2rem); }
.center { text-align: center; margin-inline: auto; }
.wizard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 4vw, 2rem); box-shadow: 0 8px 30px rgba(10, 27, 61, 0.07); margin-bottom: 1.5rem; }
html:not(.js) .wizard { display: none; }
.js .no-js-note { display: none; }
.step-count { text-align: center; font-size: 0.9rem; color: var(--muted); margin: 0 auto 0.5rem; }
.dots { list-style: none; display: flex; justify-content: center; gap: 0.5rem; padding: 0; margin: 0 0 1.25rem; }
.dots li { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sky-2); }
.dots li.on { background: var(--blue); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 1.65rem); color: var(--ink); text-align: center; width: 100%; padding: 0; margin-bottom: 0.5rem; line-height: 1.2; }
.step legend:focus { outline: none; }
.step legend:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.step-help { text-align: center; color: var(--muted); font-size: 0.975rem; margin: 0 auto 1.25rem; }
.choices { display: grid; gap: 0.75rem; }
@media (min-width: 36rem) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; text-align: center; min-height: 3.75rem; padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; color: var(--ink); transition: border-color 0.15s, background-color 0.15s; }
.choice-body small { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.choice-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; font-variant-numeric: lining-nums; }
.choice:hover .choice-body { border-color: var(--blue); }
.choice input:checked + .choice-body { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--blue); outline-offset: 3px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.field input { width: 100%; font: inherit; padding: 0.8rem 1rem; min-height: 48px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); }
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-hint { font-size: 0.875rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-error { font-size: 0.9375rem; color: #b3261e; font-weight: 600; margin: 0.3rem 0 0; }
.field[hidden] { display: none; }
.step-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.step-nav .btn { flex: 1; }
.step-nav [hidden] { display: none; }
.step-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }
.summary { margin: 0 0 1rem; display: grid; gap: 0.1rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; }
.summary > div:nth-child(odd) { background: var(--sky); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
