/*
 * Parlons plusieurs langues — Carnet du polyglotte
 * CSS statique pur (pas de Tailwind) — voir CREATION-PARLONS.md Phase 1
 */

/* ===== Design tokens ===== */
:root {
  /* Palette — Carnet du polyglotte */
  --parchment: #F7F1E8;   /* Fond principal papier Moleskine ivoire */
  --cream: #FAF5EC;       /* Fond alternatif plus clair */
  --ink: #1B2845;         /* Texte principal — encre bleu nuit */
  --ink-light: #3D4F7F;   /* Liens, secondaire */
  --amber: #C67E2E;       /* Accent chaleureux — soulignes, CTAs */
  --amber-soft: #E8C88A;  /* Ambre pale — filets, hover */
  --sepia: #8A6F4D;       /* Meta, captions, kickers */

  /* Derives opacite — ink */
  --ink-80: rgba(27, 40, 69, 0.80);
  --ink-65: rgba(27, 40, 69, 0.65);
  --ink-40: rgba(27, 40, 69, 0.40);
  --ink-20: rgba(27, 40, 69, 0.20);
  --ink-10: rgba(27, 40, 69, 0.10);
  --ink-06: rgba(27, 40, 69, 0.06);

  /* Derives opacite — parchment */
  --parchment-95: rgba(247, 241, 232, 0.95);
  --parchment-75: rgba(247, 241, 232, 0.75);
  --parchment-40: rgba(247, 241, 232, 0.40);

  /* Ombres douces */
  --shadow-card: 0 2px 6px rgba(27, 40, 69, 0.08), 0 12px 28px rgba(27, 40, 69, 0.10);
  --shadow-lift: 0 6px 18px rgba(27, 40, 69, 0.12), 0 24px 44px rgba(27, 40, 69, 0.14);

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Polices */
  --font-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-accent: 'Caveat', 'Comic Sans MS', cursive;

  /* Mesures */
  --measure-prose: 70ch;
  --measure-hero: 62rem;
  --measure-container: 76rem;

  /* Transitions */
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 500ms;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-feature-settings: 'liga' on, 'kern' on;
  min-height: 100vh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-light);
  text-decoration: underline;
  text-decoration-color: var(--amber-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--easing), text-decoration-color 0.2s var(--easing);
}

a:hover, a:focus-visible {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Typographie ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.55rem); margin-top: 1.6em; }
h4 { font-size: 1.18rem; margin-top: 1.2em; }

p {
  margin: 0 0 1em;
  max-width: var(--measure-prose);
}

strong { color: var(--ink); font-weight: 700; }
em { font-style: italic; color: var(--ink-80); }

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 0.8em;
}

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--amber);
  font-weight: 500;
}

/* ===== Signature visuelle 5 : Lettrine Crimson drop-cap ===== */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.88;
  float: left;
  padding: 0.05em 0.1em 0 0;
  margin: 0.05em 0.04em 0 0;
  color: var(--amber);
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
}

/* ===== Signature 6 : Filet ambre scaleX sous H2 ===== */
.prose h2,
.article-body h2 {
  position: relative;
  padding-bottom: 0.4em;
}

.prose h2::after,
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0.4);
  transition: transform 0.6s var(--easing);
}

.prose h2:hover::after,
.article-body h2:hover::after,
.reveal.is-visible .prose h2::after,
.reveal.is-visible .article-body h2::after {
  transform: scaleX(1);
}

/* ===== Signature 3 : IPA tooltip pur CSS (abbr) ===== */
abbr.ipa,
abbr[title] {
  border-bottom: 1px dotted var(--amber);
  cursor: help;
  text-decoration: none;
  font-style: normal;
  color: var(--ink);
  position: relative;
}

abbr.ipa:hover,
abbr.ipa:focus-visible {
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 2px;
}

/* ===== Container ===== */
.container {
  width: min(100% - 2rem, var(--measure-container));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure-prose);
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment-95);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--ink-10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover { color: var(--amber); }

.site-logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  gap: 1.8rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-80);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--amber);
}

.nav-toggle {
  background: none;
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.7rem;
  color: var(--ink);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink-10);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 3.5rem 0 1.5rem;
  margin-top: 5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--amber-soft);
  text-decoration-color: var(--amber);
}

.site-footer a:hover { color: var(--amber); }

.site-footer h3 {
  color: var(--amber-soft);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }

.site-footer__bottom {
  border-top: 1px solid rgba(247, 241, 232, 0.12);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(247, 241, 232, 0.6);
}

.site-footer__signature {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--amber);
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 126, 46, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(61, 79, 127, 0.08) 0%, transparent 55%),
    var(--parchment);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
  .hero { padding: 5.5rem 0 6.5rem; }
}

.hero__title {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  line-height: 1.08;
  margin: 0.5rem 0 1.2rem;
}

.hero__title em {
  font-family: var(--font-accent);
  font-style: normal;
  color: var(--amber);
  font-weight: 500;
  font-size: 1.2em;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-80);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3/2;
  background: var(--amber-soft);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s var(--easing), box-shadow 0.2s var(--easing), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--parchment);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(200, 126, 46, 0.28);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--ink);
  color: var(--parchment);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ===== Card-Langue (signature 1 : fiches cartonnees) ===== */
.card-langue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1.4rem 1.6rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink-06);
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
  overflow: hidden;
}

.card-langue:hover,
.card-langue:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

/* Coin corne haut-droit */
.card-langue::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, var(--parchment) 0% 50%, var(--amber-soft) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
  box-shadow: -2px 2px 4px var(--ink-10);
}

.card-langue__flag {
  width: 48px;
  height: 32px;
  border-radius: 3px;
  box-shadow: 0 1px 3px var(--ink-20);
  flex-shrink: 0;
}

.card-langue__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.card-langue__names {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.card-langue__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.card-langue__vo {
  font-size: 0.85rem;
  color: var(--sepia);
  font-style: italic;
  letter-spacing: 0.04em;
}

.card-langue__family {
  font-size: 0.78rem;
  color: var(--sepia);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.card-langue__description {
  font-size: 0.95rem;
  color: var(--ink-80);
  line-height: 1.5;
  margin: 0;
}

.card-langue__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--ink-20);
}

.card-langue__cta {
  font-size: 0.9rem;
  color: var(--amber);
  font-weight: 600;
}

/* ===== Signature 9 : Badge CECRL ★★★☆☆ ===== */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.difficulty-badge__stars {
  color: var(--amber);
  letter-spacing: -0.08em;
  font-size: 1rem;
}

.difficulty-badge__stars .off {
  color: var(--ink-20);
}

.difficulty-badge__label {
  font-size: 0.76rem;
  color: var(--sepia);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--cream);
}

.section__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section__title {
  margin: 0.4rem 0 0.8rem;
}

.section__lead {
  color: var(--ink-80);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== Tables (data) ===== */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.95rem;
}

table.data th,
table.data td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ink-10);
}

table.data th {
  background: var(--ink);
  color: var(--parchment);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: var(--amber-soft);
}

/* ===== Lists ===== */
ul.checklist {
  list-style: none;
  padding: 0;
}

ul.checklist li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
}

ul.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 1.1em;
}

/* ===== Signature 8 : Pull quote multilingue ===== */
.pull-quote {
  border-left: 4px solid var(--amber);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-card);
}

.pull-quote__vo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.pull-quote__translation {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--sepia);
  margin: 0 0 0.4rem;
}

.pull-quote__cite {
  font-size: 0.85rem;
  color: var(--ink-65);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ===== Signature 7 : TOC sticky numerotee ===== */
.toc, .article-toc {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--ink-10);
  margin: 2rem 0;
  max-width: 48rem;
}

.toc__title, .article-toc__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sepia);
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.toc ol, .article-toc ol, .article-toc__list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.toc li, .article-toc li {
  counter-increment: toc-counter;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--ink-10);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.toc li::before, .article-toc li::before {
  content: counter(toc-counter, decimal-leading-zero) '.';
  color: var(--amber);
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  min-width: 1.8rem;
  font-size: 1.05rem;
}

.toc li:last-child, .article-toc li:last-child { border-bottom: none; }

.toc a, .article-toc a,
.toc a:link, .article-toc a:link,
.toc a:visited, .article-toc a:visited {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s;
}

.toc a:hover, .article-toc a:hover,
.toc a:focus, .article-toc a:focus {
  color: var(--amber);
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .toc--sticky {
    position: sticky;
    top: 5rem;
  }
}

/* ===== FAQ (accordion) ===== */
.faq {
  margin: 3rem 0;
}

.faq details {
  background: var(--cream);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow-card);
}

.faq summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--amber);
  font-size: 1.4rem;
  transition: transform 0.2s;
  margin-left: 1rem;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--ink-80);
}

/* ===== Callouts ===== */
.callout {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  color: var(--ink);
}

.callout__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--sepia);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--sepia);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--amber); }

.breadcrumb__sep {
  margin: 0 0.5rem;
  color: var(--ink-40);
}

/* ===== Signature 10 : Reveal fade-up IntersectionObserver ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Signature 2 : Onglets lateraux langues sticky ===== */
.langue-onglets {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 1100px) {
  .langue-onglets--sticky {
    position: sticky;
    top: 5rem;
  }
}

.langue-onglets li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-80);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.langue-onglets li a:hover,
.langue-onglets li a.is-active {
  background: var(--cream);
  color: var(--amber);
  border-left-color: var(--amber);
}

.langue-onglets__flag {
  width: 22px;
  height: 15px;
  flex-shrink: 0;
}

/* ===== Article body ===== */
.article-body {
  max-width: var(--measure-prose);
  margin: 0 auto;
}

.article-body img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 2rem auto;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sepia);
  font-style: italic;
  margin-top: 0.6rem;
}

.article-body blockquote {
  border-left: 4px solid var(--amber-soft);
  padding: 0.4rem 1rem;
  margin: 1.5rem 0;
  color: var(--ink-80);
  font-style: italic;
}

.article-body code {
  background: var(--cream);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--ink);
  border: 1px solid var(--ink-10);
}

/* ===== Article meta (date + reading time) ===== */
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--sepia);
  font-size: 0.88rem;
  margin: 0.8rem 0 2rem;
  flex-wrap: wrap;
}

.article-meta__sep {
  color: var(--ink-20);
}

/* ===== Glossaire multilingue ===== */
.glossary {
  margin: 2rem 0;
}

.glossary__search {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.05rem;
  border: 2px solid var(--ink-10);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.glossary__search:focus {
  outline: none;
  border-color: var(--amber);
}

.glossary__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.glossary__filter {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--ink-10);
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.glossary__filter:hover,
.glossary__filter.is-active {
  background: var(--amber);
  color: var(--parchment);
  border-color: var(--amber);
}

.glossary__list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.glossary__entry {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  border: 1px solid var(--ink-10);
}

.glossary__fr {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.glossary__langues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
  font-size: 0.92rem;
}

.glossary__langue {
  padding: 0.4rem 0.6rem;
  background: var(--parchment);
  border-radius: 3px;
}

.glossary__langue-name {
  font-weight: 600;
  color: var(--sepia);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.glossary__vo {
  color: var(--ink);
  font-weight: 500;
}

.glossary__ipa {
  color: var(--amber);
  font-size: 0.85em;
  font-style: italic;
  margin-left: 0.3rem;
}

.glossary__no-result {
  text-align: center;
  color: var(--sepia);
  font-style: italic;
  padding: 2rem;
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
