/* Lingualia — couleurs reprises du CD-ROM d'origine (fond #1B293A, rouge #BE3001) */
:root {
  --navy: #1b293a;
  --navy-2: #24384f;
  --blue: #3f63a6;
  --red: #be3001;
  --red-soft: #fbeee8;
  --ink: #1f2933;
  --ink-2: #4a5562;
  --muted: #6b7682;
  --line: #e2e6ea;
  --bg: #f6f7f9;
  --card: #ffffff;
  --radius: 10px;
  --font: "Arial Rounded MT Bold", "Nunito", "Varela Round", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- en-tête ---------- */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { flex: 0 0 auto; display: block; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.brand-mark img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; }
.brand-name:hover { color: #ffb59c; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: .78rem; color: #b8c4d3; }
.search { display: flex; background: #fff; border-radius: 999px; overflow: hidden; min-width: 0; }
.search input { border: 0; padding: 9px 4px 9px 16px; font: inherit; font-size: .95rem; width: 240px; min-width: 0; outline: none; background: transparent; }
.search button { border: 0; background: transparent; color: var(--navy); padding: 0 14px; cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(190, 48, 1, .45); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { color: #b8c4d3; text-decoration: none; padding: 5px 9px; border-radius: 6px; font-size: .85rem; border: 1px solid transparent; }
.lang-switch a[aria-current] { color: #fff; border-color: #5a6f88; }
.main-nav { background: var(--navy-2); }
.main-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a { color: #d6dee8; text-decoration: none; padding: 11px 14px; white-space: nowrap; font-size: .95rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current] { color: #fff; border-bottom-color: var(--red); }

/* ---------- accueil ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #2b4870 100%); color: #e8eef5; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: end; padding-top: 40px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.hero-lead { font-size: 1.25rem; color: #ffb59c; margin-top: 0; }
.hero-text { padding-bottom: 40px; }
.hero-text p { max-width: 62ch; }
.hero-img img { height: 300px; width: 100%; object-fit: cover; object-position: top; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 700; }
.btn:hover { background: #d63a06; color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid #8ea3bd; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; color: #b8c4d3; }
.stats strong { color: #fff; font-size: 1.5rem; margin-right: 4px; }
.section { padding: 44px 20px 10px; }

/* ---------- cartes de langues ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.lang-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lang-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27, 41, 58, .14); color: var(--ink); }
.lang-card-img { aspect-ratio: 359 / 130; background: #dfe5ec; overflow: hidden; }
.lang-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lang-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.lang-card-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.lang-card-family { font-size: .82rem; color: var(--muted); }
.badge-audio { color: var(--red); display: inline-flex; }
.group { margin-bottom: 34px; }
.group h2 { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.count { font-size: .8rem; background: var(--navy); color: #fff; border-radius: 999px; padding: 2px 9px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 26px; }
.segmented { display: inline-flex; background: #e6eaef; border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: transparent; font: inherit; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.segmented button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--ink-2); }
.check input { accent-color: var(--red); width: 17px; height: 17px; }
.only-audio .lang-card[data-audio="0"] { display: none; }
.only-audio .group:not(:has(.lang-card[data-audio="1"])) { display: none; }

/* ---------- pays ---------- */
.country-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.country-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--navy); font-weight: 700;
}
.country-list a:hover { border-color: var(--red); color: var(--red); }
.country-list span { font-weight: 400; font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 30px; }
.chips a { padding: 5px 12px; border-radius: 999px; background: #e6eaef; color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.chips a[aria-current] { background: var(--navy); color: #fff; }
.country-entries { display: grid; gap: 18px; }
.country-entry {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.country-entry h2 { margin: 0; color: var(--red); }
.entry-img img { border-radius: 8px; }
.entry-family { margin: 2px 0 10px; color: var(--muted); font-size: .9rem; }
.country-entry p { font-family: var(--text); font-size: 1.02rem; }
.more { font-family: var(--font); font-weight: 700; text-decoration: none; }

/* ---------- page langue ---------- */
.lang-hero { background: var(--navy); color: #dce4ee; }
.lang-hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 22px; }
.lang-hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 8px; }
.lang-hero a { color: #ffb59c; }
.eyebrow { font-size: .85rem; color: var(--muted); margin: 0; }
.lang-hero .eyebrow { color: #9fb0c4; }
.lang-hero .eyebrow a { color: #9fb0c4; }
.spoken-in { margin: 0; }
.lang-hero .spoken-in a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.lang-hero .spoken-in a:hover { text-decoration-color: #fff; }
.lang-banner { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); flex: 0 0 auto; max-width: 540px; width: 100%; height: auto; display: block; }
.lang-tabs { display: flex; gap: 4px; overflow-x: auto; }
.lang-tabs a {
  color: #c9d4e1; text-decoration: none; padding: 10px 16px; border-radius: 8px 8px 0 0; white-space: nowrap; font-size: .95rem;
}
.lang-tabs a:hover, .lang-tabs a.active { background: var(--bg); color: var(--navy); }
.lang-body { padding-top: 10px; padding-bottom: 40px; }
.lang-section { padding: 26px 0 10px; scroll-margin-top: 10px; border-bottom: 1px solid var(--line); }
.lang-section h2 { margin-top: 0; }
.num { color: var(--red); }
.presentation { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 10px; margin-bottom: 18px; }
.presentation .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin: 16px 0 2px; }
.presentation p { margin: 0 0 8px; font-family: var(--text); font-size: 1.05rem; }
.facts { display: grid; gap: 10px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fact > summary { cursor: pointer; padding: 13px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
.fact > summary::-webkit-details-marker { display: none; }
.fact > summary::after { content: "+"; color: var(--red); font-size: 1.2rem; line-height: 1; }
.fact[open] > summary::after { content: "−"; }
.fact-body { padding: 0 20px 8px; font-family: var(--text); font-size: 1.03rem; color: #26313c; }
.fact-body p, .description p { margin: 0 0 12px; max-width: 78ch; }
.fact-body strong, .description strong { font-family: var(--font); color: var(--navy); }
.description { font-family: var(--text); font-size: 1.05rem; white-space: pre-wrap; }
.description p { white-space: pre-wrap; }

.player {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4b75 100%); color: #fff; border-radius: 14px;
  padding: 18px 22px; margin-bottom: 22px; max-width: 760px;
}
.player-head { display: flex; align-items: center; gap: 10px; color: #ffb59c; margin-bottom: 10px; }
.player-head strong { color: #fff; font-size: 1.1rem; }
.player audio { width: 100%; }
.player-meta { margin: 10px 0 0; font-size: .82rem; color: #b8c4d3; }
.player-meta a { color: #ffb59c; }
.poem-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 16px; }
.poem-wrap.is-audio { border-left: 4px solid var(--red); }
.poem { white-space: pre-wrap; font-family: var(--text); font-size: 1.07rem; line-height: 1.65; }
.poem-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.poem-orig { padding-right: 20px; border-right: 1px solid var(--line); }
.poem-orig[dir=rtl] { padding-right: 0; padding-left: 20px; border-right: 0; border-left: 1px solid var(--line); font-size: 1.2rem; }
.poem-label { display: block; font-family: var(--font); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; white-space: normal; }
.poem-credits { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); font-style: italic; }
@media (max-width: 760px) { .poem-pair { grid-template-columns: 1fr; gap: 20px; } .poem-orig { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; } }
.poem-image { margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: inline-block; }
.poem-image figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.prev-next a {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 18px; font-weight: 700; color: var(--navy);
}
.prev-next a[rel=next] { text-align: right; }
.prev-next small { font-weight: 400; color: var(--muted); font-size: .78rem; }

/* ---------- pages de texte ---------- */
.page { padding-top: 30px; padding-bottom: 50px; }
.narrow { max-width: 820px; }
.narrow p, .article p { font-family: var(--text); font-size: 1.07rem; }
.with-aside { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 14px; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 8px; font-size: .92rem; }
.def { scroll-margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article p { max-width: 75ch; white-space: pre-wrap; }

.search-big { border: 1px solid var(--line); max-width: 600px; margin-bottom: 18px; }
.search-big input { width: 100%; padding: 12px 18px; font-size: 1.05rem; }
.search-big button { background: var(--navy); color: #fff; padding: 0 20px; font: inherit; }
.results { list-style: none; padding: 0; display: grid; gap: 10px; }
.results a { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); }
.results a:hover { border-color: var(--red); }
.results img { width: 150px; border-radius: 6px; flex: 0 0 auto; }
.results strong { display: block; color: var(--navy); font-size: 1.08rem; }
.results small { color: var(--ink-2); font-size: .9rem; }
mark { background: var(--red-soft); color: var(--red); padding: 0 2px; border-radius: 3px; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--navy); color: #9fb0c4; font-size: .85rem; margin-top: 40px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; }
.site-footer p { margin: 0; max-width: 90ch; }
.site-footer .footer-credit { margin-top: 8px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: #fff; }

/* ---------- petits écrans ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .search { order: 3; flex: 1 1 100%; }
  .search input { width: 100%; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .lang-hero-inner { flex-direction: column; align-items: flex-start; }
  .country-entry { grid-template-columns: 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .toc { position: static; }
  .results img { width: 90px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand-text small { display: none; }
  .prev-next { flex-direction: column; }
  .poem-wrap { padding: 16px; }
}
@media print {
  .site-header, .site-footer, .lang-tabs, .prev-next, .player { display: none; }
  .fact { border: 0; }
}
.is-rtl .poem { font-family: "Noto Sans Hebrew", "Noto Serif Hebrew", "Frank Ruehl CLM", "David CLM", "Taamey Frank CLM", var(--text); font-size: 1.2rem; line-height: 1.8; }

/* ---------- mises à jour sourcées ---------- */
.update-note { font-size: .85rem; color: var(--ink-2); background: #eef4ec; border: 1px solid #cfe2c9; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
sup.ref { font-family: var(--font); font-size: .7em; line-height: 0; }
sup.ref a { text-decoration: none; padding: 0 1px; }
sup.ref a:hover { text-decoration: underline; }
details.orig { margin: 6px 0 12px; border-left: 3px solid var(--line); padding-left: 14px; color: var(--ink-2); }
details.orig > summary { cursor: pointer; list-style: revert; font-family: var(--font); font-size: .85rem; color: var(--muted); padding: 4px 0; }
.small { font-size: .85rem; }
.sources { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 12px; }
.sources h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.sources ol { padding-left: 24px; margin: 0; font-size: .88rem; color: var(--ink-2); }
.sources li { margin-bottom: 6px; scroll-margin-top: 20px; }
.sources li:target { background: var(--red-soft); border-radius: 4px; }

/* ---------- définitions ---------- */
.def-list { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 900px; }
.def-list a { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.def-list a:hover { border-color: var(--red); }
.def-list strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.def-list small { color: var(--ink-2); font-family: var(--text); font-size: .95rem; }
.def-num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.def-figure { margin: 10px 0 24px; }
.def-figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.def-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- accueil : photos et rubriques ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.photo { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; grid-column: span 2; }
.photo-breton, .photo-ladin { grid-column: span 3; }
.photo img { width: 100%; height: 240px; object-fit: cover; }
.photo figcaption { padding: 10px 12px 12px; font-size: .9rem; color: var(--ink-2); }
.photo figcaption small { display: block; margin-top: 4px; font-size: .74rem; color: var(--muted); }
.photo figcaption small a { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 4px 18px 14px; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-2); font-family: var(--text); }
.two-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.home-defs { padding-left: 22px; }
.home-defs li { margin-bottom: 8px; }
@media (max-width: 860px) { .photo-grid { grid-template-columns: 1fr; } .photo, .photo-breton, .photo-ladin { grid-column: auto; } .two-cols { grid-template-columns: 1fr; } }

/* onglet 04 : dessin animé */
.video-frame { position: relative; display: block; max-width: 800px; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 4px; font-weight: 600; }
.video-meta { margin: 12px 0 4px; max-width: 800px; }

/* définition 6 : familles et groupes de langues */
.family-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: .85rem; }
.family { margin: 28px 0 0; }
.family h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--red); margin-bottom: 14px; }
.family-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.family-group { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.family-group h3 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.family-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chip { font-family: var(--font); display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-decoration: none; }
a.lang-chip.linked, .lang-chip.linked { background: var(--red-soft); border-color: transparent; color: var(--red); font-weight: 600; }
a.lang-chip.linked:hover { background: var(--red); color: #fff; }

/* poèmes : strophes alignées face à face */
.poem-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 1.1em; position: relative; }
.poem-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--line); }
.poem-grid .poem-label { margin-bottom: 0; }
.poem-cell { white-space: pre-wrap; font-family: var(--text); font-size: 1.07rem; line-height: 1.65; min-width: 0; overflow-wrap: anywhere; }
.poem-cell[dir=rtl] { font-family: "Noto Sans Hebrew", "Noto Serif Hebrew", "Frank Ruehl CLM", "David CLM", var(--text); font-size: 1.2rem; }
.poem-title { font-weight: 700; font-size: 1.12rem; }
.poem-signature { font-style: italic; color: var(--ink-2); }
@media (max-width: 760px) {
  .poem-grid { grid-template-columns: 1fr; row-gap: .5em; }
  .poem-grid::before { display: none; }
  .poem-grid > .poem-label:nth-child(2) { display: none; }
  .poem-grid > .poem-cell:nth-child(even) { color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--line); margin-bottom: .6em; }
  .poem-grid > .poem-cell:empty { display: none; }
}

/* bannière de langue et crédit photo */
.lang-banner-fig { margin: 0; flex: 0 1 540px; max-width: 540px; }
.banner-credit { font-size: .7rem; line-height: 1.35; color: rgba(255,255,255,.65); margin-top: 4px; }
.banner-credit a { color: inherit; }

/* description linguistique : tableaux, encadrés, intertitres */
.description .desc-h { font-family: var(--font); font-size: 1.05rem; color: var(--red); margin: 26px 0 8px; white-space: normal; }
.desc-table { margin: 18px 0 22px; white-space: normal; }
.desc-table-scroll { overflow-x: auto; max-width: 100%; }
.desc-table table { border-collapse: collapse; font-family: var(--font); font-size: .93rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-width: 50%; }
.desc-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy); padding: 0 0 6px; font-size: .9rem; }
.desc-table th, .desc-table td { padding: 7px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.desc-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .03em; }
.desc-table tbody th { font-weight: 600; color: var(--navy); background: var(--bg); }
.desc-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.desc-table tbody tr:last-child td, .desc-table tbody tr:last-child th { border-bottom: 0; }
.desc-table figcaption { font-size: .84rem; color: var(--ink-2); margin-top: 8px; max-width: 78ch; }
.desc-table figcaption span { display: block; margin-bottom: 3px; }
.desc-box { white-space: normal; background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 16px 0 20px; max-width: 78ch; font-family: var(--font); font-size: .93rem; }
.desc-box-title { font-weight: 700; color: var(--navy); margin: 0 0 6px !important; }
.desc-box ul { margin: 0; padding-left: 18px; }
.desc-box li { margin: 3px 0; }
.desc-sign { text-align: right; font-style: italic; max-width: 78ch; }
.description.has-blocks { white-space: normal; }

/* définitions : légendes d'illustration, article ajouté en HTML */
.def-figure figcaption small { display: block; margin-top: 4px; font-size: .78rem; }
.def-figure figcaption a { color: inherit; }
.def-figure .key { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--ink-2); }
.def-figure .key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); }
.article-html p { white-space: normal; }
.article-html h2 { margin-top: 1.6em; font-size: 1.3rem; }
.article-html .lead { font-size: 1.2rem; font-style: italic; color: var(--navy); margin-bottom: 0; }
.article-html .byline { font-family: var(--font); font-size: .9rem; color: var(--muted); }
.article-html .hl { color: var(--red); }
.article-html sup a { text-decoration: none; font-weight: 700; color: var(--red); padding: 0 1px; }
.article-html sup { scroll-margin-top: 20px; }
.article-html .notes { margin-top: 32px; }
.article-html .notes a { text-decoration: none; }

/* version chinoise : polices CJK (le navigateur choisit la première disponible) */
html:lang(zh-Hans) {
  --font: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --text: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
}
html:lang(zh-Hans) .lang-hero h1 { letter-spacing: .12em; }
