/* ==========================================================================
   Index du lexique (/lexique) — maquette du 09/11/2026
   (design/maquettes/2026-11-09-lexique-index/). Chargée par lexique.php seulement,
   de façon bloquante ; à chaque modification, monter le ?v= dans lexique.php et
   purger data/page-cache/lexique-index.html.

   Bloc isolé : classes « lexi- ». Les classes « lex- » qui restent sont celles que
   lit assets/js/lexique-search.js (.lex-card, .lex-card-title, .lex-card-desc,
   .lex-card-link, .lex-letter-group, .lex-alphabet) : ne pas les renommer.
   Sélecteurs préfixés par .lexi-corps / .lexi-hero : ils doivent passer devant
   .page-body p, .page-body h3, .page-body ul (0-1-1), qui gonflaient les cartes
   à 277 px de haut sur ordinateur et 301 px sur mobile (mesure au banc).

   Couleurs = tokens du site (bleu de la chaîne), les mêmes que les fiches
   (lexique-fiche.css, 17/10) : nuit #001830, cyan #36E4F0 sur fond sombre
   seulement, encre #005B7F pour tout texte d'accent sur fond clair (7,5:1 sur
   blanc), teinte #DDF6F9, filet #DCE7EF. Aucune couleur de catégorie : les
   pastels servaient de couleur de texte (1,8 à 2,6:1 sur blanc).
   ========================================================================== */

.lexi-hero,
.lexi-corps {
  --lexi-filet: #DCE7EF;
  --lexi-papier: #F5F9FB;
  --lexi-haut: .5rem;         /* écart entre le haut de l'écran et la barre collante */
  --lexi-barre: 3.3rem;       /* hauteur de la barre alphabétique collante */
}

/* Le site pose overflow-x:hidden sur html ET sur body : body devient alors un conteneur
   de défilement qui ne défile jamais, et aucun position:sticky n'accroche à l'écran
   (mesuré au banc le 09/11/2026 : l'en-tête du site, pourtant « sticky », défile avec
   la page). Sur cette page seulement, clip remplace hidden : même rognage horizontal,
   sans conteneur de défilement. Navigateur sans « clip » ou sans :has() : rien ne
   colle, exactement comme aujourd'hui. L'en-tête garde le comportement qu'il a partout
   ailleurs (il défile) : seule la barre alphabétique colle. */
body:has(.lexi-corps) { overflow-x: clip; }
body:has(.lexi-corps) .site-header { position: relative; }

/* ---------- En-tête : recherche, accès direct, repères ---------- */

.lexi-hero .lead { max-width: 46rem; }

.lexi-recherche {
  position: relative;
  display: flex;
  gap: .5rem;
  align-items: stretch;
  max-width: 40rem;
  margin: 1.5rem 0 0;
}
.lexi-recherche .lex-search { position: relative; flex: 1 1 auto; min-width: 0; }
.lexi-recherche__loupe {
  position: absolute; left: 1rem; top: 50%; z-index: 1;
  display: inline-flex; transform: translateY(-50%);
  color: var(--menthe-fonce); pointer-events: none;
}
.lexi-recherche__loupe .lexi-ico { width: 20px; height: 20px; }
.lexi-hero .lex-search input[type=search] {
  width: 100%; min-width: 0; height: 3.25rem;
  padding: 0 1rem 0 2.9rem;
  border: 2px solid transparent; border-radius: 12px;
  background: #fff; color: var(--noir);
  font: inherit; font-size: 1.0625rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.lexi-hero .lex-search input[type=search]::placeholder { color: #55626E; opacity: 1; }
.lexi-hero .lex-search input[type=search]:focus { border-color: var(--vert); }
/* Sur le bleu nuit, l'anneau global (#005B7F) mesure 2,3:1 : on le passe au cyan (11:1). */
.lexi-hero .lex-search input[type=search]:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; box-shadow: none; }
.lexi-recherche__bouton {
  flex: 0 0 auto; height: 3.25rem; padding: 0 1.3rem;
  border: 0; border-radius: 12px;
  background: var(--vert); color: var(--bleu-nuit);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.lexi-recherche__bouton:hover { background: var(--vert-hover); }
.lexi-recherche__bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Les suggestions passent devant l'accès direct et les repères. */
.lexi-hero .lex-suggest { z-index: 40; }

.lexi-acces { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 1.1rem 0 0; }
.lexi-hero .lexi-acces__titre { margin: 0; font-size: .9rem; color: rgba(236, 240, 244, .85); }
.lexi-acces ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.lexi-acces li { margin: 0; }
.lexi-hero .lexi-acces a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .9rem;
  border: 1px solid rgba(54, 228, 240, .5); border-radius: 999px;
  background: rgba(255, 255, 255, .05); color: #fff;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.lexi-hero .lexi-acces a:hover { background: rgba(54, 228, 240, .18); border-color: var(--vert); }
.lexi-hero .lexi-acces a:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }

.lexi-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin: 1.4rem 0 0; padding: 0; list-style: none;
  font-size: .875rem; color: rgba(236, 240, 244, .85);
}
.lexi-meta li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.lexi-meta .lexi-ico { flex: none; color: var(--vert); }
.lexi-hero .lexi-meta a { color: var(--vert); text-decoration: underline; text-underline-offset: 3px; }
.lexi-hero .lexi-meta a:hover { color: #fff; }

/* Mobile : la photo d'en-tête passe à côté des repères, au lieu de flotter seule
   en bas du bandeau (site : float à 38 %, 150 px, qui laissait un vide à gauche). */
@media (max-width: 900px) {
  .page-hero.lexi-hero .container:has(> .hero-media--side) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem;
  }
  .page-hero.lexi-hero .container > * { grid-column: 1 / -1; }
  .page-hero.lexi-hero .container > .lexi-meta { grid-column: 1; flex-direction: column; align-self: center; gap: .55rem; }
  .page-hero.lexi-hero .container > .hero-media--side {
    grid-column: 2; float: none; width: 6.5rem; max-width: none; margin: 1.2rem 0 0;
  }
  .lexi-recherche__bouton { padding: 0 1rem; }
}
/* Petit écran : le clavier du téléphone porte déjà la touche « Rechercher » du champ ;
   le bouton retirerait 110 px au champ, dont l'exemple serait coupé. Retiré (et non
   masqué visuellement : un bouton invisible mais focalisable piège le clavier). */
@media (max-width: 480px) {
  .lexi-recherche__bouton { display: none; }
}

/* ---------- Filtres par thème ---------- */

/* Le corps démarre plus près de l'en-tête : l'outil de tri suit la recherche. */
.page-body.lexi-corps { padding-top: 2.75rem; }
@media (max-width: 700px) { .page-body.lexi-corps { padding-top: 1.75rem; } }
.lexi-themes { margin: 0 0 1.25rem; }
.lexi-corps .lexi-themes__titre { margin: 0 0 .55rem; font-size: .875rem; font-weight: 600; color: var(--gris-700); }
.lexi-themes__liste { display: flex; flex-wrap: wrap; gap: .45rem; }
.lexi-corps .lexi-theme {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.5rem; padding: 0 .8rem;
  border: 1px solid var(--lexi-filet); border-radius: 999px;
  background: #fff; color: var(--bleu-nuit);
  font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lexi-corps .lexi-theme svg { width: 16px; height: 16px; flex: none; color: var(--menthe-fonce); }
.lexi-theme__n { font-weight: 500; color: var(--gris-700); }
.lexi-corps .lexi-theme:hover { border-color: var(--menthe-fonce); background: var(--vert-clair); }
.lexi-corps .lexi-theme:focus-visible { outline: 3px solid var(--menthe-fonce); outline-offset: 2px; }
.lexi-corps .lexi-theme.is-active { background: var(--bleu-nuit); border-color: var(--bleu-nuit); color: #fff; }
.lexi-corps .lexi-theme.is-active svg { color: var(--vert); }
.lexi-corps .lexi-theme.is-active .lexi-theme__n { color: rgba(255, 255, 255, .82); }
/* Mobile : une seule rangée qu'on fait défiler, au lieu de cinq lignes de pastilles. */
@media (max-width: 700px) {
  .lexi-themes__liste {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -1.25rem; padding: .1rem 1.25rem .35rem;
  }
  .lexi-themes__liste::-webkit-scrollbar { display: none; }
}

/* ---------- Barre alphabétique collante ---------- */

/* Le conteneur borne la barre : elle cesse de coller à la fin de la liste. */
.lexi-index { position: relative; scroll-margin-top: 1rem; }
.lexi-corps .lex-alphabet.lexi-barre {
  position: sticky; top: var(--lexi-haut); z-index: 30;
  display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 2px;
  margin: 0 0 1.75rem; padding: .35rem .45rem;
  background: #fff; border: 1px solid var(--lexi-filet); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 24, 48, .08);
}
.lexi-corps .lexi-barre a,
.lexi-corps .lexi-barre span {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 2.15rem; height: 2.4rem; border-radius: 8px;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; line-height: 1;
  text-decoration: none;
}
.lexi-corps .lexi-barre a { color: var(--bleu-nuit); }
.lexi-corps .lexi-barre a:hover { background: var(--vert-clair); color: var(--menthe-fonce); }
.lexi-corps .lexi-barre a:focus-visible { outline: 3px solid var(--menthe-fonce); outline-offset: -1px; }
/* Lettre sans terme : gris ardoise à 4,56:1 (l'audit du banc relevait 2,87:1 avec #8D9AA6),
   distinguée des lettres actives par la graisse. */
.lexi-corps .lexi-barre .is-disabled { color: #6B7785; font-weight: 400; }
.lexi-corps .lexi-barre a.is-muted { opacity: .35; }
/* Lettre du groupe en cours de lecture (posée par lexique-search.js). */
.lexi-corps .lexi-barre a.is-current { background: var(--bleu-nuit); color: #fff; }
@media (max-width: 899px) {
  .lexi-corps .lex-alphabet.lexi-barre {
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: -.35rem; border-radius: 10px;
  }
  .lexi-corps .lex-alphabet.lexi-barre::-webkit-scrollbar { display: none; }
  .lexi-corps .lexi-barre a,
  .lexi-corps .lexi-barre span { width: 2.6rem; height: 2.6rem; }
}

/* ---------- Groupes de lettres : lettrines ---------- */

.lexi-corps .lex-letter-group {
  margin: 0 0 2.25rem;
  scroll-margin-top: calc(var(--lexi-haut) + var(--lexi-barre) + 1rem);
}
.lexi-lettre { display: flex; align-items: center; gap: 1rem; margin: 0 0 .9rem; }
.lexi-lettre::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--lexi-filet); }
.lexi-corps .lex-letter-title {
  margin: 0; padding: 0; border: 0;
  font-family: var(--font-serif); font-size: 2.75rem; font-weight: 300; line-height: 1;
  color: var(--bleu-nuit);
}
@media (min-width: 900px) {
  .lexi-corps .lex-letter-group {
    display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0 1.25rem; align-items: start;
    margin-bottom: 2.75rem;
  }
  /* La lettrine reste à l'écran tant qu'on lit son groupe. */
  .lexi-lettre {
    position: sticky; top: calc(var(--lexi-haut) + var(--lexi-barre) + 1.25rem);
    flex-direction: column; align-items: flex-start; gap: .7rem; margin: 0;
  }
  .lexi-lettre::after { flex: none; width: 2.25rem; height: 3px; border-radius: 2px; background: var(--menthe-fonce); }
  .lexi-corps .lex-letter-title { font-size: 5.25rem; line-height: .82; }
}

/* ---------- Cartes : le sigle en vedette ---------- */

.lexi-corps .lex-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16.5rem, 100%), 1fr));
  gap: .75rem; margin: 0; padding: 0; list-style: none;
}
.lexi-corps .lex-card {
  margin: 0; overflow: visible;
  background: #fff; border: 1px solid var(--lexi-filet); border-radius: 12px;
  box-shadow: none; transform: none;
}
.lexi-corps .lex-card:hover { transform: none; box-shadow: none; border-color: var(--menthe-fonce); background: #F7FBFC; }
@media (prefers-reduced-motion: no-preference) {
  .lexi-corps .lex-card { transition: border-color .15s ease, background-color .15s ease; }
}
.lexi-corps .lex-card-link {
  display: flex; flex-direction: column; height: 100%;
  padding: .95rem 1.05rem 1rem; border-radius: 12px;
  color: inherit; text-decoration: none;
}
.lexi-corps .lex-card-link:focus-visible { outline: 3px solid var(--menthe-fonce); outline-offset: 2px; }
.lexi-carte__cat {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; line-height: 1.3;
  color: var(--gris-700);
}
.lexi-carte__cat::before {
  content: ""; flex: none; width: 14px; height: 14px;
  background-color: var(--menthe-fonce);
  -webkit-mask: var(--lexi-ico) center / contain no-repeat;
          mask: var(--lexi-ico) center / contain no-repeat;
}
/* Icônes Lucide (MIT), mêmes tracés que les filtres. */
.lexi-cat--dispositifs-financement { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2'/%3E%3Cpath d='M16 12h6v4h-6a2 2 0 0 1 0-4z'/%3E%3C/svg%3E"); }
.lexi-cat--certification-rncp { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E"); }
.lexi-cat--qualite-reglementation { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.lexi-cat--pedagogie-andragogie { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E"); }
.lexi-cat--metiers-accompagnement { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.lexi-cat--acteurs-plateformes-publiques { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h18M6 18v-7M10 18v-7M14 18v-7M18 18v-7M12 2l8 5H4z'/%3E%3C/svg%3E"); }
.lexi-cat--ia-competences-emergentes { --lexi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z'/%3E%3C/svg%3E"); }

.lexi-corps .lex-card-title {
  margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15;
  color: var(--bleu-nuit); letter-spacing: .005em;
}
.lexi-mot { display: block; }
.lexi-glose {
  display: block; margin-top: .25rem;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500; line-height: 1.35;
  letter-spacing: 0; color: var(--menthe-fonce);
}
/* Le tiret « — » reste lu par les lecteurs d'écran et par la recherche, pas affiché. */
.lexi-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lexi-corps .lex-card-desc {
  margin: .55rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--gris-700);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
@media (max-width: 600px) {
  .lexi-corps .lex-card-title { font-size: 1.2rem; }
  .lexi-corps .lex-card-desc { -webkit-line-clamp: 2; }
  .lexi-corps .lex-cards { gap: .6rem; }
}

/* ---------- À propos (encadré « En clair », introduction, photo) ---------- */

.lexi-apropos {
  display: grid; gap: 1.75rem;
  margin: 3.25rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--lexi-filet);
}
@media (min-width: 900px) {
  .lexi-apropos { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .lexi-apropos .lexi-figure { position: sticky; top: 1.5rem; }
}
.lexi-corps .lexi-apropos h2,
.lexi-corps .lex-faq-section h2 {
  margin: 0 0 1.1rem; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; line-height: 1.2;
  color: var(--bleu-nuit);
}
.lexi-apropos .en-clair { margin: 0 0 1.4rem; }
.lexi-corps .lexi-apropos .lex-intro {
  margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0;
  font-size: 1rem; line-height: 1.7; color: var(--gris-700);
}
.lexi-corps .lexi-apropos .lex-intro p { margin: 0 0 1rem; max-width: 42rem; }
.lexi-corps .lexi-apropos .lex-intro p:last-child { margin-bottom: 0; }

/* Photos du corps : figure.illustration du site, recadrée pour la page. */
.lexi-corps .lexi-figure { margin: 0; max-width: none; }
.lexi-corps .lexi-figure picture { display: block; }
.lexi-corps .lexi-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px;
}
.lexi-corps .lexi-figure figcaption {
  margin: .75rem 0 0; text-align: left; font-style: normal;
  font-size: .9rem; line-height: 1.5; color: var(--gris-700);
}

/* ---------- Questions fréquentes ---------- */

.lexi-corps .lex-faq-section { margin-top: 3.25rem; padding-top: 2.5rem; border-top: 1px solid var(--lexi-filet); }
.lexi-corps .lex-faq-list { max-width: 54rem; gap: .6rem; }
.lexi-corps .lex-faq-list details { border: 1px solid var(--lexi-filet); border-radius: 12px; background: #fff; }
/* Le filet ouvert était cyan sur blanc : il passe à l'encre (teal clair interdit sur fond clair). */
.lexi-corps .lex-faq-list details[open] { border-color: var(--menthe-fonce); box-shadow: none; }
.lexi-corps .lex-faq-list summary { padding: 1rem 3.2rem 1rem 1.15rem; color: var(--bleu-nuit); font-weight: 600; border-radius: 12px; }
.lexi-corps .lex-faq-list summary::after { color: var(--menthe-fonce); font-weight: 400; }
.lexi-corps .lex-faq-list summary:focus-visible { outline: 3px solid var(--menthe-fonce); outline-offset: 2px; }
.lexi-corps .lex-faq-list details p { color: var(--gris-700); line-height: 1.65; }
.lexi-corps .lex-faq-list details p a { color: var(--menthe-fonce); }

/* ---------- Méthode, sources, auteur ---------- */

.lexi-corps .lex-meta-info {
  margin-top: 2.75rem; padding: 1.6rem 1.75rem;
  background: var(--lexi-papier); border: 1px solid var(--lexi-filet); border-left: 4px solid var(--menthe-fonce);
  border-radius: 12px;
  scroll-margin-top: 1.5rem;
}
.lexi-corps .lex-meta-info h2 {
  margin: 0 0 .8rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.25;
  color: var(--bleu-nuit);
}
.lexi-corps .lex-meta-info p { margin: .55rem 0; max-width: 62rem; font-size: .95rem; line-height: 1.6; color: var(--noir); }
.lexi-corps .lex-meta-info a { color: var(--menthe-fonce); }

/* ---------- Pour aller plus loin (bandeau bleu nuit, photo) ---------- */

.lexi-corps .lex-cross-links.lexi-suite {
  display: grid; gap: 1.5rem;
  margin-top: 3rem; padding: 1.4rem; border-radius: 16px;
  background: var(--bleu-nuit); color: #fff;
}
@media (min-width: 900px) {
  .lexi-corps .lex-cross-links.lexi-suite { grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); align-items: center; gap: 2.25rem; padding: 2rem; }
}
.lexi-corps .lexi-suite .lexi-figure img { border-radius: 12px; }
.lexi-corps .lexi-suite .lexi-figure figcaption { color: rgba(236, 240, 244, .82); }
.lexi-corps .lexi-suite h2 { margin: 0 0 1.1rem; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: #fff; text-align: left; }
/* .page-body ul (0-1-1) décalait la grille de 24 px ; le <br> d'origine doublait le
   retour à la ligne des libellés, déjà en bloc (une ligne vide par lien). */
.lexi-corps .lexi-suite .lex-cross-grid { margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .7rem; }
.lexi-corps .lexi-suite .lex-cross-grid br { display: none; }
.lexi-corps .lexi-suite .lex-cross-grid a span { margin-top: .3rem; line-height: 1.45; }
.lexi-corps .lexi-suite .lex-cross-grid a:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }

/* ---------- Modes d'accessibilité (classes posées sur <html> par widgets.js) ---------- */

/* Sombre et contraste élevé retirent tous les fonds (widgets.css) : une barre collante
   transparente laisserait la liste défiler dessous, lettres mêlées aux cartes. */
html.a11y-dark body .lexi-corps .lexi-barre { background-color: #0a0f17 !important; }
html.a11y-contrast body .lexi-corps .lexi-barre { background-color: #000 !important; border-color: #fff !important; }
html.a11y-dark body .lexi-corps .lexi-barre .is-disabled { color: #7d8799 !important; }
/* L'icône de catégorie est peinte en fond de pseudo-élément : on la recolore. */
html.a11y-dark .lexi-carte__cat::before { background-color: #77f6ff; }
html.a11y-contrast .lexi-carte__cat::before { background-color: #fff; }
/* Lettre en cours : le fond est retiré par widgets.css, on le rend explicitement. */
html.a11y-dark body .lexi-corps .lexi-barre a.is-current { background-color: #36E4F0 !important; color: #06080d !important; }
html.a11y-contrast body .lexi-corps .lexi-barre a.is-current { background-color: #ffeb3b !important; color: #000 !important; }
/* Contraste élevé : le motif [class*="card"] de widgets.css encadrait aussi le lien, le
   titre et l'extrait de chaque carte (des boîtes dans la boîte) ; seule la carte garde
   son cadre. Idem pour la grille (« lex-cards »). */
html.a11y-contrast body .lexi-corps .lex-card :is(.lex-card-link, .lex-card-title, .lex-card-desc),
html.a11y-contrast body .lexi-corps .lex-cards { border: 0 !important; }

/* ---------- Impression ---------- */

@media print {
  .lexi-recherche, .lexi-acces, .lexi-themes, .lexi-barre, .lexi-figure { display: none !important; }
  .lexi-corps .lex-card-desc { -webkit-line-clamp: unset; display: block; }
  .lexi-lettre { position: static !important; }
}
