/* =========================================================================
   Mon-LMNP Pilote — main.css
   Identité : Geist + accent émeraude #16A34A + bleu Indy #2A77CA pour partenaire
   Architecture : variables → reset → typo → layout → header → article →
   composants éditoriaux → home → footer → utilities
   ========================================================================= */

:root {
  --mlp-ink: #0F1F1A;
  --mlp-body: #2A3833;
  --mlp-muted: #4F5B57;
  --mlp-hint: #6B7B75;
  --mlp-page: #FBFBFC;
  --mlp-card: #FFFFFF;
  --mlp-soft: #F4F6F4;
  --mlp-border: #E4ECE6;
  --mlp-border-strong: #CFDBD3;

  --mlp-primary: #16A34A;
  --mlp-primary-dark: #047857;
  --mlp-primary-soft: #ECFDF5;
  --mlp-primary-border: #BCEBD0;

  --mlp-indy: #2A77CA;

  --mlp-warning: #F59E0B;
  --mlp-warning-soft: #FEF3C7;
  --mlp-warning-border: #FDE68A;
  --mlp-warning-text: #92400E;

  --mlp-danger: #DC2626;
  --mlp-danger-soft: #FEE2E2;
  --mlp-danger-text: #991B1B;

  --mlp-radius-sm: 6px;
  --mlp-radius-md: 8px;
  --mlp-radius-lg: 12px;
  --mlp-radius-xl: 14px;
  --mlp-radius-full: 100px;

  --mlp-shadow-sm: 0 1px 2px rgba(15,31,26,.04);
  --mlp-shadow-md: 0 2px 8px rgba(15,31,26,.06);

  --mlp-font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mlp-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --mlp-container: 1280px;
  --mlp-content: 720px;
  --mlp-toc-width: 160px;
  --mlp-sidebar-width: 240px;
}

/* ====== Reset minimal ====== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mlp-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mlp-body);
  background: var(--mlp-page);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--mlp-primary-dark); text-decoration: underline; text-decoration-color: var(--mlp-primary-border); text-underline-offset: 3px; }
a:hover { color: var(--mlp-primary); }
hr { border: 0; border-top: 0.5px solid var(--mlp-border); margin: 2rem 0; }
::selection { background: var(--mlp-primary-soft); color: var(--mlp-ink); }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mlp-font-sans);
  color: var(--mlp-ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.6px; line-height: 1.15; }
h2 { font-size: 22px; letter-spacing: -0.4px; line-height: 1.25; margin-top: 2em; }
h3 { font-size: 18px; line-height: 1.35; margin-top: 1.6em; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--mlp-ink); }
em { font-style: italic; }
small { font-size: 12px; color: var(--mlp-muted); }
code, pre, kbd, samp { font-family: var(--mlp-font-mono); font-size: .9em; }
code { background: var(--mlp-soft); padding: .1em .3em; border-radius: 4px; }
blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1rem;
  border-left: 3px solid var(--mlp-primary);
  color: var(--mlp-muted);
  font-style: italic;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin: .25em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }

/* ====== Layout ====== */
.mlp-container {
  width: 100%;
  max-width: var(--mlp-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.mlp-content {
  max-width: var(--mlp-content);
  margin: 0 auto;
}
.mlp-section { padding: 2.5rem 0; }
.mlp-section--lg { padding: 4rem 0; }

@media (max-width: 640px) {
  .mlp-section { padding: 1.75rem 0; }
}

/* ====== Buttons ====== */
.mlp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mlp-font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--mlp-radius-md);
  border: 0.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.mlp-btn:hover { text-decoration: none; }
.mlp-btn:active { transform: scale(0.98); }

.mlp-btn--primary { background: var(--mlp-primary); color: #FFF; }
.mlp-btn--primary:hover { background: var(--mlp-primary-dark); color: #FFF; }

.mlp-btn--ghost { background: transparent; color: var(--mlp-ink); border-color: var(--mlp-ink); }
.mlp-btn--ghost:hover { background: var(--mlp-ink); color: #FFF; }

.mlp-btn--indy { background: var(--mlp-indy); color: #FFF; }
.mlp-btn--indy:hover { background: #1F5FA1; color: #FFF; }

.mlp-btn--lg { padding: 12px 20px; border-radius: 10px; }
.mlp-btn--sm { padding: 8px 14px; font-size: 12px; }

/* ====== Header ====== */
.mlp-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--mlp-card);
  border-bottom: 0.5px solid var(--mlp-border);
}
.mlp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
}
.mlp-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mlp-logo__mark {
  width: 28px; height: 28px;
  background: var(--mlp-ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.mlp-logo__mark::after {
  content: ""; width: 14px; height: 14px;
  border: 2px solid var(--mlp-primary); border-radius: 4px; border-bottom-color: transparent;
  transform: rotate(-45deg);
}
.mlp-logo__text {
  font-weight: 600; font-size: 15px; color: var(--mlp-ink); letter-spacing: -0.3px;
}
.mlp-logo__dot { color: var(--mlp-primary); }

.mlp-nav { display: flex; gap: 18px; }
.mlp-nav__item { position: relative; list-style: none; }
.mlp-nav__link {
  font-size: 13px; color: var(--mlp-muted); text-decoration: none;
  padding: 6px 0;
}
.mlp-nav__link:hover { color: var(--mlp-ink); }
.mlp-nav__sub {
  position: absolute; top: 100%; left: -14px;
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--mlp-shadow-md);
  display: none;
  list-style: none;
}
.mlp-nav__item--has-children:hover .mlp-nav__sub { display: block; }
.mlp-nav__sub .mlp-nav__link { display: block; padding: 8px 12px; border-radius: var(--mlp-radius-sm); }
.mlp-nav__sub .mlp-nav__link:hover { background: var(--mlp-soft); }

.mlp-header__cta {
  background: var(--mlp-primary); color: #FFF;
  font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px; text-decoration: none;
}
.mlp-header__cta:hover { background: var(--mlp-primary-dark); color: #FFF; }

.mlp-burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--mlp-ink);
}
@media (max-width: 900px) {
  .mlp-nav { display: none; }
  .mlp-burger { display: block; }
  .mlp-header__cta { padding: 7px 12px; font-size: 11px; }
  .mlp-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mlp-card);
    border-bottom: 0.5px solid var(--mlp-border);
    padding: 12px 1.25rem 18px;
    gap: 4px;
  }
  .mlp-nav.is-open .mlp-nav__link { padding: 10px 0; font-size: 14px; }
}

/* ====== Article hero ====== */
.mlp-article-hero {
  padding: 1rem 0 1.5rem;
  border-bottom: 0.5px solid var(--mlp-border);
  margin-bottom: 1.5rem;
}
.mlp-eyebrow {
  display: inline-block;
  background: var(--mlp-primary-soft);
  color: var(--mlp-primary-dark);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--mlp-radius-full);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-decoration: none;
}
.mlp-eyebrow--reform {
  background: var(--mlp-warning-soft);
  color: var(--mlp-warning-text);
}

.mlp-article-hero__title { margin: 0 0 12px; }
.mlp-article-hero__dek {
  font-size: 16px; line-height: 1.55;
  color: var(--mlp-muted);
  margin: 0 0 16px;
}
.mlp-article-meta {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 0.5px solid var(--mlp-border);
}
.mlp-author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mlp-ink); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  flex-shrink: 0;
}
.mlp-article-meta__name { font-size: 13px; color: var(--mlp-ink); font-weight: 500; }
.mlp-article-meta__date {
  font-size: 11px; color: var(--mlp-hint);
  font-family: var(--mlp-font-mono);
}

/* ====== Breadcrumb ====== */
.mlp-breadcrumb {
  font-size: 12px; color: var(--mlp-hint);
  margin-bottom: 1rem;
}
.mlp-breadcrumb a { color: var(--mlp-hint); text-decoration: none; }
.mlp-breadcrumb a:hover { color: var(--mlp-ink); }
.mlp-breadcrumb .sep { margin: 0 6px; color: var(--mlp-border-strong); }
.mlp-breadcrumb .current { color: var(--mlp-ink); }

/* ====== Sommaire ====== */
.mlp-toc {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 14px 18px;
  margin: 1.5rem 0;
}
.mlp-toc__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--mlp-hint);
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
  margin-bottom: 10px;
}
.mlp-toc__label .ti { font-size: 16px; color: var(--mlp-primary); }
.mlp-toc ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.85; color: var(--mlp-body); }
.mlp-toc ol a { color: inherit; text-decoration: none; }
.mlp-toc ol a:hover { color: var(--mlp-primary); }

/* ====== Stat cards ====== */
.mlp-stat-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 1.5rem 0;
}
@media (max-width: 640px) {
  .mlp-stat-cards { grid-template-columns: 1fr 1fr; }
  .mlp-stat-cards .mlp-stat:nth-child(3) { grid-column: span 2; }
}
.mlp-stat {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 14px;
}
.mlp-stat--accent {
  background: var(--mlp-primary-soft);
  border-color: var(--mlp-primary-border);
}
.mlp-stat--accent .mlp-stat__label,
.mlp-stat--accent .mlp-stat__value { color: var(--mlp-primary-dark); }
.mlp-stat__label {
  font-size: 11px; color: var(--mlp-hint);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 500;
}
.mlp-stat__value {
  font-size: 22px; color: var(--mlp-ink); font-weight: 600;
  margin-top: 6px; font-family: var(--mlp-font-mono); letter-spacing: -0.5px;
}
.mlp-stat__unit {
  font-size: 11px; color: var(--mlp-hint); font-weight: 400; margin-left: 4px;
  font-family: var(--mlp-font-sans);
}
.mlp-stat__hint {
  font-size: 12px; color: var(--mlp-hint); margin-top: 6px; line-height: 1.4;
}

/* ====== Callouts ====== */
.mlp-callout {
  border-radius: 0 var(--mlp-radius-md) var(--mlp-radius-md) 0;
  padding: 12px 16px;
  margin: 1.25rem 0;
}
.mlp-callout__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
  margin-bottom: 4px;
}
.mlp-callout__body { font-size: 14px; line-height: 1.55; }

.mlp-callout--info {
  background: var(--mlp-primary-soft);
  border-left: 3px solid var(--mlp-primary);
}
.mlp-callout--info .mlp-callout__label { color: var(--mlp-primary-dark); }
.mlp-callout--info .mlp-callout__body { color: var(--mlp-ink); }
.mlp-callout--info .mlp-callout__body strong { color: var(--mlp-primary-dark); }

.mlp-callout--warning {
  background: var(--mlp-warning-soft);
  border-left: 3px solid var(--mlp-warning);
}
.mlp-callout--warning .mlp-callout__label { color: var(--mlp-warning-text); }
.mlp-callout--warning .mlp-callout__body { color: #2A1F0A; }

.mlp-callout--danger {
  background: var(--mlp-danger-soft);
  border-left: 3px solid var(--mlp-danger);
}
.mlp-callout--danger .mlp-callout__label { color: var(--mlp-danger-text); }
.mlp-callout--danger .mlp-callout__body { color: #2A1010; }

/* ====== Tableau institutionnel ====== */
.mlp-table-wrap {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.mlp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; }
.mlp-table thead { background: var(--mlp-soft); border-bottom: 0.5px solid var(--mlp-border); }
.mlp-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; color: var(--mlp-muted);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 500;
}
.mlp-table th:not(:first-child),
.mlp-table td:not(:first-child) { text-align: right; }
.mlp-table tbody tr { border-bottom: 0.5px solid var(--mlp-border); }
.mlp-table tbody tr:last-child { border-bottom: 0; }
.mlp-table tbody tr:nth-child(even) { background: var(--mlp-page); }
.mlp-table td { padding: 10px 14px; color: var(--mlp-body); }
.mlp-table .num { font-family: var(--mlp-font-mono); }
.mlp-table .pos { color: var(--mlp-primary-dark); font-weight: 500; }
.mlp-table .neg { color: var(--mlp-danger); font-weight: 500; }
.mlp-table tr.mlp-table__total {
  background: var(--mlp-primary-soft) !important;
}
.mlp-table tr.mlp-table__total td { color: var(--mlp-primary-dark); font-weight: 600; font-family: var(--mlp-font-mono); }

/* ====== CTA Indy bandeau (post-intro & mid-article) ====== */
.mlp-cta-indy {
  background: var(--mlp-ink);
  border-radius: var(--mlp-radius-xl);
  padding: 16px 18px;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mlp-cta-indy::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 4px; background: var(--mlp-primary);
}
.mlp-cta-indy__inner {
  display: flex; align-items: center; gap: 10px;
}
.mlp-cta-indy__logo {
  background: #FFF; width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11px;
  flex-shrink: 0; letter-spacing: -0.3px;
}
.mlp-cta-indy__body { flex: 1; }
.mlp-cta-indy__eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--mlp-primary);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 500; font-family: var(--mlp-font-mono);
  margin-bottom: 4px;
}
.mlp-cta-indy__eyebrow::before {
  content: ""; width: 5px; height: 5px;
  background: var(--mlp-primary); border-radius: 50%;
}
.mlp-cta-indy__title { font-size: 14px; color: #FFF; font-weight: 500; line-height: 1.3; }
.mlp-cta-indy__hint { font-size: 11px; color: #A8B5B0; margin-top: 2px; }
.mlp-cta-indy__btn {
  background: var(--mlp-primary); color: #FFF;
  font-size: 12px; font-weight: 500;
  padding: 9px 14px; border-radius: 8px;
  white-space: nowrap;
}

.mlp-cta-disclaimer {
  font-size: 10px; color: var(--mlp-hint);
  text-align: right; margin-top: 4px;
  font-family: var(--mlp-font-mono);
}

/* Variante grande (homepage hero, single hero) */
.mlp-cta-indy--lg { padding: 22px 24px; }
.mlp-cta-indy--lg .mlp-cta-indy__inner { gap: 18px; align-items: stretch; }
.mlp-cta-indy--lg .mlp-cta-indy__logo {
  width: 64px; height: 64px; border-radius: 14px; font-size: 16px; letter-spacing: -0.5px;
}
.mlp-cta-indy--lg .mlp-cta-indy__title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.3px; }
.mlp-cta-indy--lg .mlp-cta-indy__hint { font-size: 13px; line-height: 1.5; margin-top: 6px; margin-bottom: 14px; }
.mlp-cta-indy--lg .mlp-cta-indy__btn { background: var(--mlp-indy); padding: 9px 16px; }
.mlp-cta-indy--lg .mlp-cta-indy__sec {
  background: transparent; color: #FFF;
  font-size: 12px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  border: 0.5px solid #4F5B57; text-decoration: none;
  display: inline-block; margin-left: 6px;
}

/* ====== Comparateur produits ====== */
.mlp-compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 1.5rem 0;
}
@media (max-width: 640px) { .mlp-compare { grid-template-columns: 1fr; } }
.mlp-compare__card {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-xl);
  padding: 14px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mlp-compare__card--top {
  border: 2px solid var(--mlp-primary);
}
.mlp-compare__badge {
  position: absolute; top: -10px; left: 12px;
  background: var(--mlp-primary); color: #FFF;
  font-size: 10px; font-weight: 500;
  padding: 3px 8px; border-radius: var(--mlp-radius-full);
  letter-spacing: 0.3px;
}
.mlp-compare__logo {
  color: #FFF; width: 32px; height: 32px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 10px;
  letter-spacing: -0.3px;
  margin-top: 4px;
}
.mlp-compare__name { font-size: 14px; color: var(--mlp-ink); font-weight: 600; margin-top: 8px; }
.mlp-compare__rating {
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px;
}
.mlp-compare__rating-num {
  font-size: 18px; color: var(--mlp-ink); font-weight: 600;
  font-family: var(--mlp-font-mono);
}
.mlp-compare__rating-max { font-size: 11px; color: var(--mlp-hint); }
.mlp-compare__tagline {
  font-size: 11px; color: var(--mlp-muted); line-height: 1.5; margin-top: 8px;
}
.mlp-compare__price {
  font-size: 11px; color: var(--mlp-muted); font-weight: 500;
  margin-top: 8px; font-family: var(--mlp-font-mono);
}
.mlp-compare__card--top .mlp-compare__price { color: var(--mlp-primary-dark); }
.mlp-compare__cta {
  font-size: 12px; font-weight: 500;
  padding: 9px 0; border-radius: 8px;
  text-align: center; margin-top: 10px;
  background: transparent; color: var(--mlp-ink);
  border: 0.5px solid var(--mlp-ink);
}
.mlp-compare__card--top .mlp-compare__cta {
  background: var(--mlp-primary); color: #FFF; border-color: var(--mlp-primary);
}

/* ====== Sticky sidebar (article + recommandation) ====== */
.mlp-article-grid {
  display: grid;
  grid-template-columns: var(--mlp-toc-width) minmax(0, 1fr) var(--mlp-sidebar-width);
  gap: 2rem;
  align-items: start;
}

/* Sans TOC (articles avec moins de 2 H2) — bascule en 2 colonnes */
.mlp-article-grid--no-toc {
  grid-template-columns: minmax(0, 1fr) var(--mlp-sidebar-width);
}

/* Tablet large : on cache le TOC, on garde la sidebar Indy */
@media (max-width: 1100px) {
  .mlp-article-grid {
    grid-template-columns: minmax(0, 1fr) var(--mlp-sidebar-width);
  }
  .mlp-sticky-toc { display: none; }
}

/* Mobile : 1 colonne */
@media (max-width: 900px) {
  .mlp-article-grid,
  .mlp-article-grid--no-toc {
    grid-template-columns: 1fr;
  }
  .mlp-sticky-toc { display: none; }
  .mlp-sidebar { position: static; }
}

/* ====== Sticky TOC (colonne gauche des articles) ====== */
.mlp-sticky-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: 12px;
  line-height: 1.45;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.mlp-sticky-toc__inner {
  border-left: 0.5px solid var(--mlp-border);
  padding: 4px 0 4px 14px;
}
.mlp-sticky-toc__label {
  font-size: 10px;
  color: var(--mlp-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: var(--mlp-font-mono);
}
.mlp-sticky-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mlp-toc;
}
.mlp-sticky-toc__item {
  counter-increment: mlp-toc;
  margin: 0 0 10px;
  position: relative;
}
.mlp-sticky-toc__link {
  display: block;
  color: var(--mlp-muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.45;
  padding: 2px 0 2px 0;
  transition: color .15s ease;
  position: relative;
}
.mlp-sticky-toc__link:hover {
  color: var(--mlp-ink);
}
.mlp-sticky-toc__link.is-active {
  color: var(--mlp-primary-dark);
  font-weight: 500;
}
.mlp-sticky-toc__link.is-active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--mlp-primary);
  border-radius: 1px;
}

/* ====== Sidebar (right column) — kept from v1.0 ====== */
.mlp-sidebar { position: sticky; top: 80px; align-self: start; }

.mlp-sidebar-pick {
  background: var(--mlp-ink);
  border-radius: var(--mlp-radius-lg);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mlp-sidebar-pick__eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; color: var(--mlp-primary);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
  font-family: var(--mlp-font-mono); margin-bottom: 8px;
}
.mlp-sidebar-pick__eyebrow::before {
  content: ""; width: 5px; height: 5px;
  background: var(--mlp-primary); border-radius: 50%;
}
.mlp-sidebar-pick__logo {
  background: #FFF; width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11px;
  letter-spacing: -0.3px; margin-bottom: 8px;
}
.mlp-sidebar-pick__title { font-size: 13px; color: #FFF; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.mlp-sidebar-pick__hint { font-size: 11px; color: #A8B5B0; line-height: 1.4; margin-bottom: 10px; }
.mlp-sidebar-pick__btn {
  background: var(--mlp-primary); color: #FFF;
  font-size: 11px; font-weight: 500;
  padding: 8px 0; border-radius: 6px;
  text-align: center; display: block;
}

/* ====== FAQ accordion ====== */
.mlp-faq { margin: 1.5rem 0; }
.mlp-faq__item {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.mlp-faq__q {
  font-size: 14px; font-weight: 500; color: var(--mlp-ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.mlp-faq__q::-webkit-details-marker { display: none; }
.mlp-faq__q .ti { font-size: 16px; color: var(--mlp-primary); transition: transform .15s ease; }
.mlp-faq__item[open] .mlp-faq__q .ti { transform: rotate(45deg); }
.mlp-faq__a {
  font-size: 13px; line-height: 1.6; color: var(--mlp-muted);
  margin-top: 8px; padding-top: 8px;
  border-top: 0.5px dashed var(--mlp-border);
}

/* ====== Verdict box ====== */
.mlp-verdict {
  background: var(--mlp-card);
  border: 2px solid var(--mlp-primary);
  border-radius: var(--mlp-radius-xl);
  padding: 18px 20px;
  margin: 2rem 0;
}
.mlp-verdict__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.mlp-verdict__label {
  background: var(--mlp-primary-soft); color: var(--mlp-primary-dark);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--mlp-radius-full);
}
.mlp-verdict__stars {
  display: flex; gap: 2px; margin-left: auto; align-items: center;
}
.mlp-verdict__stars .ti { font-size: 14px; color: var(--mlp-primary); }
.mlp-verdict__stars .ti--off { color: var(--mlp-border-strong); }
.mlp-verdict__rating {
  font-size: 12px; color: var(--mlp-hint); margin-left: 4px; font-family: var(--mlp-font-mono);
}
.mlp-verdict__title { font-size: 16px; color: var(--mlp-ink); line-height: 1.5; font-weight: 500; margin-bottom: 10px; }
.mlp-verdict__body { font-size: 13px; line-height: 1.6; color: var(--mlp-muted); margin-bottom: 14px; }

.mlp-trust-stamps {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.mlp-trust-stamp {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--mlp-primary-soft); color: var(--mlp-primary-dark);
  font-size: 11px; font-weight: 500;
  padding: 5px 10px; border-radius: var(--mlp-radius-full);
}
.mlp-trust-stamp .ti { font-size: 12px; }

.mlp-verdict__actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

/* ====== Author byline ====== */
.mlp-byline {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--mlp-soft);
  border-radius: 10px;
  margin: 2rem 0;
}
.mlp-byline__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mlp-ink); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  flex-shrink: 0;
}
.mlp-byline__name { font-size: 13px; color: var(--mlp-ink); font-weight: 500; }
.mlp-byline__bio { font-size: 12px; color: var(--mlp-muted); line-height: 1.55; margin-top: 4px; }

/* ====== Reform banner (homepage only) ====== */
.mlp-reform-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--mlp-warning-soft);
  border: 0.5px solid var(--mlp-warning-border);
  border-radius: var(--mlp-radius-lg);
  padding: 14px 18px;
  margin: 1.5rem 0;
  text-decoration: none;
  color: inherit;
}
.mlp-reform-banner__icon {
  background: var(--mlp-warning); width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mlp-reform-banner__icon .ti { font-size: 18px; color: #FFF; }
.mlp-reform-banner__eyebrow {
  font-size: 11px; color: var(--mlp-warning-text);
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
  margin-bottom: 2px;
}
.mlp-reform-banner__body { font-size: 13px; color: #2A1F0A; line-height: 1.4; }
.mlp-reform-banner__cta {
  font-size: 13px; color: var(--mlp-warning-text); font-weight: 500;
  white-space: nowrap;
}

/* ====== Home — hero ====== */
.mlp-hero {
  padding: 2.25rem 0 1.5rem;
  background: var(--mlp-card);
  border-bottom: 0.5px solid var(--mlp-border);
}
.mlp-hero__title { font-size: clamp(28px, 5vw, 36px); line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 14px; }
.mlp-hero__dek { font-size: 16px; line-height: 1.55; color: var(--mlp-muted); margin: 0 0 22px; max-width: 560px; }
.mlp-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.mlp-hero__counters {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 14px; border-top: 0.5px solid var(--mlp-border);
  font-size: 12px;
}
.mlp-counter { display: flex; align-items: baseline; gap: 6px; }
.mlp-counter__num {
  color: var(--mlp-ink); font-weight: 600;
  font-family: var(--mlp-font-mono); font-size: 16px;
}
.mlp-counter__num--accent { color: var(--mlp-primary); }
.mlp-counter__label { color: var(--mlp-hint); }

/* ====== Home — section header ====== */
.mlp-section-head { margin-bottom: 16px; }
.mlp-section-head__eyebrow {
  font-size: 11px; color: var(--mlp-primary);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500;
}
.mlp-section-head__title {
  font-size: 22px; line-height: 1.25; color: var(--mlp-ink);
  font-weight: 600; margin: 4px 0 0; letter-spacing: -0.4px;
}
.mlp-section-head--centered { text-align: center; }
.mlp-section-head--centered .mlp-section-head__title { font-size: 24px; }
.mlp-section-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mlp-section-head__more { font-size: 12px; color: var(--mlp-primary); font-weight: 500; text-decoration: none; }
.mlp-section-head__more:hover { color: var(--mlp-primary-dark); }

/* ====== Home — pillars (Comptabilité / Investissement / Fiscalité) ====== */
.mlp-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 800px) { .mlp-pillars { grid-template-columns: 1fr; } }
.mlp-pillar {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-xl);
  padding: 18px;
  text-decoration: none; color: inherit; display: block;
  transition: border-color .15s ease, transform .12s ease;
}
.mlp-pillar:hover { border-color: var(--mlp-primary); transform: translateY(-2px); }
.mlp-pillar__icon {
  background: var(--mlp-primary-soft); width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.mlp-pillar__icon .ti { font-size: 20px; color: var(--mlp-primary); }
.mlp-pillar__title { font-size: 16px; color: var(--mlp-ink); font-weight: 600; margin-bottom: 6px; letter-spacing: -0.3px; }
.mlp-pillar__desc { font-size: 12px; color: var(--mlp-muted); line-height: 1.55; margin-bottom: 12px; }
.mlp-pillar__sublinks { font-size: 11px; line-height: 2; }
.mlp-pillar__sublinks a { color: var(--mlp-primary); text-decoration: none; display: block; }
.mlp-pillar__sublinks a:hover { color: var(--mlp-primary-dark); }

/* ====== Home — tools hub ====== */
.mlp-tools {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 600px) { .mlp-tools { grid-template-columns: 1fr; } }
.mlp-tool {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 14px;
  text-decoration: none; color: inherit; display: block;
}
.mlp-tool:hover { border-color: var(--mlp-primary); }
.mlp-tool__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mlp-tool__head .ti { font-size: 16px; color: var(--mlp-primary); }
.mlp-tool__name { font-size: 14px; color: var(--mlp-ink); font-weight: 600; }
.mlp-tool__desc { font-size: 12px; color: var(--mlp-hint); line-height: 1.5; }
.mlp-tool__cta { font-size: 11px; color: var(--mlp-primary); margin-top: 10px; font-weight: 500; }

/* ====== Home — comparator (4 logiciels visuels) ====== */
.mlp-compare-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (max-width: 720px) { .mlp-compare-row { grid-template-columns: 1fr 1fr; } }
.mlp-compare-row .mlp-compare__card {
  padding: 12px;
}
.mlp-compare-row .mlp-compare__logo {
  width: 28px; height: 28px; border-radius: 6px; font-size: 9px; margin-top: 4px;
}
.mlp-compare-row .mlp-compare__name { font-size: 13px; margin-top: 8px; }
.mlp-compare-row .mlp-compare__rating-num { font-size: 14px; }
.mlp-compare-row .mlp-compare__rating-max { font-size: 10px; }
.mlp-compare-row .mlp-compare__rating { margin-top: 4px; }
.mlp-compare-row .mlp-compare__rating::after {
  content: attr(data-rating); display: none;
}
.mlp-compare-row .mlp-compare__price-mono {
  font-size: 11px; color: var(--mlp-muted); font-family: var(--mlp-font-mono); margin-top: 4px;
}

/* ====== Home — featured articles ====== */
.mlp-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 600px) { .mlp-featured { grid-template-columns: 1fr; } }
.mlp-featured-card {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: border-color .15s ease;
}
.mlp-featured-card:hover { border-color: var(--mlp-primary); }
.mlp-featured-card__media {
  background: var(--mlp-soft);
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mlp-featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mlp-featured-card__media-fallback .ti { font-size: 36px; color: var(--mlp-border-strong); }
.mlp-featured-card__body { padding: 14px; }
.mlp-featured-card__cat {
  display: inline-block; background: var(--mlp-primary-soft);
  color: var(--mlp-primary-dark);
  font-size: 10px; font-weight: 500;
  padding: 3px 8px; border-radius: var(--mlp-radius-full); margin-bottom: 8px;
}
.mlp-featured-card__cat--reform { background: var(--mlp-warning-soft); color: var(--mlp-warning-text); }
.mlp-featured-card__title {
  font-size: 14px; color: var(--mlp-ink); font-weight: 600;
  line-height: 1.3; margin-bottom: 6px;
}
.mlp-featured-card__meta { font-size: 11px; color: var(--mlp-hint); font-family: var(--mlp-font-mono); }

/* ====== Home — cluster grid ====== */
.mlp-clusters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
@media (max-width: 720px) { .mlp-clusters { grid-template-columns: 1fr 1fr; } }
.mlp-cluster {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: 10px;
  padding: 14px;
  text-decoration: none; color: inherit; display: block;
}
.mlp-cluster:hover { border-color: var(--mlp-primary); }
.mlp-cluster__name { font-size: 13px; color: var(--mlp-ink); font-weight: 600; margin-bottom: 4px; }
.mlp-cluster__count { font-size: 11px; color: var(--mlp-hint); font-family: var(--mlp-font-mono); }

/* ====== Home — why us ====== */
.mlp-why {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 600px) { .mlp-why { grid-template-columns: 1fr; } }
.mlp-why__card {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 16px;
}
.mlp-why__card .ti { font-size: 20px; color: var(--mlp-primary); }
.mlp-why__title { font-size: 14px; color: var(--mlp-ink); font-weight: 600; margin-top: 8px; }
.mlp-why__desc { font-size: 12px; color: var(--mlp-muted); line-height: 1.5; margin-top: 4px; }

/* ====== Home — testimonials ====== */
.mlp-testimonials {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 600px) { .mlp-testimonials { grid-template-columns: 1fr; } }
.mlp-testimonial {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-lg);
  padding: 14px;
}
.mlp-testimonial__stars { display: flex; gap: 2px; margin-bottom: 8px; }
.mlp-testimonial__stars .ti { font-size: 13px; color: var(--mlp-primary); }
.mlp-testimonial__body { font-size: 13px; color: var(--mlp-body); line-height: 1.55; margin-bottom: 10px; }
.mlp-testimonial__author { font-size: 11px; color: var(--mlp-hint); }

/* ====== Newsletter ====== */
.mlp-newsletter {
  background: var(--mlp-primary-soft);
  border: 0.5px solid var(--mlp-primary-border);
  border-radius: var(--mlp-radius-xl);
  padding: 20px 22px; text-align: center;
}
.mlp-newsletter__title { font-size: 18px; color: var(--mlp-ink); font-weight: 600; margin-bottom: 6px; letter-spacing: -0.3px; }
.mlp-newsletter__hint { font-size: 13px; color: var(--mlp-muted); margin-bottom: 14px; }
.mlp-newsletter__form {
  display: flex; gap: 6px; max-width: 380px; margin: 0 auto;
}
.mlp-newsletter__input {
  flex: 1; background: var(--mlp-card);
  border: 0.5px solid var(--mlp-primary-border);
  border-radius: 8px; padding: 10px 12px; font-size: 13px;
  font-family: inherit; outline: none;
}
.mlp-newsletter__input:focus { border-color: var(--mlp-primary); box-shadow: 0 0 0 3px var(--mlp-primary-soft); }
.mlp-newsletter__submit {
  background: var(--mlp-primary); color: #FFF;
  font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  border: 0; white-space: nowrap; cursor: pointer;
}
.mlp-newsletter__submit:hover { background: var(--mlp-primary-dark); }

/* ====== Footer ====== */
.mlp-footer {
  background: var(--mlp-ink);
  padding: 28px 0 22px;
  margin-top: 2rem;
  color: #A8B5B0;
}
.mlp-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 22px;
  margin-bottom: 18px;
}
@media (max-width: 800px) { .mlp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mlp-footer__grid { grid-template-columns: 1fr; } }

.mlp-footer__brand { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #FFF; }
.mlp-footer__brand-text { font-weight: 600; font-size: 13px; }
.mlp-footer__about { font-size: 11px; color: #A8B5B0; line-height: 1.55; }
.mlp-footer__col-title {
  font-size: 10px; color: #6B7B75;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px;
}
.mlp-footer__col a {
  color: #A8B5B0; text-decoration: none;
  font-size: 12px; line-height: 1.9; display: block;
}
.mlp-footer__col a:hover { color: #FFF; }

.mlp-footer__bottom {
  border-top: 0.5px solid #2A3833;
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #6B7B75;
  flex-wrap: wrap; gap: 8px;
}

/* ====== Article cards (archive / loop) ====== */
.mlp-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) { .mlp-card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mlp-card-grid { grid-template-columns: 1fr; } }

/* ====== Pagination ====== */
.mlp-pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 2rem;
}
.mlp-pagination .page-numbers {
  background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: var(--mlp-radius-md);
  padding: 8px 12px;
  font-size: 13px; color: var(--mlp-ink);
  text-decoration: none;
}
.mlp-pagination .page-numbers.current { background: var(--mlp-primary); color: #FFF; border-color: var(--mlp-primary); }
.mlp-pagination .page-numbers:hover { border-color: var(--mlp-primary); }

/* ====== 404 ====== */
.mlp-404 {
  text-align: center; padding: 4rem 1rem;
}
.mlp-404__code { font-size: 96px; font-weight: 600; color: var(--mlp-primary); letter-spacing: -3px; line-height: 1; font-family: var(--mlp-font-mono); }
.mlp-404__title { font-size: 24px; margin-top: 1rem; }
.mlp-404__hint { color: var(--mlp-muted); max-width: 400px; margin: 0 auto 1.5rem; }

/* ====== Search form ====== */
.mlp-search {
  display: flex; gap: 6px; margin: 1rem 0;
}
.mlp-search__input {
  flex: 1; background: var(--mlp-card);
  border: 0.5px solid var(--mlp-border);
  border-radius: 8px; padding: 10px 14px;
  font-size: 14px; font-family: inherit; outline: none;
}
.mlp-search__input:focus { border-color: var(--mlp-primary); box-shadow: 0 0 0 3px var(--mlp-primary-soft); }
.mlp-search__submit {
  background: var(--mlp-ink); color: #FFF;
  font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  border: 0; cursor: pointer;
}

/* ====== WP Core blocks compatibility ====== */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--mlp-radius-lg); }
.wp-block-image figcaption {
  font-size: 12px; color: var(--mlp-hint); text-align: center; margin-top: 8px;
}
.wp-block-quote {
  border-left: 3px solid var(--mlp-primary);
  padding-left: 1rem;
  font-style: italic; color: var(--mlp-muted);
  margin: 1.5rem 0;
}
.wp-block-pullquote {
  border-top: 2px solid var(--mlp-ink);
  border-bottom: 2px solid var(--mlp-ink);
  padding: 1.5rem 0; margin: 2rem 0;
  text-align: center;
}
.wp-block-separator {
  border: 0; border-top: 0.5px solid var(--mlp-border); margin: 2rem auto; max-width: 200px;
}

/* ====== Utilities ====== */
.mlp-u-mt-0 { margin-top: 0 !important; }
.mlp-u-mt-sm { margin-top: 0.5rem !important; }
.mlp-u-mt-md { margin-top: 1rem !important; }
.mlp-u-mt-lg { margin-top: 2rem !important; }
.mlp-u-text-center { text-align: center; }
.mlp-u-mono { font-family: var(--mlp-font-mono); }
