@charset "UTF-8";
/* =======================================================================
   topiptvfrance.net — Top IPTV France
   Direction : « Tricolore Editorial ». Thème clair, grille magazine,
   titres en serif, tableaux de classement, fiches de notation.

   Ordre du fichier
   1. Jetons
   2. Reset et éléments de base
   3. Primitives de mise en page
   4. Composants
   5. Blocs par page
   6. Adaptatif
   7. Mouvement réduit
   ======================================================================= */

/* =======================================================================
   1. JETONS
   ======================================================================= */
:root {
  /* --- couleurs --- */
  --paper: #f7f8fa;
  --paper-2: #eef1f6;
  --white: #ffffff;

  --ink: #0f172a;
  --ink-2: #33415c;
  --ink-3: #5e6c80;

  --rule: #dde3ec;
  --rule-strong: #c2cbd9;

  --blue: #1e40af;
  --blue-deep: #172f7c;
  --blue-wash: #eaeffb;

  --red: #dc2626;
  --red-wash: #fdecec;

  --green: #15803d;
  --green-wash: #e9f6ee;

  /* --- typographie --- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.4375rem;
  --fs-xl: 1.875rem;
  --fs-2xl: 2.375rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.625rem;

  /* --- espacement --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* --- structure --- */
  --wrap: 1180px;
  --wrap-article: 1080px;
  --wrap-narrow: 720px;
  --header-h: 68px;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 40px -18px rgba(15, 23, 42, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.16s var(--ease);
  --t-base: 0.32s var(--ease);
}

/* =======================================================================
   2. RESET ET ÉLÉMENTS DE BASE
   ======================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
}

h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-2xl);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
}

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

li {
  margin-bottom: var(--sp-2);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

strong {
  font-weight: 700;
}

blockquote {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--blue);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* =======================================================================
   3. PRIMITIVES DE MISE EN PAGE
   ======================================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding: var(--sp-8) 0;
}

.section--tight {
  padding: var(--sp-7) 0;
}

.section--tint {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--white {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.kicker {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.sec-head {
  max-width: 46rem;
  margin-bottom: var(--sp-6);
}

.sec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-lead {
  margin-top: var(--sp-4);
  margin-bottom: 0;
  font-size: var(--fs-md);
  color: var(--ink-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: center;
}

/* =======================================================================
   4. COMPOSANTS
   ======================================================================= */

/* --- 4.1 en-tête --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t-fast);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__text {
  display: block;
  line-height: 1.05;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand__tag {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--t-fast);
}

.nav__link:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- 4.2 boutons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-deep);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: #b81d1d;
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* --- 4.3 étiquettes ------------------------------------------------ */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--blue {
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.tag--red {
  background: var(--red-wash);
  color: #a51b1b;
}

/* --- 4.4 masthead éditorial ---------------------------------------- */
.masthead {
  padding: var(--sp-8) 0 var(--sp-7);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

.masthead__title {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}

.masthead__stand {
  max-width: 34rem;
  margin-top: var(--sp-5);
  margin-bottom: 0;
  font-size: var(--fs-md);
  line-height: 1.62;
  color: var(--ink-2);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.byline__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.byline__item strong {
  color: var(--ink-2);
  font-weight: 600;
}

.byline svg {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  flex: none;
}

/* --- 4.5 divulgation ----------------------------------------------- */
.disclosure {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

.disclosure p {
  margin: 0;
}

.disclosure svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--ink-3);
}

/* --- 4.6 classement ------------------------------------------------ */
.rank-list {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list > li {
  margin: 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 168px;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}

.rank-item:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}

.rank-item--top {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink-3);
}

.rank-item--top .rank-badge {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.rank-item__title {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-lg);
}

.rank-item__title a {
  color: inherit;
}

.rank-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.rank-item__desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.rank-item__aside {
  text-align: center;
}

.rank-item__note {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.rank-item__max {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rank-item--warn .rank-item__note {
  color: var(--red);
}

/* --- 4.7 fiche de notation (signature) ----------------------------- */
.scorecard {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.scorecard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.scorecard__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scorecard__title {
  margin: 0;
  font-size: var(--fs-md);
}

.scorecard__global {
  text-align: right;
  flex: none;
}

.scorecard__note {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.scorecard__max {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.criteria {
  margin: 0;
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}

.criterion {
  display: grid;
  grid-template-columns: minmax(9rem, 1.1fr) minmax(0, 1.5fr) 3.4rem;
  gap: var(--sp-4);
  align-items: center;
  margin: 0;
}

.criterion__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.criterion__weight {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-3);
}

.bar {
  display: flex;
  gap: 2px;
}

.bar__seg {
  flex: 1;
  height: 9px;
  background: var(--rule);
  border-radius: 1px;
}

.bar__seg.is-on {
  background: var(--blue);
}

.criterion__val {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.scorecard__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.scorecard__foot p {
  margin: 0;
}

/* --- 4.8 verdict --------------------------------------------------- */
.verdict {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.verdict__label {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.verdict__title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lg);
}

.verdict p:last-child {
  margin-bottom: 0;
}

/* --- 4.9 tableaux -------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--white);
}

.ctable {
  min-width: 42rem;
  font-size: var(--fs-sm);
}

.ctable caption {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}

.ctable th,
.ctable td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.ctable thead th {
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.ctable tbody th {
  font-weight: 600;
  color: var(--ink);
}

.ctable tbody tr:last-child th,
.ctable tbody tr:last-child td {
  border-bottom: 0;
}

.ctable tbody tr:hover {
  background: var(--paper);
}

.ctable .is-highlight {
  background: var(--blue-wash);
}

.ctable .is-highlight:hover {
  background: #dfe8fa;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.mark svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.mark--yes {
  color: var(--green);
}

.mark--no {
  color: var(--red);
}

.mark--mid {
  color: var(--ink-3);
}

/* --- 4.10 pour / contre -------------------------------------------- */
.prosecons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.pc {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.pc--pro {
  border-top: 3px solid var(--green);
}

.pc--con {
  border-top: 3px solid var(--red);
}

.pc__title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-md);
}

.pc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.pc__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--sp-3);
  color: var(--ink-2);
}

.pc__list li:last-child {
  margin-bottom: 0;
}

.pc__list li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 700;
  font-size: var(--fs-md);
}

.pc--pro .pc__list li::before {
  content: "+";
  color: var(--green);
}

.pc--con .pc__list li::before {
  content: "–";
  color: var(--red);
}

/* --- 4.11 prose et citations --------------------------------------- */
.prose {
  max-width: 40rem;
}

.prose > h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.prose > ul,
.prose > ol {
  padding-left: 1.35rem;
  color: var(--ink-2);
}

.prose li::marker {
  color: var(--ink-3);
}

.pull {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--red);
}

.pull p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
}

.pull cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.note {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

.note p {
  margin: 0;
}

.note strong {
  color: var(--ink);
}

.note--info {
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.note--info strong {
  color: var(--blue-deep);
}

.note--warn {
  border-left: 3px solid var(--red);
  background: var(--red-wash);
  color: #8f1a1a;
}

.note--warn strong {
  color: #8f1a1a;
}

/* --- 4.12 figures -------------------------------------------------- */
.figure {
  margin: var(--sp-6) 0;
}

.figure img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--white);
}

.figure figcaption {
  margin-top: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--rule-strong);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
}

.figure--wide {
  max-width: none;
}

/* --- 4.13 mise en page article + sommaire -------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
  max-width: var(--wrap-article);
  margin: 0 auto;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.toc__title {
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.toc__list li {
  margin-bottom: var(--sp-3);
}

.toc__list li:last-child {
  margin-bottom: 0;
}

.toc__list a {
  color: var(--ink-2);
  font-weight: 600;
}

.toc__list a:hover {
  color: var(--blue);
}

/* --- 4.14 cartes --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--sp-5);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: var(--sp-4);
  color: var(--blue);
}

.card__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}

.card__title a {
  color: inherit;
}

.card__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.card__more {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.card--article .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* --- 4.15 formules ------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.plan--best {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}

.plan__flag {
  position: absolute;
  top: -0.72rem;
  left: var(--sp-5);
  padding: 0.22rem 0.6rem;
  background: var(--blue);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.plan__name {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-md);
}

.plan__screens {
  display: block;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: var(--sp-2);
}

.plan__amount {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.plan__per {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.plan__month {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.plan__list {
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--sp-3);
  color: var(--ink-2);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

/* --- 4.16 étapes --------------------------------------------------- */
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  position: relative;
  margin: 0 0 var(--sp-5);
  padding: 0 0 var(--sp-5) 3.6rem;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.steps > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--blue-wash);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--blue-deep);
}

.step__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}

.step__body p:last-child,
.step__body ul:last-child {
  margin-bottom: 0;
}

/* --- 4.17 FAQ ------------------------------------------------------ */
.faq {
  border-top: 1px solid var(--rule);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.faq__trigger:hover {
  color: var(--blue);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: opacity var(--t-fast);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 14px;
}

.faq__trigger[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
}

.faq__panel {
  display: none;
  padding: 0 0 var(--sp-5);
  max-width: 44rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.faq__panel.is-open {
  display: block;
}

.faq__panel p:last-child {
  margin-bottom: 0;
}

/* --- 4.18 statistiques et bandeau ---------------------------------- */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-8);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  min-width: 9rem;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.cta-band {
  padding: var(--sp-7) 0;
  background: var(--ink);
  color: #e6ebf4;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.cta-band h2 {
  margin-bottom: var(--sp-3);
  color: var(--white);
  font-size: var(--fs-xl);
}

.cta-band p {
  max-width: 34rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: #b9c3d4;
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* --- 4.19 moyens de paiement --------------------------------------- */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.pay-row__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pay-row__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay-row__list li {
  margin: 0;
}

.pay-row__list img {
  height: 26px;
  width: auto;
  padding: 3px 6px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

/* --- 4.20 fil d'ariane et liens connexes --------------------------- */
.breadcrumb {
  padding: var(--sp-4) 0;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--rule-strong);
}

.related {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  margin: 0;
}

.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.related a:hover {
  border-color: var(--blue);
  background: var(--blue-wash);
  text-decoration: none;
}

.related a::after {
  content: "→";
  color: var(--blue);
  flex: none;
}

/* --- 4.21 formulaire ---------------------------------------------- */
.form {
  display: grid;
  gap: var(--sp-5);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
  outline: none;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field__error {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--red);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.field.has-error .field__error {
  display: block;
}

/* --- 4.22 pied de page -------------------------------------------- */
.site-footer {
  padding: var(--sp-8) 0 var(--sp-6);
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.footer-brand p {
  max-width: 25rem;
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.site-footer h2 {
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.site-footer ul li {
  margin-bottom: var(--sp-3);
}

.site-footer ul a {
  color: var(--ink-2);
}

.site-footer ul a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* --- 4.23 WhatsApp flottant --------------------------------------- */
.wa-float {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background var(--t-fast), transform var(--t-fast);
}

.wa-float:hover {
  background: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.wa-float svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --- 4.24 révélation --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =======================================================================
   5. BLOCS PAR PAGE
   ======================================================================= */

/* --- accueil : bloc de tête avec fiche ---------------------------- */
.hero-figure img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.hero-figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* --- comparatif : synthèse ---------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--sp-5);
}

.profile {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.profile__who {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.profile__pick {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}

.profile p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* --- contact ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

.contact-grid__side {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  display: grid;
  gap: var(--sp-5);
}

.contact-card {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.contact-card h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}

.contact-card p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card dl {
  margin: 0;
  font-size: var(--fs-sm);
}

.contact-card dt {
  font-weight: 700;
  color: var(--ink);
}

.contact-card dd {
  margin: 0 0 var(--sp-3);
  color: var(--ink-2);
}

.contact-card dd:last-child {
  margin-bottom: 0;
}

/* --- mentions légales -------------------------------------------- */
.legal h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

/* =======================================================================
   6. ADAPTATIF
   ======================================================================= */
@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--sp-2) var(--sp-5);
  }

  .prose {
    max-width: none;
  }
}

@media (max-width: 1000px) {
  :root {
    --fs-4xl: 2.75rem;
    --fs-3xl: 2.375rem;
    --fs-2xl: 1.9rem;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--fs-base);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--blue);
  }

  .masthead__grid,
  .split,
  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .contact-grid__side {
    position: static;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan--best {
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 760px) {
  :root {
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.65rem;
    --fs-xl: 1.45rem;
    --fs-lg: 1.22rem;
  }

  .section {
    padding: var(--sp-7) 0;
  }

  .rank-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .rank-badge {
    width: 48px;
    height: 48px;
    font-size: var(--fs-lg);
  }

  .rank-item__aside {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    text-align: left;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--rule);
  }

  .rank-item__max {
    margin-bottom: 0;
  }

  .rank-item__cta {
    margin-left: auto;
  }

  .prosecons,
  .form__row {
    grid-template-columns: 1fr;
  }

  .criterion {
    grid-template-columns: minmax(0, 1fr) 3rem;
    gap: var(--sp-2) var(--sp-4);
  }

  .criterion .bar {
    grid-column: 1 / -1;
  }

  .criterion__val {
    text-align: right;
  }

  .scorecard__head {
    flex-direction: column;
  }

  .scorecard__global {
    text-align: left;
  }

  .stats-strip {
    gap: var(--sp-5);
  }

  .stat {
    min-width: 7rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 0.85rem;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand__tag {
    display: none;
  }
}

/* =======================================================================
   7. MOUVEMENT RÉDUIT
   ======================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .wa-float:hover {
    transform: none;
  }
}
