/* ==========================================================================
   KING365-TV.EU — design system v4
   Fond blanc / gris clair, encre bleu-pétrole, accent orange réservé,
   vert uniquement pour l'action « Commander ». Polices système, aucune
   ressource externe. Mobile d'abord.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-tint: #eef5f8;
  --ink: #14323f;
  --text: #2b3d46;
  --muted: #5a6a72;
  --line: #e2e8eb;
  --line-strong: #c9d3d8;
  --brand: #0e6f97;
  --brand-dark: #0a5574;
  --accent: #f7941d;
  --accent-soft: #fff3e3;
  --accent-ink: #8a4a00;
  --order: #15803d;
  --order-dark: #116632;
  --wa: #1fa855;

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

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 50, 63, 0.06);
  --shadow: 0 6px 24px rgba(20, 50, 63, 0.08);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --section: clamp(48px, 7vw, 88px);
  --bars: linear-gradient(90deg, #29abe2 0 20%, #f7941d 20% 40%, #14323f 40% 60%, #2bb673 60% 80%, #7b3fa0 80% 100%);
}

/* -------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (max-width: 380px) { :root { --gutter: 16px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.u-mt-16 { margin-top: 16px; } .u-mt-24 { margin-top: 24px; } .u-mt-28 { margin-top: 28px; } .u-mt-32 { margin-top: 32px; } .u-mt-40 { margin-top: 40px; } .u-mt-48 { margin-top: 48px; }
mark.todo { background: #fff1a8; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* -------------------------------------------------------------- Boutons
   Hiérarchie : primary (voir les abonnements) · secondary (contour) ·
   order (Commander, vert, ouvre WhatsApp) · link (texte).            */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #0b2531; color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--order { background: var(--order); color: #fff; }
.btn--order:hover { background: var(--order-dark); color: #fff; }
.btn--link { background: none; color: var(--brand); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }
/* Alias hérités (contenus anciens) */
.btn--gold { background: var(--ink); color: #fff; }
.btn--ghost, .btn--whatsapp { background: #fff; color: var(--ink); border-color: var(--line-strong); }

.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-group--center { justify-content: center; }
.btn-group__alt { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform 0.15s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(2px); }

/* -------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--bars); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav__list li { margin: 0; }
.main-nav__list a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: 6px; white-space: nowrap; }
.main-nav__list a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav__list a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav__cta { min-height: 42px; padding: 9px 16px; font-size: 0.9375rem; white-space: nowrap; }
.main-nav__help { display: none; }
.nav-toggle { display: none; position: relative; width: auto; min-width: 44px; height: 44px; padding: 0 12px 0 40px; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform 0.2s, top 0.2s; }
.nav-toggle__bar { top: 20px; }
.nav-toggle__label { line-height: 1; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; background: rgba(20, 50, 63, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 85; }
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    width: min(86vw, 360px); padding: 76px 24px 32px;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: #fff; box-shadow: var(--shadow);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .main-nav__cta { min-height: 50px; font-size: 1rem; }
  .main-nav__help { display: block; margin: 0; color: var(--muted); font-size: 0.9375rem; text-align: center; }
  .nav-toggle { position: relative; z-index: 101; }
  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .main-nav { transition: none !important; } }

/* -------------------------------------------------------------- Sections */
.section { padding-block: var(--section); }
.section--surface { background: var(--bg-soft); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section + .section:not(.section--surface) { border-top: 1px solid var(--line); }
.section--surface + .section, .section + .section--surface { border-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-foot { margin: 28px 0 0; }
.section-foot--center { text-align: center; }
.section-foot--note { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.eyebrow { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--muted); max-width: 720px; }

.grid { display: grid; gap: 20px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------- Fil d'Ariane / en-tête de page */
.page-header { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 5vw, 48px); }
.page-header h1 { max-width: 860px; }
.page-header .lead { margin-bottom: 0; }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.article-meta { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); }

/* -------------------------------------------------------------- Cartes */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card__link { font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--device h3 { font-size: 1.0625rem; }
.section--surface .card { box-shadow: var(--shadow-sm); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--order); margin-top: 3px; }
.checklist--sm { font-size: 0.9375rem; }
.checklist--sm li { margin-bottom: 6px; }

/* -------------------------------------------------------------- Hero accueil */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 700px; }
.hero .lead { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 6px; margin: 0; }
.hero__facts .icon { color: var(--order); }
.hero__visual img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
@media (max-width: 959px) { .hero__visual { display: none; } }

/* Bandeau d'avantages */
.benefits { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.benefits__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-tint); color: var(--brand); }
.benefits strong { display: block; margin-bottom: 2px; }
.benefits span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------- Offres */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 20px; } .plans--3 { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.plan-card.is-featured { border: 2px solid var(--ink); padding: 25px 21px 21px; box-shadow: var(--shadow); }
.plan-card__badge { position: absolute; top: -12px; left: 20px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.plan-card__duration { margin: 0; font-size: 1.25rem; }
.plan-card__intent { margin: 2px 0 14px; font-size: 0.875rem; color: var(--muted); }
.plan-card__price { margin: 0; font-size: 2.25rem; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.plan-card__monthly { margin: 4px 0 18px; font-size: 0.875rem; color: var(--muted); }
.plan-card .checklist { flex: 1; margin-bottom: 20px; }
@media (max-width: 599px) {
  .plan-card { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; padding: 20px 18px 18px; }
  .plan-card.is-featured { padding: 19px 17px 17px; }
  .plan-card__duration { grid-column: 1; }
  .plan-card__intent { grid-column: 1; margin-bottom: 0; }
  .plan-card__price { grid-column: 2; grid-row: 1 / span 2; font-size: 1.875rem; text-align: right; }
  .plan-card__monthly { grid-column: 1 / -1; margin: 6px 0 14px; }
  .plan-card .checklist { display: none; }
  .plan-card .btn { grid-column: 1 / -1; }
}
.pricing-note { margin: 20px 0 0; font-size: 0.875rem; color: var(--muted); text-align: center; }
.pricing-note--left { text-align: left; margin-top: 12px; }

.plan-table th, .plan-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.plan-table thead th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.plan-table tr.is-current { background: var(--bg-tint); }
.plan-table th, .plan-table td { white-space: nowrap; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 600; vertical-align: middle; }

/* -------------------------------------------------------------- Page produit */
.product-hero { padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.product-hero__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .product-hero__grid { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.product-hero h1 { margin-bottom: 14px; }
.product-hero .lead { margin-bottom: 20px; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .buy-box { position: sticky; top: calc(var(--header-h) + 24px); } }
.buy-box__label { margin: 0 0 4px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.buy-box__price { margin: 0; font-size: 2.75rem; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; }
.buy-box__monthly { margin: 6px 0 18px; color: var(--muted); font-size: 0.9375rem; }
.buy-box .checklist { margin-bottom: 22px; font-size: 0.9375rem; }
.buy-box__note { margin: 14px 0 0; font-size: 0.875rem; color: var(--muted); text-align: center; }
.buy-box__alt { margin: 10px 0 0; font-size: 0.875rem; text-align: center; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 10px; margin: 0; }
.fact-list .icon { color: var(--brand); margin-top: 2px; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split__media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }

/* Barre d'achat mobile (pages produit uniquement) */
.buy-bar { display: none; }
@media (max-width: 959px) {
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 50, 63, 0.08);
  }
  .buy-bar__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .buy-bar__name { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar__price { font-size: 1.25rem; font-weight: 750; color: var(--ink); }
  .buy-bar .btn { min-height: 46px; padding-inline: 18px; }
  .buy-bar { transition: transform 0.2s ease; }
  .js .buy-bar.is-hidden { transform: translateY(110%); }
  body.has-buy-bar { padding-bottom: 76px; }
  body.has-buy-bar .cookie-banner { bottom: 84px; }
}

/* -------------------------------------------------------------- Appareils */
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .devices { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .devices { grid-template-columns: repeat(4, 1fr); } }
.devices li { margin: 0; }
.devices a, .devices span.device { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.9375rem; line-height: 1.3; }
.devices a:hover { border-color: var(--ink); }
.devices .icon { color: var(--brand); }
.devices small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }

/* -------------------------------------------------------------- Étapes */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(var(--steps, 4), 1fr); } .steps--3 { --steps: 3; } }
.step { position: relative; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; }
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* -------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.section-head--center + .faq { margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; background: none; border: 0; text-align: left; font: 600 1.0625rem/1.4 var(--font); color: var(--ink); cursor: pointer; }
.faq__question:hover { color: var(--brand); }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__question[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.js .faq__panel { overflow: hidden; height: 0; transition: height 0.22s ease; }
.faq__panel-inner { padding: 0 0 18px; color: var(--text); }
.faq__panel-inner > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .js .faq__panel { transition: none; } }

/* -------------------------------------------------------------- Articles */
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; } }
.prose { max-width: 720px; font-size: 1.0625rem; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.625rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose li::marker { color: var(--brand); }
.prose table { font-size: 0.9375rem; }
.answer { background: var(--bg-tint); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin-bottom: 28px; }
.answer > :last-child { margin-bottom: 0; }
.figure { margin: 0 0 28px; max-width: 760px; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.notice { background: var(--accent-soft); border: 1px solid #f6d6ad; border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.notice > :last-child { margin-bottom: 0; }
.notice.is-important { background: #fff5f5; border-color: #f2c4c4; }
.sidebar { display: grid; gap: 24px; font-size: 0.9375rem; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.sidebar h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.sidebar li { margin: 0; }
.sidebar ul a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.sidebar ul a:hover { color: var(--ink); border-left-color: var(--ink); }
.sidebar-cta { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sidebar-cta__title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sidebar-cta p { color: var(--muted); }
.sidebar > a.btn, .sidebar > p { margin: 0; }
@media (max-width: 1023px) { .sidebar > h2:first-child, .sidebar > h2:first-child + ul { display: none; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 1.25em; }
.table-wrap table { min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { background: var(--bg-soft); color: var(--ink); font-size: 0.875rem; }
.table-wrap tbody th { color: var(--ink); font-weight: 600; }
.plan-table { min-width: 0 !important; }
.kv { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv th, .kv td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.kv th { width: 34%; background: var(--bg-soft); color: var(--ink); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.device-list { list-style: none; padding: 0; }
.device-list li { display: flex; gap: 10px; }

/* Cartes d'articles */
.post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s; }
.post-card:hover { border-color: var(--line-strong); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-card__body { padding: 18px 20px 20px; }
.post-card__meta { margin: 0 0 6px; font-size: 0.8125rem; color: var(--muted); }
.post-card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.post-card p:last-child { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* -------------------------------------------------------------- Bloc d'appel final */
.cta-panel { max-width: 760px; margin-inline: auto; text-align: center; padding: clamp(28px, 5vw, 48px); background: var(--bg-tint); border: 1px solid #d6e7ef; border-radius: var(--radius-lg); }
.cta-panel > p { color: var(--muted); }
.cta-panel .btn-group { justify-content: center; margin-top: 8px; }
.cta-panel .btn-group__alt { flex-basis: 100%; }
@media (min-width: 600px) { .cta-panel .btn-group__alt { flex-basis: auto; } }

/* -------------------------------------------------------------- Contact */
.contact-options { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .contact-options { grid-template-columns: repeat(2, 1fr); } }
.contact-options li { margin: 0; }
.contact-options a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.contact-options a:hover { border-color: var(--ink); }
.contact-options .icon { color: var(--wa); margin-top: 2px; }
.contact-options strong { display: block; color: var(--ink); }
.contact-options span span { color: var(--muted); font-size: 0.9375rem; }

/* -------------------------------------------------------------- Formulaire de commande */
.checkout__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .checkout__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.checkout__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); }
.checkout__panel h2 { font-size: 1.25rem; }
.checkout__summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 960px) { .checkout__summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.checkout__summary h2 { font-size: 1.125rem; }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line dt { color: var(--muted); }
.summary-line dd, .summary-total dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.summary-total { border-bottom: 0; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.summary-note { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.summary-included { list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.875rem; }
.summary-included li { display: flex; gap: 8px; }
.summary-included svg { color: var(--order); flex: none; margin-top: 3px; }
.field { margin-bottom: 16px; }
.field--split { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field--split { grid-template-columns: 1fr 1fr; } }
.field__label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.field__hint { margin: -2px 0 6px; font-size: 0.875rem; color: var(--muted); }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 111, 151, 0.18); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.field__error { display: none; margin: 6px 0 0; color: #b42318; font-size: 0.875rem; }
.field__error.is-visible { display: block; }
.plan-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: #fff; }
.plan-option:hover { border-color: var(--ink); }
.plan-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg-tint); }
.plan-option input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.plan-option__body { flex: 1; min-width: 0; }
.plan-option__name { display: block; font-weight: 600; color: var(--ink); }
.plan-option__note { display: block; font-size: 0.875rem; color: var(--muted); }
.plan-option__tag { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); white-space: nowrap; }
.plan-option__price { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) { .plan-option__tag { display: none; } }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); flex: none; }
.order-done { text-align: center; }
.order-done__mark { display: block; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: var(--order) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 26px no-repeat; }
.order-recap { text-align: left; margin: 20px 0; padding: 4px 18px; background: var(--bg-soft); border-radius: var(--radius); }
.order-done .btn-group { justify-content: center; }

/* -------------------------------------------------------------- Pied de page */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { color: var(--muted); max-width: 340px; }
.site-footer__contact { display: flex; align-items: center; gap: 8px; }
.site-footer__contact .icon { color: var(--wa); }
.site-footer__contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__col a { color: var(--text); text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.site-footer__bottom p { margin-bottom: 6px; }

/* -------------------------------------------------------------- Bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 440px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(20, 50, 63, 0.18); font-size: 0.875rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--muted); margin-bottom: 12px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 auto; }
.cookie-prefs { display: none; margin-bottom: 12px; padding: 12px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.cookie-prefs.is-visible { display: block; }
.cookie-prefs__row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.cookie-prefs__row input { margin-top: 4px; accent-color: var(--ink); }
.cookie-prefs__row label { font-weight: 600; color: var(--ink); }
.cookie-prefs__row p { margin: 0; }

/* -------------------------------------------------------------- Page 404 */
.not-found { text-align: center; max-width: 620px; margin-inline: auto; }

@media print {
  .site-header, .site-footer, .cookie-banner, .buy-bar, .nav-overlay { display: none !important; }
}
.tag--accent { background: var(--accent); color: var(--ink); margin-left: 0; }

/* -------------------------------------------------------------- Listes de définitions (tutoriel, glossaire) */
dl.kv { margin: 0 0 1.5em; padding: 0; }
dl.kv dt { padding: 14px 18px 4px; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
dl.kv dd { margin: 0; padding: 0 18px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
dl.kv dd:last-child { border-bottom: 0; }
.glossary dl.kv dt, .glossary dl.kv dd { background: #fff; }

/* -------------------------------------------------------------- Applications (téléchargement) */
.apps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.apps + .notice { margin-top: 24px; }
.app-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.app-card > * { margin: 0; }
.app-card__head { display: flex; gap: 14px; align-items: center; }
.app-card__logo { flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); object-fit: cover; }
.app-card__name { font-size: 1.0625rem; margin: 0 0 2px; }
.app-card__desc { margin: 0; color: var(--muted); font-size: 0.875rem; }
.app-card__platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card__platforms span { padding: 2px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
.app-card__status { color: var(--muted); font-size: 0.875rem; }
.app-card__stores { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.9375rem; }
.app-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto !important; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.app-code__text { display: flex; flex-direction: column; margin: 0; line-height: 1.3; }
.app-code__label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.app-code__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.app-code [data-copied] { border-color: var(--order); color: var(--order); }

/* -------------------------------------------------------------- Outils interactifs (diagnostic, débit) */
.finder { max-width: 860px; margin-inline: auto; }
.finder__questions { display: grid; gap: 20px; }
.finder__step { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.finder__step legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 700; color: var(--ink); }
.finder__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8125rem; }
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9375rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.finder__result { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--bg-tint); }
.finder__result[hidden] { display: none; }
.finder__result[data-level="ok"] { border-left-color: var(--order); }
.finder__result[data-level="limite"], .finder__result[data-level="verifier"] { border-left-color: var(--accent); }
.finder__result[data-level="insuffisant"] { border-left-color: #c2410c; }
.finder__label { margin: 0 0 4px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.finder__plan { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.finder__guide { margin: 0 0 8px; }
.finder__price { margin: -8px 0 12px; font-size: 1.75rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.finder__help-note { color: var(--muted); font-size: 0.875rem; }
.finder__result .btn-group { margin-top: 16px; }
.finder__fallback { margin-top: 16px; color: var(--muted); font-size: 0.875rem; text-align: center; }
.js .finder__fallback { display: none; }

/* Les enfants de grilles peuvent rétrécir sous la largeur de leur contenu
   (tableaux défilants) : évite tout débordement horizontal sur mobile. */
.grid > *, .split > *, .article-layout > *, .product-hero__grid > *, .checkout__grid > *, .hero__inner > * { min-width: 0; }
