/* =====================================================================
   Blog Rock Around Siam — feuille de style publique
   CHARTE (mockups/charte-graphique.html) :
   - une seule famille : Noto Sans ;
   - cinq tailles, aucune autre : 20 (H1) · 18 (H2) · 16 (H3) · 14 (texte) · 12 (autres) ;
   - largeur utile 1200 px ;
   - texte courant justifié à partir de 1024 px, aligné à gauche en dessous ;
     titres, chapô, légendes, encadrés et citations toujours à gauche ;
   - espacements multiples de 8 px, arrondi unique de 8 px.
   ===================================================================== */

:root {
  --fs-h1: 20px; --lh-h1: 28px;
  --fs-h2: 18px; --lh-h2: 26px;
  --fs-h3: 16px; --lh-h3: 24px;
  --fs-p:  14px; --lh-p:  24px;
  --fs-s:  12px; --lh-s:  18px;

  --black: #0A0A0A;
  --black-elev: #1C1C1C;
  --navy: #0E1A33;
  --navy-2: #16233F;
  --text: #2A2620;
  --text-2: #4A4439;
  --muted: #6B6557;
  --gold: #C9A961;
  --gold-light: #E0C688;
  --gold-deep: #8C7232;
  --gold-pale: #F4EAD4;
  --cream: #FAF7F1;
  --cream-2: #F3EDE0;
  --paper: #FDFCF8;
  --line: #E8E2D2;
  --line-2: #D4C9A8;

  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);   /* marges identiques à rockaroundsiam.com : 1 200 px marges comprises */
  --radius: 8px;
  --read: 760px;
  --topbar: 90px;           /* hauteur identique à la barre de rockaroundsiam.com */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: var(--fs-p); line-height: var(--lh-p); font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); text-wrap: balance; }
input, select, textarea, button { font: inherit; font-size: var(--fs-p); line-height: var(--lh-p); }

/* ---------------------------------------------------------- échelle */
h1, .t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2, .t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
h3, .t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
h4 { font-size: var(--fs-p); line-height: var(--lh-p); font-weight: 700; }
.t-s, small { font-size: var(--fs-s); line-height: var(--lh-s); }
.label, .eyebrow { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.muted { color: var(--muted); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--black); padding: 8px 16px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }   /* 1 200 px marges comprises, comme rockaroundsiam.com */
.wrap-narrow { width: 100%; max-width: calc(var(--read) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 48px; padding-bottom: 24px; }
.section__title { margin-bottom: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.page-title { margin-bottom: 16px; }
.lead { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--text-2); margin-bottom: 24px; }
.more { margin-top: 16px; font-weight: 600; }
.more a { text-decoration: none; color: var(--gold-deep); }

/* ---------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--fs-p); line-height: 1; font-weight: 600; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); color: var(--black); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--text); }

/* ---------------------------------------------------------- barre du haut */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--black); color: #D8D3C7; border-bottom: 1px solid rgba(201,169,97,.25); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--topbar); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 45px; width: auto; }
.brand__label { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-left: 1px solid rgba(201,169,97,.4); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px; color: #D8D3C7; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav__main { display: none !important; }   /* lien du menu mobile seulement */
.ras-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid rgba(201,169,97,.55); color: var(--gold-light); text-decoration: none; }
.ras-link:hover { background: rgba(201,169,97,.12); border-color: var(--gold); color: var(--gold-light); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.search-mini input { width: 160px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: var(--radius); padding: 4px 8px; }
.search-mini input::placeholder { color: #A9A397; }
.lang { display: flex; gap: 2px; }
.lang a { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; padding: 4px 6px; color: #B9B3A6; text-decoration: none; border-radius: 4px; }
.lang a.is-active { color: var(--gold-light); }
.account-link { color: #D8D3C7; display: inline-flex; padding: 8px; }
.account-link:hover { color: var(--gold-light); }
.burger { display: none; background: none; border: 0; color: #EDE8DC; padding: 8px; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: var(--topbar) 0 auto 0; background: var(--black-elev); flex-direction: column; align-items: stretch;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgba(201,169,97,.25);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a[aria-current] { box-shadow: none; color: var(--gold-light); }
  .burger { display: inline-flex; }
  .nav .nav__main { display: block !important; color: var(--gold-light); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }   /* téléphone : 16 px (charte) */
  .search-mini, .ras-link { display: none; }
}

/* ---------------------------------------------------------- avis */
.notice { padding: 8px var(--gutter); font-size: var(--fs-s); line-height: var(--lh-s); text-align: center; }
.notice--demo { background: repeating-linear-gradient(45deg, var(--gold-pale), var(--gold-pale) 12px, #efe1c4 12px, #efe1c4 24px); color: #5d4a1c; font-weight: 600; }
.notice--preview { background: var(--navy); color: var(--gold-light); font-weight: 600; }
.notice--ok, .notice--error { border-radius: var(--radius); text-align: left; padding: 12px 16px; font-size: var(--fs-p); line-height: var(--lh-p); margin-bottom: 16px; }
.notice--ok { background: #E7EFE1; color: #2F4524; }
.notice--error { background: #F6E3DF; color: #7A2D20; }

/* ---------------------------------------------------------- étiquettes */
.badge { font-size: var(--fs-s); line-height: 1; font-weight: 600; padding: 4px 8px; border-radius: 99px; background: var(--gold-pale); color: #5d4a1c; }
.badge--client { background: var(--navy); color: var(--gold-light); }
.level { font-size: var(--fs-s); line-height: 1; font-weight: 600; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.level--decouvrir { border-color: #b8cdb0; color: #3d5a33; }
.level--approfondir { border-color: var(--navy); color: var(--navy); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: var(--fs-s); line-height: var(--lh-s); padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; }
.chip:hover { border-color: var(--gold); background: var(--gold-pale); }
.count { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }

/* ---------------------------------------------------------- fil d'Ariane */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin-bottom: 12px; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- accueil */
.masthead { background: var(--navy); color: #D8D3C7; padding: 56px 0 48px; position: relative; }
.masthead::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.masthead .eyebrow { color: var(--gold-light); margin-bottom: 8px; }
.masthead__title { color: #fff; margin-bottom: 8px; }
.masthead__intro { font-size: var(--fs-h3); line-height: var(--lh-h3); font-style: italic; max-width: 760px; }

.grid-lead { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-bottom: 32px; }
.grid-lead__side { display: grid; gap: 24px; align-content: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-lead { grid-template-columns: 1fr; } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------- cartes */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(26,22,16,.08); }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card--lg .card__img { aspect-ratio: 16 / 9; }
.card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card--noimg .card__body { border-top: 3px solid var(--gold); }
.card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.card__theme { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.card__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; margin-bottom: 8px; }
.card--lg .card__title { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__chapo { color: var(--text-2); margin-bottom: 16px; }
.card__foot { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }

/* ---------------------------------------------------------- thématiques */
.themes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.themes li { background: var(--paper); }
.themes a { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 16px; height: 100%; text-decoration: none; }
.themes a:hover { background: #fff; }
.themes__n { grid-row: span 3; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--gold); }
.themes__name { font-size: var(--fs-p); line-height: 20px; font-weight: 600; color: var(--navy); }
.themes__sum { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }
.themes__count { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--gold-deep); font-weight: 600; }
@media (max-width: 960px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .themes { grid-template-columns: 1fr; } }

.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.collection-tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--navy); color: #D8D3C7; border-radius: var(--radius); text-decoration: none; min-height: 144px; }
.collection-tile strong { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: #fff; }
.collection-tile .eyebrow { color: var(--gold-light); }
.collection-tile:hover { background: var(--navy-2); color: #fff; }

/* ---------------------------------------------------------- en-tête « atlas » (article, fiche) */
.atlas-head { background: var(--navy); color: #D8D3C7; }
.atlas-head__in { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; max-width: var(--maxw); margin: 0 auto; }
.atlas-head--noimg .atlas-head__in { grid-template-columns: 1fr; min-height: 0; }
.atlas-head__txt { padding: 48px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.atlas-head--noimg .atlas-head__txt { padding-top: 48px; max-width: calc(var(--read) + 280px + 48px + 2 * var(--gutter)); }
.atlas-head .crumbs ol, .atlas-head .crumbs a { color: #B9B3A6; }
.atlas-head .crumbs li + li::before { color: rgba(255,255,255,.25); }
.atlas-head__kicker { color: var(--gold-light); margin-bottom: 8px; }
.atlas-head__kicker a { text-decoration: none; }
.atlas-head__title { color: #fff; margin-bottom: 8px; }
.atlas-head__subtitle { font-size: var(--fs-h3); line-height: var(--lh-h3); font-style: italic; color: #D8D3C7; margin-bottom: 16px; }
.atlas-head__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: var(--fs-s); line-height: var(--lh-s); color: #B9B3A6; }
.atlas-head__meta a, .atlas-head__meta b { color: #fff; font-weight: 600; }
.atlas-head__meta .level { color: #fff; border-color: rgba(255,255,255,.4); }
.atlas-head__img { position: relative; margin: 0 var(--gutter) 0 0; align-self: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }   /* bord droit aligné sur le contenu (1 200 px marges comprises) ; proportions conservées */
.atlas-head__img picture, .atlas-head__img img { width: 100%; height: 100%; object-fit: cover; }
.atlas-head__img figcaption { position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 4px; font-size: var(--fs-s); line-height: var(--lh-s); color: #fff; background: rgba(0,0,0,.35); }   /* crédit seul, discret */
.progress { height: 3px; background: var(--line); position: sticky; top: var(--topbar); z-index: 50; }
.progress i { display: block; height: 3px; width: 0; background: var(--gold); }
@media (max-width: 1023px) {
  .atlas-head__in { grid-template-columns: 1fr; min-height: 0; }
  .atlas-head__img { order: -1; height: 260px; margin: 0; aspect-ratio: auto; align-self: stretch; border-radius: 0; }
  .atlas-head__txt { padding: 24px var(--gutter) 32px; }
}

/* ---------------------------------------------------------- mise en page article */
.article-grid { display: grid; grid-template-columns: 264px minmax(0, var(--read)); justify-content: center; gap: 48px; padding-top: 32px; padding-bottom: 24px; }
.article-side { align-self: start; position: sticky; top: calc(var(--topbar) + 24px); display: grid; gap: 16px; max-height: calc(100vh - var(--topbar) - 40px); overflow: auto; }
.panel-l { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-l > summary { list-style: none; background: var(--cream); padding: 12px 16px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; cursor: default; }
.panel-l > summary::-webkit-details-marker { display: none; }
.panel-l:not([open]) > summary { border-bottom: 0; border-radius: var(--radius); }
.panel-l__chev { display: none; color: var(--gold-deep); font-weight: 700; }
.toc { list-style: none; margin: 12px 16px; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 12px; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); text-decoration: none; }
.toc li a:hover, .toc li a.is-active { color: var(--navy); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }
.toc--h3 a { position: relative; padding-left: 32px !important; }   /* sous-titres : puce dorée */
.toc--h3 a::before { content: ""; position: absolute; left: 20px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.fiche { padding: 8px 16px; }
.fiche div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); line-height: var(--lh-s); }
.fiche div:last-child { border-bottom: 0; }
.fiche dt { color: var(--muted); }
.fiche dd { margin: 0; font-weight: 500; color: var(--text); }
.fiche dd a { text-decoration: none; }
.fiche dd a:hover { text-decoration: underline; }
.fiche__map { display: block; margin: 0 16px 16px; padding: 8px 12px; border-radius: var(--radius); background: var(--cream); font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; color: var(--gold-deep); text-decoration: none; }
@media (max-width: 1023px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .article-side { position: static; max-height: none; overflow: visible; grid-template-columns: 1fr 1fr; align-items: start; }
  .panel-l > summary { cursor: pointer; }
  .panel-l__chev { display: inline; }
  .panel-l[open] .panel-l__chev { transform: rotate(45deg); }
}
@media (max-width: 700px) { .article-side { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- texte long */
.prose { color: var(--text); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose h4 { margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 24px 0; padding-left: 16px; border-left: 2px solid var(--gold); font-style: italic; color: var(--text-2); }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; text-align: center; margin: 32px 0; }
.prose hr::after { content: "◆ ◆ ◆"; color: var(--gold); letter-spacing: 1em; font-size: var(--fs-s); }
.prose a { color: var(--navy); }
.prose .entity-link { text-decoration-style: dotted; }
.prose code { font-size: var(--fs-s); background: var(--cream-2); padding: 2px 4px; border-radius: 4px; }
.chapo { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; color: var(--navy); margin-bottom: 24px !important; }
.box { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.box p:last-child { margin-bottom: 0; }
.box-title { margin-bottom: 8px !important; }
@media (min-width: 1024px) {
  .prose p, .prose li { text-align: justify; }
  .prose .chapo, .prose .box p, .prose .box li, .prose blockquote p, .prose figcaption { text-align: left; }
}

.paywall { position: relative; margin: 0 0 32px; padding: 24px; background: var(--navy); color: #D8D3C7; border-radius: var(--radius); }
.paywall::before { content: ""; position: absolute; left: 0; right: 0; top: -96px; height: 96px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.paywall h2 { color: #fff; margin-bottom: 8px; }
.paywall p { margin-bottom: 16px; text-align: left !important; }
.paywall .muted { color: #B9B3A6; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 220px; padding: 8px 12px; border-radius: var(--radius); border: 0; }

.collection-nav { margin: 32px 0; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.collection-nav__name { display: inline-block; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--navy); text-decoration: none; margin-top: 4px; }
.collection-nav__steps { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.collection-nav__steps a:last-child { margin-left: auto; text-align: right; }

.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.eco__link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; }
.eco__link strong { color: var(--navy); font-weight: 600; }
.eco__link:hover { border-color: var(--gold); }

.sources { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); }
.sources h2 { margin: 0 0 12px; }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 8px; text-align: left !important; }
.sources cite { font-style: italic; }

/* ---------------------------------------------------------- pages d'entités */
.facts { display: grid; gap: 4px; margin-top: 16px; font-size: var(--fs-s); line-height: var(--lh-s); }
.facts div { display: flex; gap: 8px; }
.facts dt { font-weight: 600; min-width: 120px; color: #B9B3A6; }
.facts dd { margin: 0; color: #fff; }
.facts a { color: #fff; }
.entity-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.entity-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; height: 100%; }
.entity-list strong { font-weight: 600; color: var(--navy); }
.entity-list span { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); }
.reading-list { display: grid; gap: 24px; max-width: 860px; }
.reading-list__item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.reading-list__n { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; color: var(--gold); text-align: right; padding-top: 16px; }

/* ---------------------------------------------------------- recherche */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.search-form input { flex: 1 1 260px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.search-form select { padding: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.results { list-style: none; padding: 0; }
.results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.results h2 { margin: 0 0 4px; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.results p { color: var(--text-2); }
mark { background: var(--gold-pale); color: inherit; padding: 0 2px; }
.suggest { position: absolute; z-index: 150; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.15); list-style: none; margin: 4px 0 0; padding: 8px 0; min-width: 260px; max-width: 92vw; }
.suggest a { display: block; padding: 8px 16px; text-decoration: none; color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--cream); }
.pager { display: flex; justify-content: space-between; margin-top: 24px; }

/* ---------------------------------------------------------- en-tête des onglets */
.page-head { background: var(--navy); color: #D8D3C7; }
.page-head .wrap { padding-top: 40px; padding-bottom: 32px; }
.page-head .crumbs ol, .page-head .crumbs a { color: #B9B3A6; }
.page-head .crumbs li + li::before { color: rgba(255,255,255,.25); }
.page-head__kicker { color: var(--gold-light); margin-bottom: 8px; }
.page-head__title { color: #fff; margin-bottom: 8px; }
.page-head__intro { font-size: var(--fs-h3); line-height: var(--lh-h3); font-style: italic; max-width: 760px; }
.page-head__stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: var(--fs-s); line-height: var(--lh-s); color: #B9B3A6; }
.page-head__stats b { color: #fff; font-size: var(--fs-p); }
.page-body { padding-top: 32px; padding-bottom: 24px; }
button.chip { cursor: pointer; color: var(--text); }
.chip.is-on, .chip.is-on:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.noimg { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 8px, var(--cream-2) 8px, var(--cream-2) 16px); }
.noimg__txt { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }

/* ---------------------------------------------------------- 1. thématiques */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.th-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, opacity .2s; }
.th-card:hover { box-shadow: 0 8px 24px rgba(26,22,16,.08); color: inherit; }
.th-card.is-dim { opacity: .45; }
.th-card__img { position: relative; display: block; aspect-ratio: 2 / 1; background-color: var(--cream-2); overflow: hidden; }
.th-card__img picture, .th-card__img img { width: 100%; height: 100%; object-fit: cover; }
.th-card__num { position: absolute; left: 12px; top: 12px; background: var(--navy); color: var(--gold-light); font-size: var(--fs-p); line-height: var(--lh-p); font-weight: 700; padding: 0 8px; border-radius: 6px; }
.th-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px; flex: 1; }
.th-card__name { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--navy); }
.th-card__sum { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); }
.th-card__meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: var(--fs-s); line-height: var(--lh-s); }
.th-card .count, .te-region .count { color: var(--gold-deep); font-weight: 600; }
@media (max-width: 960px) { .th-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .th-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Téléphone : photo entière en haut (non recadrée), texte dessous. */
  .th-card__img { aspect-ratio: auto; }
  .th-card__img picture, .th-card__img img { display: block; height: auto; object-fit: contain; }
  .th-card__img.noimg { aspect-ratio: 2 / 1; }
}

/* ---------------------------------------------------------- 2. territoires */
.te-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; }
.te-layout--nomap { grid-template-columns: 1fr; }
.te-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.te-region { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.te-region.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.te-region__title { font-size: var(--fs-h3); line-height: var(--lh-h3); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.te-region__title a { text-decoration: none; }
.te-region__sum { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); margin-top: 4px; }
.te-region .chips, .te-region > .muted { margin-top: 12px; gap: 6px; }
.te-sub { margin: 24px 0 8px; }
.te-map { position: sticky; top: calc(var(--topbar) + 24px); align-self: start; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #F6F3EC; max-height: calc(100vh - var(--topbar) - 40px); }
.te-map img, .te-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.te-map svg path { fill: transparent; cursor: pointer; }
.te-map__note { position: absolute; left: 12px; right: 12px; bottom: 36px; background: rgba(255,255,255,.92); border-radius: 6px; padding: 8px 12px; font-size: var(--fs-s); line-height: var(--lh-s); }
.te-map__note a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 960px) {
  .te-layout { grid-template-columns: 1fr; }
  .te-map { position: relative; top: 0; order: -1; width: 100%; max-width: 420px; max-height: none; justify-self: center; }
}
@media (max-width: 600px) { .te-regions { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 3. chronologie */
.ch-frieze { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 32px; overflow-x: auto; }
.ch-scale { position: relative; min-width: 900px; }
.ch-bar { position: absolute; height: 24px; border-radius: 4px; font-size: var(--fs-s); line-height: 24px; color: #fff; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ch-bar:hover, .ch-bar:focus-visible { color: #fff; outline: 2px solid var(--gold); outline-offset: 2px; }
.ch-bar--0 { background: #5B6B8C; } .ch-bar--1 { background: #6B5B8C; } .ch-bar--2 { background: #8C6B3F; }
.ch-bar--3 { background: #3F7A6B; } .ch-bar--4 { background: #8C3F4F; } .ch-bar--5 { background: #3F5F8C; }
.ch-bar--6 { background: #0E1A33; } .ch-bar--7 { background: #7A6A2F; } .ch-bar--8 { background: #4F6F3F; }
.ch-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border-top: 1px solid var(--line-2); }
.ch-axis span { position: absolute; top: 4px; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.ch-axis span:first-child { transform: none; }
.ch-list { list-style: none; position: relative; padding: 0 0 0 32px; }
.ch-list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.ch-item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--topbar) + 24px); }
.ch-item::before { content: ""; position: absolute; left: -30px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.ch-item.has-articles::before, .ch-item:target::before { background: var(--gold); }
.ch-date { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--gold-deep); }
.ch-date span { display: block; font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 400; color: var(--muted); }
.ch-item__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ch-item__title a { text-decoration: none; }
.ch-item__sum { color: var(--text-2); margin-top: 4px; }
.ch-rel { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); margin-top: 4px; }
.ch-arts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.mini { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; min-height: 72px; }
.mini:hover { border-color: var(--gold); color: inherit; }
.mini__img { width: 88px; flex-shrink: 0; background-color: var(--cream-2); }
.mini__img picture, .mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__body { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px 8px 0; }
.mini__title { font-size: var(--fs-p); line-height: 20px; font-weight: 600; color: var(--navy); }
@media (max-width: 700px) { .ch-item { grid-template-columns: 1fr; gap: 4px; } .ch-arts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 4. carte */
.ca-layout { display: grid; grid-template-columns: 376px minmax(0, 1fr); height: calc(100vh - var(--topbar)); min-height: 480px; }
.ca-side { background: #fff; border-right: 1px solid var(--line); padding: 16px; overflow: auto; }
.ca-side { display: flex; flex-direction: column; gap: 16px; padding: 0; }
.ca-side__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.ca-total { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); }
.ca-total b { font-size: var(--fs-h1); line-height: var(--lh-h1); color: var(--navy); margin-right: 4px; }
.ca-reset { background: none; border: 0; padding: 0; font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; color: var(--gold-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#map-filters { padding: 0 16px; display: grid; gap: 16px; }
.ca-group { border: 0; padding: 0 0 16px; margin: 0; border-bottom: 1px solid var(--line); }
.ca-group legend { padding: 0; margin-bottom: 8px; }
.ca-check { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: var(--fs-s); line-height: var(--lh-s); padding: 4px 8px; margin: 0 -8px; border-radius: 6px; cursor: pointer; }
.ca-check:hover { background: var(--cream); }
.ca-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ca-check__box { width: 16px; height: 16px; margin-top: 1px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ca-check input:checked + .ca-check__box { background: var(--navy); border-color: var(--navy); }
.ca-check input:checked + .ca-check__box::after { content: ""; width: 4px; height: 8px; border: solid var(--gold-light); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.ca-check input:focus-visible + .ca-check__box { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.ca-check input:checked ~ .ca-check__name { color: var(--navy); font-weight: 600; }
.ca-check__n { min-width: 24px; text-align: center; font-weight: 600; color: var(--muted); background: var(--cream-2); border-radius: 99px; padding: 0 6px; }
.ca-shown { padding: 0 16px; }
.ca-list { list-style: none; margin: -8px 0 16px; padding: 0 8px; }
.ca-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: var(--fs-s); line-height: var(--lh-s); text-decoration: none; color: var(--text); }
.ca-list a:hover { background: var(--cream); color: var(--navy); }
.ca-list span { flex: 1; }
.ca-list small { font-weight: 600; color: var(--gold-deep); }
.ca-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); }
.ca-dot.t { background: var(--paper); }
.ca-map { position: relative; }
.ca-map .map { height: 100%; margin: 0; border: 0; border-radius: 0; }
.ca-legend { position: absolute; left: 12px; bottom: 24px; z-index: 500; background: rgba(255,255,255,.92); border-radius: 6px; padding: 8px 12px; font-size: var(--fs-s); line-height: var(--lh-s); display: flex; gap: 16px; }
.ca-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); margin-right: 4px; vertical-align: -1px; }
.ca-legend i.t { background: var(--paper); }
.ca-mobilebar { display: none; }
.ca-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--radius); overflow: hidden; }
.ca-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.ca-pop__img { display: block; height: 96px; background-color: var(--cream-2); }
.ca-pop__img img { width: 100%; height: 100%; object-fit: cover; }
.ca-pop__body { padding: 12px; }
.ca-pop__name { display: block; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--navy) !important; text-decoration: none; margin-top: 4px; }
.ca-pop__sum { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); margin: 4px 0 0 !important; }
.ca-pop__more { display: block; margin-top: 8px; font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; color: var(--gold-deep) !important; text-decoration: none; }
@media (max-width: 820px) {
  .ca-layout { grid-template-columns: 1fr; height: calc(100vh - var(--topbar) - 57px); }
  .ca-side { display: none; }
  .ca-mobilebar { display: flex; gap: 8px; padding: 12px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .ca-mobilebar { scrollbar-width: none; }
  .ca-mobilebar::-webkit-scrollbar { display: none; }
  .ca-mobilebar .chip { white-space: nowrap; }
}
.is-map-page .footer { margin-top: 0; }

/* ---------------------------------------------------------- 5. collections */
.co-feat { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--navy); color: #D8D3C7; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.co-feat__img { display: block; min-height: 320px; background-color: var(--navy-2); }
.co-feat__img picture, .co-feat__img img { width: 100%; height: 100%; object-fit: cover; }
.co-feat__body { padding: 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.co-feat__body .label { color: var(--gold-light); }
.co-feat__title { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.co-feat__title a { color: #fff; text-decoration: none; }
.co-feat__list { padding-left: 20px; margin: 8px 0 16px; }
.co-feat__list li { padding: 2px 0; }
.co-feat__list a { color: #fff; text-decoration-color: rgba(201,169,97,.6); }
.co-feat .btn { align-self: flex-start; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.co-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.co-card:hover { box-shadow: 0 8px 24px rgba(26,22,16,.08); color: inherit; }
.co-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background-color: var(--navy-2); }
.co-card__img picture, .co-card__img img { width: 100%; height: 100%; object-fit: cover; }
.co-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(14,26,51,.85)); }
.co-card__over { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.co-card__name { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.co-card__n { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--gold-light); }
.co-card__sum { padding: 12px 16px; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--text-2); }
.co-card.is-soon .co-card__img { filter: grayscale(.8); }
.co-card.is-soon .co-card__sum { color: var(--muted); }
@media (max-width: 960px) { .co-feat { grid-template-columns: 1fr; } .co-feat__img { min-height: 200px; } .co-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .co-grid { grid-template-columns: 1fr; } .co-feat__body { padding: 24px; } }

/* ---------------------------------------------------------- 6. glossaire */
.gl-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.gl-search { flex: 1 1 280px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 12px; background: #fff; }
.gl-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-az { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: var(--topbar); z-index: 10; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.gl-az a, .gl-az span { width: 28px; height: 28px; display: grid; place-items: center; font-size: var(--fs-s); font-weight: 600; border-radius: 6px; color: var(--navy); text-decoration: none; }
.gl-az a:hover { background: var(--navy); color: #fff; }
.gl-az .is-off { color: var(--line-2); pointer-events: none; }
.gl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gl-letter { grid-column: 1 / -1; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--gold-deep); padding: 16px 0 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.gl-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.gl-card__name { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.gl-card__name a { text-decoration: none; }
.gl-card__alt { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); margin-top: -4px; }
.gl-card__def { color: var(--text-2); }
.gl-card__foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gl-card__foot .chips { gap: 4px; }
.gl-card__foot > a { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--gold-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.gl-empty { grid-column: 1 / -1; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .gl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gl-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- carte (Leaflet) */
.map { height: min(70vh, 640px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream-2); margin: 16px 0; z-index: 0; }
.leaflet-container { font-family: var(--font) !important; font-size: var(--fs-s) !important; }
.leaflet-popup-content { font-size: var(--fs-s); line-height: var(--lh-s); }

/* ---------------------------------------------------------- compte */
.stack { display: grid; gap: 8px; max-width: 420px; }
.stack input { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.rights { padding-left: 20px; margin-bottom: 16px; }
.debug { white-space: pre-wrap; background: #fff4f2; padding: 12px; border-radius: var(--radius); font-size: var(--fs-s); }

/* ---------------------------------------------------------- pied de page */
.footer { background: var(--black); color: #B9B3A6; margin-top: 48px; padding: 40px 0 0; border-top: 1px solid rgba(201,169,97,.25); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, max-content); gap: 32px 107px; padding-bottom: 40px; }   /* même espace entre les trois colonnes de liens */
.footer__brand img { height: 50px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 400px; font-size: var(--fs-s); line-height: var(--lh-s); }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__col--2 { display: grid; grid-template-columns: max-content 1px max-content; gap: 8px 16px; align-content: start; }
.footer__col--2 .footer__title { grid-column: 1 / -1; grid-row: 1; }
.footer__col--2 a:nth-of-type(-n+3) { grid-column: 1; }
.footer__col--2 a:nth-of-type(n+4) { grid-column: 3; }
.footer__col--2 a:nth-of-type(1), .footer__col--2 a:nth-of-type(4) { grid-row: 2; }
.footer__col--2 a:nth-of-type(2), .footer__col--2 a:nth-of-type(5) { grid-row: 3; }
.footer__col--2 a:nth-of-type(3), .footer__col--2 a:nth-of-type(6) { grid-row: 4; }
.footer__col--2::after { content: ""; grid-column: 2; grid-row: 2 / 5; align-self: stretch; background: var(--gold); opacity: .6; }   /* filet doré entre les deux sous-colonnes */
.footer__title { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.footer a { color: #D8D3C7; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding-bottom: 32px; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201,169,97,.4); color: var(--gold); transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; text-align: center; font-size: var(--fs-s); line-height: var(--lh-s); color: #847E72; }
@media (max-width: 960px) { .footer__inner { grid-template-columns: repeat(3, max-content); column-gap: 85px; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .footer__col--2 { grid-column: 1 / -1; } }

/* ---------------------------------------------------------- impression */
@media print {
  .topbar, .footer, .article-side, .related, .paywall, .eco, .collection-nav, .notice, .progress { display: none !important; }
  body { background: #fff; }
  .atlas-head { background: none; color: #000; }
  .atlas-head__title, .atlas-head__subtitle, .atlas-head__meta { color: #000; }
  .atlas-head__img { display: none; }
  .article-grid { display: block; padding: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: var(--fs-s); color: #666; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Fiche d'entité : texte + relations */
.entity-layout { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(240px, 1fr); gap: 48px; }
.side-block { margin-bottom: 24px; }
.side-block__title { font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
@media (max-width: 860px) { .entity-layout { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .crumbs li:last-child { display: none; } }
.leaflet-control-zoom a { font-size: var(--fs-h2) !important; line-height: 30px !important; }
.leaflet-control-attribution { font-size: var(--fs-s) !important; }

/* Drapeaux de langue */
.lang a { display: inline-flex; align-items: center; padding: 4px; }
.lang .flag { width: 24px; height: 16px; border-radius: 3px; border: 1px solid rgba(255,255,255,.4); opacity: .5; transition: opacity .2s; }
.lang a.is-active .flag, .lang a:hover .flag { opacity: 1; }
.th-card__img.noimg, .co-card__img.noimg, .co-feat__img.noimg, .mini__img.noimg, .ca-pop__img.noimg { display: grid; place-items: center; }
.ca-check.is-empty .ca-check__name, .ca-check.is-empty .ca-check__n { color: var(--muted); opacity: .7; }

/* Contenu de démonstration : petit drapeau orange */
.demo-flag { display: inline-flex; vertical-align: middle; margin-left: 4px; color: #E0662F; line-height: 0; }
.demo-flag svg { width: 1em; height: 1em; min-width: 12px; min-height: 12px; }
.atlas-head__title .demo-flag, .co-feat__title .demo-flag, .co-card__name .demo-flag { color: #F08A4B; }

/* Photos insérées dans le texte (::photo N) */
.prose .photo { margin: 32px 0; }
.prose .photo img { width: 100%; height: auto; border-radius: var(--radius); }
.prose .photo--portrait { max-width: 480px; margin-left: auto; margin-right: auto; }
.prose .photo figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: space-between; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--muted); margin-top: 8px; text-align: left; }
.prose .photo__caption { color: var(--text-2); }
.prose .photo__credit { color: var(--muted); white-space: nowrap; }

/* Partage d'un article (fin de texte) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line, #E8E2D2); }
.share__label { margin-right: 4px; }
.share__btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #E8E2D2); background: #fff; color: var(--navy, #0E1A33); cursor: pointer; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.share__btn:hover, .share__btn:focus-visible { background: var(--navy, #0E1A33); color: var(--gold-light, #E0C688); border-color: var(--navy, #0E1A33); }
.share__done { font-size: var(--fs-s, .85rem); color: var(--muted); }
@media print { .share { display: none; } }

/* Fiche sans texte (thématiques) : liens sur une ligne au-dessus des articles */
.entity-related { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 32px; }
.entity-related .side-block { margin: 0; }
.entity-related + .section { padding-top: 32px; }

/* Protection du contenu : pas de sélection du texte ni des images (champs de saisie exceptés) */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
.protect-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 8px; background: var(--navy, #0E1A33); color: #fff; font-size: var(--fs-s, .9rem); box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; }
.protect-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media print { body { -webkit-user-select: auto; user-select: auto; } }
