/* =========================================================================
   La Patte Experte : feuille unique, chargée par l'extension lapatte-core.
   Pensée pour GeneratePress (gratuit). Mobile d'abord, aucune ressource tierce.

   CHARTE
   ------
   Polices (hébergées dans assets/fonts/, licence OFL, voir LICENCES.txt) :
     - Texte  : Inter (variable 400-700), chiffres tabulaires dans les tableaux.
     - Titres : Fraunces (variable 560-760, taille optique 48), serif chaleureux.
   Couleurs :
     - Papier #FAF6F0 (fond), Surface #FFFFFF, Sable #F2EADF (fonds secondaires)
     - Encre #1E1A16 (texte), Encre douce #5C5249 (texte secondaire), Filet #E4D9CA
     - Terre cuite #A8462A (marque, liens, accents) ; Terre douce #F7E7DD
     - Forêt #1F5C4B (boutons marchands uniquement) ; Miel #FBF1D6 (mentions)
   Échelle typographique (corps 17 px mobile, 18 px bureau, rapport ~1,25) :
     xs 13 · sm 14,5 · base 17-18 · md 19 · h3 20-22 · h2 24-31 · h1 32-48 · display 37-60
   Espacements (base 4 px) : 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64
   Rayons : 8 · 14 · 22 · pilule      Ombres : douce (1) et portée (2)
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 560 760;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Repli aux métriques d'Inter : limite le décalage de mise en page pendant le chargement. */
@font-face {
  font-family: "Inter repli";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

:root {
  /* couleurs */
  --lpe-paper: #faf6f0;
  --lpe-surface: #ffffff;
  --lpe-sand: #f2eadf;
  --lpe-sand-2: #f8f2ea;
  --lpe-ink: #1e1a16;
  --lpe-ink-2: #5c5249;
  --lpe-line: #e4d9ca;
  --lpe-line-strong: #cdbfae;
  --lpe-terra: #a8462a;
  --lpe-terra-deep: #87351d;
  --lpe-terra-soft: #f7e7dd;
  --lpe-forest: #1f5c4b;
  --lpe-forest-deep: #164536;
  --lpe-on-forest: #ffffff;
  --lpe-on-forest-2: #d3ece3;
  --lpe-honey: #fbf1d6;
  --lpe-honey-line: #ead9a6;
  --lpe-thead: #2a231d;
  --lpe-on-thead: #fbf6ef;
  --lpe-zebra: #faf5ee;
  /* polices */
  --lpe-font-text: "Inter", "Inter repli", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lpe-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  /* échelle typographique */
  --lpe-fs-xs: 0.8125rem;
  --lpe-fs-sm: 0.90625rem;
  --lpe-fs-base: clamp(1.0625rem, 1.01rem + 0.22vw, 1.125rem);
  --lpe-fs-md: 1.1875rem;
  --lpe-fs-h3: clamp(1.25rem, 1.16rem + 0.4vw, 1.375rem);
  --lpe-fs-h2: clamp(1.5rem, 1.27rem + 1vw, 1.95rem);
  --lpe-fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3rem);
  --lpe-fs-display: clamp(2.3rem, 1.5rem + 3.6vw, 3.75rem);
  /* espacements */
  --lpe-sp-1: 0.25rem;
  --lpe-sp-2: 0.5rem;
  --lpe-sp-3: 0.75rem;
  --lpe-sp-4: 1rem;
  --lpe-sp-5: 1.5rem;
  --lpe-sp-6: 2rem;
  --lpe-sp-7: 3rem;
  --lpe-sp-8: 4rem;
  --lpe-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --lpe-measure: 40rem;          /* ~68 caractères à 18 px */
  --lpe-wide: 76rem;
  /* rayons et ombres */
  --lpe-r-sm: 8px;
  --lpe-r-md: 14px;
  --lpe-r-lg: 22px;
  --lpe-r-pill: 999px;
  --lpe-sh-1: 0 1px 2px rgb(52 36 22 / 0.06), 0 1px 1px rgb(52 36 22 / 0.04);
  --lpe-sh-2: 0 14px 34px -16px rgb(52 36 22 / 0.28), 0 3px 8px -3px rgb(52 36 22 / 0.1);
  --lpe-header-h: 3.75rem;
  /* couleurs globales de GeneratePress 3 */
  --contrast: var(--lpe-ink);
  --contrast-2: var(--lpe-ink-2);
  --contrast-3: var(--lpe-line-strong);
  --base: var(--lpe-line);
  --base-2: var(--lpe-paper);
  --base-3: var(--lpe-surface);
  --accent: var(--lpe-terra);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:root {
    --lpe-paper: #161310;
    --lpe-surface: #1f1b17;
    --lpe-sand: #29231e;
    --lpe-sand-2: #221d19;
    --lpe-ink: #f1ebe2;
    --lpe-ink-2: #bcb0a3;
    --lpe-line: #3a322b;
    --lpe-line-strong: #574b40;
    --lpe-terra: #f09a74;
    --lpe-terra-deep: #f6b394;
    --lpe-terra-soft: #33231b;
    --lpe-forest: #7fd0b2;
    --lpe-forest-deep: #9adcc3;
    --lpe-on-forest: #0b211a;
    --lpe-on-forest-2: #1d4538;
    --lpe-honey: #2a2416;
    --lpe-honey-line: #54482a;
    --lpe-thead: #3a3129;
    --lpe-on-thead: #f6efe6;
    --lpe-zebra: #241f1b;
    --lpe-sh-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --lpe-sh-2: 0 14px 34px -16px rgb(0 0 0 / 0.7), 0 3px 8px -3px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--lpe-header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--lpe-paper);
  color: var(--lpe-ink);
  font-family: var(--lpe-font-text);
  font-size: var(--lpe-fs-base);
  line-height: 1.68;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }

a { color: var(--lpe-terra); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover, a:focus, a:active { color: var(--lpe-terra-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lpe-terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lpe-terra-soft); color: var(--lpe-ink); }

h1, h2, h3, h4, .entry-title {
  font-family: var(--lpe-font-display);
  font-weight: 650;
  color: var(--lpe-ink);
  letter-spacing: -0.012em;
  line-height: 1.16;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
strong, b { font-weight: 650; }

/* ---------- Gabarit GeneratePress : une colonne, pas de colonne latérale ---------- */
.site.grid-container, .container.grid-container { max-width: none; padding: 0; background: transparent; }
.site-content { display: block; }
.content-area, .no-sidebar .content-area, .right-sidebar .content-area, .left-sidebar .content-area { width: 100%; float: none; }
.widget-area, .sidebar, #right-sidebar, #left-sidebar { display: none; }
.separate-containers .site-main, .one-container .site-main, .site-main { margin: 0; }
.separate-containers .inside-article, .one-container .inside-article, .inside-article {
  background: transparent;
  max-width: calc(var(--lpe-measure) + 2 * var(--lpe-gutter));
  margin: 0 auto;
  padding: var(--lpe-sp-5) var(--lpe-gutter) var(--lpe-sp-8);
}
.lpe-landing .inside-article { max-width: calc(var(--lpe-wide) + 2 * var(--lpe-gutter)); padding-top: var(--lpe-sp-4); }
.separate-containers .site-main > *, .site-main > * { margin-bottom: 0; }

/* ---------- En-tête compact et collant ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--lpe-paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--lpe-line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--lpe-paper); } }
.admin-bar .site-header { top: 0; }
@media (min-width: 601px) { .admin-bar .site-header { top: 46px; } }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header .inside-header {
  max-width: calc(var(--lpe-wide) + 2 * var(--lpe-gutter));
  min-height: var(--lpe-header-h);
  padding: 0.35rem var(--lpe-gutter);
  align-items: center;
}
.site-header .main-navigation, .site-header .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
  color: var(--lpe-ink); font-size: 0.96875rem; font-weight: 550;
  padding-left: 0.85rem; padding-right: 0.85rem; line-height: 2.75rem;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a { color: var(--lpe-terra); }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--lpe-terra); box-shadow: inset 0 -2px 0 var(--lpe-terra); }
.main-navigation .menu-toggle, .mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus {
  color: var(--lpe-ink); background: transparent; min-height: 2.75rem; min-width: 2.75rem;
  padding: 0 0.6rem; border-radius: var(--lpe-r-sm); font-weight: 600;
}
.has-inline-mobile-toggle #site-navigation.toggled { background: transparent; }
@media (max-width: 768px) {
  .main-navigation.toggled .main-nav > ul { padding: 0.25rem 0 0.75rem; border-top: 1px solid var(--lpe-line); }
  .main-navigation.toggled .main-nav ul li a { line-height: 3rem; padding-left: 0.25rem; font-size: 1.0625rem; }
  .main-navigation .main-nav ul li[class*="current-menu-"] > a { box-shadow: none; }
}

/* Logo SVG à la place du titre du site */
.lpe-main-title { margin: 0; line-height: 1; }
.lpe-main-title a { display: inline-flex; text-decoration: none; padding: 0.25rem 0; }
.lpe-logo { width: 12.25rem; height: auto; display: block; }
.lpe-logo__paw { fill: var(--lpe-terra); }
.lpe-logo__text { font-family: var(--lpe-font-display); font-size: 21px; font-weight: 700; fill: var(--lpe-ink); letter-spacing: -0.01em; }
.lpe-logo__accent { fill: var(--lpe-terra); }
@media (min-width: 48rem) { .lpe-logo { width: 13.5rem; } }

/* ---------- Tête d'article ---------- */
.entry-header { margin: 0 0 var(--lpe-sp-4); }
.entry-title, h1.entry-title { font-size: var(--lpe-fs-h1); margin: 0; font-weight: 680; letter-spacing: -0.02em; }
.lpe-landing .entry-title { font-size: var(--lpe-fs-h1); }

.lpe-crumbs { margin: 0 0 var(--lpe-sp-3); font-size: var(--lpe-fs-xs); }
.lpe-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem; min-width: 0; }
.lpe-crumbs li { margin: 0; white-space: nowrap; color: var(--lpe-ink-2); flex: 0 0 auto; }
.lpe-crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--lpe-line-strong); }
.lpe-crumbs li:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lpe-crumbs a { color: var(--lpe-ink-2); text-decoration: none; font-weight: 550; padding: 0.4rem 0; }
.lpe-crumbs a:hover { color: var(--lpe-terra); text-decoration: underline; }

.lpe-hero-img { margin: 0 0 var(--lpe-sp-5); }
.lpe-hero-img img { display: block; width: 100%; height: auto; border-radius: var(--lpe-r-lg); background: var(--lpe-sand); box-shadow: var(--lpe-sh-1); }
.lpe-credit { margin-top: 0.45rem; font-size: var(--lpe-fs-xs); line-height: 1.45; color: var(--lpe-ink-2); }
.lpe-credit a { color: var(--lpe-ink-2); }
@media (min-width: 64rem) {
  .lpe-article .lpe-hero-img { margin-left: -4rem; margin-right: -4rem; }
  .lpe-article .lpe-hero-img .lpe-credit { padding: 0 4rem; }
}

/* ---------- Corps de texte ---------- */
.entry-content { font-size: var(--lpe-fs-base); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: var(--lpe-fs-h2); margin: 2.4em 0 0.6em; scroll-margin-top: calc(var(--lpe-header-h) + 1rem); }
.entry-content h3 { font-size: var(--lpe-fs-h3); margin: 1.9em 0 0.5em; font-weight: 640; }
.entry-content h2 + h3 { margin-top: 0.9em; }
.entry-content ul, .entry-content ol { margin-left: 0; padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--lpe-terra); }
.entry-content ol > li::marker { font-weight: 650; }
.entry-content hr { border: 0; border-top: 1px solid var(--lpe-line); margin: var(--lpe-sp-6) 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid var(--lpe-terra); color: var(--lpe-ink-2); font-style: normal; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--lpe-r-md); }

/* Ligne de date, sources et temps de lecture */
.lpe-maj { color: var(--lpe-ink-2); font-size: var(--lpe-fs-sm); margin: 0 0 var(--lpe-sp-4); }
.lpe-maj time { font-weight: 600; color: var(--lpe-ink); }
.lpe-maj__lecture { white-space: nowrap; }

/* Mention d'affiliation : discrète, lisible */
.lpe-affil-notice {
  position: relative;
  margin: 0 0 var(--lpe-sp-4); padding: 0.55rem 0.8rem 0.55rem 2.1rem;
  font-size: var(--lpe-fs-xs); line-height: 1.5; color: var(--lpe-ink-2);
  background: var(--lpe-sand-2); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-sm);
}
.lpe-affil-notice::before {
  content: "i"; position: absolute; left: 0.7rem; top: 0.62rem;
  width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid currentColor;
  font: 700 0.65rem/0.85rem var(--lpe-font-text); text-align: center;
}
.lpe-affil-notice a { color: var(--lpe-ink); font-weight: 600; }

/* Encadré « En bref » */
.lpe-bref {
  position: relative;
  margin: 0 0 var(--lpe-sp-6); padding: 1.35rem 1.25rem 1.2rem;
  background: var(--lpe-terra-soft);
  border: 1px solid color-mix(in srgb, var(--lpe-terra) 22%, transparent);
  border-radius: var(--lpe-r-lg);
}
.lpe-bref::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--lpe-terra); }
.lpe-bref p { margin: 0; font-size: var(--lpe-fs-md); line-height: 1.55; font-weight: 500; }
.lpe-bref strong { font-weight: 700; }
.entry-content .lpe-bref .lpe-bref__label {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.15rem 0.6rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  color: var(--lpe-terra-soft); background: var(--lpe-terra); border-radius: var(--lpe-r-pill);
}

/* Sommaire (généré par l'extension) */
.lpe-toc { margin: 0 0 var(--lpe-sp-6); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md); background: var(--lpe-surface); box-shadow: var(--lpe-sh-1); }
.lpe-toc summary {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none;
  min-height: 3rem; padding: 0.6rem 1rem; font-weight: 650; border-radius: var(--lpe-r-md);
}
.lpe-toc summary::-webkit-details-marker { display: none; }
.lpe-toc summary::after {
  content: ""; margin-left: auto; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--lpe-terra); border-bottom: 2px solid var(--lpe-terra);
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.lpe-toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lpe-toc__n { color: var(--lpe-ink-2); font-weight: 500; font-size: var(--lpe-fs-sm); }
.lpe-toc ol { list-style: none; counter-reset: lpe-toc; margin: 0; padding: 0 1rem 0.8rem; border-top: 1px solid var(--lpe-line); }
.lpe-toc li { counter-increment: lpe-toc; margin: 0; border-bottom: 1px dashed var(--lpe-line); }
.lpe-toc li:last-child { border-bottom: 0; }
.lpe-toc a { display: flex; gap: 0.7rem; padding: 0.6rem 0; color: var(--lpe-ink); text-decoration: none; font-size: var(--lpe-fs-sm); line-height: 1.4; }
.lpe-toc a::before { content: counter(lpe-toc, decimal-leading-zero); color: var(--lpe-terra); font-weight: 700; font-variant-numeric: tabular-nums; }
.lpe-toc a:hover { color: var(--lpe-terra); }

/* ---------- Tableaux ---------- */
.lpe-table {
  position: relative;
  margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md); background: var(--lpe-surface);
  box-shadow: var(--lpe-sh-1);
  scrollbar-width: thin; scrollbar-color: var(--lpe-line-strong) transparent;
}
.lpe-table:focus-visible { outline-offset: 2px; }
.lpe-table table, .lpe-outil table {
  width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0;
  font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: tabular-nums lining-nums;
}
.lpe-table th, .lpe-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border: 0; min-width: 8.5rem; }
.lpe-table thead th {
  background: var(--lpe-thead); color: var(--lpe-on-thead);
  font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; vertical-align: bottom;
}
.lpe-table tbody tr:nth-child(even) > * { background: var(--lpe-zebra); }
.lpe-table tbody tr:nth-child(odd) > * { background: var(--lpe-surface); }
.lpe-table tbody td { border-top: 1px solid var(--lpe-line); }
.lpe-table tbody tr:first-child td { border-top: 0; }
.lpe-table tbody td:first-child, .lpe-table tbody th:first-child { font-weight: 650; color: var(--lpe-ink); }
/* première colonne figée pendant le défilement horizontal */
.lpe-table th:first-child, .lpe-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 7.5rem; max-width: 11rem; }
.lpe-table thead th:first-child { z-index: 2; }
.lpe-table tbody td:first-child { box-shadow: inset -1px 0 0 var(--lpe-line); }
@media (min-width: 40rem) {
  .lpe-table th:first-child, .lpe-table td:first-child { position: static; max-width: none; }
  .lpe-table tbody td:first-child { box-shadow: none; }
}
@media (min-width: 64rem) {
  .lpe-article .entry-content > .lpe-table { margin-left: -4rem; margin-right: -4rem; }
}

/* ---------- Boutons marchands ---------- */
.lpe-cta { margin: 1.6em 0; }
.entry-content a.lpe-btn-shop, a.lpe-btn-shop {
  display: inline-grid; grid-template-columns: 1fr auto; column-gap: 1.1rem; align-items: center;
  min-height: 3.5rem; min-width: min(100%, 19rem); padding: 0.7rem 1rem 0.7rem 1.2rem;
  background: var(--lpe-forest); color: var(--lpe-on-forest);
  border-radius: var(--lpe-r-md); text-decoration: none; font-weight: 650; line-height: 1.3;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, var(--lpe-sh-2);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
a.lpe-btn-shop::after {
  content: "→"; grid-column: 2; grid-row: 1 / span 2;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgb(255 255 255 / 0.14); font-size: 1.1rem; font-weight: 600;
}
.lpe-btn-shop__vendor {
  grid-column: 1; grid-row: 2; font-size: var(--lpe-fs-xs); font-weight: 500; color: var(--lpe-on-forest-2);
  letter-spacing: 0.01em;
}
a.lpe-btn-shop:hover, a.lpe-btn-shop:focus { background: var(--lpe-forest-deep); color: var(--lpe-on-forest); text-decoration: none; }
a.lpe-btn-shop:focus-visible { outline-color: var(--lpe-forest); }
@media (prefers-reduced-motion: no-preference) { a.lpe-btn-shop:hover { transform: translateY(-1px); } }
@media (max-width: 30rem) { .entry-content a.lpe-btn-shop, a.lpe-btn-shop { display: grid; width: 100%; } }
@media (prefers-color-scheme: dark) { a.lpe-btn-shop::after { background: rgb(0 0 0 / 0.12); } }

/* ---------- FAQ en accordéon ---------- */
.lpe-faq, .lpe-sources, .lpe-related { margin-top: var(--lpe-sp-7); }
.entry-content .lpe-faq h2, .entry-content .lpe-sources h2, .entry-content .lpe-related h2 { margin-top: 0; }
.lpe-faq__item { margin: 0 0 0.6rem; background: var(--lpe-surface); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md); }
.lpe-faq__item[open] { box-shadow: var(--lpe-sh-1); border-color: var(--lpe-line-strong); }
.lpe-faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 0.95rem 3.2rem 0.95rem 1.1rem; font-weight: 650; line-height: 1.4; border-radius: var(--lpe-r-md);
}
.lpe-faq summary::-webkit-details-marker { display: none; }
.lpe-faq summary::before, .lpe-faq summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 50%; width: 0.8rem; height: 2px; margin-top: -1px;
  background: var(--lpe-terra); border-radius: 2px; transition: transform 0.2s;
}
.lpe-faq summary::after { transform: rotate(90deg); }
.lpe-faq__item[open] summary::after { transform: rotate(0deg); }
.lpe-faq summary:hover { color: var(--lpe-terra); }
.lpe-faq__r { padding: 0 1.1rem 1rem; color: var(--lpe-ink); }
.lpe-faq__r p:last-child { margin-bottom: 0; }

/* ---------- Sources : discrètes ---------- */
.lpe-sources { padding-top: var(--lpe-sp-5); border-top: 1px solid var(--lpe-line); }
.entry-content .lpe-sources h2 { font-size: var(--lpe-fs-h3); }
.lpe-sources ol { padding-left: 1.6em; font-size: var(--lpe-fs-sm); line-height: 1.5; color: var(--lpe-ink-2); }
.lpe-sources li { margin-bottom: 0.55em; }
.lpe-sources li::marker { color: var(--lpe-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.lpe-sources a { color: var(--lpe-ink); text-decoration-color: var(--lpe-line-strong); }
.lpe-sources a:hover { color: var(--lpe-terra); text-decoration-color: currentColor; }
.lpe-sources__prouve { color: var(--lpe-ink-2); }

/* ---------- Cartes ---------- */
.lpe-cards { list-style: none; padding: 0; margin: 0 0 var(--lpe-sp-4); display: grid; gap: var(--lpe-sp-4); grid-template-columns: 1fr; }
.entry-content .lpe-cards { padding-left: 0; }
.lpe-card { margin: 0; min-width: 0; }
.lpe-card > a, .lpe-card__inner {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--lpe-surface); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md);
  color: var(--lpe-ink); text-decoration: none; box-shadow: var(--lpe-sh-1);
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
.lpe-card > a:hover, .lpe-card > a:focus { color: var(--lpe-ink); border-color: var(--lpe-line-strong); box-shadow: var(--lpe-sh-2); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .lpe-card > a:hover { transform: translateY(-2px); } }
.lpe-card__media { display: block; aspect-ratio: 3 / 2; background: var(--lpe-sand); overflow: hidden; }
.lpe-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lpe-card__body { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.lpe-card__kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lpe-terra); }
.lpe-card__title { font-family: var(--lpe-font-display); font-weight: 650; font-size: 1.15rem; line-height: 1.28; letter-spacing: -0.01em; text-wrap: balance; }
.lpe-card > a:hover .lpe-card__title { color: var(--lpe-terra-deep); }
.lpe-card__text { font-size: var(--lpe-fs-sm); color: var(--lpe-ink-2); line-height: 1.5; }
.lpe-card__go { margin-top: auto; padding-top: 0.4rem; font-weight: 650; color: var(--lpe-terra); font-size: var(--lpe-fs-sm); }
.lpe-card > a .lpe-card__go::after { content: "\00a0→"; }
.lpe-card__inner .lpe-card__go { color: var(--lpe-ink-2); }

/* Cartes compactes (À lire aussi) : vignette à gauche */
.lpe-cards--compact .lpe-card > a { flex-direction: row; align-items: stretch; }
.lpe-cards--compact .lpe-card__media { flex: 0 0 6.5rem; aspect-ratio: auto; }
.lpe-cards--compact .lpe-card__body { justify-content: center; padding: 0.85rem 1rem; }
.lpe-cards--compact .lpe-card__title { font-size: 1.05rem; }

@media (min-width: 36rem) {
  .lpe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .lpe-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lpe-sp-5); }
  .lpe-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpe-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lpe-article .lpe-cards { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .lpe-article .lpe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lpe-article .lpe-cards--compact { grid-template-columns: 1fr; }

/* ---------- Accueil et pages de rubrique ---------- */
.lpe-landing .entry-content > * { margin-bottom: 0; }
.lpe-home-hero { display: grid; gap: var(--lpe-sp-5); align-items: center; padding: var(--lpe-sp-4) 0 var(--lpe-sp-6); }
.lpe-kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 var(--lpe-sp-3); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lpe-terra); }
.lpe-kicker::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; }
.entry-content .lpe-home-hero h1 { font-size: var(--lpe-fs-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 var(--lpe-sp-4); max-width: 16ch; }
.lpe-home-hero h1 em { font-style: normal; color: var(--lpe-terra); }
.lpe-lead { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--lpe-ink-2); max-width: 36em; margin: 0 0 var(--lpe-sp-5); }
.lpe-actions { display: flex; flex-wrap: wrap; gap: var(--lpe-sp-3); margin: 0; }
.lpe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.1rem; padding: 0.65rem 1.25rem; border-radius: var(--lpe-r-pill);
  font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--lpe-ink); color: var(--lpe-ink); background: transparent;
}
.entry-content a.lpe-btn { text-decoration: none; }
.lpe-btn--primary { background: var(--lpe-ink); color: var(--lpe-paper); }
.entry-content a.lpe-btn--primary, a.lpe-btn--primary:hover, a.lpe-btn--primary:focus { color: var(--lpe-paper); }
a.lpe-btn:hover, a.lpe-btn:focus { background: var(--lpe-terra); border-color: var(--lpe-terra); color: #fff; }
@media (prefers-color-scheme: dark) { a.lpe-btn:hover, a.lpe-btn:focus { color: #1a120d; } }
.lpe-home-hero__media { margin: 0; }
.lpe-home-hero__media img { display: block; width: 100%; height: auto; border-radius: var(--lpe-r-lg); box-shadow: var(--lpe-sh-2); background: var(--lpe-sand); }
@media (min-width: 56rem) {
  .lpe-home-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--lpe-sp-7); padding: var(--lpe-sp-6) 0 var(--lpe-sp-7); }
}

.lpe-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--lpe-line); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md); overflow: hidden; }
.entry-content .lpe-trust { padding-left: 0; margin-bottom: 0; }
.lpe-trust li { margin: 0; padding: 0.9rem 1.1rem; background: var(--lpe-surface); display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.lpe-trust li::before {
  content: ""; grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; border-radius: 50%;
  background: var(--lpe-terra-soft) no-repeat center / 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23a8462a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lpe-trust strong { display: block; font-weight: 700; line-height: 1.35; }
.lpe-trust span { display: block; font-size: var(--lpe-fs-sm); line-height: 1.45; color: var(--lpe-ink-2); }
@media (min-width: 48rem) { .lpe-trust { grid-template-columns: repeat(3, 1fr); } }

.lpe-block { margin: 0; padding: var(--lpe-sp-7) 0 0; }
.lpe-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: var(--lpe-sp-4); }
.entry-content .lpe-block__head h2, .entry-content .lpe-block > h2 { margin: 0; font-size: var(--lpe-fs-h2); }
.lpe-block__head p { flex: 0 0 100%; margin: 0.25rem 0 0; color: var(--lpe-ink-2); }
.lpe-more { font-size: var(--lpe-fs-sm); font-weight: 650; white-space: nowrap; }
.lpe-more::after { content: " →"; }

/* Outils mis en avant */
.lpe-card--tool > a, .lpe-card--tool .lpe-card__inner { background: var(--lpe-terra-soft); border-color: color-mix(in srgb, var(--lpe-terra) 20%, transparent); }
.lpe-card--tool .lpe-card__body { padding: 1.35rem 1.35rem 1.3rem; gap: 0.5rem; }
.lpe-card--tool .lpe-card__title { font-size: 1.4rem; }
.lpe-card__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--lpe-terra); color: var(--lpe-terra-soft); margin-bottom: 0.35rem; }
.lpe-card__icon svg { width: 1.4rem; height: 1.4rem; }
.lpe-card--tool .lpe-card__go { display: inline-flex; gap: 0.35rem; align-self: flex-start; margin-top: auto; padding: 0.5rem 1rem; border-radius: var(--lpe-r-pill); background: var(--lpe-ink); color: var(--lpe-paper); }
.lpe-card--tool > a:hover .lpe-card__go { background: var(--lpe-terra); color: #fff; }
@media (prefers-color-scheme: dark) { .lpe-card--tool > a:hover .lpe-card__go { color: #1a120d; } }

/* Cartes de rubrique */
.lpe-card--section .lpe-card__count { font-size: var(--lpe-fs-xs); font-weight: 600; color: var(--lpe-ink-2); }

/* Rappel de méthode en bas d'accueil */
.lpe-method { margin-top: var(--lpe-sp-7); padding: var(--lpe-sp-5); background: var(--lpe-sand); border-radius: var(--lpe-r-lg); }
.entry-content .lpe-method h2 { margin: 0 0 0.5rem; font-size: var(--lpe-fs-h3); }
.lpe-method p { margin: 0 0 0.75rem; max-width: 46em; color: var(--lpe-ink); }
.lpe-method p:last-child { margin-bottom: 0; }

/* Page de rubrique */
.lpe-section-intro { display: grid; gap: var(--lpe-sp-5); align-items: center; margin-bottom: var(--lpe-sp-2); }
.lpe-section-intro .lpe-lead { margin: 0; }
.lpe-section-intro .lpe-home-hero__media img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 56rem) { .lpe-section-intro--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lpe-group { padding-top: var(--lpe-sp-6); }
.entry-content .lpe-group > h2 { font-size: var(--lpe-fs-h3); margin: 0 0 var(--lpe-sp-4); display: flex; align-items: center; gap: 0.6rem; }
.lpe-group > h2 .lpe-count { font-family: var(--lpe-font-text); font-size: var(--lpe-fs-xs); font-weight: 650; color: var(--lpe-ink-2); background: var(--lpe-sand); border-radius: var(--lpe-r-pill); padding: 0.1rem 0.55rem; letter-spacing: 0; }
.lpe-empty { color: var(--lpe-ink-2); }

/* ---------- Outils de calcul ---------- */
.lpe-outil {
  margin: 1.8em 0; padding: 1.25rem 1.1rem 1.4rem;
  background: var(--lpe-surface); border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-lg); box-shadow: var(--lpe-sh-2);
}
@media (min-width: 40rem) { .lpe-outil { padding: 1.75rem 1.75rem 1.9rem; } }
.lpe-outil form { margin: 0; }
.lpe-outil .outil-champ { margin: 0 0 1.15rem; }
.lpe-outil label, .lpe-outil legend { display: block; font-weight: 650; font-size: 1rem; line-height: 1.4; margin: 0 0 0.45rem; color: var(--lpe-ink); }
.lpe-outil fieldset { margin: 0 0 1.3rem; padding: 1rem 1rem 0.4rem; border: 1px solid var(--lpe-line); border-radius: var(--lpe-r-md); background: var(--lpe-sand-2); }
.lpe-outil fieldset .outil-champ { margin-bottom: 0.8rem; }
.lpe-outil legend { padding: 0 0.4rem; margin-left: -0.4rem; }
.lpe-outil p { margin: 0 0 0.35rem; font-size: var(--lpe-fs-sm); color: var(--lpe-ink-2); line-height: 1.5; }
.lpe-outil input[type="number"], .lpe-outil input[type="text"], .lpe-outil select {
  display: block; width: 100%; max-width: 26rem; min-height: 3.25rem; padding: 0.7rem 0.95rem;
  font: inherit; font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--lpe-ink); background-color: var(--lpe-surface);
  border: 1.5px solid var(--lpe-line-strong); border-radius: var(--lpe-r-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lpe-outil select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8462a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.8rem;
}
.lpe-outil input:hover, .lpe-outil select:hover { border-color: var(--lpe-ink-2); }
.lpe-outil input:focus, .lpe-outil select:focus { outline: none; border-color: var(--lpe-terra); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lpe-terra) 22%, transparent); }
/* cases à cocher : ligne entière cliquable, cible tactile de 44 px */
.lpe-outil fieldset > p { display: flex; align-items: center; gap: 0.7rem; margin: 0; min-height: 2.9rem; border-bottom: 1px solid var(--lpe-line); }
.lpe-outil fieldset > p:last-child, .lpe-outil fieldset > p:last-of-type { border-bottom: 0; }
.lpe-outil fieldset > p label { margin: 0; padding: 0.55rem 0; font-weight: 500; font-size: 1rem; color: var(--lpe-ink); flex: 1; cursor: pointer; }
.lpe-outil input[type="checkbox"] { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; margin: 0; accent-color: var(--lpe-terra); cursor: pointer; }
.lpe-outil button, .lpe-outil input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3.4rem; margin-top: 0.4rem;
  padding: 0.8rem 1.5rem; border: 0; border-radius: var(--lpe-r-pill); cursor: pointer;
  font: inherit; font-size: 1.0625rem; font-weight: 700;
  background: var(--lpe-terra); color: #fff; box-shadow: var(--lpe-sh-2);
}
.lpe-outil button:hover, .lpe-outil button:focus { background: var(--lpe-terra-deep); color: #fff; }
.lpe-outil button:focus-visible { outline: 3px solid var(--lpe-ink); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .lpe-outil button, .lpe-outil button:hover, .lpe-outil button:focus { color: #1a120d; } }
@media (min-width: 40rem) { .lpe-outil button { width: auto; } }
/* résultat mis en valeur */
.lpe-outil .outil-resultat:empty { display: none; }
.lpe-outil .outil-resultat, .lpe-outil output, .lpe-outil .resultat {
  display: block; margin-top: 1.5rem; padding: 1.2rem 1.1rem;
  background: var(--lpe-terra-soft); border-radius: var(--lpe-r-md);
  border: 1px solid color-mix(in srgb, var(--lpe-terra) 25%, transparent);
  animation: lpe-in 0.25s ease-out;
}
.lpe-outil .outil-resultat > :first-child { margin-top: 0; }
.lpe-outil .outil-resultat p { color: var(--lpe-ink); font-size: 0.96875rem; }
.lpe-outil .outil-resultat h3 { font-size: 1.15rem; margin: 1.3rem 0 0.5rem; }
.lpe-outil .outil-resultat ul { margin: 0 0 0.8rem; padding-left: 1.2em; font-size: 0.96875rem; }
.lpe-outil .outil-resultat strong { font-size: 1.15em; }
.lpe-outil table { margin: 0 0 1rem; background: var(--lpe-surface); border-radius: var(--lpe-r-sm); overflow: hidden; border: 1px solid var(--lpe-line); }
.lpe-outil caption { caption-side: top; text-align: left; font-weight: 650; padding: 0 0 0.6rem; }
.lpe-outil th, .lpe-outil td { padding: 0.6rem 0.8rem; border: 0; border-top: 1px solid var(--lpe-line); text-align: left; vertical-align: top; }
.lpe-outil thead th { background: var(--lpe-thead); color: var(--lpe-on-thead); border-top: 0; font-size: 0.8125rem; }
.lpe-outil tbody th[scope="row"] { font-weight: 700; }
.lpe-outil td:last-child { white-space: nowrap; }
.lpe-outil tbody tr:nth-last-child(-n+2) > * { background: var(--lpe-sand-2); font-weight: 700; }
@keyframes lpe-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lpe-outil .outil-resultat { animation: none; } }

/* ---------- Outils : totaux, barres de part, copie, erreurs ---------- */
.lpe-outil .outil-resultat .outil-total { margin: 0 0 0.25rem; }
.lpe-outil .outil-resultat .outil-total strong { display: block; font-family: var(--lpe-font-display); font-size: 1.5rem; line-height: 1.2; color: var(--lpe-ink); font-variant-numeric: tabular-nums; }
.lpe-outil .outil-resultat .outil-total + .outil-total strong { font-size: 1.1rem; font-family: inherit; font-weight: 650; color: var(--lpe-ink-2); }
.lpe-outil .outil-resultat .outil-total + .outil-total { margin-bottom: 1rem; }
#ration-resultat > p:nth-of-type(1) strong { display: block; font-family: var(--lpe-font-display); font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
#ration-resultat > p:nth-of-type(2) strong { font-size: 1.1rem; }
.lpe-outil meter.outil-barre {
  -webkit-appearance: none; appearance: none; display: inline-block; vertical-align: middle;
  width: 5.5rem; height: 0.6rem; margin: 0 0.35rem 0 0; border: 0; border-radius: 999px; overflow: hidden;
  background: linear-gradient(to right, var(--lpe-forest) var(--v, 0%), color-mix(in srgb, var(--lpe-ink) 12%, transparent) var(--v, 0%));
}
.lpe-outil meter.outil-barre::-webkit-meter-bar { background: none; border: 0; height: 0.6rem; }
.lpe-outil meter.outil-barre::-webkit-meter-optimum-value,
.lpe-outil meter.outil-barre::-webkit-meter-suboptimum-value,
.lpe-outil meter.outil-barre::-webkit-meter-even-less-good-value { background: none; }
.lpe-outil meter.outil-barre::-moz-meter-bar { background: none; }
.lpe-outil .outil-resultat button { margin-top: 0.4rem; background: var(--lpe-surface); color: var(--lpe-ink); border: 1px solid var(--lpe-line-strong); box-shadow: none; }
.lpe-outil .outil-resultat button:hover, .lpe-outil .outil-resultat button:focus { background: var(--lpe-sand-2); color: var(--lpe-ink); border-color: var(--lpe-ink-2); }
@media (prefers-color-scheme: dark) { .lpe-outil .outil-resultat button, .lpe-outil .outil-resultat button:hover, .lpe-outil .outil-resultat button:focus { color: var(--lpe-ink); } }
.lpe-outil .outil-copie { font-size: var(--lpe-fs-sm); color: var(--lpe-forest); font-weight: 600; }
#budget-race-info:empty, .lpe-outil .outil-erreur:empty { display: none; }
#budget-race-info { margin-top: 0.45rem; }
.lpe-outil .outil-erreur { margin: 0.4rem 0 0; color: var(--lpe-terra-deep); font-weight: 600; }
.lpe-outil [aria-invalid="true"] { border-color: var(--lpe-terra-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lpe-terra) 25%, transparent); }
.lpe-outil select:disabled, .lpe-outil input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Bas de page : maillage, historique, signalement ---------- */
.lpe-sources__releve { font-size: var(--lpe-fs-sm); color: var(--lpe-ink-2); margin: 0 0 0.8rem; }
.lpe-maj__auteur { color: var(--lpe-ink); font-weight: 600; }
.lpe-maillage { margin-top: var(--lpe-sp-7); padding-top: var(--lpe-sp-5); border-top: 1px solid var(--lpe-line); }
.entry-content .lpe-maillage h2 { margin-top: 0; font-size: var(--lpe-fs-h3); }
.lpe-maillage { display: grid; gap: 0 var(--lpe-sp-5); }
@media (min-width: 40rem) { .lpe-maillage { grid-template-columns: 1fr 1fr; } .lpe-maillage > h2 { grid-column: 1 / -1; } }
.entry-content .lpe-maillage h3 { font-size: 1rem; margin: 1rem 0 0.4rem; color: var(--lpe-ink-2); }
.entry-content .lpe-maillage ul { list-style: none; margin: 0; padding: 0; font-size: var(--lpe-fs-sm); }
.lpe-maillage li { margin: 0; border-bottom: 1px solid var(--lpe-line); }
.lpe-maillage a { display: block; padding: 0.5rem 0; color: var(--lpe-ink); text-decoration: none; }
.lpe-maillage a:hover, .lpe-maillage a:focus { color: var(--lpe-terra); text-decoration: underline; }
.lpe-historique { margin-top: var(--lpe-sp-6); font-size: var(--lpe-fs-sm); color: var(--lpe-ink-2); }
.entry-content .lpe-historique h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.lpe-historique p, .lpe-historique ul { margin: 0 0 0.5rem; }
.lpe-signaler a { font-weight: 650; color: var(--lpe-terra); }
.entry-content .lpe-plan ul { columns: 2 16rem; column-gap: var(--lpe-sp-5); }
.lpe-plan li { break-inside: avoid; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 0; }
.site-info, .site-footer .site-info { background: var(--lpe-sand); color: var(--lpe-ink-2); border-top: 1px solid var(--lpe-line); }
.site-info .inside-site-info { max-width: calc(var(--lpe-wide) + 2 * var(--lpe-gutter)); padding: var(--lpe-sp-6) var(--lpe-gutter) var(--lpe-sp-7); justify-content: flex-start; }
.site-info .copyright-bar { width: 100%; text-align: left; font-size: var(--lpe-fs-sm); line-height: 1.6; }
.lpe-foot { display: grid; gap: var(--lpe-sp-4); }
.lpe-foot__tag { margin: 0; font-family: var(--lpe-font-display); font-weight: 650; font-size: 1.2rem; line-height: 1.3; color: var(--lpe-ink); max-width: 24ch; }
.lpe-foot__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
.lpe-foot__nav li { margin: 0; }
.lpe-foot__nav a, .site-info a { color: var(--lpe-ink); text-decoration: none; display: inline-block; padding: 0.45rem 0; font-weight: 550; }
.lpe-foot__nav a:hover, .site-info a:hover { color: var(--lpe-terra); text-decoration: underline; }
.lpe-foot__copy { margin: 0; font-size: var(--lpe-fs-xs); color: var(--lpe-ink-2); }
@media (min-width: 48rem) { .lpe-foot { grid-template-columns: 1fr auto; align-items: start; } .lpe-foot__copy { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.screen-reader-text:focus { background: var(--lpe-surface); color: var(--lpe-ink); }
.lpe-noimg { display: none; }

@media print {
  .site-header, .site-footer, .lpe-cta, .lpe-affil-notice, .lpe-toc, .lpe-related, .lpe-maillage { display: none; }
  body { background: #fff; color: #000; }
  .lpe-table th:first-child, .lpe-table td:first-child { position: static; }
}

/* ---------- Mobile : la réponse avant le défilement, tableaux lisibles ---------- */
.lpe-table__hint { display: none; }
@media (max-width: 40rem) {
  /* image d'en-tête moins haute : l'encadré « En bref » remonte dans le premier écran */
  .lpe-article .lpe-hero-img { margin-bottom: var(--lpe-sp-4); }
  .lpe-article .lpe-hero-img img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; border-radius: var(--lpe-r-md); }
  .lpe-article .lpe-hero-img .lpe-credit { margin-top: 0.3rem; }
  .entry-content .lpe-table__hint { display: block; margin: 1.4em 0 -0.9em; font-size: var(--lpe-fs-xs); color: var(--lpe-ink-2); }
}
@media (max-width: 30rem) {
  .lpe-table table { font-size: 0.875rem; }
  .lpe-table th, .lpe-table td { padding: 0.6rem 0.6rem; min-width: 6.5rem; }
  .lpe-table th:first-child, .lpe-table td:first-child { min-width: 6.5rem; max-width: 8.5rem; }
  /* outils : le tableau de résultat tient dans l'écran */
  .lpe-outil .outil-resultat { padding: 1rem 0.75rem; }
  .lpe-outil table { width: 100%; table-layout: fixed; font-size: 0.875rem; }
  .lpe-outil th, .lpe-outil td { padding: 0.5rem 0.45rem; overflow-wrap: break-word; hyphens: auto; }
  .lpe-outil thead th:first-child { width: 40%; }
  .lpe-outil td:last-child { white-space: normal; }
  .lpe-outil meter.outil-barre { display: block; width: 100%; margin: 0.15rem 0 0.2rem; }
}
