/* Divines Perles d'Amour : DA « Kokochnik & Ambre ». CSS statique pur, polices servies par le site (Fonts API Astro).
   Ratio : 70 % ivoire et nacre, 20 % cerise et sapin, 10 % brun. L'ambre ne sert jamais de texte fin sur fond clair. */
:root {
  --ivoire: #F6F0E4;      /* fond */
  --brun: #3B2A20;        /* texte */
  --cerise: #8E1F2F;      /* accents, liens, titres de section */
  --cerise-h: #6B1624;    /* survol, contraste renforcé */
  --ambre: #C98A2B;       /* filets, perles : décor uniquement */
  --ambre-clair: #E8BE74; /* ambre sur fond sapin (titres du pied de page) */
  --sapin: #22403A;       /* bandeaux, pied de page */
  --nacre: #EDE3D3;       /* fond des tableaux */
  --carte: #FBF8F1;       /* cartes, rangées claires */
  --brun-doux: #65503F;   /* méta, légendes */
  --filet: #D6C5A8;       /* bordures fines */
  --erreur: #8E1F2F;
  --f-corps: var(--f-texte), system-ui, sans-serif;
  --f-haut: var(--f-titre), Georgia, serif;
  --measure-article: 820px;
  --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivoire); color: var(--brun); font-family: var(--f-corps); font-size: 18px; line-height: 1.65; font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cerise); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cerise-h); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cerise); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--cerise); color: var(--ivoire); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Titres : Playfair Display, jamais de capitales espacées ni de mot isolé en couleur */
h1, h2, h3, h4 { font-family: var(--f-haut); font-weight: 600; line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); color: var(--cerise); margin: 2.6rem 0 .9rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-size: 1.28rem; margin: 1.9rem 0 .6rem; color: var(--brun); scroll-margin-top: 1.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }

/* ---------- Signatures SVG : frise de broderie et rangs de perles ---------- */
.frise { height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 1L27 9L18 17L9 9Z' fill='none' stroke='%238E1F2F' stroke-width='1.3'/%3E%3Cpath d='M18 5L23 9L18 13L13 9Z' fill='%238E1F2F'/%3E%3Cpath d='M15.6 9h4.8M18 6.6v4.8' stroke='%23E8BE74' stroke-width='1.1'/%3E%3Cpath d='M0 9h7M29 9h7' stroke='%23C98A2B' stroke-width='1.2' stroke-dasharray='1.6 2.2'/%3E%3C/svg%3E") center / 36px 18px repeat-x; margin: 2.4rem 0; opacity: .95; }
.frise--pied { margin: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 1L27 9L18 17L9 9Z' fill='none' stroke='%23E8BE74' stroke-width='1.3'/%3E%3Cpath d='M18 5L23 9L18 13L13 9Z' fill='%23E8BE74'/%3E%3Cpath d='M15.6 9h4.8M18 6.6v4.8' stroke='%2322403A' stroke-width='1.1'/%3E%3Cpath d='M0 9h7M29 9h7' stroke='%23E8BE74' stroke-width='1.2' stroke-dasharray='1.6 2.2' opacity='.7'/%3E%3C/svg%3E"); padding: 0; }
.perles { position: relative; height: 14px; background:
  radial-gradient(circle at 36% 34%, rgba(255,255,255,.95) 0 9%, transparent 10%),
  radial-gradient(circle at 50% 50%, #FBF7EE 0 28%, #E6DAC4 55%, #BCAA8C 71%, transparent 73%);
  background-size: 14px 14px; background-repeat: repeat-x; }
/* La perle d'ambre marque le signe actif / la sélection */
.perles::after { content: ''; position: absolute; left: 28px; top: 0; width: 14px; height: 14px; background: radial-gradient(circle at 36% 34%, #F6DDA6 0 12%, var(--ambre) 42%, #8A5A14 70%, transparent 73%); }
.perles--bas { transform: scaleY(-1); }
.perles--entete { height: 14px; }
.perles--entete::after { left: auto; right: 28px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--ivoire); position: relative; }
.site-header__inner { max-width: 1240px; margin: 0 auto; padding: .8rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brun); }
.brand:hover { color: var(--cerise); }
.brand__name { font-family: var(--f-haut); font-weight: 600; font-size: 1.32rem; line-height: 1.1; }
.nav-toggle { font: inherit; font-weight: 600; background: var(--cerise); color: var(--ivoire); border: 0; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; }
.site-nav { display: none; border-top: 1px solid var(--filet); background: var(--carte); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .4rem var(--gutter) .8rem; max-width: 1240px; margin-inline: auto; }
.site-nav a, .paysmenu summary { display: block; padding: .6rem 0; color: var(--brun); font-weight: 600; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .paysmenu summary:hover { color: var(--cerise); }
.site-nav a[aria-current], .paysmenu summary.is-courant { color: var(--cerise); text-decoration: underline; text-decoration-color: var(--ambre); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.paysmenu summary { list-style: none; }
.paysmenu summary::-webkit-details-marker { display: none; }
.paysmenu summary::after { content: ''; display: inline-block; width: .5em; height: .5em; margin-left: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.paysmenu[open] summary::after { transform: translateY(.05em) rotate(-135deg); }
.paysmenu ul { padding: 0 0 .3rem 1rem; }
.paysmenu ul a { font-weight: 400; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-header__inner { padding-top: 1rem; padding-bottom: .6rem; }
  .site-nav { display: block; border: 0; background: none; position: absolute; left: 50%; transform: translateX(-50%); top: 0; height: 76px; width: min(100%, 1240px); pointer-events: none; }
  .site-nav ul { display: flex; gap: 1.7rem; padding: 0 var(--gutter); height: 100%; align-items: center; max-width: none; width: max-content; margin: 0 0 0 auto; pointer-events: auto; }
  .site-nav a, .paysmenu summary { padding: .35rem 0; }
  .site-nav__pays { position: relative; }
  .paysmenu ul { position: absolute; top: 100%; left: -1rem; min-width: 12.5rem; background: var(--carte); border: 1px solid var(--filet); border-radius: 0 0 14px 14px; padding: .6rem 1rem .8rem; box-shadow: 0 10px 24px rgba(59,42,32,.14); z-index: 20; display: block; }
  .paysmenu ul li { margin: 0; }
}

/* ---------- Hero et en-tête de page ---------- */
.herofig { margin: 0; background: var(--sapin); }
.img-hero { aspect-ratio: 16 / 9; overflow: hidden; max-height: min(75vh, 44vw); width: 100%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-card { aspect-ratio: 3 / 2; overflow: hidden; }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; }
.herofig .herofig__cap { background: var(--sapin); color: #F1E8D7; font-size: .9rem; line-height: 1.45; padding: .6rem 0; margin: 0; }
.herofig__cap a { color: var(--ambre-clair); }
.entete { padding: 2rem 0 .2rem; }
.container--entete { max-width: 1240px; }
.entete h1 { max-width: min(100%, 26em); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0 0 1rem; padding: 0; font-size: .92rem; color: var(--brun-doux); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--ambre); }
.crumbs a { color: var(--brun-doux); }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 1rem 0 0; font-size: .95rem; color: var(--brun-doux); }
.meta__cat { font-weight: 600; color: var(--cerise); }

/* ---------- Colonne de lecture ---------- */
.page { padding-bottom: 3rem; }
.page__grille { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .page__grille--pays { grid-template-columns: minmax(0, var(--measure-article)) 300px; justify-content: space-between; }
  .page__grille--pays .page__infobox { position: sticky; top: 1.2rem; align-self: start; }
}
.page__grille--seule .page__texte { max-width: var(--measure-article); }
.page__texte { min-width: 0; max-width: var(--measure-article); }
.prose { overflow-wrap: break-word; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: 68ch; }
.prose li { margin-bottom: .35rem; }
.prose strong { font-weight: 600; }
.prose .fig, .prose figure { margin: 2rem 0; }
.prose figcaption, .herofig figcaption { font-size: .92rem; color: var(--brun-doux); line-height: 1.45; margin-top: .55rem; }
.prose .fig .img-body { border-radius: 14px; }
sup.note { font-size: .72em; line-height: 0; margin-left: .08em; }
sup.note a { color: var(--cerise); font-weight: 600; text-decoration: none; padding: 0 .06em; }
sup.note a:hover { text-decoration: underline; }
sup.note:target a, .references li:target { background: var(--nacre); outline: 2px solid var(--cerise); }
.credit a { color: inherit; }

/* Tableaux de contenu : en-têtes cerise sur nacre, rangées alternées ivoire / nacre */
.prose table, .tz, .tc__table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
.prose table { margin: 1.6rem 0; background: var(--nacre); }
.prose caption, .tz caption, .tc__table caption { text-align: left; font-family: var(--f-haut); font-weight: 600; font-size: 1.1rem; color: var(--brun); padding: 0 0 .7rem; caption-side: top; }
.prose th, .tz thead th, .tc__table thead th { text-align: left; color: var(--cerise); font-weight: 600; background: var(--nacre); padding: .7rem .8rem; border-bottom: 2px solid var(--cerise); vertical-align: bottom; }
.prose td, .tz td, .tz tbody th, .tc__table td, .tc__table tbody th { padding: .65rem .8rem; border-bottom: 1px solid var(--filet); vertical-align: top; text-align: left; }
.prose tbody tr:nth-child(odd) td, .tz tbody tr:nth-child(odd) > *, .tc__table tbody tr:nth-child(odd) > * { background: var(--carte); }
.prose tbody tr:nth-child(even) td, .tz tbody tr:nth-child(even) > *, .tc__table tbody tr:nth-child(even) > * { background: var(--nacre); }
.tz-enveloppe { margin: 2rem 0; }
.tz-enveloppe > .perles { margin-bottom: .6rem; }
.tz-enveloppe > .perles--bas { margin: .6rem 0 0; }
.tz__signe { display: flex; align-items: center; gap: .6rem; font-weight: 600; min-width: 9.5rem; }
.tz__nom { font-family: var(--f-haut); font-size: 1.05rem; }
.signe { flex: none; color: var(--cerise); }
.tz tr.is-actif > th:first-child { box-shadow: inset 5px 0 0 var(--ambre); }
.prose .tz-enveloppe, .prose .tc { max-width: none; }

@media (max-width: 639px) {
  .tz caption { display: block; width: 100%; }
  .tz thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tz, .tz tbody, .tz tr, .tz td, .tz tbody th { display: block; width: 100%; }
  .tz tbody tr { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; margin: 0 0 .9rem; padding: .35rem .2rem .55rem; border-top: 4px solid var(--cerise); }
  .tz tr.is-actif { border-top-color: var(--ambre); }
  .tz tbody tr > * { background: transparent !important; box-shadow: none !important; border: 0; padding: .3rem .8rem; }
  .tz tbody th { padding-top: .6rem; }
  .tz td { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .6rem; }
  .tz td::before { content: attr(data-label); font-weight: 600; color: var(--brun-doux); font-size: .88rem; }
}

/* ---------- Compatibilité 12 x 12 ---------- */
.tc { margin: 2rem 0; }
.tc__legende { font-size: .95rem; color: var(--brun-doux); margin: 0 0 1rem; }
.tc__choix { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tc__choix[hidden], .tc__liste[hidden] { display: none; }
.tc__choix label { font-weight: 600; }
.tc__choix select, .contact-form select, .contact-form input, .contact-form textarea { font: inherit; color: var(--brun); background: var(--carte); border: 1.5px solid var(--brun-doux); border-radius: 10px; padding: .6rem .8rem; max-width: 100%; }
.tc__liste { background: var(--carte); border: 1px solid var(--filet); border-top: 4px solid var(--cerise); border-radius: 14px; padding: .5rem 1rem 1rem; margin-bottom: 1rem; }
.tc__liste h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: .6rem 0 .5rem; }
.tc__liste ul { list-style: none; margin: 0; padding: 0; }
.tc__liste li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--filet); }
.tc__liste li:last-child { border: 0; }
.tc__perles { display: inline-flex; gap: 4px; }
.tc__perles i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #A8957A; background: var(--carte); }
.tc__perles i.is-plein { background: radial-gradient(circle at 36% 34%, #F6DDA6 0 14%, var(--ambre) 45%, #8A5A14 100%); border-color: #8A5A14; }
.tc__grille { display: none; }
.tc__table { text-align: center; table-layout: fixed; }
.tc__table th, .tc__table td { text-align: center; padding: .35rem .2rem; }
.tc__table tbody th { text-align: left; white-space: nowrap; font-weight: 600; width: 8.2rem; font-size: .9rem; padding-left: .5rem; }
.tc__table thead th { padding: .5rem .1rem; }
.tc__table thead .tc__coin { text-align: left; width: 8.2rem; font-size: .85rem; }
.tc__table tbody th .signe { display: inline-block; vertical-align: -6px; margin-right: .25rem; }
.tc__table td { font-weight: 600; }
.tc__table td.n1 { background: var(--carte) !important; color: var(--brun); }
.tc__table td.n2 { background: #F1E4CB !important; color: var(--brun); }
.tc__table td.n3 { background: #E7CB97 !important; color: var(--brun); }
.tc__table td.n4 { background: #D7A353 !important; color: #2B1D14; }
.tc__table td.n5 { background: var(--cerise) !important; color: var(--ivoire); }
@media (min-width: 900px) { .tc__grille { display: block; } .tc__listes { display: none; } .tc__choix { display: none !important; } }
.tc__pt { font-variant-numeric: tabular-nums; }

/* ---------- Infobox pays ---------- */
.infobox { background: var(--carte); border: 1px solid var(--filet); border-radius: 18px 18px 14px 14px; padding: 0 1.1rem 1.1rem; overflow: hidden; font-size: .96rem; line-height: 1.5; }
.infobox > .perles { margin: 0 -1.1rem .8rem; background-color: var(--nacre); padding: 0; height: 18px; background-position: 0 2px; }
.infobox__nom { font-family: var(--f-haut); font-weight: 600; font-size: 1.25rem; margin: 0 0 .7rem; color: var(--cerise); }
.infobox__img { border-radius: 10px; margin-bottom: .8rem; }
.infobox__liste { margin: 0; }
.infobox__liste dt { font-weight: 600; color: var(--brun-doux); font-size: .9rem; margin-top: .75rem; }
.infobox__liste dd { margin: .1rem 0 0; }
.infobox__titre { font-weight: 600; margin: 1rem 0 .3rem; color: var(--brun-doux); font-size: .9rem; }
.infobox__voisines ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }

/* ---------- Citation (domaine public) ---------- */
.citation { margin: 2rem 0; padding: 1.2rem 1.4rem 1.1rem 1.6rem; background: var(--nacre); border-left: 4px solid var(--ambre); border-radius: 0 16px 16px 0; max-width: 68ch; }
.citation blockquote { margin: 0; font-family: var(--f-haut); font-size: 1.18rem; line-height: 1.55; font-weight: 500; }
.citation blockquote p { margin: 0 0 .6rem; }
.citation figcaption { margin-top: .7rem; font-size: .93rem; color: var(--brun-doux); }

/* ---------- Sommaire, FAQ, références ---------- */
.sommaire { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; padding: .9rem 1.2rem; margin: 0 0 2rem; max-width: 68ch; }
.sommaire__titre { font-family: var(--f-haut); font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.sommaire__liste { list-style: none; margin: .7rem 0 0; padding: 0; font-size: .98rem; }
.sommaire__liste li { margin: .25rem 0; }
.sommaire__sous { padding-left: 1.6rem; }
.sommaire__num { display: inline-block; min-width: 1.8rem; color: var(--brun-doux); font-variant-numeric: tabular-nums; }
.faq h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); color: var(--cerise); margin: 0 0 1rem; }
.faq__item { border-bottom: 1px solid var(--filet); max-width: 68ch; }
.faq__item summary { cursor: pointer; font-weight: 600; padding: .9rem 2rem .9rem 0; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; position: absolute; right: .3rem; top: 1.25rem; width: .55em; height: .55em; border-right: 2px solid var(--cerise); border-bottom: 2px solid var(--cerise); transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-.15em, -.15em); }
.faq__item p { margin: 0 0 1rem; }
.references h2 { font-size: 1.4rem; color: var(--brun); margin: 0 0 .8rem; }
.references__liste { padding-left: 1.6rem; font-size: .93rem; line-height: 1.5; color: var(--brun-doux); }
.references__liste li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.references__retour a { text-decoration: none; margin-right: .15rem; }

/* ---------- Cartes en arche de kokochnik ---------- */
.cartes { display: grid; gap: 1.8rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 1.5rem 0; }
.arche { background: var(--carte); border: 1px solid var(--filet); border-top: 0; border-radius: 0 0 16px 16px; display: flex; flex-direction: column; position: relative; padding-top: 14px; }
.arche__crete { position: absolute; left: -1px; right: -1px; top: 0; height: 14px; background: radial-gradient(circle at 50% 100%, var(--cerise) 0 8.2px, transparent 8.7px) 0 0 / 22px 14px repeat-x; }
.arche__img { border-top: 6px solid var(--cerise); display: block; }
.arche > .perles { margin-top: -7px; background-color: transparent; position: relative; z-index: 1; }
.arche > .perles::after { display: none; }
.arche__corps { padding: .8rem 1.2rem 1.3rem; }
.arche__kicker { display: flex; flex-wrap: wrap; gap: .1rem .8rem; margin: 0 0 .4rem; font-size: .9rem; color: var(--brun-doux); }
.arche__cat { font-weight: 600; color: var(--cerise); }
.arche__titre { font-size: 1.28rem; margin: 0 0 .5rem; }
.arche__titre a { color: var(--brun); text-decoration: none; }
.arche__titre a:hover { color: var(--cerise); text-decoration: underline; }
.arche__extrait { margin: 0; font-size: .98rem; line-height: 1.55; }

/* Animation unique : apparition des perles à l'accueil (désactivée sous prefers-reduced-motion) */
.perles--anim { animation: perles-apparition 1.6s cubic-bezier(.22,.7,.2,1) both; }
@keyframes perles-apparition { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .perles--anim { animation: none; } html { scroll-behavior: auto; } .faq__item summary::after { transition: none; } }

/* ---------- Boutons, formulaire ---------- */
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--cerise); color: var(--ivoire); border: 0; border-radius: 999px; padding: .75rem 1.6rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cerise-h); color: var(--ivoire); }
.btn:disabled { opacity: .6; cursor: wait; }
.contact-form { max-width: 34rem; margin: 1.6rem 0; }
.form-group { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 600; }
.contact-form__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__statut { margin: .9rem 0 0; font-weight: 600; min-height: 1.6em; }
.contact-form__statut.is-ok { color: var(--sapin); }
.contact-form__statut.is-erreur { color: var(--erreur); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--sapin); color: #F1E8D7; margin-top: 3rem; font-size: .98rem; }
.site-footer a { color: #F6F0E4; text-decoration-color: rgba(232,190,116,.6); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: var(--ambre-clair); }
.site-footer__grid { display: grid; gap: 2rem 2.5rem; padding-top: 2.4rem; padding-bottom: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__marque { font-family: var(--f-haut); font-weight: 600; font-size: 1.35rem; color: var(--ambre-clair); margin: 0 0 .4rem; }
.site-footer__titre { font-family: var(--f-haut); font-weight: 600; color: var(--ambre-clair); margin: 0 0 .5rem; font-size: 1.08rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer__indep { font-size: .93rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer__bas { border-top: 1px solid rgba(232,190,116,.3); padding-top: 1rem; padding-bottom: 1.6rem; font-size: .9rem; }
.site-footer__bas p { margin: 0; }

.prose .tz, .prose .tc__table { background: transparent; margin: 0; }

/* ---------- Blog : filtre par catégorie (boutons avec JS, liens sans JS) ---------- */
.cartes > [hidden] { display: none; }
.filtre { margin-bottom: 1.6rem; }
.filtre__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre__btn { display: inline-block; padding: .4rem 1rem; border: 1px solid var(--filet); border-radius: 999px; background: var(--carte); color: var(--brun); font-weight: 600; font-size: .95rem; text-decoration: none; }
.filtre__btn:hover { background: var(--nacre); color: var(--brun); }
.filtre__btn.is-actif { background: var(--cerise); border-color: var(--cerise); color: var(--ivoire); }
.filtre__n { font-weight: 400; margin-left: .2rem; }
.filtre__n::before { content: "("; }
.filtre__n::after { content: ")"; }
.filtre__etat { margin: .8rem 0 0; min-height: 1.4em; font-size: .95rem; color: var(--brun-doux); }

/* ---------- Accueil ---------- */
.accueil { position: relative; border-bottom: 1px solid var(--filet); background: var(--nacre); }
.accueil__inner { padding-block: 3rem 2.2rem; }
.accueil h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 22ch; color: var(--cerise); }
.accueil__chapeau { max-width: 40rem; font-size: 1.12rem; margin: 1.3rem 0 1.6rem; }
.accueil__inner > .perles { max-width: 40rem; }
.section { padding-block: 2.4rem; }
.section h2 { margin-bottom: 1.3rem; color: var(--cerise); }
.section__suite { margin: 1.2rem 0 0; }
.signes-apercu { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); }
.signes-apercu a { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .4rem; background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; text-decoration: none; color: var(--brun); }
.signes-apercu a:hover { background: var(--nacre); color: var(--cerise-h); }
.signes-apercu__nom { font-family: var(--f-haut); font-weight: 600; font-size: 1.02rem; }
.accueil__piliers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.accueil__piliers li { padding-left: 1.1rem; border-left: 3px solid var(--filet); }
.accueil__methode { max-width: 46rem; padding: 1.4rem 1.5rem; background: var(--carte); border: 1px solid var(--filet); border-radius: 16px; }
.accueil__methode h2 { margin-bottom: .6rem; font-size: 1.4rem; }
.accueil__methode p { margin: 0; }
@media (max-width: 480px) {
  .accueil__inner { padding-block: 2rem 1.6rem; }
  .signes-apercu { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
}

/* Tableaux markdown : défilement horizontal sur petit écran */
.table-scroll { overflow-x: auto; margin: 1.2rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll > table { margin: 0; min-width: 34rem; }
@media (max-width: 639px) {
  .table-scroll { overflow-x: visible; }
  .table-scroll > table { min-width: 0; background: transparent; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll caption { display: block; }
  .table-scroll tbody tr { background: var(--carte); border: 1px solid var(--filet); border-top: 4px solid var(--cerise); border-radius: 14px; margin: 0 0 .9rem; padding: .35rem .2rem .55rem; }
  .table-scroll tbody tr > td { background: transparent !important; border: 0; padding: .3rem .8rem; }
  .table-scroll td[data-label]::before { content: attr(data-label); display: block; font-weight: 600; color: var(--cerise); font-size: .9rem; }
}

/* Classes de structure déclarées pour le contrôle des classes orphelines (rendu par défaut inchangé ou précisé) */
.brand__mark { flex: none; width: 44px; height: 44px; }
.references__titre { overflow-wrap: anywhere; }
.references__date { color: var(--brun-doux); }
.tc__nom { font-weight: 600; }
.meta__verif { font-variant-numeric: tabular-nums; }
.sommaire__det { margin: 0; }
.page__grille--article, .page__grille--pilier { grid-template-columns: minmax(0, 1fr); }
.article-sommaire { scroll-margin-top: 1rem; }
.references__auteur { overflow-wrap: anywhere; }
.references__multi { white-space: nowrap; }
