/* LEXIQUE V2 (02/10, Romain 12 h 40). The glossary /lexique/ as a magazine reference: plaster band (kicker, serif H1,
   chapeau, cover on the right, 4 thin figures), numbered contents, sticky search and A to Z, families as chapters (2 px
   rule, serif title), drawings in SVG with HTML legends, terms on 2 columns with a bronze « Sur le site » figure and the
   « Éditorial » links. Tokens = main.css. Scoped by .lx, prefix lx- (drawings: s-). No :has(), no backdrop-filter. */
.lx { --lx-col: 78rem; --lx-bas: clamp(3rem, 6vw, 5rem); --lx-outils: 0px; max-width: var(--lx-col); padding-bottom: var(--lx-bas); }
.lx .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Band ---------- */
.lx-tete { background: var(--platre-2); box-shadow: 0 0 0 100vmax var(--platre-2); clip-path: inset(0 -100vmax); padding-bottom: 1.2rem; }
.lx-tete .ariane { margin: 0; padding-top: 0.55rem; }
.lx-une { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 1.4rem 2.8rem; align-items: start; padding-top: 0.9rem; }
.lx-surtitre { margin: 0; font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--feutre); }
.lx-surtitre span { color: var(--bleu); }
.lx-une h1 { margin: 0.55rem 0 0; max-width: 18em; font: 400 clamp(2rem, 1.3rem + 2.6vw, 3.1rem)/1.03 var(--serif); letter-spacing: -0.028em; text-wrap: balance; }
.lx-chapeau { margin: 0.9rem 0 0; max-width: 40rem; font: 400 1.08rem/1.6 var(--serif); color: #3c3e43; }
.lx-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0; margin: 1.3rem 0 0; border-block: 1px solid var(--trait); }
.lx-chiffres div { display: flex; flex-direction: column-reverse; gap: 0.2rem; padding: 0.7rem 1.4rem 0.7rem 0; }
.lx-chiffres div + div { padding-left: 1.4rem; border-left: 1px solid var(--trait); }
.lx-chiffres dt { font: 500 0.7rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--feutre); }
.lx-chiffres dd { margin: 0; font: 300 2rem/1 var(--serif); letter-spacing: -0.02em; color: var(--anthracite); }
.lx-une__visuel { margin: 0; position: relative; }
.lx-une__visuel img, .lx-illus img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--platre); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.45); }
.lx-une__visuel figcaption, .lx-illus figcaption { margin-top: 0.4rem; font: 400 0.7rem/1.3 var(--sans); color: var(--feutre); }

/* Contents: numbered families */
.lx-sommaire { margin-top: 1.4rem; border-top: 1px solid var(--trait); }
.lx-sommaire ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.6rem; margin: 0; padding: 0; list-style: none; }
.lx-sommaire a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n nom" "n nb"; column-gap: 0.7rem; align-items: baseline; min-height: 44px; padding: 0.7rem 0; border-bottom: 1px solid var(--trait); color: var(--anthracite); text-decoration: none; }
.lx-sommaire b { grid-area: n; font: 300 1.5rem/1 var(--serif); color: var(--bleu); }
.lx-sommaire span { grid-area: nom; font: 600 0.92rem/1.25 var(--sans); }
.lx-sommaire i { grid-area: nb; font: normal 400 0.74rem/1.3 var(--sans); color: var(--feutre); }
.lx-sommaire a:hover span, .lx-sommaire a:focus-visible span { text-decoration: underline; text-decoration-color: var(--moutarde); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Sticky tools ---------- */
.lx-outils { position: sticky; top: var(--haut-entete, 64px); z-index: 25; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); background: var(--blanc); border-bottom: 1px solid var(--trait); }
.lx-outils__in { display: flex; align-items: center; gap: 1.2rem; padding: 0.55rem 0; }
.lx-cherche { position: relative; flex: 0 1 22rem; display: flex; align-items: center; }
.lx-cherche svg { position: absolute; left: 0.8rem; width: 18px; height: 18px; fill: none; stroke: var(--feutre); stroke-width: 1.8; pointer-events: none; }
.lx-cherche input { width: 100%; min-height: 44px; padding: 0 0.9rem 0 2.4rem; border: 1px solid var(--trait); border-radius: 4px; background: var(--platre); font: 400 0.92rem/1.2 var(--sans); color: var(--anthracite); }
.lx-cherche input:focus { outline: none; border-color: var(--anthracite); box-shadow: inset 0 -3px 0 var(--moutarde); background: var(--blanc); }
.lx-az { display: flex; flex: 1 1 auto; justify-content: space-between; gap: 0.1rem; min-width: 0; }
.lx-az a, .lx-az span { display: inline-grid; place-items: center; min-width: 26px; min-height: 44px; font: 600 0.82rem/1 var(--sans); }
.lx-az a { color: var(--anthracite); text-decoration: none; border-radius: 3px; }
.lx-az a:hover, .lx-az a:focus-visible { color: var(--bleu); box-shadow: inset 0 -2px 0 var(--moutarde); }
.lx-az a.est-actif { background: var(--anthracite); color: var(--blanc); box-shadow: none; }
.lx-az span { color: #b9b7b1; }
.lx-etat { margin: 0; font: 400 0.8rem/1.3 var(--sans); color: var(--feutre); }
.lx-etat:empty { display: none; }
.lx-etat { padding: 0 0 0.5rem; }
.lx-etat button, .lx-vide button { margin-left: 0.4rem; padding: 0; border: 0; border-bottom: 2px solid var(--moutarde); background: none; font: 600 0.8rem/1.3 var(--sans); color: var(--anthracite); cursor: pointer; }

/* ---------- Families ---------- */
.lx-famille, .lx-faq { padding-top: var(--lx-bas); scroll-margin-top: calc(var(--haut-entete, 64px) + 4rem); }
.lx-famille__tete { padding-top: 1rem; border-top: 2px solid var(--anthracite); }
.lx-n { display: flex; align-items: baseline; gap: 0.8rem; margin: 0; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--feutre); }
.lx-n b { font: 300 clamp(2.6rem, 1.8rem + 3vw, 4.2rem)/0.8 var(--serif); letter-spacing: -0.05em; color: var(--anthracite); text-transform: none; }
.lx-famille__tete h2 { margin: 0.7rem 0 0; font: 400 clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem)/1.06 var(--serif); letter-spacing: -0.025em; }
.lx-famille__intro { margin: 0.6rem 0 0; max-width: 44rem; font: 400 1.04rem/1.6 var(--serif); color: #3c3e43; }

/* Terms: 2 columns, thin rules */
.lx-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.6rem, 4vw, 3.6rem); margin: 1.6rem 0 0; }
.lx-terme { padding: 1.15rem 0 1.25rem; border-top: 1px solid var(--trait); scroll-margin-top: calc(var(--haut-entete, 64px) + 5rem); }
.lx-terme[hidden] { display: none; }
.lx-terme:target { background: var(--moutarde-voile); box-shadow: 0 0 0 0.8rem var(--moutarde-voile); }
.lx-terme dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.lx-terme dfn { font: 600 1.2rem/1.2 var(--serif); font-style: normal; letter-spacing: -0.01em; }
.lx-aussi { font: 400 0.76rem/1.3 var(--sans); color: var(--feutre); }
.lx-terme dd { margin: 0.4rem 0 0; }
.lx-def { margin: 0; font: 400 1rem/1.62 var(--serif); }
.lx-chiffre { margin: 0.6rem 0 0; padding-left: 0.7rem; border-left: 2px solid var(--moutarde); font: 500 0.84rem/1.45 var(--sans); color: var(--anthracite); }
.lx-chiffre span { display: block; font: 600 0.64rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bleu); }
.lx-liens { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin: 0.5rem 0 0; }
.lx-lien, .lx-voir { display: inline-flex; align-items: center; min-height: 36px; font: 600 0.82rem/1.25 var(--sans); color: var(--anthracite); text-decoration: underline; text-decoration-color: var(--moutarde); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lx-lien::after { content: "\2192"; margin-left: 0.35rem; color: var(--bleu); text-decoration: none; }
.lx-voir { font-weight: 500; text-decoration-color: var(--trait); }
.lx-lien:hover, .lx-voir:hover { color: var(--bleu); }
.lx-vide { margin: 2rem 0 0; font: 400 1rem/1.5 var(--serif); }

/* ---------- Drawings ---------- */
.lx-figures { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 1.6rem; }
.lx-fig { margin: 0; padding: clamp(1rem, 2.4vw, 1.6rem); background: var(--blanc); border: 1px solid var(--trait); border-radius: 4px; scroll-margin-top: calc(var(--haut-entete, 64px) + 5rem); }
.lx-fig:target { box-shadow: 0 0 0 3px var(--moutarde); }
.lx-fig__titre { margin: 0 0 0.9rem; font: 400 clamp(1.15rem, 1rem + 0.5vw, 1.4rem)/1.2 var(--serif); letter-spacing: -0.01em; }
.lx-fig__titre span { display: block; margin-bottom: 0.25rem; font: 600 0.66rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bleu); }
.lx-fig__panneaux { display: grid; gap: 1rem 1.4rem; }
.lx-fig--6 .lx-fig__panneaux { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lx-fig--3 .lx-fig__panneaux { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-fig--2 .lx-fig__panneaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-fig--large .lx-fig__panneaux { max-width: 46rem; }
.lx-panneau { min-width: 0; }
.lx-panneau svg, .lx-meca svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-panneau p { margin: 0.45rem 0 0; font: 500 0.82rem/1.35 var(--sans); text-align: center; color: var(--anthracite); }
.lx-fig--2 .lx-panneau p { text-align: left; font-weight: 400; }
.lx-panneau a, .lx-fig__cles a, .lx-meca__nom a { color: inherit; text-decoration: underline; text-decoration-color: var(--moutarde); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lx-fig__cles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.6rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: cle; }
.lx-fig__cles li { position: relative; padding-left: 2rem; font: 400 0.86rem/1.45 var(--sans); counter-increment: cle; }
.lx-fig__cles li::before { content: counter(cle); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--bleu); color: var(--blanc); font: 600 0.72rem/1 var(--sans); }
.lx-fig figcaption { margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid var(--trait); font: italic 400 0.92rem/1.5 var(--serif); color: #4a4c51; }
.lx-meca { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.6rem 1.4rem; align-items: start; padding: 0.9rem 0; border-top: 1px solid var(--trait); }
.lx-meca:first-of-type { border-top: 0; padding-top: 0; }
.lx-meca__nom { margin: 0.2rem 0 0; font: 400 1.25rem/1.2 var(--serif); }
.lx-meca__etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.lx-meca__etapes p { margin: 0.35rem 0 0; font: 400 0.8rem/1.35 var(--sans); }
.lx-meca__etapes b { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-right: 0.25rem; border-radius: 50%; background: var(--anthracite); color: var(--blanc); font: 600 0.66rem/1 var(--sans); }
.lx-illus { margin: 0; }
.lx-illus--carre { max-width: 34rem; }

/* SVG strokes and fills */
.lx svg .s-dos { fill: var(--platre-2); stroke: var(--anthracite); stroke-width: 1.4; }
.lx svg .s-cou { fill: var(--blanc); stroke: var(--anthracite); stroke-width: 1.4; }
.lx svg .s-accent { fill: var(--moutarde-voile); }
.lx svg .s-accent-f { fill: #c9a874; }
.lx svg .s-bois { fill: #d9c3a0; stroke: #7a6446; stroke-width: 1.2; }
.lx svg .s-hachure { fill: #e6d6bb; }
.lx svg .s-metal { fill: none; stroke: var(--anthracite); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.lx svg .s-sol { fill: none; stroke: var(--anthracite); stroke-width: 1; stroke-dasharray: 2 4; }
.lx svg .s-cote { fill: none; stroke: var(--bleu); stroke-width: 1.5; }
.lx svg .s-fleche { fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lx svg .s-ressort { fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linejoin: round; }
.lx svg .s-accent-trait { stroke: var(--moutarde); }
.lx svg .s-structure { fill: none; stroke: var(--anthracite); stroke-width: 2.4; stroke-linejoin: round; }
.lx svg .s-pointille { fill: none; stroke: var(--feutre); stroke-width: 1; stroke-dasharray: 3 4; }
.lx svg .s-pointille-r { fill: none; stroke: var(--bleu); stroke-width: 1.3; stroke-dasharray: 4 3; }
.lx svg .s-housse { fill: none; stroke: var(--anthracite); stroke-width: 2.6; }
.lx svg .s-mousse { fill: #f3e3a6; stroke: #b39a4c; stroke-width: 1; }
.lx svg .s-ouate { fill: none; stroke: #9a9890; stroke-width: 1.6; }
.lx svg .s-sangle { fill: #efe2c4; stroke: #a08a5c; stroke-width: 1; }
.lx svg .s-sangle--b { fill: #e4d2a8; }
.lx svg .s-vide { fill: var(--platre); stroke: none; }
.lx svg .s-poche { fill: var(--blanc); stroke: var(--feutre); stroke-width: 1; }
.lx svg .s-spire { fill: none; stroke: var(--bleu); stroke-width: 1.4; }
.lx svg .s-bouton { fill: var(--anthracite); }
.lx svg .s-fleur { fill: #c98f5a; stroke: #7d4f28; stroke-width: 1.2; }
.lx svg .s-croute { fill: #e8cfae; stroke: #9a7550; stroke-width: 1; }
.lx svg .s-fibre { fill: none; stroke: #b48d63; stroke-width: 1; opacity: 0.8; }
.lx svg .s-refente { fill: none; stroke: var(--bleu); stroke-width: 2; stroke-dasharray: 8 5; }
.lx svg .s-barre { fill: var(--platre-2); stroke: var(--anthracite); stroke-width: 1.2; }
.lx svg .s-barre--fort { fill: var(--moutarde-voile); }
.lx svg .s-puce circle { fill: var(--bleu); }
.lx svg .s-puce text { fill: var(--blanc); font: 600 13px/1 "Familjen Grotesk", sans-serif; }
.lx svg .s-val { fill: var(--anthracite); font: 600 17px/1 "Familjen Grotesk", sans-serif; }
.lx svg .s-lib { fill: var(--feutre); font: 500 14px/1 "Familjen Grotesk", sans-serif; }

/* ---------- FAQ and method ---------- */
.lx-question { border-bottom: 1px solid var(--trait); }
.lx-question:first-of-type { margin-top: 1.2rem; }
.lx-question summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 0.7rem 0; cursor: pointer; list-style: none; font: 600 1.06rem/1.35 var(--serif); }
.lx-question summary::-webkit-details-marker { display: none; }
.lx-question summary::after { content: "+"; flex: none; font: 300 1.6rem/1 var(--serif); color: var(--bleu); }
.lx-question[open] summary::after { content: "\2212"; }
.lx-question p { margin: 0 0 1.1rem; max-width: 46rem; font: 400 1rem/1.62 var(--serif); }
.lx-methode { margin-top: var(--lx-bas); padding: 1.2rem 0 0; border-top: 1px solid var(--trait); }
.lx-methode .lx-n b { font-size: 1.6rem; }
.lx-methode p:last-child { margin: 0.6rem 0 0; max-width: 46rem; font: 400 0.9rem/1.6 var(--sans); color: #4a4c51; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .lx-une { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.4rem 1.8rem; }
  .lx-fig--6 .lx-fig__panneaux { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-az a, .lx-az span { min-width: 22px; font-size: 0.78rem; }
}
@media (max-width: 860px) {
  .lx-une { grid-template-columns: minmax(0, 1fr); }
  .lx-une__visuel { order: -1; margin-top: 0.4rem; }
  .lx-sommaire ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-liste { grid-template-columns: minmax(0, 1fr); }
  .lx-outils__in { flex-wrap: wrap; gap: 0.3rem; padding: 0.5rem 0 0.2rem; }
  .lx-cherche { flex: 1 1 100%; }
  .lx-az { flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lx-az::-webkit-scrollbar { display: none; }
  .lx-az a, .lx-az span { flex: none; min-width: 32px; min-height: 40px; }
  .lx-meca { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}
/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .lx-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-chiffres div { padding: 0.6rem 0.8rem 0.6rem 0; }
  .lx-chiffres div + div { padding-left: 0; border-left: 0; }
  .lx-chiffres div:nth-child(even) { padding-left: 0.9rem; border-left: 1px solid var(--trait); }
  .lx-chiffres div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .lx-chiffres dd { font-size: 1.7rem; }
  .lx-sommaire ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .lx-sommaire a { grid-template-areas: "n" "nom" "nb"; grid-template-columns: minmax(0, 1fr); row-gap: 0.15rem; }
  .lx-sommaire b { font-size: 1.2rem; }
  .lx-sommaire span { font-size: 0.86rem; }
  .lx-fig--6 .lx-fig__panneaux, .lx-fig--3 .lx-fig__panneaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-fig--2 .lx-fig__panneaux, .lx-fig__cles { grid-template-columns: minmax(0, 1fr); }
  .lx-meca__etapes { gap: 0.6rem; }
  .lx-meca__etapes p { font-size: 0.72rem; }
  .lx-fig { padding: 0.9rem; }
  .lx-une h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) { .lx * { scroll-behavior: auto !important; } }
