/* ==========================================================================
   mon-avis-linkavista.fr
   Feuille de style unique, ecrite a la main.
   Concept : blog personnel haut de gamme, colonne de lecture unique,
   typographie serif elegante (Newsreader) et interface en Karla,
   fond legerement creme, encadres manuscrits, signature d auteur.
   Mode clair uniquement.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs de fond */
  --c-bg: #FFFFFF;
  --c-bg-alt: #FDF7ED;
  --c-surface: #FFFDF9;
  --c-surface-deep: #F7EEDF;

  /* Texte */
  --c-ink: #211C15;
  --c-ink-soft: #6A6055;
  --c-ink-faint: #8C8375;

  /* Accents */
  --c-accent: #A15C07;
  --c-accent-dark: #7C4605;
  --c-accent-pale: #FBF1E1;
  --c-accent-wash: #F4E7D2;
  --c-link: #115E59;
  --c-link-dark: #0C4541;
  --c-link-pale: #E6F0EE;

  /* Bordures */
  --c-border: #EADFCC;
  --c-border-strong: #DDCDB2;
  --c-cream: #FFF9F0;

  /* Rayons */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(33, 28, 21, 0.05);
  --sh-sm: 0 2px 8px rgba(33, 28, 21, 0.06);
  --sh-md: 0 8px 28px rgba(33, 28, 21, 0.08);
  --sh-lg: 0 18px 48px rgba(33, 28, 21, 0.10);

  /* Espacements */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;
  --sp-10: 120px;

  /* Largeurs */
  --w-read: 700px;
  --w-wide: 1020px;
  --w-full: 1240px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-base: 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 520ms cubic-bezier(0.16, 0.84, 0.44, 1);

  /* Polices */
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Header */
  --h-header: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset moderne
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.13rem);
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--c-link-dark);
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--c-accent-wash);
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   3. Utilitaires de structure
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

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

.wrap {
  width: 100%;
  max-width: var(--w-full);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.read {
  width: 100%;
  max-width: var(--w-read);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.read-wide {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section {
  padding-block: clamp(44px, 6vw, 78px);
}

.section--tint {
  background: var(--c-bg-alt);
  border-block: 1px solid var(--c-border);
}

.section--cream {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}

/* --------------------------------------------------------------------------
   4. Typographie editoriale
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--c-ink);
}

h1 {
  font-size: clamp(2.05rem, 1.5rem + 2.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.28rem + 1.4vw, 2.25rem);
  margin-bottom: var(--sp-4);
}

h3 {
  font-size: clamp(1.24rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.section p + p,
.prose p + p {
  margin-top: 1.15em;
}

.prose p,
.section > .read > p,
.section > .read-wide > p {
  color: var(--c-ink);
}

.lede,
.chapeau {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.22rem, 1.05rem + 0.85vw, 1.62rem);
  line-height: 1.5;
  color: var(--c-ink-soft);
  letter-spacing: -0.005em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  flex: none;
}

.section-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--c-ink-faint);
  display: block;
  margin-bottom: 6px;
}

.text-soft {
  color: var(--c-ink-soft);
}

.small {
  font-size: 0.92rem;
  line-height: 1.7;
}

.tiny {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
}

strong, b {
  font-weight: 700;
  color: var(--c-ink);
}

em, i {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   5. Barre de progression de lecture
   -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 120;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-link) 100%);
  transform-origin: left center;
  transition: width 120ms linear;
}

/* --------------------------------------------------------------------------
   6. En-tete et navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.site-header.is-stuck {
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--h-header);
  transition: min-height var(--t-base);
}

.site-header.is-stuck .site-header__inner {
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--c-accent);
}

.brand__mark {
  font-style: italic;
  color: var(--c-accent);
}

.brand__sub {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  list-style: none;
}

.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 19px;
  height: 1.8px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-sans);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-align: center;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-cream);
  box-shadow: 0 6px 18px rgba(161, 92, 7, 0.22);
}

.btn--primary:hover {
  background: var(--c-accent-dark);
  color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(161, 92, 7, 0.28);
}

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

.btn--ghost:hover {
  background: var(--c-accent-pale);
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  transform: translateY(-2px);
}

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

.btn__arrow {
  font-size: 1.02em;
  line-height: 1;
  transition: transform var(--t-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.btn-note {
  font-size: 0.84rem;
  color: var(--c-ink-faint);
  margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 82%);
  padding-block: clamp(38px, 6vw, 72px) clamp(34px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--c-border);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-top: var(--sp-2);
}

.hero__chapeau {
  margin-top: var(--sp-5);
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-block: var(--sp-4);
  border-block: 1px solid var(--c-border);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byline__photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-cream);
  box-shadow: 0 0 0 1px var(--c-border-strong);
  flex: none;
}

.byline__name {
  font-family: var(--f-serif);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.byline__role {
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  line-height: 1.4;
  display: block;
}

.byline__date {
  font-size: 0.82rem;
  color: var(--c-ink-faint);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: 9px 16px;
  margin-left: auto;
}

.rating-badge__score {
  font-family: var(--f-serif);
  font-size: 1.62rem;
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1;
}

.rating-badge__meta {
  line-height: 1.3;
}

.rating-badge__stars {
  color: var(--c-accent);
  letter-spacing: 2px;
  font-size: 0.86rem;
  display: block;
}

.rating-badge__label {
  font-size: 0.76rem;
  color: var(--c-ink-soft);
  display: block;
}

.hero__figure {
  margin-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   9. Figures et legendes
   -------------------------------------------------------------------------- */

figure {
  margin-block: var(--sp-6);
}

figure img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-md);
}

figcaption {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-ink-faint);
  margin-top: 10px;
  line-height: 1.55;
  text-align: left;
  padding-left: 2px;
}

/* --------------------------------------------------------------------------
   10. Sommaire repliable
   -------------------------------------------------------------------------- */

.toc {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: var(--sp-6);
}

.toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: 13px 18px;
  font-family: var(--f-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}

.toc__toggle:hover {
  background: var(--c-accent-pale);
  color: var(--c-accent-dark);
}

.toc__chev {
  width: 10px;
  height: 10px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base);
  flex: none;
}

.toc__toggle[aria-expanded="true"] .toc__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.toc__panel {
  display: none;
  border-top: 1px solid var(--c-border);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

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

.toc__list {
  list-style: none;
  columns: 2;
  column-gap: var(--sp-6);
}

.toc__list li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.toc__list a {
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  line-height: 1.45;
  display: inline-block;
}

.toc__list a::before {
  content: attr(data-num) ".";
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-accent);
  margin-right: 6px;
}

.toc__list a:hover,
.toc__list a.is-active {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. Listes editoriales avec puces dessinees
   -------------------------------------------------------------------------- */

.list {
  list-style: none;
  margin-top: var(--sp-4);
  display: grid;
  gap: 11px;
}

.list li {
  position: relative;
  padding-left: 27px;
  line-height: 1.72;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c-accent);
  transform: rotate(45deg);
}

.list--check li::before {
  content: "";
  left: 1px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--c-link);
  border-bottom: 2px solid var(--c-link);
  background: none;
  border-radius: 0;
  transform: rotate(-45deg);
}

.list--dot li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: none;
  background: var(--c-ink-faint);
  top: 0.72em;
}

.list-num {
  list-style: none;
  counter-reset: nlist;
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-5);
}

.list-num > li {
  counter-increment: nlist;
  position: relative;
  padding-left: 54px;
}

.list-num > li::before {
  content: counter(nlist);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-wash);
  color: var(--c-accent-dark);
  font-family: var(--f-serif);
  font-size: 1.02rem;
  font-weight: 600;
}

.list-num h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.14rem;
}

/* --------------------------------------------------------------------------
   12. Encadre "Mon conseil"
   -------------------------------------------------------------------------- */

.tip {
  position: relative;
  background: var(--c-accent-pale);
  border-left: 5px solid var(--c-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 58px;
  margin-block: var(--sp-5);
}

.tip::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  mask: radial-gradient(circle at 50% 34%, transparent 0 3.2px, #000 3.4px);
  -webkit-mask: radial-gradient(circle at 50% 34%, transparent 0 3.2px, #000 3.4px);
}

.tip::after {
  content: "";
  position: absolute;
  left: 26.5px;
  top: 27px;
  width: 5px;
  height: 9px;
  background: var(--c-accent);
  border-radius: 0 0 2px 2px;
}

.tip__label {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 5px;
}

.tip p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--c-ink);
}

.tip p + p {
  margin-top: 0.8em;
}

/* Variante verte pour les rappels de vigilance */
.tip--note {
  background: var(--c-link-pale);
  border-left-color: var(--c-link);
}

.tip--note::before,
.tip--note::after {
  background: var(--c-link);
}

.tip--note .tip__label {
  color: var(--c-link-dark);
}

/* --------------------------------------------------------------------------
   13. Pull quotes
   -------------------------------------------------------------------------- */

.pull {
  margin-block: clamp(34px, 5vw, 56px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.pull p {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.32rem, 1.05rem + 1.15vw, 1.86rem);
  line-height: 1.42;
  color: var(--c-ink);
  letter-spacing: -0.012em;
  max-width: 620px;
  margin-inline: auto;
}

.pull::before {
  content: "";
  display: block;
  width: 44px;
  height: 1.5px;
  background: var(--c-accent);
  margin: 0 auto var(--sp-5);
}

.pull::after {
  content: "";
  display: block;
  width: 44px;
  height: 1.5px;
  background: var(--c-accent);
  margin: var(--sp-5) auto 0;
}

/* --------------------------------------------------------------------------
   14. Tableaux
   -------------------------------------------------------------------------- */

.table-wrap {
  margin-block: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--sh-xs);
}

table {
  min-width: 560px;
  font-size: 0.94rem;
}

caption {
  caption-side: top;
  text-align: left;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

thead th {
  text-align: left;
  font-family: var(--f-sans);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-ink);
  background: var(--c-surface-deep);
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border-strong);
  vertical-align: bottom;
}

tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

tbody td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  line-height: 1.6;
}

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

tbody tr:hover th,
tbody tr:hover td {
  background: var(--c-accent-pale);
}

.table-note {
  font-size: 0.85rem;
  color: var(--c-ink-faint);
  margin-top: 10px;
  font-style: italic;
}

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--c-accent-pale);
  color: var(--c-accent-dark);
  border: 1px solid var(--c-accent-wash);
  white-space: nowrap;
}

.tag--green {
  background: var(--c-link-pale);
  color: var(--c-link-dark);
  border-color: #CBE1DD;
}

/* --------------------------------------------------------------------------
   15. Blocs chiffres
   -------------------------------------------------------------------------- */

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

.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-border-strong);
}

.stat__value {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem);
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1.05;
  display: block;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  margin-top: 7px;
  display: block;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   16. Cartes
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card__badge {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-wash);
  color: var(--c-accent-dark);
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-size: 0.94rem;
  font-weight: 600;
}

.card--yes {
  border-left: 4px solid var(--c-link);
}

.card--no {
  border-left: 4px solid var(--c-accent);
}

/* --------------------------------------------------------------------------
   17. Checklist interactive
   -------------------------------------------------------------------------- */

.checklist {
  margin-top: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  overflow: hidden;
}

.checklist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-deep);
}

.checklist__title {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

.checklist__count {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-accent-dark);
}

.checklist__items {
  list-style: none;
  padding: var(--sp-3) var(--sp-4);
  display: grid;
  gap: 2px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  line-height: 1.62;
  font-size: 0.96rem;
}

.check-item:hover {
  background: var(--c-accent-pale);
}

.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  border: 1.8px solid var(--c-border-strong);
  border-radius: var(--r-xs);
  background: var(--c-bg);
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.check-item input:checked {
  background: var(--c-link);
  border-color: var(--c-link);
}

.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.check-item input:checked + span {
  color: var(--c-ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--c-border-strong);
}

.checklist__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  background: var(--c-surface-deep);
}

.link-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--c-link-dark);
}

.checklist__bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--c-accent-wash);
  overflow: hidden;
  flex: 1 1 140px;
  min-width: 120px;
}

.checklist__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--c-link);
  transition: width var(--t-base);
}

/* --------------------------------------------------------------------------
   18. Glossaire
   -------------------------------------------------------------------------- */

.glossary {
  margin-top: var(--sp-5);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-border);
}

.glossary div {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

.glossary dt {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.glossary dd {
  font-size: 0.96rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */

.faq {
  margin-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

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

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  font-family: var(--f-serif);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--c-ink);
  transition: color var(--t-fast);
}

.faq__q:hover {
  color: var(--c-accent-dark);
}

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

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--c-accent);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.faq__icon::before {
  width: 14px;
  height: 1.8px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.8px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__a {
  display: none;
  padding: 0 4px 20px;
}

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

.faq__a p {
  font-size: 0.98rem;
  color: var(--c-ink-soft);
  line-height: 1.74;
}

.faq__a p + p {
  margin-top: 0.85em;
}

/* --------------------------------------------------------------------------
   20. Sources
   -------------------------------------------------------------------------- */

.sources {
  list-style: none;
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.sources li {
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.68;
}

.sources strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.method {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-5);
  margin-block: var(--sp-5);
  box-shadow: var(--sh-xs);
}

.method h3 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   21. Signature de fin d article
   -------------------------------------------------------------------------- */

.signature {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.signature img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--c-cream);
  box-shadow: 0 0 0 1px var(--c-border-strong);
}

.signature__name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.2;
  display: block;
}

.signature__meta {
  font-size: 0.86rem;
  color: var(--c-ink-faint);
  display: block;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   22. Bloc auteur complet
   -------------------------------------------------------------------------- */

.author {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  box-shadow: var(--sh-sm);
}

.author__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-cream);
  box-shadow: 0 0 0 1px var(--c-border-strong), var(--sh-sm);
}

.author__name {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.author__role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-accent-dark);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-3);
}

.author__bio {
  font-size: 0.98rem;
  color: var(--c-ink-soft);
  line-height: 1.74;
}

.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--sp-4);
}

.author__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.author__links a:hover {
  background: var(--c-accent-pale);
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  transform: translateY(-1px);
}

.author__updated {
  font-size: 0.84rem;
  color: var(--c-ink-faint);
  margin-top: var(--sp-4);
  font-style: italic;
  font-family: var(--f-serif);
}

/* --------------------------------------------------------------------------
   23. CTA final
   -------------------------------------------------------------------------- */

.cta-final {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.5vw, 48px);
  text-align: center;
  margin-top: var(--sp-6);
}

.cta-final h2 {
  margin-bottom: var(--sp-3);
}

.cta-final p {
  color: var(--c-ink-soft);
  max-width: 560px;
  margin-inline: auto;
}

.cta-final .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   24. Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-strong);
  padding-block: var(--sp-8) var(--sp-5);
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
}

.footer-title {
  font-family: var(--f-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
  margin-bottom: var(--sp-4);
}

.footer-brand {
  font-family: var(--f-serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: var(--sp-3);
  display: block;
}

.footer-about {
  font-size: 0.93rem;
  color: var(--c-ink-soft);
  line-height: 1.72;
  max-width: 42ch;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-list a {
  font-size: 0.93rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.5;
}

.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--c-accent);
  transform: rotate(45deg);
  transition: background var(--t-fast);
}

.footer-list a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: grid;
  gap: var(--sp-3);
}

.footer-note p {
  font-size: 0.85rem;
  color: var(--c-ink-faint);
  line-height: 1.68;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: 0.84rem;
  color: var(--c-ink-faint);
}

.disclosure {
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-wash);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.86rem;
  color: var(--c-ink-soft);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   25. Retour en haut
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 105;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-cream);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-fast);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--c-accent-dark);
}

.to-top__arrow {
  display: block;
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* --------------------------------------------------------------------------
   26. Reveal au scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 520ms cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

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

.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

.no-js .reveal,
.no-js .pull {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   27. Page 404
   -------------------------------------------------------------------------- */

.err {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-9);
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 70%);
}

.err__code {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.err h1 {
  margin-top: var(--sp-4);
}

.err p {
  color: var(--c-ink-soft);
  max-width: 46ch;
  margin: var(--sp-4) auto 0;
}

/* --------------------------------------------------------------------------
   28. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  :root {
    --w-full: 1100px;
  }

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

@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .author {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .author__photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 760px) {
  :root {
    --h-header: 62px;
  }

  .nav__list {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav .btn {
    display: none;
  }

  .nav.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    padding: var(--sp-4) clamp(18px, 4vw, 40px) var(--sp-5);
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
  }

  .nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.is-open .nav__link {
    padding: 12px 2px;
    border-bottom: 1px solid var(--c-border);
    font-size: 1rem;
  }

  .nav.is-open .nav__link::after {
    display: none;
  }

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

  .nav.is-open .nav-toggle {
    display: none;
  }

  .site-header__inner {
    position: relative;
  }

  .toc__list {
    columns: 1;
  }

  .hero__meta {
    gap: var(--sp-3);
  }

  .rating-badge {
    margin-left: 0;
  }

  .author {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .author__links {
    justify-content: center;
  }

  .list-num > li {
    padding-left: 46px;
  }

  .list-num > li::before {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .signature {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

@media (max-width: 520px) {
  body {
    line-height: 1.74;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

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

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

  .tip {
    padding: var(--sp-4) var(--sp-4) var(--sp-4) 50px;
  }

  .tip::before {
    left: 14px;
  }

  .tip::after {
    left: 22.5px;
  }

  .rating-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .checklist__items {
    padding: var(--sp-2) var(--sp-3);
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   29. Mouvement reduit
   -------------------------------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }

  .reveal,
  .pull {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   30. Impression
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .to-top,
  .progress,
  .nav-toggle,
  .btn,
  .toc,
  .checklist__foot {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .section {
    padding-block: 14pt;
    break-inside: avoid;
  }

  .reveal,
  .pull,
  .faq__a {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  figure img {
    box-shadow: none;
  }

  .table-wrap {
    overflow: visible;
    box-shadow: none;
  }
}
