/* ==========================================================================
   Portail IPTV – feuille de style unique
   Direction « Clair & confiant » : fond clair, bleu profond pour l'action,
   vert sapin pour la validation et l'offre à vie. Variables en :root pour
   permettre un thème sombre plus tard ([data-theme="dark"]).
   ========================================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --line: #d9e0ea;
  --line-strong: #b9c4d3;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #e8eefc;
  --primary-ring: rgba(29, 78, 216, .35);

  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #e0f2f0;

  --ok: #15803d;      --ok-soft: #e3f3e8;
  --warn: #b45309;    --warn-soft: #fbeedc;
  --bad: #b91c1c;     --bad-soft: #fbe4e4;
  --info: #1d4ed8;    --info-soft: #e8eefc;

  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;

  /* alias conservés pour d'anciens styles inline */
  --card: var(--surface);
  --bg2: var(--surface-2);
  --accent2: var(--accent);
}

/* Thème sombre (non activé par défaut ; activer avec <html data-theme="dark">) */
:root[data-theme="dark"] {
  --bg: #0f1623; --surface: #161e2e; --surface-2: #1d2738; --line: #2a3650; --line-strong: #3b4a68;
  --text: #e9eef7; --muted: #aab6c8; --faint: #8794a8;
  --primary: #6d9bff; --primary-hover: #8fb2ff; --primary-soft: #1b2a4d; --primary-ring: rgba(109, 155, 255, .4);
  --accent: #3fc1b0; --accent-hover: #5fd3c4; --accent-soft: #123a37;
  --ok: #4ade80; --ok-soft: #14321f; --warn: #fbbf24; --warn-soft: #3a2a0c; --bad: #f87171; --bad-soft: #3b1515; --info: #6d9bff; --info-soft: #1b2a4d;
  --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .4);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
html, body { margin: 0; padding: 0; }
body {
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, .mono { font-family: var(--mono); font-size: .95em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--primary); color: #fff; padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: .5rem; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.lg { width: 1.6em; height: 1.6em; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
header.top { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
:root[data-theme="dark"] header.top { background: rgba(22, 30, 46, .92); }
header.top .in { max-width: var(--container); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); display: inline-flex; align-items: center; gap: .55rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: 0 0 auto; }
.brand .dot { display: none; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
nav.main a, nav.main button { color: var(--muted); padding: .5rem .8rem; border-radius: 8px; background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
nav.main a:hover, nav.main a.active, nav.main button:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
nav.main a.active { font-weight: 600; }
nav.main .btn { margin-left: .5rem; padding: .55rem 1rem; color: #fff; }
nav.main .btn:hover { background: var(--primary-hover); color: #fff; }
nav.main form.inline { display: inline; }
.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; color: var(--text); }
@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; gap: .2rem; }
  nav.main a, nav.main button { width: 100%; text-align: left; padding: .8rem .9rem; font-size: 1.05rem; }
  nav.main form.inline { display: block; }
  nav.main .btn { margin: .5rem 0 0; text-align: center; }
  .nav-toggle:checked ~ nav.main { display: flex; }
  .nav-toggle:checked ~ .nav-burger .i-menu { display: none; }
  .nav-toggle:not(:checked) ~ .nav-burger .i-close { display: none; }
}

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */
main { flex: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 1.75rem 1rem 3.5rem; }
main.narrow { max-width: 580px; }
main.wide { max-width: 1320px; }
.notice-test { background: var(--warn-soft); color: var(--warn); border: 1px solid #f1d9b3; border-radius: 8px; padding: .4rem .8rem; font-size: .82rem; margin-bottom: 1rem; text-align: center; }
section.section { padding: 3rem 0 1rem; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.section-title h2 { font-size: 1.85rem; }
.section-title h1 { font-size: 2.2rem; }
.section-title p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: .2rem; }

/* Pied de page */
footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; margin-top: 2rem; }
footer .in { max-width: var(--container); margin: 0 auto; padding: 2.25rem 1rem 1.5rem; }
footer .cols { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
footer h4 { color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: .3rem 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .bottom { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }
.disclaimer { font-size: .82rem; color: var(--faint); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 1.25rem; } }

/* --------------------------------------------------------------------------
   Cartes, grilles, statistiques
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.card--soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card--highlight { border: 2px solid var(--accent); position: relative; box-shadow: var(--shadow-lg); }
.card--warn { border-color: #f1d9b3; background: #fffaf3; }
.card--danger { border-color: #f3c3c3; }
.card--flat { padding: 1.1rem 1.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid > .card { margin-bottom: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.stat .v { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .l { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.stat.big { grid-column: span 2; background: var(--primary); color: #fff; border-color: var(--primary); }
.stat.big .l, .stat.big a { color: rgba(255, 255, 255, .85); }
.stat.big .v { font-size: 2.4rem; }
.stat.accent { border-color: var(--accent); background: var(--accent-soft); }
.stat.warn { background: var(--warn-soft); border-color: #f1d9b3; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin: .9rem 0 .35rem; }
label.inline-check { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.hint { font-size: .82rem; color: var(--faint); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: .7rem .9rem; min-height: 46px; border-radius: var(--radius-s); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9aa6b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--faint); }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); margin: 0; }
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; min-width: 140px; }
.row.tight { gap: .5rem; } .row.tight > * { flex: 0 0 auto; min-width: 0; }
form.inline { display: inline; }
.field-mac input, .field-key input { font-family: var(--mono); letter-spacing: .12em; font-size: 1.15rem; text-transform: uppercase; }
.field-key input { max-width: 14rem; letter-spacing: .3em; text-align: center; }
.input-group { display: flex; gap: .5rem; align-items: stretch; }
.input-group input { flex: 1; }

/* Cartes à cocher (choix de formule) */
.choices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: .35rem 0 .5rem; }
.choice { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .box { display: block; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); padding: .85rem 1rem; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice .box .t { font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.choice .box .p { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.choice .box .d { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: .2rem; }
.choice input:checked + .box { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); background: var(--primary-soft); }
.choice input:focus-visible + .box { outline: 3px solid var(--primary-ring); outline-offset: 2px; }
.choice .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .1rem .5rem; }

/* Onglets (radio) */
.tabs { display: inline-flex; gap: 0; margin-bottom: 1rem; background: var(--surface-2); padding: .25rem; border-radius: 10px; }
.tabs label { margin: 0; }
.tabs input { display: none; }
.tabs span { display: inline-block; padding: .45rem 1rem; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .92rem; }
.tabs input:checked + span { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.15rem; border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: .97rem; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .05s; line-height: 1.2;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.danger { color: var(--bad); border-color: #e9b4b4; background: var(--surface); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.white { background: #fff; color: var(--primary); border-color: #fff; }
.btn.white:hover { background: #e8eefc; }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; font-weight: 600; border-radius: 8px; }
.btn.lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; margin-top: 1rem; }
.btn.icon-only { padding: .3rem; width: 34px; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Badges, alertes
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge.plain::before { display: none; }
.badge.trial, .badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.active, .badge.paid, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.expired, .badge.unknown, .badge.canceled { background: var(--surface-2); color: var(--muted); }
.badge.banned, .badge.blocked, .badge.failed { background: var(--bad-soft); color: var(--bad); }
.badge.info, .badge.lifetime { background: var(--primary-soft); color: var(--primary); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.lg { font-size: .95rem; padding: .35rem .9rem; }

.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-s); margin-bottom: 1rem; border: 1px solid; border-left-width: 4px; font-size: .95rem; }
.alert .icon { margin-top: .15rem; }
.alert.error { background: var(--bad-soft); border-color: var(--bad); color: #7f1d1d; }
.alert.ok { background: var(--ok-soft); border-color: var(--ok); color: #14532d; }
.alert.warn { background: var(--warn-soft); border-color: var(--warn); color: #78350f; }
.alert.info { background: var(--info-soft); border-color: var(--info); color: #1e3a8a; }
.alert.small { padding: .5rem .8rem; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Tableaux
   -------------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.actions-cell { text-align: right; white-space: nowrap; }
td.actions-cell form, td.actions-cell .btn { margin-left: .25rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; }
.card > .table-wrap { margin: 0 -1.5rem -1.5rem; }
.card > .table-wrap table { min-width: 100%; }
.card > .table-wrap th:first-child, .card > .table-wrap td:first-child { padding-left: 1.5rem; }
.card > .table-wrap th:last-child, .card > .table-wrap td:last-child { padding-right: 1.5rem; }
table.kv th { text-transform: none; font-size: .9rem; color: var(--muted); font-weight: 500; width: 40%; background: none; }
tfoot td { font-weight: 700; background: var(--surface-2); }
.empty { color: var(--muted); text-align: center; padding: 1.5rem 1rem; }
/* tableaux empilés sur mobile : <table class="stack"> + data-label sur les td */
@media (max-width: 720px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: var(--radius-s); margin: .75rem 0; padding: .4rem .9rem; background: var(--surface); }
  table.stack td { border: 0; padding: .35rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: 0 0 38%; }
  table.stack td.actions-cell { justify-content: flex-start; flex-wrap: wrap; }
  table.stack td.actions-cell::before { display: none; }
  .card > .table-wrap { margin: 0; }
  .card > .table-wrap th:first-child, .card > .table-wrap td:first-child, .card > .table-wrap th:last-child, .card > .table-wrap td:last-child { padding-left: 0; padding-right: 0; }
}
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* Filtres (chips) */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .25rem 0 1rem; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.active, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search], .toolbar input[type=text] { flex: 1; min-width: 200px; }

/* --------------------------------------------------------------------------
   Vitrine : hero, étapes, bénéfices, tarifs, FAQ, CTA
   -------------------------------------------------------------------------- */
.hero { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; padding: 2.5rem 0 2rem; }
.hero h1 { font-size: 2.9rem; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero .actions { margin-bottom: 1.25rem; }
.hero .visual { min-width: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .92rem; }
.check-list li { display: inline-flex; align-items: center; gap: .4rem; }
.check-list .icon { color: var(--ok); }
.honest { font-size: .85rem; color: var(--faint); border-left: 3px solid var(--line); padding-left: .75rem; margin-top: 1.25rem; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 1.5rem; } .hero h1 { font-size: 2.3rem; } .hero .visual { max-width: 560px; } }
@media (max-width: 600px) { .hero h1 { font-size: 1.9rem; } .hero .lead { font-size: 1.05rem; } .hero .actions { flex-direction: column; align-items: stretch; } .hero .actions .btn { width: 100%; } }

.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.feature .ico .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.steps { counter-reset: s; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps .step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.2rem; box-shadow: var(--shadow); }
.steps .step::before { counter-increment: s; content: counter(s); position: absolute; left: 1.25rem; top: 1.35rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; }
.steps .step h3 { font-size: 1.05rem; }
.steps .step p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps .step .visual { margin-top: 1rem; }
.steps .card { position: relative; padding-left: 3.6rem; } /* compatibilité ancien balisage */
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; left: 1.1rem; top: 1.3rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

.devices { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.device-card { text-align: center; padding: 1.5rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.device-card .icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: .6rem; }
.device-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.device-card p { color: var(--muted); font-size: .88rem; margin: 0; }

.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shot figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .6rem; }

/* Tarifs */
.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.plan .tagline { color: var(--muted); font-size: .92rem; min-height: 2.6em; margin-bottom: .75rem; }
.price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; display: block; margin-top: .25rem; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; font-size: .93rem; flex: 1; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; }
.plan li .icon { color: var(--ok); margin-top: .25rem; }
.plan li.off { color: var(--faint); } .plan li.off .icon { color: var(--line-strong); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .plan.featured { order: -1; } }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare .icon { color: var(--ok); } .compare .off { color: var(--line-strong); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: .95rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Réassurance */
.trust { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-item .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.trust-item .ico .icon { width: 20px; height: 20px; }
.trust-item h3 { font-size: 1rem; margin-bottom: .2rem; }
.trust-item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(135deg, var(--primary), #1e3a8a); color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; margin: 3rem 0 1rem; }
.cta-band h2 { color: #fff; font-size: 1.8rem; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 1.5rem; }

/* Cadre TV pour illustrations et captures */
.tv-frame { background: #0b1220; border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid #1f2a44; }
.tv-frame .screen { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111a2e; }
.tv-frame .screen img, .tv-frame .screen svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.tv-frame .stand { width: 28%; height: 6px; margin: 10px auto 0; background: #1f2a44; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Espace client : bandeau de statut, barre de progression, barre mobile
   -------------------------------------------------------------------------- */
.status-hero { display: grid; gap: 1.25rem; grid-template-columns: 1fr auto; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.status-hero.trial { border-left-color: var(--warn); }
.status-hero.active { border-left-color: var(--ok); }
.status-hero.expired { border-left-color: var(--bad); background: #fffafa; }
.status-hero.banned { border-left-color: var(--bad); background: var(--bad-soft); }
.status-hero .headline { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: .35rem 0 .2rem; }
.status-hero .sub { color: var(--muted); font-size: .95rem; }
.status-hero .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--faint); font-size: .85rem; margin-top: .75rem; }
.status-hero .side { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; min-width: 220px; }
@media (max-width: 720px) { .status-hero { grid-template-columns: 1fr; } .status-hero .side { min-width: 0; } }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: .75rem; max-width: 420px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.status-hero.trial .progress > span { background: var(--warn); }
.status-hero.active .progress > span { background: var(--ok); }
.copy-btn { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: .1rem .5rem; cursor: pointer; color: var(--muted); }
.copy-btn:hover { color: var(--text); border-color: var(--faint); }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); gap: .75rem; align-items: center; box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .sticky-cta .btn { flex: 1; margin: 0; }
  body.has-sticky main { padding-bottom: 6rem; }
}

/* Liste de playlists */
.pl-list { list-style: none; padding: 0; margin: 0; }
.pl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pl-item:last-child { border-bottom: 0; }
.pl-item.editing { background: var(--primary-soft); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; border-radius: 8px; }
.pl-order { display: flex; flex-direction: column; gap: .2rem; }
.pl-order .btn { min-height: 26px; width: 30px; padding: 0; font-size: .7rem; border-radius: 6px; }
.pl-name { font-weight: 700; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pl-src { color: var(--faint); font-size: .82rem; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pl-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .pl-item { grid-template-columns: auto 1fr; } .pl-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.type-pill { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 5px; background: var(--surface-2); color: var(--muted); }

details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; box-shadow: var(--shadow); }
details.panel > summary { cursor: pointer; padding: 1.1rem 1.5rem; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary .badge { font-weight: 600; }
details.panel > summary::after { content: "▾"; color: var(--faint); font-size: .9rem; transition: transform .15s; }
details.panel[open] > summary::after { transform: rotate(180deg); }
details.panel > .body { padding: 0 1.5rem 1.5rem; }

/* Page merci */
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; animation: pop .4s ease-out; }
.success-mark .icon { width: 36px; height: 36px; stroke-width: 2.5; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.next-steps { text-align: left; counter-reset: n; list-style: none; padding: 0; margin: 1.25rem 0; }
.next-steps li { position: relative; padding-left: 2.4rem; margin-bottom: .75rem; color: var(--muted); }
.next-steps li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

/* Aide */
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.toc a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: var(--text); }
.toc a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.help-section { scroll-margin-top: 90px; }
.prose h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--muted); }
.key { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .15em; background: var(--surface-2); padding: .3rem .6rem; border-radius: 8px; border: 1px dashed var(--line-strong); }

/* --------------------------------------------------------------------------
   Administration : barre latérale + contenu
   -------------------------------------------------------------------------- */
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary); }
.admin-nav .count { background: var(--warn); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .05rem .45rem; }
@media (min-width: 1024px) {
  body.admin main { max-width: 1320px; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
  body.admin main > .admin-nav { position: sticky; top: 80px; flex-direction: column; gap: .2rem; margin: 0; grid-row: 1 / span 99; }
  body.admin main > .admin-nav a { padding: .6rem .9rem; }
  body.admin main > *:not(.admin-nav) { grid-column: 2; min-width: 0; }
}
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.25rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .stat.big { grid-column: span 2; } }
.danger-zone { border: 1px solid #f3c3c3; border-radius: var(--radius-s); margin-top: 1rem; }
.danger-zone > summary { cursor: pointer; padding: .8rem 1rem; color: var(--bad); font-weight: 700; list-style: none; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > div { padding: 0 1rem 1rem; }
.action-group { margin-bottom: 1.1rem; }
.action-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.action-group .row > form { margin: 0; }
.action-group .btn.block { margin-top: 0; }
.login-wrap { max-width: 420px; margin: 3rem auto; text-align: center; }
.login-wrap .card { text-align: left; }
.login-wrap .brand { justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.login-wrap .brand .logo { width: 40px; height: 40px; }

/* Légal */
.legal .card h3 { margin-top: 1.4rem; font-size: 1.02rem; }
.legal .card h3:first-child { margin-top: 0; }
.legal .card p { color: var(--muted); }

@media (max-width: 600px) {
  main { padding: 1.25rem .9rem 3rem; }
  .card { padding: 1.2rem; }
  .card > .table-wrap { margin-left: -1.2rem; margin-right: -1.2rem; }
  .card > .table-wrap th:first-child, .card > .table-wrap td:first-child { padding-left: 1.2rem; }
  .card > .table-wrap th:last-child, .card > .table-wrap td:last-child { padding-right: 1.2rem; }
  h1 { font-size: 1.65rem; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title h1 { font-size: 1.7rem; }
  .cta-band { padding: 2rem 1.25rem; }
  .cta-band h2 { font-size: 1.4rem; }
  .pl-item.editing { margin: 0 -1.2rem; padding-left: 1.2rem; padding-right: 1.2rem; }
}
@media print { header.top, footer, .sticky-cta, .nav-burger { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
