/* Source Manuel : styles.css
 *//* Grimoire — Calculateur de gématrie arabe fréquentielle
 * Palette « encre & lapis » inspirée des manuscrits enluminés :
 * papier neutre, encre bleutée, lapis-lazuli en accent, filet d'or discret.
 * Interface française LTR ; contenu arabe en RTL, jamais de letter-spacing.
 */

/* ---------- Police arabe intégrée (v16) ----------
 * Noto Naskh Arabic — police variable, graisses 400 à 700, sous-ensemble
 * arabe, intégrée ci-dessous en Base64 (aucun fichier externe, aucun réseau).
 * Copyright 2022 The Noto Project Authors (github.com/notofonts/arabic).
 * Licence : SIL Open Font License, Version 1.1 (SIL OFL 1.1).
 * La police est exposée sous le nom interne unique "Grimoire Naskh". */
@font-face {
  font-family: "Grimoire Naskh";
  src: url("./fonts/manuel-arabe-2a10d33e1f7129ab.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
}

:where(.manuel-outils, .manuel-portail) {
  --papier: #f2f1ec;
  --carte: #fcfbf7;
  --creux: #e9e8e1;
  --encre: #20222b;
  --encre-2: #5b5f6e;
  --ligne: #d7d5cb;
  --lapis: #24418c;
  --lapis-fonce: #182f68;
  --lapis-teinte: #e8ecf8;
  --or: #8f6a1e;
  --danger: #a03227;
  --focus: #24418c;
  --correspondance: #8e2a3a;
  --correspondance-fond: #fae9e7;
  --correspondance-bordure: #c9707c;
  --premier: #7a5a14;
  --premier-fond: #f7efd9;
  --premier-bordure: #c9a860;
  --nombre-premier: #1a5fb4;
  --nombre-polygonal: #6d31a8;
  --nombre-premier-polygonal: #b81414;
  --nombre-un: #157a3c;
  --ombre: rgba(22, 24, 34, 0.16);
  --alphabet-largeur: min(288px, 92vw);
  --rayon: 12px;
  --pile-ui: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI",
    "Helvetica Neue", Arial, system-ui, sans-serif;
  --pile-titres: "Iowan Old Style", Baskerville, "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --pile-arabe: "Grimoire Naskh", serif;

  /* ---------- v16.1 : couche d'alias centralisée ----------
   * Relie les noms utilisés par les blocs récents (références gématriques,
   * correspondances numériques, tableau périodique) à la palette existante.
   * var() se résout à l'usage : les alias suivent automatiquement les
   * redéfinitions du thème sombre. */
  --accent: var(--lapis);
  --fond: var(--papier);
  --fond-carte: var(--carte);
  --fond-champ: var(--creux);
  --texte: var(--encre);
  --texte-doux: var(--encre-2);
  --texte-attenue: var(--encre-2);
  --bordure: var(--ligne);
  --dore: var(--or);
  --dore-fonce: var(--or);
  --couleur-avertissement: var(--or);
  --couleur-danger: var(--danger);
  --sur-lapis: var(--carte);
  --texte-sur-accent: var(--carte);
}

:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) {
  --papier: #15161c;
  --carte: #1d1f28;
  --creux: #23252f;
  --encre: #e8e7df;
  --encre-2: #a3a7b5;
  --ligne: #383b49;
  --lapis: #93aaea;
  --lapis-fonce: #b3c4f2;
  --lapis-teinte: #232a44;
  --or: #c9a35c;
  --danger: #e08a80;
  --focus: #93aaea;
  --correspondance: #f2a9b4;
  --correspondance-fond: #3b222b;
  --correspondance-bordure: #a05a68;
  --premier: #e6c77a;
  --premier-fond: #3a3222;
  --premier-bordure: #8a7340;
  --nombre-premier: #82b4ee;
  --nombre-polygonal: #b991ff;
  --nombre-premier-polygonal: #ff6666;
  --nombre-un: #69d39c;
  --ombre: rgba(0, 0, 0, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) {
    --papier: #15161c;
    --carte: #1d1f28;
    --creux: #23252f;
    --encre: #e8e7df;
    --encre-2: #a3a7b5;
    --ligne: #383b49;
    --lapis: #93aaea;
    --lapis-fonce: #b3c4f2;
    --lapis-teinte: #232a44;
    --or: #c9a35c;
    --danger: #e08a80;
    --focus: #93aaea;
    --correspondance: #f2a9b4;
    --correspondance-fond: #3b222b;
    --correspondance-bordure: #a05a68;
    --premier: #e6c77a;
    --premier-fond: #3a3222;
    --premier-bordure: #8a7340;
    --nombre-premier: #82b4ee;
    --nombre-polygonal: #b991ff;
    --nombre-premier-polygonal: #ff6666;
    --nombre-un: #69d39c;
    --ombre: rgba(0, 0, 0, 0.55);
  }
}

/* v16.6 : Mode Coran arabe */
:where(.manuel-outils, .manuel-portail) .entete-mode-verset,
.entete-mode-verset:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
:where(.manuel-outils, .manuel-portail) .entete-mode-verset h2,
.entete-mode-verset:where(.manuel-outils, .manuel-portail) h2 { margin: 0; }
:where(.manuel-outils, .manuel-portail) .ordre-calcul,
.ordre-calcul:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .ordre-calcul label,
.ordre-calcul:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .ordre-calcul select,
.ordre-calcul:where(.manuel-outils, .manuel-portail) select {
  width: 100%;
  max-width: 22rem;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
}
:where(.manuel-outils, .manuel-portail) .ordre-calcul .aide,
.ordre-calcul:where(.manuel-outils, .manuel-portail) .aide {
  grid-column: 1 / -1;
  margin: 0;
}
:where(.manuel-outils, .manuel-portail) .bouton-mode-verset[aria-pressed="true"],
.bouton-mode-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis);
  border-color: var(--lapis);
  color: #ffffff;
  font-weight: 700;
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .bouton-mode-verset[aria-pressed="true"],
:root[data-theme="sombre"] .bouton-mode-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .bouton-mode-verset[aria-pressed="true"],
:root:not([data-theme]) .bouton-mode-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
    color: #10121a;
  }
}
:where(.manuel-outils, .manuel-portail) .outils-verset,
.outils-verset:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .outil-verset-champ,
.outil-verset-champ:where(.manuel-outils, .manuel-portail) {
  display: grid;
  min-width: 0;
  gap: 6px;
}
:where(.manuel-outils, .manuel-portail) .outils-verset label,
.outils-verset:where(.manuel-outils, .manuel-portail) label { font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .outils-verset label .aide,
.outils-verset:where(.manuel-outils, .manuel-portail) label .aide { font-weight: 400; }
:where(.manuel-outils, .manuel-portail) .outils-verset input:not([type="checkbox"]),
.outils-verset:where(.manuel-outils, .manuel-portail) input:not([type="checkbox"]),
:where(.manuel-outils, .manuel-portail) .outils-verset select,
.outils-verset:where(.manuel-outils, .manuel-portail) select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
}
:where(.manuel-outils, .manuel-portail) .outil-verset-convention,
.outil-verset-convention:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .outil-verset-statut,
.outil-verset-statut:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .option-basmala,
.option-basmala:where(.manuel-outils, .manuel-portail) {
  grid-column: 1 / -1;
}
:where(.manuel-outils, .manuel-portail) .outil-verset-convention,
.outil-verset-convention:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .outil-verset-statut,
.outil-verset-statut:where(.manuel-outils, .manuel-portail) { margin: 0; }
:where(.manuel-outils, .manuel-portail) .option-basmala,
.option-basmala:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--or);
  border-radius: 8px;
  background: color-mix(in srgb, var(--or) 9%, transparent);
}
:where(.manuel-outils, .manuel-portail) .option-basmala input,
.option-basmala:where(.manuel-outils, .manuel-portail) input { width: auto; min-height: auto; }
:where(.manuel-outils, .manuel-portail) .modifier-verset,
.modifier-verset:where(.manuel-outils, .manuel-portail) { margin: 0 0 10px; }
:where(.manuel-outils, .manuel-portail) .bloc-verset,
.bloc-verset:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  border-top: 3px solid var(--systeme-accent, var(--lapis));
  overflow: hidden;
}
:where(.manuel-outils, .manuel-portail) .bloc-verset[data-sens="inverse"],
.bloc-verset[data-sens="inverse"]:where(.manuel-outils, .manuel-portail) { border-top-style: dashed; }
:where(.manuel-outils, .manuel-portail) .lecteur-verset-entete,
.lecteur-verset-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 18px;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-entete h2,
.lecteur-verset-entete:where(.manuel-outils, .manuel-portail) h2 { margin-bottom: 2px; }
:where(.manuel-outils, .manuel-portail) .lecteur-verset-reference,
.lecteur-verset-reference:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .comparaison-reference-verset,
.comparaison-reference-verset:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .entree-reference-verset,
.entree-reference-verset:where(.manuel-outils, .manuel-portail) {
  color: var(--or);
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-reference,
.lecteur-verset-reference:where(.manuel-outils, .manuel-portail) { margin: 0; }
:where(.manuel-outils, .manuel-portail) .lecteur-verset-rang-codex,
.lecteur-verset-rang-codex:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .lecteur-verset-rang-chronologique,
.lecteur-verset-rang-chronologique:where(.manuel-outils, .manuel-portail) {
  margin: 4px 0 0;
  color: var(--encre-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-comptage,
.lecteur-verset-comptage:where(.manuel-outils, .manuel-portail) {
  margin: 10px 0 0;
  color: var(--encre);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-comptage-aide,
.lecteur-verset-comptage-aide:where(.manuel-outils, .manuel-portail) {
  margin: 3px 0 0;
  color: var(--encre-2);
  font-size: 0.82rem;
}
:where(.manuel-outils, .manuel-portail) .lecteur-traduction,
.lecteur-traduction:where(.manuel-outils, .manuel-portail) {
  margin: 18px 0;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--lapis);
  border-radius: 0 10px 10px 0;
  background: var(--papier);
  color: var(--encre);
  text-align: start;
}
:where(.manuel-outils, .manuel-portail) .lecteur-traduction .lecteur-verset-libelle,
.lecteur-traduction:where(.manuel-outils, .manuel-portail) .lecteur-verset-libelle {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .lecteur-traduction-texte,
.lecteur-traduction-texte:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-canonique,
.lecteur-verset-canonique:where(.manuel-outils, .manuel-portail) {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-libelle,
.lecteur-verset-libelle:where(.manuel-outils, .manuel-portail) {
  display: block;
  margin: 0 0 5px;
  color: var(--encre-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-uthmani,
.lecteur-verset-uthmani:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.9;
  text-align: right;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-basmala,
.lecteur-verset-basmala:where(.manuel-outils, .manuel-portail) {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-statut,
.lecteur-verset-statut:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 18rem;
  min-height: 0;
  text-align: right;
}
:where(.manuel-outils, .manuel-portail) .lecteur-verset-texte,
.lecteur-verset-texte:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  min-height: 5.5rem;
  margin: 10px 0 14px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--papier);
  color: var(--encre);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 2.05;
  text-align: right;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .mot-verset,
.mot-verset:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0.04em 0.12em;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .mot-verset:hover,
.mot-verset:hover:where(.manuel-outils, .manuel-portail) {
  border-color: var(--systeme-accent, var(--lapis));
  background: color-mix(in srgb, var(--systeme-accent, var(--lapis)) 8%, transparent);
}
:where(.manuel-outils, .manuel-portail) .mot-verset[aria-pressed="true"],
.mot-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  border-color: var(--systeme-accent, var(--lapis));
  background: color-mix(in srgb, var(--systeme-accent, var(--lapis)) 18%, var(--carte));
  color: var(--systeme-accent, var(--lapis-fonce));
  box-shadow: 0 0 0 1px var(--systeme-accent, var(--lapis)) inset;
}
:where(.manuel-outils, .manuel-portail) .outils-selection,
.outils-selection:where(.manuel-outils, .manuel-portail) {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
}
:where(.manuel-outils, .manuel-portail) .outils-selection summary,
.outils-selection:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .mots-saisie,
.mots-saisie:where(.manuel-outils, .manuel-portail) {
  min-height: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}
:where(.manuel-outils, .manuel-portail) .portee-calcul,
.portee-calcul:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--lapis);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lapis) 10%, var(--carte));
}
:where(.manuel-outils, .manuel-portail) .portee-calcul p,
.portee-calcul:where(.manuel-outils, .manuel-portail) p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .portee-calcul [lang="ar"],
.portee-calcul:where(.manuel-outils, .manuel-portail) [lang="ar"] {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
  line-height: 1.9;
  white-space: pre-wrap;
}
:where(.manuel-outils, .manuel-portail) .portee-calcul .bouton,
.portee-calcul:where(.manuel-outils, .manuel-portail) .bouton { white-space: normal; }
:where(.manuel-outils, .manuel-portail) .option-nombres-verset,
.option-nombres-verset:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--or);
  border-radius: 10px;
  background: color-mix(in srgb, var(--or) 9%, var(--carte));
}
:where(.manuel-outils, .manuel-portail) .option-nombres-verset input,
.option-nombres-verset:where(.manuel-outils, .manuel-portail) input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--lapis);
}
:where(.manuel-outils, .manuel-portail) .option-nombres-verset label,
.option-nombres-verset:where(.manuel-outils, .manuel-portail) label { font-weight: 700; cursor: pointer; }
:where(.manuel-outils, .manuel-portail) .option-nombres-verset .aide,
.option-nombres-verset:where(.manuel-outils, .manuel-portail) .aide {
  flex-basis: 100%;
  margin-left: 30px;
}
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset,
.analyse-mot-verset:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--systeme-accent, var(--ligne));
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--systeme-accent, var(--lapis)) 6%, var(--carte));
}
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-resume,
.analyse-mot-verset-resume:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto auto;
  align-items: center;
  gap: 8px 14px;
}
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-resume h3,
.analyse-mot-verset-resume:where(.manuel-outils, .manuel-portail) h3 { margin: 0; }
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-texte,
.analyse-mot-verset-texte:where(.manuel-outils, .manuel-portail) {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--systeme-accent, var(--encre));
}
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-systeme,
.analyse-mot-verset-systeme:where(.manuel-outils, .manuel-portail) {
  color: var(--encre-2);
  font-size: 0.9rem;
}
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-total,
.analyse-mot-verset-total:where(.manuel-outils, .manuel-portail) {
  color: var(--systeme-accent, var(--lapis-fonce));
  font-size: 1.1rem;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .detail-lettres-verset,
.detail-lettres-verset:where(.manuel-outils, .manuel-portail) {
  margin-top: 8px;
  border-top: 1px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .detail-lettres-verset > summary,
.detail-lettres-verset:where(.manuel-outils, .manuel-portail) > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--encre-2);
  font-weight: 600;
}
:where(.manuel-outils, .manuel-portail) .detail-lettres-verset-contenu,
.detail-lettres-verset-contenu:where(.manuel-outils, .manuel-portail) { padding: 4px 0 6px; }
:where(.manuel-outils, .manuel-portail) .comparaison-reference-verset,
.comparaison-reference-verset:where(.manuel-outils, .manuel-portail) {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
  text-align: left;
}
:where(.manuel-outils, .manuel-portail) .comparaison-ordre,
.comparaison-ordre:where(.manuel-outils, .manuel-portail) {
  display: block;
  margin: 0 0 3px;
  color: var(--encre-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
}
:where(.manuel-outils, .manuel-portail) .comparaison-texte-verset .texte-arabe-ligne,
.comparaison-texte-verset:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 3.4em;
  overflow: hidden;
}
:where(.manuel-outils, .manuel-portail) .pastille-mode-verset,
.pastille-mode-verset:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pastille-ordre-arabe,
.pastille-ordre-arabe:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--or);
  border-radius: 999px;
  color: var(--or);
  font-size: 0.72rem;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .pastille-ordre-arabe,
.pastille-ordre-arabe:where(.manuel-outils, .manuel-portail) {
  border-color: var(--ligne);
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .entree-reference-verset,
.entree-reference-verset:where(.manuel-outils, .manuel-portail) { margin: 2px 0 4px; }

@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .entete-mode-verset,
.entete-mode-verset:where(.manuel-outils, .manuel-portail) { align-items: stretch; }
  :where(.manuel-outils, .manuel-portail) .entete-mode-verset .bouton-mode-verset,
.entete-mode-verset:where(.manuel-outils, .manuel-portail) .bouton-mode-verset { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .ordre-calcul,
.ordre-calcul:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .ordre-calcul select,
.ordre-calcul:where(.manuel-outils, .manuel-portail) select { width: 100%; max-width: none; }
  :where(.manuel-outils, .manuel-portail) .ordre-calcul .aide,
.ordre-calcul:where(.manuel-outils, .manuel-portail) .aide { grid-column: auto; }
  :where(.manuel-outils, .manuel-portail) .outils-verset,
.outils-verset:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .outils-verset label:not(:first-child),
.outils-verset:where(.manuel-outils, .manuel-portail) label:not(:first-child) { margin-top: 4px; }
  :where(.manuel-outils, .manuel-portail) .lecteur-verset-entete,
.lecteur-verset-entete:where(.manuel-outils, .manuel-portail) { display: block; }
  :where(.manuel-outils, .manuel-portail) .lecteur-verset-statut,
.lecteur-verset-statut:where(.manuel-outils, .manuel-portail) { text-align: left; margin-top: 6px; }
  :where(.manuel-outils, .manuel-portail) .lecteur-verset-texte,
.lecteur-verset-texte:where(.manuel-outils, .manuel-portail) {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 1.95;
    padding: 10px;
  }
  :where(.manuel-outils, .manuel-portail) .analyse-mot-verset-resume,
.analyse-mot-verset-resume:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  :where(.manuel-outils, .manuel-portail) .analyse-mot-verset-resume h3,
.analyse-mot-verset-resume:where(.manuel-outils, .manuel-portail) h3,
:where(.manuel-outils, .manuel-portail) .analyse-mot-verset-systeme,
.analyse-mot-verset-systeme:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }
  :where(.manuel-outils, .manuel-portail) .option-nombres-verset .aide,
.option-nombres-verset:where(.manuel-outils, .manuel-portail) .aide { margin-left: 0; }
}

@media (forced-colors: active) {
  :where(.manuel-outils, .manuel-portail) .mot-verset[aria-pressed="true"],
.mot-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bouton-mode-verset[aria-pressed="true"],
.bouton-mode-verset[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
}

/* ---------- Base ---------- */
:where(.manuel-outils, .manuel-portail) *,
*:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) *::before,
*:where(.manuel-outils, .manuel-portail)::before,
:where(.manuel-outils, .manuel-portail) *::after,
*:where(.manuel-outils, .manuel-portail)::after { box-sizing: border-box; }

/* L'attribut hidden doit toujours l'emporter, même sur les display
 * définis par classe (ex. .voile en display:flex). Sans cette règle,
 * la fenêtre de détail restait visible en permanence. */
:where(.manuel-outils, .manuel-portail) [hidden],
[hidden]:where(.manuel-outils, .manuel-portail) { display: none !important; }
:where(.manuel-outils, .manuel-portail) .voile[hidden],
.voile[hidden]:where(.manuel-outils, .manuel-portail) { display: none !important; }

:where(.manuel-outils, .manuel-portail) { height: 100%; }

:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  min-height: 100%;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--pile-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

:where(.manuel-outils, .manuel-portail) h1,
h1:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) h2,
h2:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) h3,
h3:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-titres);
  font-weight: 600;
  line-height: 1.25;
  color: var(--encre);
  margin: 0 0 0.5em;
}
:where(.manuel-outils, .manuel-portail) h1,
h1:where(.manuel-outils, .manuel-portail) { font-size: 1.7rem; }
:where(.manuel-outils, .manuel-portail) h2,
h2:where(.manuel-outils, .manuel-portail) { font-size: 1.25rem; }
:where(.manuel-outils, .manuel-portail) h3,
h3:where(.manuel-outils, .manuel-portail) { font-size: 1.02rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) p,
p:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.8em; }
:where(.manuel-outils, .manuel-portail) ul,
ul:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.8em; padding-left: 1.2em; }

:where(.manuel-outils, .manuel-portail) :focus-visible,
:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) :focus:not(:focus-visible),
:focus:not(:focus-visible):where(.manuel-outils, .manuel-portail) { outline: none; }

body.sans-defilement,
:where(.manuel-outils, .manuel-portail) .sans-defilement,
.sans-defilement:where(.manuel-outils, .manuel-portail) { overflow: hidden; }

/* ---------- Texte arabe : RTL, taille généreuse, aucun letter-spacing ---------- */
:where(.manuel-outils, .manuel-portail) [lang="ar"],
[lang="ar"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .texte-arabe,
.texte-arabe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .saisie-arabe,
.saisie-arabe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .arabe-detail,
.arabe-detail:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cellule-arabe,
.cellule-arabe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .chip-car,
.chip-car:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-arabe);
  font-synthesis: none;
  letter-spacing: 0 !important;
  direction: rtl;
  unicode-bidi: isolate;
}

:where(.manuel-outils, .manuel-portail) .texte-arabe,
.texte-arabe:where(.manuel-outils, .manuel-portail) {
  font-size: clamp(28px, 5vw, 36px);
  line-height: 2;
  overflow-wrap: anywhere;
  margin: 0;
}
:where(.manuel-outils, .manuel-portail) .texte-vide,
.texte-vide:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-ui);
  direction: ltr;
  font-size: 1rem;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .arabe-detail,
.arabe-detail:where(.manuel-outils, .manuel-portail) {
  font-size: clamp(36px, 6vw, 44px);
  line-height: 2;
  font-weight: 600;
}
:where(.manuel-outils, .manuel-portail) .cellule-arabe,
.cellule-arabe:where(.manuel-outils, .manuel-portail) { font-size: 30px; line-height: 1.9; }
:where(.manuel-outils, .manuel-portail) .chip-car,
.chip-car:where(.manuel-outils, .manuel-portail) { font-size: 22px; line-height: 1.8; }

/* ---------- Coque : en-tête, navigation, pied ---------- */
:where(.manuel-outils, .manuel-portail) .lien-evitement,
.lien-evitement:where(.manuel-outils, .manuel-portail) {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lapis);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
:where(.manuel-outils, .manuel-portail) .lien-evitement:focus,
.lien-evitement:focus:where(.manuel-outils, .manuel-portail) { left: 0; }

:where(.manuel-outils, .manuel-portail) .entete,
.entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--ligne);
  background: var(--carte);
}

:where(.manuel-outils, .manuel-portail) .marque,
.marque:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; }
:where(.manuel-outils, .manuel-portail) .marque-titre,
.marque-titre:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-titres);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--encre);
}
:where(.manuel-outils, .manuel-portail) .marque-titre::after,
.marque-titre:where(.manuel-outils, .manuel-portail)::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 3px;
  background: var(--or);
}
:where(.manuel-outils, .manuel-portail) .navigation,
.navigation:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.manuel-outils, .manuel-portail) .navigation .lien-navigation,
.navigation:where(.manuel-outils, .manuel-portail) .lien-navigation {
  display: inline-block;
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 999px;
  color: var(--encre);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
:where(.manuel-outils, .manuel-portail) .navigation .lien-navigation:hover,
.navigation:where(.manuel-outils, .manuel-portail) .lien-navigation:hover { border-color: var(--ligne); background: var(--creux); }
:where(.manuel-outils, .manuel-portail) .navigation .lien-navigation[aria-current="page"],
.navigation:where(.manuel-outils, .manuel-portail) .lien-navigation[aria-current="page"] {
  background: var(--lapis-teinte);
  color: var(--lapis-fonce);
  border-color: var(--lapis);
  font-weight: 600;
}

:where(.manuel-outils, .manuel-portail) .vue,
.vue:where(.manuel-outils, .manuel-portail) {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px clamp(12px, 4vw, 32px) 40px;
}
:where(.manuel-outils, .manuel-portail) .vue:focus,
.vue:focus:where(.manuel-outils, .manuel-portail) { outline: none; }

:where(.manuel-outils, .manuel-portail) .pied,
.pied:where(.manuel-outils, .manuel-portail) {
  border-top: 1px solid var(--ligne);
  padding: 14px clamp(14px, 4vw, 32px);
  color: var(--encre-2);
  font-size: 0.85rem;
  text-align: center;
}
:where(.manuel-outils, .manuel-portail) .pied p,
.pied:where(.manuel-outils, .manuel-portail) p { margin: 0; }

:where(.manuel-outils, .manuel-portail) .sans-js,
.sans-js:where(.manuel-outils, .manuel-portail) {
  max-width: 720px;
  margin: 24px auto;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: var(--rayon);
  color: var(--danger);
}

/* ---------- Blocs ---------- */
:where(.manuel-outils, .manuel-portail) .bloc,
.bloc:where(.manuel-outils, .manuel-portail) {
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  margin: 18px 0;
}

:where(.manuel-outils, .manuel-portail) .aide,
.aide:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .etiquette,
.etiquette:where(.manuel-outils, .manuel-portail) { display: block; font-weight: 600; margin-bottom: 6px; }

/* ---------- Saisie ---------- */
:where(.manuel-outils, .manuel-portail) .saisie-arabe,
.saisie-arabe:where(.manuel-outils, .manuel-portail) {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  font-size: 32px;
  line-height: 2;
  padding: 14px 18px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--papier);
  color: var(--encre);
  resize: vertical;
}
:where(.manuel-outils, .manuel-portail) .saisie-arabe::placeholder,
.saisie-arabe:where(.manuel-outils, .manuel-portail)::placeholder { color: var(--encre-2); opacity: 0.7; }
:where(.manuel-outils, .manuel-portail) .saisie-arabe:focus-visible,
.saisie-arabe:focus-visible:where(.manuel-outils, .manuel-portail) { outline-offset: 0; }

:where(.manuel-outils, .manuel-portail) .barre-actions,
.barre-actions:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

:where(.manuel-outils, .manuel-portail) .bouton,
.bouton:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-ui);
  font-size: 0.95rem;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ligne);
  background: var(--carte);
  color: var(--encre);
  cursor: pointer;
}

:where(.manuel-outils, .manuel-portail) .bouton:hover,
.bouton:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bouton:focus,
.bouton:focus:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .bouton:hover:not(:disabled),
.bouton:hover:not(:disabled):where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); color: var(--lapis-fonce); }
:where(.manuel-outils, .manuel-portail) .bouton:disabled,
.bouton:disabled:where(.manuel-outils, .manuel-portail) { opacity: 0.5; cursor: not-allowed; }
:where(.manuel-outils, .manuel-portail) .bouton-principal,
.bouton-principal:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis);
  border-color: var(--lapis);
  color: #ffffff;
  font-weight: 600;
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .bouton-principal,
:root[data-theme="sombre"] .bouton-principal:where(.manuel-outils, .manuel-portail) { color: #10121a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .bouton-principal,
:root:not([data-theme]) .bouton-principal:where(.manuel-outils, .manuel-portail) { color: #10121a; }
}
:where(.manuel-outils, .manuel-portail) .bouton-principal:hover:not(:disabled),
.bouton-principal:hover:not(:disabled):where(.manuel-outils, .manuel-portail) { filter: brightness(1.08); color: inherit; }
:where(.manuel-outils, .manuel-portail) .bouton-danger,
.bouton-danger:where(.manuel-outils, .manuel-portail) { border-color: var(--danger); color: var(--danger); background: transparent; }
:where(.manuel-outils, .manuel-portail) .bouton-danger:hover:not(:disabled),
.bouton-danger:hover:not(:disabled):where(.manuel-outils, .manuel-portail) { background: var(--danger); color: var(--carte); border-color: var(--danger); }
:where(.manuel-outils, .manuel-portail) .bouton-fermer,
.bouton-fermer:where(.manuel-outils, .manuel-portail) { min-height: 40px; }

:where(.manuel-outils, .manuel-portail) .statut,
.statut:where(.manuel-outils, .manuel-portail) { min-height: 1.5em; font-size: 0.92rem; color: var(--lapis-fonce); margin: 6px 0 0; }

:where(.manuel-outils, .manuel-portail) .copie-manuelle,
.copie-manuelle:where(.manuel-outils, .manuel-portail) { margin-top: 10px; }
:where(.manuel-outils, .manuel-portail) .copie-manuelle label,
.copie-manuelle:where(.manuel-outils, .manuel-portail) label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .copie-manuelle textarea,
.copie-manuelle:where(.manuel-outils, .manuel-portail) textarea {
  width: 100%;
  font-family: var(--pile-ui);
  font-size: 0.9rem;
  padding: 10px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--papier);
  color: var(--encre);
}

/* ---------- Analyse ---------- */
:where(.manuel-outils, .manuel-portail) .grille-textes,
.grille-textes:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}
:where(.manuel-outils, .manuel-portail) .panneau-texte,
.panneau-texte:where(.manuel-outils, .manuel-portail) {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 12px 16px;
}
:where(.manuel-outils, .manuel-portail) .compteurs,
.compteurs:where(.manuel-outils, .manuel-portail) { font-size: 1rem; }
:where(.manuel-outils, .manuel-portail) .compteurs strong,
.compteurs:where(.manuel-outils, .manuel-portail) strong { font-variant-numeric: tabular-nums lining-nums; }
:where(.manuel-outils, .manuel-portail) .compteurs-saisie,
.compteurs-saisie:where(.manuel-outils, .manuel-portail) {
  margin: 10px 0 3px;
  color: var(--encre);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .compteurs-saisie-aide,
.compteurs-saisie-aide:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 14px;
  color: var(--encre-2);
  font-size: 0.82rem;
}

:where(.manuel-outils, .manuel-portail) .chips,
.chips:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 10px;
}
:where(.manuel-outils, .manuel-portail) .chips li,
.chips:where(.manuel-outils, .manuel-portail) li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ligne);
  background: var(--papier);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.9rem;
}
:where(.manuel-outils, .manuel-portail) .chip-nom,
.chip-nom:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .panneau-regles,
.panneau-regles:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .panneau-reference,
.panneau-reference:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .entree-totaux,
.entree-totaux:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--papier);
  padding: 10px 14px;
  margin-top: 12px;
}
:where(.manuel-outils, .manuel-portail) .panneau-regles summary,
.panneau-regles:where(.manuel-outils, .manuel-portail) summary,
:where(.manuel-outils, .manuel-portail) .panneau-reference summary,
.panneau-reference:where(.manuel-outils, .manuel-portail) summary,
:where(.manuel-outils, .manuel-portail) .entree-totaux summary,
.entree-totaux:where(.manuel-outils, .manuel-portail) summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
:where(.manuel-outils, .manuel-portail) .liste-regles,
.liste-regles:where(.manuel-outils, .manuel-portail) { margin: 10px 0 4px; }
:where(.manuel-outils, .manuel-portail) .liste-regles li,
.liste-regles:where(.manuel-outils, .manuel-portail) li { margin-bottom: 6px; }

/* ---------- Grille des systèmes ---------- */
:where(.manuel-outils, .manuel-portail) .grille-couples,
.grille-couples:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
:where(.manuel-outils, .manuel-portail) .grille-couples > .couple,
.grille-couples:where(.manuel-outils, .manuel-portail) > .couple { grid-column: span 2; min-width: 0; }
:where(.manuel-outils, .manuel-portail) .grille-couples > .couple-solo,
.grille-couples:where(.manuel-outils, .manuel-portail) > .couple-solo { grid-column: span 1; }
@media (min-width: 640px) {
  :where(.manuel-outils, .manuel-portail) .grille-couples,
.grille-couples:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
:where(.manuel-outils, .manuel-portail) .couple.couple-solo,
.couple.couple-solo:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
:where(.manuel-outils, .manuel-portail) .couple,
.couple:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  overflow: hidden;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .carte,
.carte:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  min-height: 66px;
  background: var(--carte);
  text-align: left;
  font-family: var(--pile-ui);
  color: var(--encre);
}
:where(.manuel-outils, .manuel-portail) .carte + .carte,
.carte:where(.manuel-outils, .manuel-portail) + .carte { border-left: 1px dashed var(--ligne); }
:where(.manuel-outils, .manuel-portail) .profils-nombre-resume,
.profils-nombre-resume:where(.manuel-outils, .manuel-portail) { display: grid; gap: .18rem; margin-top: .35rem; color: var(--encre); }
:where(.manuel-outils, .manuel-portail) .profils-nombre-resume[hidden],
.profils-nombre-resume[hidden]:where(.manuel-outils, .manuel-portail) { display: none; }
:where(.manuel-outils, .manuel-portail) .profil-nombre-ligne,
.profil-nombre-ligne:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: .2rem; min-width: 0; line-height: 1.4; white-space: nowrap; }
:where(.manuel-outils, .manuel-portail) .profil-nombre-repere,
.profil-nombre-repere:where(.manuel-outils, .manuel-portail) { width: 3.1em; flex-shrink: 0; color: var(--encre-2); font-size: .68rem; font-weight: 500; }
:where(.manuel-outils, .manuel-portail) .profil-nombre-symbole,
.profil-nombre-symbole:where(.manuel-outils, .manuel-portail) { font-size: 1rem; }
:where(.manuel-outils, .manuel-portail) .profil-nombre-lettre,
.profil-nombre-lettre:where(.manuel-outils, .manuel-portail) { min-width: 1em; font-family: var(--pile-arabe); font-size: 1.2rem; text-align: center; }
:where(.manuel-outils, .manuel-portail) .profil-nombre-versets,
.profil-nombre-versets:where(.manuel-outils, .manuel-portail) { margin-top: .15rem; color: var(--encre-2); font-size: .66rem; font-weight: 500; line-height: 1.35; }
:where(.manuel-outils, .manuel-portail) .carte:hover,
.carte:hover:where(.manuel-outils, .manuel-portail) { background: var(--lapis-teinte); }
:where(.manuel-outils, .manuel-portail) .carte-inverse,
.carte-inverse:where(.manuel-outils, .manuel-portail) { background: var(--papier); }
:where(.manuel-outils, .manuel-portail) .carte-detail,
.carte-detail:where(.manuel-outils, .manuel-portail) {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .carte-detail:hover .carte-nom,
.carte-detail:hover:where(.manuel-outils, .manuel-portail) .carte-nom,
:where(.manuel-outils, .manuel-portail) .carte-detail:focus-visible .carte-nom,
.carte-detail:focus-visible:where(.manuel-outils, .manuel-portail) .carte-nom {
  color: var(--lapis-fonce);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
:where(.manuel-outils, .manuel-portail) .carte-nom,
.carte-nom:where(.manuel-outils, .manuel-portail) { font-size: 0.84rem; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .carte-total,
.carte-total:where(.manuel-outils, .manuel-portail) {
  background: none;
  border: 0;
  margin: 0;
  padding: 0 2px;
  cursor: pointer;
  text-align: left;
  color: var(--encre);
  font-family: var(--pile-ui);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  border-radius: 6px;
}
:where(.manuel-outils, .manuel-portail) .carte-total:hover,
.carte-total:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .carte-total:focus-visible,
.carte-total:focus-visible:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  background: var(--lapis-teinte);
}
:where(.manuel-outils, .manuel-portail) .info,
.info:where(.manuel-outils, .manuel-portail) { color: var(--lapis); cursor: help; }

/* ---------- Détail (voile + panneau) ---------- */
:where(.manuel-outils, .manuel-portail) .voile,
.voile:where(.manuel-outils, .manuel-portail) {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 50;
}
:where(.manuel-outils, .manuel-portail) .detail,
.detail:where(.manuel-outils, .manuel-portail) {
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: clamp(14px, 3vw, 24px);
}
:where(.manuel-outils, .manuel-portail) .detail-entete,
.detail-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
:where(.manuel-outils, .manuel-portail) .detail-entete h2,
.detail-entete:where(.manuel-outils, .manuel-portail) h2 { margin: 4px 0 0; }
:where(.manuel-outils, .manuel-portail) .detail-description,
.detail-description:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.95rem; }
:where(.manuel-outils, .manuel-portail) .detail-note,
.detail-note:where(.manuel-outils, .manuel-portail) {
  font-size: 0.88rem;
  color: var(--or);
  border-left: 3px solid var(--or);
  padding-left: 10px;
}
:where(.manuel-outils, .manuel-portail) .detail-vide,
.detail-vide:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .detail-mot,
.detail-mot:where(.manuel-outils, .manuel-portail) {
  border-top: 1px solid var(--ligne);
  padding-top: 12px;
  margin-top: 12px;
}
:where(.manuel-outils, .manuel-portail) .detail-mot-titre,
.detail-mot-titre:where(.manuel-outils, .manuel-portail) { margin-bottom: 8px; }
:where(.manuel-outils, .manuel-portail) .detail-equation,
.detail-equation:where(.manuel-outils, .manuel-portail) {
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.02rem;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
}
:where(.manuel-outils, .manuel-portail) .detail-sous-total,
.detail-sous-total:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .detail-total,
.detail-total:where(.manuel-outils, .manuel-portail) {
  font-size: 1.15rem;
  border-top: 2px solid var(--lapis);
  margin-top: 16px;
  padding-top: 12px;
}
:where(.manuel-outils, .manuel-portail) .detail-total strong,
.detail-total:where(.manuel-outils, .manuel-portail) strong { font-size: 1.4rem; font-variant-numeric: tabular-nums lining-nums; color: var(--lapis-fonce); }

/* ---------- Tableaux ---------- */
:where(.manuel-outils, .manuel-portail) .defilement,
.defilement:where(.manuel-outils, .manuel-portail) { overflow-x: auto; }
:where(.manuel-outils, .manuel-portail) .table-lettres,
.table-lettres:where(.manuel-outils, .manuel-portail) {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
:where(.manuel-outils, .manuel-portail) .table-lettres th,
.table-lettres:where(.manuel-outils, .manuel-portail) th,
:where(.manuel-outils, .manuel-portail) .table-lettres td,
.table-lettres:where(.manuel-outils, .manuel-portail) td {
  border-bottom: 1px solid var(--ligne);
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}
:where(.manuel-outils, .manuel-portail) .table-lettres th,
.table-lettres:where(.manuel-outils, .manuel-portail) th {
  color: var(--encre-2);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
:where(.manuel-outils, .manuel-portail) .cellule-nombre,
.cellule-nombre:where(.manuel-outils, .manuel-portail) { font-variant-numeric: tabular-nums lining-nums; }
:where(.manuel-outils, .manuel-portail) .table-reference,
.table-reference:where(.manuel-outils, .manuel-portail) { margin-top: 8px; }

/* ---------- Accueil ---------- */
:where(.manuel-outils, .manuel-portail) .bloc-accueil,
.bloc-accueil:where(.manuel-outils, .manuel-portail) { padding-top: clamp(20px, 4vw, 32px); }
:where(.manuel-outils, .manuel-portail) .accueil-intro,
.accueil-intro:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; max-width: 62ch; }
:where(.manuel-outils, .manuel-portail) .accueil-points li,
.accueil-points:where(.manuel-outils, .manuel-portail) li { margin-bottom: 6px; }
:where(.manuel-outils, .manuel-portail) .accueil-note,
.accueil-note:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.9rem; margin-top: 14px; }

/* ---------- Historique ---------- */
:where(.manuel-outils, .manuel-portail) .historique-entete,
.historique-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
:where(.manuel-outils, .manuel-portail) .historique-compteur,
.historique-compteur:where(.manuel-outils, .manuel-portail) { margin: 0; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .historique-vide,
.historique-vide:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .entree,
.entree:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--papier);
  padding: 14px 16px;
  margin: 12px 0;
}
:where(.manuel-outils, .manuel-portail) .entree-meta,
.entree-meta:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.85rem; margin-bottom: 6px; }
:where(.manuel-outils, .manuel-portail) .entree-texte,
.entree-texte:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .entree-texte-calc,
.entree-texte-calc:where(.manuel-outils, .manuel-portail) { font-size: clamp(24px, 4vw, 30px); line-height: 1.9; }
:where(.manuel-outils, .manuel-portail) .entree-libelle,
.entree-libelle:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.82rem; margin: 8px 0 2px; }
:where(.manuel-outils, .manuel-portail) .liste-totaux,
.liste-totaux:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 18px;
}
:where(.manuel-outils, .manuel-portail) .liste-totaux li,
.liste-totaux:where(.manuel-outils, .manuel-portail) li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dotted var(--ligne);
  padding: 3px 0;
  font-size: 0.9rem;
}
:where(.manuel-outils, .manuel-portail) .total-nom,
.total-nom:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .total-valeur,
.total-valeur:where(.manuel-outils, .manuel-portail) { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }

/* ---------- Paramètres ---------- */
:where(.manuel-outils, .manuel-portail) .champ-parametre,
.champ-parametre:where(.manuel-outils, .manuel-portail) { margin-bottom: 16px; }
:where(.manuel-outils, .manuel-portail) .champ-parametre label,
.champ-parametre:where(.manuel-outils, .manuel-portail) label { display: block; font-weight: 600; margin-bottom: 6px; }
:where(.manuel-outils, .manuel-portail) .champ-parametre select,
.champ-parametre:where(.manuel-outils, .manuel-portail) select {
  font-family: var(--pile-ui);
  font-size: 0.95rem;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ligne);
  background: var(--carte);
  color: var(--encre);
  max-width: 100%;
}

/* ---------- Petits écrans (à partir de 320 px) ---------- */
@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .entete,
.entete:where(.manuel-outils, .manuel-portail) { flex-direction: column; align-items: flex-start; }
  :where(.manuel-outils, .manuel-portail) .navigation,
.navigation:where(.manuel-outils, .manuel-portail) { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .navigation .lien-navigation,
.navigation:where(.manuel-outils, .manuel-portail) .lien-navigation { padding: 9px 12px; }
  :where(.manuel-outils, .manuel-portail) .detail,
.detail:where(.manuel-outils, .manuel-portail) { max-height: 94vh; border-radius: 12px; }
  :where(.manuel-outils, .manuel-portail) .barre-actions .bouton,
.barre-actions:where(.manuel-outils, .manuel-portail) .bouton { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  :where(.manuel-outils, .manuel-portail) .grille-couples,
.grille-couples:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .grille-couples > .couple,
.grille-couples:where(.manuel-outils, .manuel-portail) > .couple { grid-column: span 1; }
  :where(.manuel-outils, .manuel-portail) .couple,
.couple:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .carte + .carte,
.carte:where(.manuel-outils, .manuel-portail) + .carte { border-left: 0; border-top: 1px dashed var(--ligne); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  :where(.manuel-outils, .manuel-portail) *,
*:where(.manuel-outils, .manuel-portail) { transition: none !important; animation: none !important; }
}

/* ---------- Rappel latéral : alphabet 1–28 ----------
 * Onglet vertical fixé au bord droit + panneau étroit non bloquant :
 * aucun voile, la page reste utilisable. La fenêtre de détail (z-index 50)
 * passe toujours au-dessus du panneau (z-index 41). */
:where(.manuel-outils, .manuel-portail) .alphabet-onglet,
.alphabet-onglet:where(.manuel-outils, .manuel-portail) {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 42;
  writing-mode: vertical-rl;
  padding: 14px 9px;
  font-family: var(--pile-ui);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--encre);
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 10px var(--ombre);
  cursor: pointer;
  transition: right 0.18s ease;
}
:where(.manuel-outils, .manuel-portail) .alphabet-onglet:hover,
.alphabet-onglet:hover:where(.manuel-outils, .manuel-portail) { color: var(--lapis-fonce); border-color: var(--lapis); }
:where(.manuel-outils, .manuel-portail) .alphabet-onglet[aria-expanded="true"],
.alphabet-onglet[aria-expanded="true"]:where(.manuel-outils, .manuel-portail) { right: var(--alphabet-largeur); }
:where(.manuel-outils, .manuel-portail) .onglet-court,
.onglet-court:where(.manuel-outils, .manuel-portail) { display: none; }
:where(.manuel-outils, .manuel-portail) .alphabet-panneau,
.alphabet-panneau:where(.manuel-outils, .manuel-portail) {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: var(--alphabet-largeur);
  max-width: 100vw;
  background: var(--carte);
  border-left: 1px solid var(--ligne);
  box-shadow: -8px 0 24px var(--ombre);
  padding: 12px 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
:where(.manuel-outils, .manuel-portail) .alphabet-entete,
.alphabet-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
:where(.manuel-outils, .manuel-portail) .alphabet-titre,
.alphabet-titre:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; margin: 0; }
:where(.manuel-outils, .manuel-portail) .alphabet-note,
.alphabet-note:where(.manuel-outils, .manuel-portail) { font-size: 0.8rem; color: var(--encre-2); margin: 0 0 10px; }
:where(.manuel-outils, .manuel-portail) .alphabet-liste,
.alphabet-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 14px;
}
:where(.manuel-outils, .manuel-portail) .alphabet-liste li,
.alphabet-liste:where(.manuel-outils, .manuel-portail) li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  break-inside: avoid;
}
:where(.manuel-outils, .manuel-portail) .alphabet-liste .rang,
.alphabet-liste:where(.manuel-outils, .manuel-portail) .rang {
  flex: 0 0 2ch;
  text-align: right;
  font-size: 0.78rem;
  color: var(--encre-2);
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .alphabet-liste .lettre,
.alphabet-liste:where(.manuel-outils, .manuel-portail) .lettre {
  flex: 0 0 auto;
  font-family: var(--pile-arabe);
  font-synthesis: none;
  letter-spacing: 0 !important;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 22px;
  line-height: 1.4;
}
:where(.manuel-outils, .manuel-portail) .alphabet-liste .nom,
.alphabet-liste:where(.manuel-outils, .manuel-portail) .nom {
  font-size: 0.78rem;
  color: var(--encre-2);
  overflow-wrap: anywhere;
}

/* ---------- Tableau de comparaison ---------- */
:where(.manuel-outils, .manuel-portail) .visuellement-cache,
.visuellement-cache:where(.manuel-outils, .manuel-portail) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:where(.manuel-outils, .manuel-portail) .defilement-comparaison,
.defilement-comparaison:where(.manuel-outils, .manuel-portail) {
  container-type: inline-size;
  max-width: 100%;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--carte);
  overflow: visible; /* toutes les lignes suivent le défilement normal de la page */
}
:where(.manuel-outils, .manuel-portail) .table-comparaison,
.table-comparaison:where(.manuel-outils, .manuel-portail) {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 0.88rem;
}
:where(.manuel-outils, .manuel-portail) .table-comparaison th,
.table-comparaison:where(.manuel-outils, .manuel-portail) th,
:where(.manuel-outils, .manuel-portail) .table-comparaison td,
.table-comparaison:where(.manuel-outils, .manuel-portail) td {
  background: var(--carte);
  border-bottom: 1px solid var(--ligne);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
:where(.manuel-outils, .manuel-portail) .table-comparaison thead th,
.table-comparaison:where(.manuel-outils, .manuel-portail) thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--papier);
  color: var(--encre-2);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .table-comparaison th:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) th:first-child,
:where(.manuel-outils, .manuel-portail) .table-comparaison td:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) td:first-child {
  background: var(--papier);
  border-right: 1px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .table-comparaison thead th:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) thead th:first-child { width: 15%; }
:where(.manuel-outils, .manuel-portail) .cellule-entree,
.cellule-entree:where(.manuel-outils, .manuel-portail) { font-weight: 400; }
:where(.manuel-outils, .manuel-portail) .comparaison-texte,
.comparaison-texte:where(.manuel-outils, .manuel-portail) {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--encre);
  font: inherit;
  text-align: right;
}
:where(.manuel-outils, .manuel-portail) .comparaison-texte:hover .texte-arabe-ligne,
.comparaison-texte:hover:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne { color: var(--lapis-fonce); }
:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne,
.texte-arabe-ligne:where(.manuel-outils, .manuel-portail) {
  display: block;
  font-family: var(--pile-arabe);
  font-synthesis: none;
  letter-spacing: 0 !important;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 24px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  border-bottom: 1px dotted transparent;
}
:where(.manuel-outils, .manuel-portail) .comparaison-texte:hover .texte-arabe-ligne,
.comparaison-texte:hover:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne,
:where(.manuel-outils, .manuel-portail) .comparaison-texte:focus-visible .texte-arabe-ligne,
.comparaison-texte:focus-visible:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne { border-bottom-color: currentColor; }
:where(.manuel-outils, .manuel-portail) .comparaison-normalise,
.comparaison-normalise:where(.manuel-outils, .manuel-portail) {
  display: block;
  font-family: var(--pile-arabe);
  font-synthesis: none;
  letter-spacing: 0 !important;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 16px;
  line-height: 1.7;
  color: var(--encre-2);
  margin-top: 2px;
}
:where(.manuel-outils, .manuel-portail) .bouton-ligne-supprimer,
.bouton-ligne-supprimer:where(.manuel-outils, .manuel-portail) {
  margin-top: 6px;
  font-family: var(--pile-ui);
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  background: transparent;
  color: var(--encre-2);
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .bouton-ligne-supprimer:hover,
.bouton-ligne-supprimer:hover:where(.manuel-outils, .manuel-portail) {
  color: var(--danger);
  border-color: var(--danger);
}

/* ---------- Correspondances entre entrées (comparaison) ---------- */
:where(.manuel-outils, .manuel-portail) .correspondances,
.correspondances:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--correspondance-bordure);
  background: color-mix(in srgb, var(--correspondance-fond) 45%, var(--papier));
  border-radius: var(--rayon);
  padding: 0;
  margin: 0 0 12px;
  overflow: hidden;
}
:where(.manuel-outils, .manuel-portail) .correspondances-titre,
.correspondances-titre:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  padding: 10px 14px;
  color: var(--correspondance);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .correspondances-titre::marker,
.correspondances-titre:where(.manuel-outils, .manuel-portail)::marker { color: var(--correspondance); }
:where(.manuel-outils, .manuel-portail) .correspondances-titre:hover,
.correspondances-titre:hover:where(.manuel-outils, .manuel-portail) { background: var(--correspondance-fond); }
:where(.manuel-outils, .manuel-portail) .correspondances-titre:focus-visible,
.correspondances-titre:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
:where(.manuel-outils, .manuel-portail) .correspondances[open] > .correspondances-titre,
.correspondances[open]:where(.manuel-outils, .manuel-portail) > .correspondances-titre {
  background: var(--correspondance-fond);
  border-bottom: 1px solid var(--correspondance-bordure);
}
:where(.manuel-outils, .manuel-portail) .correspondances-liste,
.correspondances-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
}
:where(.manuel-outils, .manuel-portail) .correspondances-liste:empty,
.correspondances-liste:empty:where(.manuel-outils, .manuel-portail) { display: none; }
:where(.manuel-outils, .manuel-portail) .correspondances-liste li,
.correspondances-liste:where(.manuel-outils, .manuel-portail) li {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
:where(.manuel-outils, .manuel-portail) .correspondance-valeur,
.correspondance-valeur:where(.manuel-outils, .manuel-portail) {
  min-width: 42px;
  border: 1px solid var(--correspondance-bordure);
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--papier);
  color: var(--correspondance);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .correspondance-valeur:hover,
.correspondance-valeur:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .correspondance-valeur:focus-visible,
.correspondance-valeur:focus-visible:where(.manuel-outils, .manuel-portail) {
  background: var(--correspondance-fond);
  border-color: var(--correspondance);
}
:where(.manuel-outils, .manuel-portail) .correspondance-valeur:focus-visible,
.correspondance-valeur:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:where(.manuel-outils, .manuel-portail) .correspondance-valeur[aria-expanded="true"],
.correspondance-valeur[aria-expanded="true"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .correspondance-valeur-active,
.correspondance-valeur-active:where(.manuel-outils, .manuel-portail) {
  background: var(--correspondance);
  border-color: var(--correspondance);
  color: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .correspondances-detail,
.correspondances-detail:where(.manuel-outils, .manuel-portail) {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
  border-top: 1px solid color-mix(in srgb, var(--correspondance-bordure) 55%, transparent);
}
:where(.manuel-outils, .manuel-portail) .correspondances-detail[hidden],
.correspondances-detail[hidden]:where(.manuel-outils, .manuel-portail) { display: none; }
:where(.manuel-outils, .manuel-portail) .correspondance-detail-titre,
.correspondance-detail-titre:where(.manuel-outils, .manuel-portail) {
  margin: 10px 0 0;
  color: var(--correspondance);
  font-family: var(--pile-titres);
  font-size: 1rem;
}
:where(.manuel-outils, .manuel-portail) .correspondances-detail > .correspondance-profils-nombre,
.correspondances-detail:where(.manuel-outils, .manuel-portail) > .correspondance-profils-nombre {
  grid-column: 1 / -1;
  margin: 0;
  padding-block: .25rem;
  gap: .35rem;
}
:where(.manuel-outils, .manuel-portail) .correspondance-profils-nombre .profil-nombre-ligne,
.correspondance-profils-nombre:where(.manuel-outils, .manuel-portail) .profil-nombre-ligne { gap: .35rem; }
:where(.manuel-outils, .manuel-portail) .correspondance-profils-nombre .profil-nombre-repere,
.correspondance-profils-nombre:where(.manuel-outils, .manuel-portail) .profil-nombre-repere { font-size: .78rem; }
:where(.manuel-outils, .manuel-portail) .correspondance-profils-nombre .profil-nombre-versets,
.correspondance-profils-nombre:where(.manuel-outils, .manuel-portail) .profil-nombre-versets { font-size: .8rem; }
:where(.manuel-outils, .manuel-portail) .correspondance-expression,
.correspondance-expression:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--correspondance-bordure);
  border-left-width: 3px;
  border-radius: 10px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .correspondance-expression-texte,
.correspondance-expression-texte:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 7px;
  color: var(--encre);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
:where(.manuel-outils, .manuel-portail) .correspondance-expression-texte[dir="rtl"],
.correspondance-expression-texte[dir="rtl"]:where(.manuel-outils, .manuel-portail) {
  direction: rtl;
  text-align: right;
  font-family: var(--pile-arabe);
  font-size: 1.1rem;
  line-height: 1.7;
}
:where(.manuel-outils, .manuel-portail) .correspondance-systemes,
.correspondance-systemes:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.manuel-outils, .manuel-portail) .correspondance-systemes li,
.correspondance-systemes:where(.manuel-outils, .manuel-portail) li {
  padding: 2px 7px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--creux);
  color: var(--encre-2);
  font-size: 0.76rem;
  line-height: 1.4;
}
:where(.manuel-outils, .manuel-portail) .correspondances-note,
.correspondances-note:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.82rem;
}
@media (min-width: 760px) {
  :where(.manuel-outils, .manuel-portail) .correspondances-liste,
.correspondances-liste:where(.manuel-outils, .manuel-portail) {
    max-height: 146px;
    overflow-y: auto;
  }
  :where(.manuel-outils, .manuel-portail) .correspondances-detail,
.correspondances-detail:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  :where(.manuel-outils, .manuel-portail) .correspondance-detail-titre,
.correspondance-detail-titre:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }
}
:where(.manuel-outils, .manuel-portail) .paire-correspondance,
.paire-correspondance:where(.manuel-outils, .manuel-portail) {
  background: var(--correspondance-fond);
  box-shadow: inset 0 0 0 2px var(--correspondance-bordure);
}
:where(.manuel-outils, .manuel-portail) .paire-correspondance .valeur,
.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur {
  color: var(--correspondance);
  font-weight: 700;
}

/* ---------- Rappel alphabet : adaptation mobile ---------- */
@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) { --alphabet-largeur: min(320px, 100vw); }
  :where(.manuel-outils, .manuel-portail) .alphabet-onglet,
.alphabet-onglet:where(.manuel-outils, .manuel-portail) {
    top: auto;
    bottom: 16px;
    right: 12px;
    transform: none;
    writing-mode: horizontal-tb;
    border: 1px solid var(--ligne);
    border-radius: 999px;
    padding: 8px 14px;
  }
  /* Le bouton reste visible au-dessus du panneau ouvert et sert à le refermer. */
  :where(.manuel-outils, .manuel-portail) .alphabet-onglet[aria-expanded="true"],
.alphabet-onglet[aria-expanded="true"]:where(.manuel-outils, .manuel-portail) { right: 12px; }
  :where(.manuel-outils, .manuel-portail) .onglet-long,
.onglet-long:where(.manuel-outils, .manuel-portail) { display: none; }
  :where(.manuel-outils, .manuel-portail) .onglet-court,
.onglet-court:where(.manuel-outils, .manuel-portail) { display: inline; }
}
@media (max-width: 400px) {
  :where(.manuel-outils, .manuel-portail) .alphabet-liste,
.alphabet-liste:where(.manuel-outils, .manuel-portail) { columns: 1; }
}

/* ---------- Comparateurs sur téléphone et tablette ----------
   La structure native des tableaux et leurs en-têtes restent visibles.
   Seul le comparateur défile horizontalement, jamais la page entière. */
@media (max-width: 900px) {
  :where(.manuel-outils, .manuel-portail) .defilement-comparaison,
.defilement-comparaison:where(.manuel-outils, .manuel-portail) {
    contain: paint;
    max-height: min(70vh, 36rem);
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--correspondance-bordure) transparent;
  }
  :where(.manuel-outils, .manuel-portail) .table-comparaison,
.table-comparaison:where(.manuel-outils, .manuel-portail) { min-width: 48rem; }
  :where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr,
.bloc-comparaison-fr:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar,
.bloc-comparaison-ar:where(.manuel-outils, .manuel-portail) {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-block: auto;
  }
  :where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr .table-comparaison,
.bloc-comparaison-fr:where(.manuel-outils, .manuel-portail) .table-comparaison,
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar .table-comparaison,
.bloc-comparaison-ar:where(.manuel-outils, .manuel-portail) .table-comparaison { min-width: 40rem; }
  :where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar.bloc-comparaison-solo .table-comparaison,
.bloc-comparaison-ar.bloc-comparaison-solo:where(.manuel-outils, .manuel-portail) .table-comparaison,
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-hg.bloc-comparaison-solo .table-comparaison,
.bloc-comparaison-hg.bloc-comparaison-solo:where(.manuel-outils, .manuel-portail) .table-comparaison {
    min-width: 0;
  }
  :where(.manuel-outils, .manuel-portail) .table-comparaison th:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) th:first-child,
:where(.manuel-outils, .manuel-portail) .table-comparaison td:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 9rem;
    min-width: 9rem;
    max-width: 9rem;
    box-shadow: 1px 0 0 var(--ligne);
  }
  :where(.manuel-outils, .manuel-portail) .table-comparaison thead th:first-child,
.table-comparaison:where(.manuel-outils, .manuel-portail) thead th:first-child { z-index: 4; }
  :where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr .table-comparaison th:first-child,
.bloc-comparaison-fr:where(.manuel-outils, .manuel-portail) .table-comparaison th:first-child,
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr .table-comparaison td:first-child,
.bloc-comparaison-fr:where(.manuel-outils, .manuel-portail) .table-comparaison td:first-child,
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar .table-comparaison th:first-child,
.bloc-comparaison-ar:where(.manuel-outils, .manuel-portail) .table-comparaison th:first-child,
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar .table-comparaison td:first-child,
.bloc-comparaison-ar:where(.manuel-outils, .manuel-portail) .table-comparaison td:first-child {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
  }
  :where(.manuel-outils, .manuel-portail) .table-comparaison .cellule-entree .comparaison-texte,
.table-comparaison:where(.manuel-outils, .manuel-portail) .cellule-entree .comparaison-texte {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  :where(.manuel-outils, .manuel-portail) .chip-entree,
.chip-entree:where(.manuel-outils, .manuel-portail) {
    max-width: 100%;
    min-width: 0;
  }
  :where(.manuel-outils, .manuel-portail) .chip-entree .comparaison-texte,
.chip-entree:where(.manuel-outils, .manuel-portail) .comparaison-texte {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }
  :where(.manuel-outils, .manuel-portail) .chip-entree-arabe .bouton-ligne-supprimer,
.chip-entree-arabe:where(.manuel-outils, .manuel-portail) .bouton-ligne-supprimer {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .correspondances-titre,
.correspondances-titre:where(.manuel-outils, .manuel-portail) { padding: 11px 12px; }
  :where(.manuel-outils, .manuel-portail) .correspondances-liste,
.correspondances-liste:where(.manuel-outils, .manuel-portail) { padding: 10px 12px; }
  :where(.manuel-outils, .manuel-portail) .correspondance-valeur,
.correspondance-valeur:where(.manuel-outils, .manuel-portail) {
    min-width: 44px;
    min-height: 44px;
    padding: 7px 11px;
  }
  :where(.manuel-outils, .manuel-portail) .correspondances-detail,
.correspondances-detail:where(.manuel-outils, .manuel-portail) { padding: 0 10px 10px; }
  :where(.manuel-outils, .manuel-portail) .correspondance-expression,
.correspondance-expression:where(.manuel-outils, .manuel-portail) { padding: 8px 9px; }
  :where(.manuel-outils, .manuel-portail) .correspondances-note,
.correspondances-note:where(.manuel-outils, .manuel-portail) { padding: 0 12px 12px; }
}

/* ---------- Repères compacts : premiers et polygonaux ---------- */
:where(.manuel-outils, .manuel-portail) .pastille-premier,
.pastille-premier:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pastille-polygonal,
.pastille-polygonal:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--pile-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--premier);
  background: var(--premier-fond);
  box-shadow: inset 0 0 0 1.5px var(--premier-bordure);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  vertical-align: middle;
}
:where(.manuel-outils, .manuel-portail) .pastille-premier sub,
.pastille-premier:where(.manuel-outils, .manuel-portail) sub {
  font-size: 0.85em;
  line-height: 1;
  margin-left: 1px;
}
:where(.manuel-outils, .manuel-portail) .pastille-polygonal,
.pastille-polygonal:where(.manuel-outils, .manuel-portail) {
  color: var(--nombre-polygonal);
  background: color-mix(in srgb, currentColor 10%, var(--carte));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent);
}
:where(.manuel-outils, .manuel-portail) .pastille-multi-polygonal,
.pastille-multi-polygonal:where(.manuel-outils, .manuel-portail) { text-decoration: underline; text-underline-offset: 2px; }
:where(.manuel-outils, .manuel-portail) .mini-premier,
.mini-premier:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 4px; }
:where(.manuel-outils, .manuel-portail) .legende-premier,
.legende-premier:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .carte-premier,
.carte-premier:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--premier);
  font-weight: 600;
}
:where(.manuel-outils, .manuel-portail) .cellule-fr .pastille-premier,
.cellule-fr:where(.manuel-outils, .manuel-portail) .pastille-premier,
:where(.manuel-outils, .manuel-portail) .cellule-ar .pastille-premier,
.cellule-ar:where(.manuel-outils, .manuel-portail) .pastille-premier,
:where(.manuel-outils, .manuel-portail) .cellule-fr .pastille-polygonal,
.cellule-fr:where(.manuel-outils, .manuel-portail) .pastille-polygonal,
:where(.manuel-outils, .manuel-portail) .cellule-ar .pastille-polygonal,
.cellule-ar:where(.manuel-outils, .manuel-portail) .pastille-polygonal,
:where(.manuel-outils, .manuel-portail) .cellule-hg .pastille-polygonal,
.cellule-hg:where(.manuel-outils, .manuel-portail) .pastille-polygonal { margin-left: 4px; }
:where(.manuel-outils, .manuel-portail) .detail-polygonal,
.detail-polygonal:where(.manuel-outils, .manuel-portail) { color: var(--nombre-polygonal); font-size: 0.95rem; line-height: 1.5; margin-top: 6px; }
:where(.manuel-outils, .manuel-portail) .detail-premier,
.detail-premier:where(.manuel-outils, .manuel-portail) {
  color: var(--premier);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ---------- Nombres cliquables (comparateur, détail, fiche) ---------- */
:where(.manuel-outils, .manuel-portail) .valeur-bouton,
.valeur-bouton:where(.manuel-outils, .manuel-portail) {
  background: none;
  border: 0;
  margin: 0;
  padding: 0 2px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
.valeur-bouton:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible,
.valeur-bouton:focus-visible:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis-teinte);
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .paire-correspondance .valeur-bouton:hover,
.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .paire-correspondance .valeur-bouton:focus-visible,
.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible {
  color: var(--correspondance); /* le rubis reste dominant sur une correspondance */
}
:where(.manuel-outils, .manuel-portail) .detail-total-bouton,
.detail-total-bouton:where(.manuel-outils, .manuel-portail) { font-size: inherit; }
:where(.manuel-outils, .manuel-portail) .detail-total-bouton strong,
.detail-total-bouton:where(.manuel-outils, .manuel-portail) strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--lapis-fonce);
}

/* ---------- Fiche du nombre ---------- */
:where(.manuel-outils, .manuel-portail) .fiche-entete,
.fiche-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
:where(.manuel-outils, .manuel-portail) .fil-ariane,
.fil-ariane:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .fil-lien,
.fil-lien:where(.manuel-outils, .manuel-portail) {
  background: none;
  border: 0;
  padding: 1px 4px;
  font: inherit;
  color: var(--lapis-fonce);
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .fil-lien:hover,
.fil-lien:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fil-lien:focus-visible,
.fil-lien:focus-visible:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis-teinte);
}
:where(.manuel-outils, .manuel-portail) .fil-zone,
.fil-zone:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:where(.manuel-outils, .manuel-portail) .fil-libelle,
.fil-libelle:where(.manuel-outils, .manuel-portail) {
  color: var(--encre-2);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
:where(.manuel-outils, .manuel-portail) .fil-relation,
.fil-relation:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.85em; }
:where(.manuel-outils, .manuel-portail) .fil-actuel,
.fil-actuel:where(.manuel-outils, .manuel-portail) { font-weight: 700; padding: 1px 4px; }
:where(.manuel-outils, .manuel-portail) .fiche-premier,
.fiche-premier:where(.manuel-outils, .manuel-portail) {
  color: var(--premier);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  padding: 8px 0 2px;
}
:where(.manuel-outils, .manuel-portail) .fiche-surtitre,
.fiche-surtitre:where(.manuel-outils, .manuel-portail) {
  color: var(--or);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 0 0;
}
:where(.manuel-outils, .manuel-portail) .fiche-nombre,
.fiche-nombre:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-titres);
  font-size: clamp(40px, 8vw, 62px);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.15;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .fiche-intro,
.fiche-intro:where(.manuel-outils, .manuel-portail) { max-width: 60ch; }
:where(.manuel-outils, .manuel-portail) .fiche-section,
.fiche-section:where(.manuel-outils, .manuel-portail) { margin-top: 4px; }
:where(.manuel-outils, .manuel-portail) .fiche-titre-section,
.fiche-titre-section:where(.manuel-outils, .manuel-portail) {
  color: var(--or);
  font-family: var(--pile-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px solid var(--ligne);
  padding-bottom: 5px;
  margin: 22px 0 10px;
}
:where(.manuel-outils, .manuel-portail) .fiche-lignes,
.fiche-lignes:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; }
:where(.manuel-outils, .manuel-portail) .ligne-propriete,
.ligne-propriete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .ligne-propriete:last-child,
.ligne-propriete:last-child:where(.manuel-outils, .manuel-portail) { border-bottom: 0; }
:where(.manuel-outils, .manuel-portail) .propriete-nom,
.propriete-nom:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .propriete-valeur,
.propriete-valeur:where(.manuel-outils, .manuel-portail) {
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
}
:where(.manuel-outils, .manuel-portail) .nombre-lien,
.nombre-lien:where(.manuel-outils, .manuel-portail) {
  background: none;
  border: 0;
  margin: 0;
  padding: 1px 4px;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--lapis-fonce);
  text-decoration: none;
  text-underline-offset: 3px;
  cursor: pointer;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .nombre-lien:hover,
.nombre-lien:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .nombre-lien:focus-visible,
.nombre-lien:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .nombre-lien:active,
.nombre-lien:active:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis-teinte);
}
:where(.manuel-outils, .manuel-portail) .fiche-compte,
.fiche-compte:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .liste-occurrences,
.liste-occurrences:where(.manuel-outils, .manuel-portail) { margin: 6px 0 0; padding-left: 1.2em; }
:where(.manuel-outils, .manuel-portail) .liste-occurrences li,
.liste-occurrences:where(.manuel-outils, .manuel-portail) li { margin: 6px 0; }
:where(.manuel-outils, .manuel-portail) .occurrence-arabe,
.occurrence-arabe:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-arabe);
  font-synthesis: none;
  letter-spacing: 0 !important;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 22px;
  line-height: 1.6;
}
@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .fiche-entete,
.fiche-entete:where(.manuel-outils, .manuel-portail) { flex-direction: column-reverse; align-items: flex-start; }
  :where(.manuel-outils, .manuel-portail) .ligne-propriete,
.ligne-propriete:where(.manuel-outils, .manuel-portail) { flex-direction: column; align-items: flex-start; gap: 2px; }
  :where(.manuel-outils, .manuel-portail) .propriete-valeur,
.propriete-valeur:where(.manuel-outils, .manuel-portail) { text-align: left; }
}

/* ---------- V7.1 : indicateur de calcul instantané ---------- */
:where(.manuel-outils, .manuel-portail) .ligne-etiquette,
.ligne-etiquette:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
:where(.manuel-outils, .manuel-portail) .badge-instantane,
.badge-instantane:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  background: var(--lapis-teinte);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- V8 : saisie et résultats en direct côte à côte ---------- */
:where(.manuel-outils, .manuel-portail) .zone-principale,
.zone-principale:where(.manuel-outils, .manuel-portail) { display: block; }
:where(.manuel-outils, .manuel-portail) .sous-titre-resultats,
.sous-titre-resultats:where(.manuel-outils, .manuel-portail) {
  color: var(--encre-2);
  font-size: 0.85rem;
  margin: 2px 0 12px;
}
:where(.manuel-outils, .manuel-portail) .aide-resultats,
.aide-resultats:where(.manuel-outils, .manuel-portail) { margin-top: 12px; font-size: 0.85rem; }
:where(.manuel-outils, .manuel-portail) .bloc-analyse > .analyse-resume,
.bloc-analyse:where(.manuel-outils, .manuel-portail) > .analyse-resume {
  cursor: pointer;
  font-weight: 600;
  color: var(--lapis-fonce);
  font-size: 1rem;
  padding: 2px 0;
}
:where(.manuel-outils, .manuel-portail) .bloc-analyse > .analyse-resume:hover,
.bloc-analyse:where(.manuel-outils, .manuel-portail) > .analyse-resume:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(.manuel-outils, .manuel-portail) .bloc-analyse[open] > .analyse-resume,
.bloc-analyse[open]:where(.manuel-outils, .manuel-portail) > .analyse-resume { margin-bottom: 12px; }
@media (min-width: 1100px) {
  :where(.manuel-outils, .manuel-portail) .zone-principale,
.zone-principale:where(.manuel-outils, .manuel-portail) {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: 18px;
    align-items: start;
    margin: 18px 0;
  }
  :where(.manuel-outils, .manuel-portail) .zone-principale > .bloc,
.zone-principale:where(.manuel-outils, .manuel-portail) > .bloc { min-width: 0; margin: 0; }
  :where(.manuel-outils, .manuel-portail) .bloc-saisie .saisie-arabe,
.bloc-saisie:where(.manuel-outils, .manuel-portail) .saisie-arabe {
    min-height: 120px;
    height: clamp(120px, 17vh, 165px);
  }
  :where(.manuel-outils, .manuel-portail) .grille-couples,
.grille-couples:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .couple-solo,
.couple-solo:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  /* Quatre cartes par ligne sur PC ; les couples restent solidaires,
     les systèmes autonomes prennent une seule place dans l’ordre choisi. */
  :where(.manuel-outils, .manuel-portail) .grille-couples,
.grille-couples:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ====================================================================
   v9 — Grimoire modulaire : portail, module français, historique commun
   ==================================================================== */

/* ---- Accueil : portail à trois cartes ---- */
:where(.manuel-outils, .manuel-portail) .grille-portail,
.grille-portail:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
:where(.manuel-outils, .manuel-portail) .carte-portail,
.carte-portail:where(.manuel-outils, .manuel-portail) {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--carte);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, transform 120ms ease;
}
:where(.manuel-outils, .manuel-portail) .carte-portail:hover,
.carte-portail:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .carte-portail:focus-visible,
.carte-portail:focus-visible:where(.manuel-outils, .manuel-portail) {
  border-color: var(--lapis);
  transform: translateY(-1px);
}
:where(.manuel-outils, .manuel-portail) .carte-portail-titre,
.carte-portail-titre:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .carte-portail-texte,
.carte-portail-texte:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  font-size: 0.86rem;
  color: var(--encre-2);
  line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  :where(.manuel-outils, .manuel-portail) .carte-portail,
.carte-portail:where(.manuel-outils, .manuel-portail) { transition: none; }
  :where(.manuel-outils, .manuel-portail) .carte-portail:hover,
.carte-portail:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .carte-portail:focus-visible,
.carte-portail:focus-visible:where(.manuel-outils, .manuel-portail) { transform: none; }
}

/* ---- Menu repliable sur mobile ---- */
:where(.manuel-outils, .manuel-portail) .bouton-menu,
.bouton-menu:where(.manuel-outils, .manuel-portail) { display: none; }
@media (max-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .bouton-menu,
.bouton-menu:where(.manuel-outils, .manuel-portail) { display: inline-flex; }
  :where(.manuel-outils, .manuel-portail) .navigation,
.navigation:where(.manuel-outils, .manuel-portail) { display: none; width: 100%; }
  :where(.manuel-outils, .manuel-portail) .navigation.navigation-ouverte,
.navigation.navigation-ouverte:where(.manuel-outils, .manuel-portail) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  :where(.manuel-outils, .manuel-portail) .navigation.navigation-ouverte .lien-navigation,
.navigation.navigation-ouverte:where(.manuel-outils, .manuel-portail) .lien-navigation { padding: 10px 12px; }
}

/* ---- Module français : disposition et saisie ---- */
@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .zone-fr,
.zone-fr:where(.manuel-outils, .manuel-portail) { grid-template-columns: 34fr 66fr; align-items: start; }
}
:where(.manuel-outils, .manuel-portail) .saisie-francaise,
.saisie-francaise:where(.manuel-outils, .manuel-portail) {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--fond-champ, var(--carte));
  color: inherit;
  resize: vertical;
}
:where(.manuel-outils, .manuel-portail) .saisie-francaise:focus-visible,
.saisie-francaise:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 2px solid var(--lapis);
  outline-offset: 1px;
}
:where(.manuel-outils, .manuel-portail) .texte-francais,
.texte-francais:where(.manuel-outils, .manuel-portail) { font-variant-numeric: lining-nums; overflow-wrap: anywhere; }

/* ---- Mini-cartes des systèmes français, par familles et groupes ---- */
:where(.manuel-outils, .manuel-portail) .famille,
.famille:where(.manuel-outils, .manuel-portail) { margin: 0 0 12px; }
:where(.manuel-outils, .manuel-portail) .famille-titre,
.famille-titre:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dore-fonce, var(--encre-2));
}
:where(.manuel-outils, .manuel-portail) .grille-mini,
.grille-mini:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
:where(.manuel-outils, .manuel-portail) .gf-grille-groupes,
.gf-grille-groupes:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
:where(.manuel-outils, .manuel-portail) .gf-groupe-systemes,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .gf-groupe-systemes.gf-groupe-solo,
.gf-groupe-systemes.gf-groupe-solo:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
:where(.manuel-outils, .manuel-portail) .gf-groupe-systemes .mini-carte,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) .mini-carte {
  border: 0;
  border-radius: 0;
  min-height: 68px;
}
:where(.manuel-outils, .manuel-portail) .gf-groupe-systemes .mini-carte + .mini-carte,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) .mini-carte + .mini-carte {
  border-left: 1px dashed var(--ligne);
}
@media (min-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .gf-grille-groupes,
.gf-grille-groupes:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .gf-groupe-systemes,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) { grid-column: span 2; }
  :where(.manuel-outils, .manuel-portail) .gf-groupe-systemes.gf-groupe-solo,
.gf-groupe-systemes.gf-groupe-solo:where(.manuel-outils, .manuel-portail) { grid-column: span 1; }
}
@media (max-width: 360px) {
  :where(.manuel-outils, .manuel-portail) .gf-groupe-systemes,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .gf-groupe-systemes .mini-carte + .mini-carte,
.gf-groupe-systemes:where(.manuel-outils, .manuel-portail) .mini-carte + .mini-carte {
    border-left: 0;
    border-top: 1px dashed var(--ligne);
  }
}
:where(.manuel-outils, .manuel-portail) .mini-carte,
.mini-carte:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px 8px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--carte);
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .mini-nom,
.mini-nom:where(.manuel-outils, .manuel-portail) {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: left;
  color: var(--encre-2);
  cursor: pointer;
  border-bottom: 1px dotted transparent;
  align-self: flex-start;
}
:where(.manuel-outils, .manuel-portail) .mini-nom:hover,
.mini-nom:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-nom:focus-visible,
.mini-nom:focus-visible:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  border-bottom-color: currentColor;
}
:where(.manuel-outils, .manuel-portail) .mini-total,
.mini-total:where(.manuel-outils, .manuel-portail) {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: left;
  color: inherit;
  cursor: pointer;
  align-self: flex-start;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .mini-total:hover,
.mini-total:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-total:focus-visible,
.mini-total:focus-visible:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  background: var(--lapis-teinte);
}
:where(.manuel-outils, .manuel-portail) .mini-premier,
.mini-premier:where(.manuel-outils, .manuel-portail) { line-height: 1; }

/* ---- Détail français ---- */
:where(.manuel-outils, .manuel-portail) .detail-mot-fr,
.detail-mot-fr:where(.manuel-outils, .manuel-portail) {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
:where(.manuel-outils, .manuel-portail) .jeton-lettre-fr,
.jeton-lettre-fr:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: var(--carte);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .cellule-lettre-fr,
.cellule-lettre-fr:where(.manuel-outils, .manuel-portail) { font-weight: 600; }

/* ---- Comparaison française : entrées et blocs de quatre systèmes ---- */
:where(.manuel-outils, .manuel-portail) .comparaison-entrees,
.comparaison-entrees:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
:where(.manuel-outils, .manuel-portail) .chip-entree,
.chip-entree:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .chip-entree .comparaison-texte,
.chip-entree:where(.manuel-outils, .manuel-portail) .comparaison-texte { font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr,
.bloc-comparaison-fr:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar,
.bloc-comparaison-ar:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-hg,
.bloc-comparaison-hg:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 8px;
}
@supports selector(.bloc-comparaison-fr:has(.paire-correspondance)) {
  :where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr:has(.paire-correspondance),
.bloc-comparaison-fr:has(.paire-correspondance):where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar:has(.paire-correspondance),
.bloc-comparaison-ar:has(.paire-correspondance):where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-hg:has(.paire-correspondance),
.bloc-comparaison-hg:has(.paire-correspondance):where(.manuel-outils, .manuel-portail) {
    border-color: var(--correspondance-bordure);
  }
}
:where(.manuel-outils, .manuel-portail) .chip-entree-arabe .comparaison-ordre,
.chip-entree-arabe:where(.manuel-outils, .manuel-portail) .comparaison-ordre {
  margin: 0;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .chip-entree-arabe .comparaison-texte,
.chip-entree-arabe:where(.manuel-outils, .manuel-portail) .comparaison-texte {
  width: auto;
  min-width: 0;
  text-align: right;
}
:where(.manuel-outils, .manuel-portail) .chip-entree-arabe .texte-arabe-ligne,
.chip-entree-arabe:where(.manuel-outils, .manuel-portail) .texte-arabe-ligne {
  font-size: 1.05rem;
  line-height: 1.35;
}
:where(.manuel-outils, .manuel-portail) .chip-entree-arabe .bouton-ligne-supprimer,
.chip-entree-arabe:where(.manuel-outils, .manuel-portail) .bouton-ligne-supprimer { margin-top: 0; }
:where(.manuel-outils, .manuel-portail) .cellule-fr .valeur,
.cellule-fr:where(.manuel-outils, .manuel-portail) .valeur,
:where(.manuel-outils, .manuel-portail) .cellule-ar .valeur,
.cellule-ar:where(.manuel-outils, .manuel-portail) .valeur,
:where(.manuel-outils, .manuel-portail) .cellule-hg .valeur,
.cellule-hg:where(.manuel-outils, .manuel-portail) .valeur {
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .cellule-fr .valeur-bouton,
.cellule-fr:where(.manuel-outils, .manuel-portail) .valeur-bouton,
:where(.manuel-outils, .manuel-portail) .cellule-ar .valeur-bouton,
.cellule-ar:where(.manuel-outils, .manuel-portail) .valeur-bouton,
:where(.manuel-outils, .manuel-portail) .cellule-hg .valeur-bouton,
.cellule-hg:where(.manuel-outils, .manuel-portail) .valeur-bouton {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .cellule-fr .valeur-bouton:hover,
.cellule-fr:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-fr .valeur-bouton:focus-visible,
.cellule-fr:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible,
:where(.manuel-outils, .manuel-portail) .cellule-ar .valeur-bouton:hover,
.cellule-ar:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-ar .valeur-bouton:focus-visible,
.cellule-ar:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible,
:where(.manuel-outils, .manuel-portail) .cellule-hg .valeur-bouton:hover,
.cellule-hg:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-hg .valeur-bouton:focus-visible,
.cellule-hg:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible {
  color: var(--lapis-fonce);
  background: var(--lapis-teinte);
}

/* ---- Historique commun : filtres et pastilles ---- */
:where(.manuel-outils, .manuel-portail) .filtres-historique,
.filtres-historique:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
:where(.manuel-outils, .manuel-portail) .bouton-filtre[aria-pressed="true"],
.bouton-filtre[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  background: var(--lapis);
  border-color: var(--lapis);
  color: var(--sur-lapis, #fff);
}
:where(.manuel-outils, .manuel-portail) .pastille-module,
.pastille-module:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
:where(.manuel-outils, .manuel-portail) .pastille-module-ar,
.pastille-module-ar:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--lapis) 14%, transparent);
  border-color: var(--lapis);
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .pastille-module-fr,
.pastille-module-fr:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--dore, #b08d2f) 16%, transparent);
  border-color: var(--dore-fonce, #8a6d20);
  color: var(--dore-fonce, #8a6d20);
}

/* ---- Paramètres : cartes de données ---- */
:where(.manuel-outils, .manuel-portail) .grille-donnees,
.grille-donnees:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
:where(.manuel-outils, .manuel-portail) .carte-donnee,
.carte-donnee:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--carte);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
:where(.manuel-outils, .manuel-portail) .carte-donnee-libelle,
.carte-donnee-libelle:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .carte-donnee-compte,
.carte-donnee-compte:where(.manuel-outils, .manuel-portail) {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
}

/* ---- Fiche commune et référentiels ---- */
:where(.manuel-outils, .manuel-portail) .fiche-sous-titre-module,
.fiche-sous-titre-module:where(.manuel-outils, .manuel-portail) {
  margin: 14px 0 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dore-fonce, var(--encre-2));
}
:where(.manuel-outils, .manuel-portail) .occurrence-fr,
.occurrence-fr:where(.manuel-outils, .manuel-portail) { font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .etat-vide,
.etat-vide:where(.manuel-outils, .manuel-portail) {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed var(--ligne);
  border-radius: 12px;
  color: var(--encre-2);
  font-style: italic;
}
:where(.manuel-outils, .manuel-portail) .liste-referentiels li,
.liste-referentiels:where(.manuel-outils, .manuel-portail) li { color: var(--encre-2); }

/* ---- v9.2 : les contrôles de navigation sont des boutons ---- */
/* Apparence strictement identique aux anciens liens : la classe porte le
   style, ces règles neutralisent seulement les styles natifs des boutons. */
:where(.manuel-outils, .manuel-portail) .navigation .lien-navigation,
.navigation:where(.manuel-outils, .manuel-portail) .lien-navigation {
  background: none;
  font: inherit;
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) button.carte-portail,
button.carte-portail:where(.manuel-outils, .manuel-portail) {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* ====================================================================
   v9.3 — Code couleur des systèmes (registre GrimoireCouleursSystemes)
   Les teintes ci-dessous sont validées à 4,5:1 minimum sur --carte et
   sur le fond teinté à 6 %, en thème clair comme en thème sombre.
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) {
  --couleur-ordinal: #167445;
  --couleur-reduction: #285CAA;
  --couleur-exceptions: #0B6F75;
  --couleur-standard: #8A6400;
  --couleur-sumerien: #6650A4;
  --couleur-latin: #7D3E98;
  --couleur-satanique: #A83C36;
  --couleur-premiers: #9A4E13;
  --couleur-triangulaires: #087582;
  --couleur-carres: #963F70;
  --couleur-polygonaux: #5046A8;
  --couleur-fibonacci: #4F6478;
  --couleur-zodiaques: #9412C7;
  --couleur-elements: #286F14;
  --couleur-planetes: #124FDE;
  --couleur-septenaire: #A55100;
  --couleur-chaldeen: #66701F;
  --couleur-clavier: #922D8E;
  --couleur-corail: #B03E14;
  --couleur-rose: #B12766;
  --couleur-neutre: var(--encre-2);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) {
  --couleur-ordinal: #69D39C;
  --couleur-reduction: #8BB2FF;
  --couleur-exceptions: #70D1CC;
  --couleur-standard: #F0CA69;
  --couleur-sumerien: #BEA7FF;
  --couleur-latin: #D89CEB;
  --couleur-satanique: #FF9188;
  --couleur-premiers: #F1AE69;
  --couleur-triangulaires: #70D3DF;
  --couleur-carres: #ED98BF;
  --couleur-polygonaux: #AEA5FF;
  --couleur-fibonacci: #ACC0D2;
  --couleur-zodiaques: #DC79FF;
  --couleur-elements: #91DA75;
  --couleur-planetes: #5A94FF;
  --couleur-septenaire: #FFB06A;
  --couleur-chaldeen: #CAD56B;
  --couleur-clavier: #EA91E3;
  --couleur-corail: #FFA07E;
  --couleur-rose: #F89FCB;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) {
    --couleur-ordinal: #69D39C;
    --couleur-reduction: #8BB2FF;
    --couleur-exceptions: #70D1CC;
    --couleur-standard: #F0CA69;
    --couleur-sumerien: #BEA7FF;
    --couleur-latin: #D89CEB;
    --couleur-satanique: #FF9188;
    --couleur-premiers: #F1AE69;
    --couleur-triangulaires: #70D3DF;
    --couleur-carres: #ED98BF;
    --couleur-polygonaux: #AEA5FF;
    --couleur-fibonacci: #ACC0D2;
    --couleur-zodiaques: #DC79FF;
    --couleur-elements: #91DA75;
    --couleur-planetes: #5A94FF;
    --couleur-septenaire: #FFB06A;
    --couleur-chaldeen: #CAD56B;
    --couleur-clavier: #EA91E3;
    --couleur-corail: #FFA07E;
    --couleur-rose: #F89FCB;
  }
}

/* ---- Résolution centrale : data-couleur → accent (repli neutre) ---- */
:where(.manuel-outils, .manuel-portail) [data-couleur],
[data-couleur]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-neutre); }
:where(.manuel-outils, .manuel-portail) [data-couleur="ordinal"],
[data-couleur="ordinal"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-ordinal); }
:where(.manuel-outils, .manuel-portail) [data-couleur="reduction"],
[data-couleur="reduction"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-reduction); }
:where(.manuel-outils, .manuel-portail) [data-couleur="exceptions"],
[data-couleur="exceptions"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-exceptions); }
:where(.manuel-outils, .manuel-portail) [data-couleur="standard"],
[data-couleur="standard"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-standard); }
:where(.manuel-outils, .manuel-portail) [data-couleur="sumerien"],
[data-couleur="sumerien"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-sumerien); }
:where(.manuel-outils, .manuel-portail) [data-couleur="latin"],
[data-couleur="latin"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-latin); }
:where(.manuel-outils, .manuel-portail) [data-couleur="satanique"],
[data-couleur="satanique"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-satanique); }
:where(.manuel-outils, .manuel-portail) [data-couleur="premiers"],
[data-couleur="premiers"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-premiers); }
:where(.manuel-outils, .manuel-portail) [data-couleur="triangulaires"],
[data-couleur="triangulaires"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-triangulaires); }
:where(.manuel-outils, .manuel-portail) [data-couleur="carres"],
[data-couleur="carres"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-carres); }
:where(.manuel-outils, .manuel-portail) [data-couleur="polygonaux"],
[data-couleur="polygonaux"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-polygonaux); }
:where(.manuel-outils, .manuel-portail) [data-couleur="fibonacci"],
[data-couleur="fibonacci"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-fibonacci); }
:where(.manuel-outils, .manuel-portail) [data-couleur="zodiaques"],
[data-couleur="zodiaques"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-zodiaques); }
:where(.manuel-outils, .manuel-portail) [data-couleur="elements"],
[data-couleur="elements"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-elements); }
:where(.manuel-outils, .manuel-portail) [data-couleur="planetes"],
[data-couleur="planetes"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-planetes); }
:where(.manuel-outils, .manuel-portail) [data-couleur="septenaire"],
[data-couleur="septenaire"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-septenaire); }
:where(.manuel-outils, .manuel-portail) [data-couleur="chaldeen"],
[data-couleur="chaldeen"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-chaldeen); }
:where(.manuel-outils, .manuel-portail) [data-couleur="clavier"],
[data-couleur="clavier"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-clavier); }
:where(.manuel-outils, .manuel-portail) [data-couleur="corail"],
[data-couleur="corail"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-corail); }
:where(.manuel-outils, .manuel-portail) [data-couleur="rose"],
[data-couleur="rose"]:where(.manuel-outils, .manuel-portail) { --systeme-accent: var(--couleur-rose); }

/* ---- Cartes de résultats (arabe) et mini-cartes (français) ---- */
:where(.manuel-outils, .manuel-portail) .carte[data-couleur],
.carte[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur],
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) {
  border-top: 3px solid var(--systeme-accent);
  background: color-mix(in srgb, var(--systeme-accent) 6%, var(--carte));
}
:where(.manuel-outils, .manuel-portail) .carte[data-sens="inverse"],
.carte[data-sens="inverse"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte[data-sens="inverse"],
.mini-carte[data-sens="inverse"]:where(.manuel-outils, .manuel-portail) { border-top-style: dashed; }
:where(.manuel-outils, .manuel-portail) .carte[data-couleur]:hover,
.carte[data-couleur]:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur]:hover,
.mini-carte[data-couleur]:hover:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--systeme-accent) 11%, var(--carte));
}
:where(.manuel-outils, .manuel-portail) .carte[data-couleur] .carte-nom,
.carte[data-couleur]:where(.manuel-outils, .manuel-portail) .carte-nom,
:where(.manuel-outils, .manuel-portail) .carte[data-couleur] .carte-total,
.carte[data-couleur]:where(.manuel-outils, .manuel-portail) .carte-total,
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-nom,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-nom,
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-total,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-total { color: var(--systeme-accent); }
/* Au survol, la couleur du système est conservée (jamais le lapis générique). */
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-nom:hover,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-nom:hover,
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-nom:focus-visible,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-nom:focus-visible,
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-total:hover,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-total:hover,
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur] .mini-total:focus-visible,
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail) .mini-total:focus-visible {
  color: var(--systeme-accent);
  border-bottom-color: currentColor;
}
:where(.manuel-outils, .manuel-portail) .carte[data-couleur] .carte-detail:hover,
.carte[data-couleur]:where(.manuel-outils, .manuel-portail) .carte-detail:hover,
:where(.manuel-outils, .manuel-portail) .carte[data-couleur] .carte-detail:focus-visible,
.carte[data-couleur]:where(.manuel-outils, .manuel-portail) .carte-detail:focus-visible { color: var(--systeme-accent); }

/* ---- Comparateurs : en-têtes et totaux teintés, carmin prioritaire ---- */
:where(.manuel-outils, .manuel-portail) .table-comparaison th[data-couleur],
.table-comparaison:where(.manuel-outils, .manuel-portail) th[data-couleur] {
  color: var(--systeme-accent);
  border-top: 3px solid var(--systeme-accent);
}
:where(.manuel-outils, .manuel-portail) .table-comparaison th[data-sens="inverse"],
.table-comparaison:where(.manuel-outils, .manuel-portail) th[data-sens="inverse"] { border-top-style: dashed; }
:where(.manuel-outils, .manuel-portail) .cellule-fr[data-couleur]:not(.paire-correspondance) .valeur,
.cellule-fr[data-couleur]:not(.paire-correspondance):where(.manuel-outils, .manuel-portail) .valeur,
:where(.manuel-outils, .manuel-portail) .cellule-ar[data-couleur]:not(.paire-correspondance) .valeur,
.cellule-ar[data-couleur]:not(.paire-correspondance):where(.manuel-outils, .manuel-portail) .valeur,
:where(.manuel-outils, .manuel-portail) .cellule-hg[data-couleur]:not(.paire-correspondance) .valeur,
.cellule-hg[data-couleur]:not(.paire-correspondance):where(.manuel-outils, .manuel-portail) .valeur {
  color: var(--systeme-accent);
}
/* Trait discret conservé même sur une correspondance : les deux états
   restent lisibles, le carmin gardant la priorité sur le texte. */
:where(.manuel-outils, .manuel-portail) .cellule-fr.paire-correspondance[data-couleur],
.cellule-fr.paire-correspondance[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cellule-ar.paire-correspondance[data-couleur],
.cellule-ar.paire-correspondance[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cellule-hg.paire-correspondance[data-couleur],
.cellule-hg.paire-correspondance[data-couleur]:where(.manuel-outils, .manuel-portail) {
  background: var(--correspondance-fond);
  box-shadow:
    inset 0 0 0 2px var(--correspondance-bordure),
    inset 0 3px 0 0 color-mix(in srgb, var(--systeme-accent) 55%, transparent);
}
:where(.manuel-outils, .manuel-portail) .cellule-fr.paire-correspondance .valeur-bouton,
.cellule-fr.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton,
:where(.manuel-outils, .manuel-portail) .cellule-ar.paire-correspondance .valeur-bouton,
.cellule-ar.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton,
:where(.manuel-outils, .manuel-portail) .cellule-hg.paire-correspondance .valeur-bouton,
.cellule-hg.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton {
  color: var(--correspondance);
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .cellule-fr.paire-correspondance .valeur-bouton:hover,
.cellule-fr.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-fr.paire-correspondance .valeur-bouton:focus-visible,
.cellule-fr.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible,
:where(.manuel-outils, .manuel-portail) .cellule-ar.paire-correspondance .valeur-bouton:hover,
.cellule-ar.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-ar.paire-correspondance .valeur-bouton:focus-visible,
.cellule-ar.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible,
:where(.manuel-outils, .manuel-portail) .cellule-hg.paire-correspondance .valeur-bouton:hover,
.cellule-hg.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:hover,
:where(.manuel-outils, .manuel-portail) .cellule-hg.paire-correspondance .valeur-bouton:focus-visible,
.cellule-hg.paire-correspondance:where(.manuel-outils, .manuel-portail) .valeur-bouton:focus-visible {
  color: var(--correspondance);
  border-bottom-color: currentColor;
}

/* ---- Fenêtre de détail d'un système ---- */
:where(.manuel-outils, .manuel-portail) .detail[data-couleur],
.detail[data-couleur]:where(.manuel-outils, .manuel-portail) { border-top: 3px solid var(--systeme-accent); }
:where(.manuel-outils, .manuel-portail) .detail[data-sens="inverse"],
.detail[data-sens="inverse"]:where(.manuel-outils, .manuel-portail) { border-top-style: dashed; }
:where(.manuel-outils, .manuel-portail) .detail[data-couleur] .detail-entete h2,
.detail[data-couleur]:where(.manuel-outils, .manuel-portail) .detail-entete h2,
:where(.manuel-outils, .manuel-portail) .detail[data-couleur] .detail-total strong,
.detail[data-couleur]:where(.manuel-outils, .manuel-portail) .detail-total strong,
:where(.manuel-outils, .manuel-portail) .detail[data-couleur] .table-reference thead th,
.detail[data-couleur]:where(.manuel-outils, .manuel-portail) .table-reference thead th {
  color: var(--systeme-accent);
}

/* ---- Légende compacte (fermée par défaut) ---- */
:where(.manuel-outils, .manuel-portail) .legende-couleurs,
.legende-couleurs:where(.manuel-outils, .manuel-portail) { margin-top: 10px; }
:where(.manuel-outils, .manuel-portail) .legende-couleurs > summary,
.legende-couleurs:where(.manuel-outils, .manuel-portail) > summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .legende-couleurs > summary:hover,
.legende-couleurs:where(.manuel-outils, .manuel-portail) > summary:hover { color: var(--lapis-fonce); }
:where(.manuel-outils, .manuel-portail) .legende-regles,
.legende-regles:where(.manuel-outils, .manuel-portail) {
  margin: 8px 0 6px;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--encre-2);
  line-height: 1.55;
}
:where(.manuel-outils, .manuel-portail) .legende-pastilles,
.legende-pastilles:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
  padding: 0;
  list-style: none;
}
:where(.manuel-outils, .manuel-portail) .legende-pastille,
.legende-pastille:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  padding: 3px 9px 4px;
  border: 1px solid var(--ligne);
  border-top: 3px solid var(--systeme-accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--systeme-accent) 6%, var(--carte));
  color: var(--systeme-accent);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ---- Couleurs forcées : structure sans teintes, texte système ---- */
@media (forced-colors: active) {
  :where(.manuel-outils, .manuel-portail) .carte[data-couleur],
.carte[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte[data-couleur],
.mini-carte[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .legende-pastille,
.legende-pastille:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .detail[data-couleur],
.detail[data-couleur]:where(.manuel-outils, .manuel-portail) {
    background: Canvas;
    border-color: CanvasText;
  }
  :where(.manuel-outils, .manuel-portail) .table-comparaison th[data-couleur],
.table-comparaison:where(.manuel-outils, .manuel-portail) th[data-couleur] { border-color: CanvasText; }
  :where(.manuel-outils, .manuel-portail) .cellule-fr.paire-correspondance[data-couleur],
.cellule-fr.paire-correspondance[data-couleur]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cellule-ar.paire-correspondance[data-couleur],
.cellule-ar.paire-correspondance[data-couleur]:where(.manuel-outils, .manuel-portail) {
    box-shadow: none;
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  :where(.manuel-outils, .manuel-portail) .correspondance-valeur[aria-expanded="true"],
.correspondance-valeur[aria-expanded="true"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .correspondance-valeur-active,
.correspondance-valeur-active:where(.manuel-outils, .manuel-portail) {
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
  @supports selector(.bloc-comparaison-fr:has(.paire-correspondance)) {
    :where(.manuel-outils, .manuel-portail) .bloc-comparaison-fr:has(.paire-correspondance),
.bloc-comparaison-fr:has(.paire-correspondance):where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-ar:has(.paire-correspondance),
.bloc-comparaison-ar:has(.paire-correspondance):where(.manuel-outils, .manuel-portail) {
      border-color: Highlight;
    }
  }
}

/* ====================================================================
   v10 — Référentiels coraniques : classements et Document 01A
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .grille-classements,
.grille-classements:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
:where(.manuel-outils, .manuel-portail) .carte-classement,
.carte-classement:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--carte);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
:where(.manuel-outils, .manuel-portail) .carte-classement-active,
.carte-classement-active:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); }
:where(.manuel-outils, .manuel-portail) .carte-classement-titre,
.carte-classement-titre:where(.manuel-outils, .manuel-portail) { margin: 0; font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .carte-classement-texte,
.carte-classement-texte:where(.manuel-outils, .manuel-portail) { margin: 0; font-size: 0.84rem; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .badge-classement,
.badge-classement:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .badge-disponible,
.badge-disponible:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--lapis) 14%, transparent);
  border-color: var(--lapis);
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .badge-avenir,
.badge-avenir:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-outils,
.rc-outils:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
}
:where(.manuel-outils, .manuel-portail) .rc-recherche,
.rc-recherche:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--carte);
  color: inherit;
  font: inherit;
}
:where(.manuel-outils, .manuel-portail) .rc-recherche:focus-visible,
.rc-recherche:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--lapis); outline-offset: 1px; }
:where(.manuel-outils, .manuel-portail) .rc-compteur,
.rc-compteur:where(.manuel-outils, .manuel-portail) { margin: 4px 0 8px; font-size: 0.8rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .liste-sourates,
.liste-sourates:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
:where(.manuel-outils, .manuel-portail) .ligne-sourate,
.ligne-sourate:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--carte);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
/* Rangée haute : rang éventuel, numéro, titre, badge de lieu à droite. */
:where(.manuel-outils, .manuel-portail) .sourate-ligne-haute,
.sourate-ligne-haute:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .sourate-ligne-haute .sourate-titre-fr,
.sourate-ligne-haute:where(.manuel-outils, .manuel-portail) .sourate-titre-fr {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .sourate-ligne-haute .badge-lieu,
.sourate-ligne-haute:where(.manuel-outils, .manuel-portail) .badge-lieu { margin-left: auto; flex: 0 0 auto; }
/* Rangée basse : nom arabe, translittération, versets. */
:where(.manuel-outils, .manuel-portail) .sourate-ligne-basse,
.sourate-ligne-basse:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .sourate-ligne-basse .sourate-versets,
.sourate-ligne-basse:where(.manuel-outils, .manuel-portail) .sourate-versets { margin-left: auto; }
:where(.manuel-outils, .manuel-portail) .ligne-sourate:hover,
.ligne-sourate:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ligne-sourate:focus-visible,
.ligne-sourate:focus-visible:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); }
:where(.manuel-outils, .manuel-portail) .ligne-sourate[data-personnalisee="true"],
.ligne-sourate[data-personnalisee="true"]:where(.manuel-outils, .manuel-portail) {
  border-inline-start: 3px solid var(--rc-accent-personnalise, var(--lapis));
}
:where(.manuel-outils, .manuel-portail) .sourate-numero,
.sourate-numero:where(.manuel-outils, .manuel-portail) {
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .sourate-titre-fr,
.sourate-titre-fr:where(.manuel-outils, .manuel-portail) { font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .sourate-translit,
.sourate-translit:where(.manuel-outils, .manuel-portail) { font-size: 0.8rem; font-style: italic; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .sourate-arabe,
.sourate-arabe:where(.manuel-outils, .manuel-portail) { font-size: 1.1rem; }
:where(.manuel-outils, .manuel-portail) .sourate-versets,
.sourate-versets:where(.manuel-outils, .manuel-portail) {
  font-size: 0.8rem;
  color: var(--encre-2);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .badge-lieu,
.badge-lieu:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .badge-mecquoise,
.badge-mecquoise:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--dore, #b08d2f) 16%, transparent);
  border-color: var(--dore-fonce, #8a6d20);
  color: var(--dore-fonce, #8a6d20);
}
:where(.manuel-outils, .manuel-portail) .badge-medinoise,
.badge-medinoise:where(.manuel-outils, .manuel-portail) {
  background: color-mix(in srgb, var(--lapis) 14%, transparent);
  border-color: var(--lapis);
  color: var(--lapis-fonce);
}
:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise,
.rc-badge-personnalise:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.55em;
  padding: 0 0.48em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #6f5310;
  background: rgba(255, 240, 181, 0.72);
  font-family: var(--pile-ui);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .ligne-sourate .rc-badge-personnalise,
:root[data-theme="sombre"] .ligne-sourate:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise,
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .rc-personnalisation .rc-badge-personnalise,
:root[data-theme="sombre"] .rc-personnalisation:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise {
  color: #f1cf74;
  background: rgba(120, 84, 7, 0.26);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .ligne-sourate .rc-badge-personnalise,
:root:not([data-theme]) .ligne-sourate:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise,
:root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .rc-personnalisation .rc-badge-personnalise,
:root:not([data-theme]) .rc-personnalisation:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise {
    color: #f1cf74;
    background: rgba(120, 84, 7, 0.26);
  }
}
@media (max-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .sourate-arabe,
.sourate-arabe:where(.manuel-outils, .manuel-portail) { font-size: 1rem; }
}

:where(.manuel-outils, .manuel-portail) .rc-arabe,
.rc-arabe:where(.manuel-outils, .manuel-portail) { font-size: 1.7rem; margin: 4px 0 10px; }
:where(.manuel-outils, .manuel-portail) .rc-fiche[data-personnalisee="true"],
.rc-fiche[data-personnalisee="true"]:where(.manuel-outils, .manuel-portail) {
  border-top: 4px solid var(--rc-accent-personnalise, var(--lapis));
}
:where(.manuel-outils, .manuel-portail) .fiche-ligne,
.fiche-ligne:where(.manuel-outils, .manuel-portail) { display: flex; gap: 10px; margin: 5px 0; align-items: baseline; }
:where(.manuel-outils, .manuel-portail) .fiche-ligne-libelle,
.fiche-ligne-libelle:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 11em;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .fiche-ligne-valeur,
.fiche-ligne-valeur:where(.manuel-outils, .manuel-portail) { font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .rc-avenir-titre,
.rc-avenir-titre:where(.manuel-outils, .manuel-portail) {
  margin: 16px 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dore-fonce, var(--encre-2));
}
:where(.manuel-outils, .manuel-portail) .rc-avenir,
.rc-avenir:where(.manuel-outils, .manuel-portail) { margin: 6px 0 0; padding-left: 18px; }
:where(.manuel-outils, .manuel-portail) .rc-avenir li,
.rc-avenir:where(.manuel-outils, .manuel-portail) li { margin: 3px 0; color: var(--encre-2); }

/* Éditeur local d'une fiche de sourate. */
:where(.manuel-outils, .manuel-portail) .rc-personnalisation,
.rc-personnalisation:where(.manuel-outils, .manuel-portail) {
  margin: 18px 0 4px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--papier);
  overflow: clip;
}
:where(.manuel-outils, .manuel-portail) .rc-personnalisation-resume,
.rc-personnalisation-resume:where(.manuel-outils, .manuel-portail) {
  cursor: pointer;
  padding: 11px 13px;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .rc-personnalisation-resume:focus-visible,
.rc-personnalisation-resume:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid var(--lapis);
  outline-offset: -3px;
}
:where(.manuel-outils, .manuel-portail) .rc-personnalisation[open] .rc-personnalisation-resume,
.rc-personnalisation[open]:where(.manuel-outils, .manuel-portail) .rc-personnalisation-resume {
  border-bottom: 1px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .rc-personnalisation-intro,
.rc-personnalisation-intro:where(.manuel-outils, .manuel-portail) {
  margin: 12px 14px 4px;
  color: var(--encre-2);
  font-size: 0.86rem;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur,
.rc-editeur:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 12px;
  padding: 12px 14px 14px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-champ,
.rc-editeur-champ:where(.manuel-outils, .manuel-portail) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-champ:first-child,
.rc-editeur-champ:first-child:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }
:where(.manuel-outils, .manuel-portail) .rc-editeur-champ label,
.rc-editeur-champ:where(.manuel-outils, .manuel-portail) label,
:where(.manuel-outils, .manuel-portail) .rc-editeur-couleur legend,
.rc-editeur-couleur:where(.manuel-outils, .manuel-portail) legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .rc-editeur input[type="text"],
.rc-editeur:where(.manuel-outils, .manuel-portail) input[type="text"],
:where(.manuel-outils, .manuel-portail) .rc-editeur input[type="number"],
.rc-editeur:where(.manuel-outils, .manuel-portail) input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--ligne);
  border-radius: 9px;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur input:focus-visible,
.rc-editeur:where(.manuel-outils, .manuel-portail) input:focus-visible {
  outline: 3px solid var(--lapis);
  outline-offset: 1px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-aide,
.rc-editeur-aide:where(.manuel-outils, .manuel-portail) {
  color: var(--encre-2);
  font-size: 0.72rem;
  line-height: 1.35;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-couleur,
.rc-editeur-couleur:where(.manuel-outils, .manuel-portail) {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ligne);
  border-radius: 9px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-couleur-ligne,
.rc-editeur-couleur-ligne:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-couleur-ligne label,
.rc-editeur-couleur-ligne:where(.manuel-outils, .manuel-portail) label {
  flex: 1 1 auto;
  font-size: 0.84rem;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur input[type="checkbox"],
.rc-editeur:where(.manuel-outils, .manuel-portail) input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur input[type="color"],
.rc-editeur:where(.manuel-outils, .manuel-portail) input[type="color"] {
  flex: 0 0 auto;
  width: 52px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .rc-editeur input[type="color"]:disabled,
.rc-editeur:where(.manuel-outils, .manuel-portail) input[type="color"]:disabled { opacity: 0.45; }
:where(.manuel-outils, .manuel-portail) .rc-personnalisation-statut,
.rc-personnalisation-statut:where(.manuel-outils, .manuel-portail) {
  grid-column: 1 / -1;
  min-height: 1.35em;
  margin: 0;
  color: var(--lapis-fonce);
  font-size: 0.82rem;
}
:where(.manuel-outils, .manuel-portail) .rc-editeur-actions,
.rc-editeur-actions:where(.manuel-outils, .manuel-portail) {
  grid-column: 1 / -1;
  margin: 0;
}
@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .fiche-ligne,
.fiche-ligne:where(.manuel-outils, .manuel-portail) { flex-direction: column; gap: 2px; }
  :where(.manuel-outils, .manuel-portail) .fiche-ligne-libelle,
.fiche-ligne-libelle:where(.manuel-outils, .manuel-portail) { flex-basis: auto; }
  :where(.manuel-outils, .manuel-portail) .rc-editeur,
.rc-editeur:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .rc-editeur-champ,
.rc-editeur-champ:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-editeur-champ:first-child,
.rc-editeur-champ:first-child:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-editeur-couleur,
.rc-editeur-couleur:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-personnalisation-statut,
.rc-personnalisation-statut:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-editeur-actions,
.rc-editeur-actions:where(.manuel-outils, .manuel-portail) { grid-column: 1; }
  :where(.manuel-outils, .manuel-portail) .rc-editeur-actions .bouton,
.rc-editeur-actions:where(.manuel-outils, .manuel-portail) .bouton { flex: 1 1 100%; }
}

/* ---- Impression : seule la vue générée du référentiel est imprimée ---- */
:where(.manuel-outils, .manuel-portail) #rc-impression,
#rc-impression:where(.manuel-outils, .manuel-portail) { display: none; }
@media print {
  body.mode-impression-01a > *:not(#rc-impression) { display: none !important; }
  body.mode-impression-01a #rc-impression { display: block !important; }
  :where(.manuel-outils, .manuel-portail) #rc-impression h1,
#rc-impression:where(.manuel-outils, .manuel-portail) h1 { font-size: 16pt; margin: 0 0 6pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression p,
#rc-impression:where(.manuel-outils, .manuel-portail) p { font-size: 9pt; margin: 0 0 8pt; }
  :where(.manuel-outils, .manuel-portail) .rc-table-impression,
.rc-table-impression:where(.manuel-outils, .manuel-portail) { width: 100%; border-collapse: collapse; font-size: 8pt; }
  :where(.manuel-outils, .manuel-portail) .rc-table-impression th,
.rc-table-impression:where(.manuel-outils, .manuel-portail) th,
:where(.manuel-outils, .manuel-portail) .rc-table-impression td,
.rc-table-impression:where(.manuel-outils, .manuel-portail) td { border: 0.5pt solid #444; padding: 2pt 4pt; text-align: left; }
  :where(.manuel-outils, .manuel-portail) .rc-table-impression th,
.rc-table-impression:where(.manuel-outils, .manuel-portail) th { background: #eee; }
}

/* ====================================================================
   v10.1 — Vue planche du référentiel 01A (synoptique fidèle)
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .rc-commutateur,
.rc-commutateur:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  align-items: center;
}

/* La planche évoque le document original : fond parcheminé clair et encre
   sombre, quel que soit le thème de l'application. */
:where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail) {
  background: #f8f2e0;
  color: #201c12;
  border: 2px solid #201c12;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px 14px;
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .planche-titre,
.planche-titre:where(.manuel-outils, .manuel-portail) {
  margin: 0 0 4px;
  text-align: center;
  font-size: 1.15rem;
  color: #201c12;
  border-bottom: 2px solid #201c12;
  padding-bottom: 6px;
}
:where(.manuel-outils, .manuel-portail) .planche-resume,
.planche-resume:where(.manuel-outils, .manuel-portail) {
  margin: 6px 0 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
:where(.manuel-outils, .manuel-portail) .planche-grille,
.planche-grille:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .planche-groupe,
.planche-groupe:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
:where(.manuel-outils, .manuel-portail) .ligne-planche,
.ligne-planche:where(.manuel-outils, .manuel-portail) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(32, 28, 18, 0.34);
  border-inline-start: 3px solid var(--rc-accent-personnalise, rgba(32, 28, 18, 0.52));
  border-radius: 7px;
  background: #fffaf0;
  background: color-mix(
    in srgb,
    var(--rc-accent-personnalise, #8f6a1e) 4%,
    #fffaf0
  );
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 7px 8px;
  font-size: 0.76rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.08);
  transition: background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: rgba(36, 65, 140, 0.16);
}
:where(.manuel-outils, .manuel-portail) .ligne-planche:hover,
.ligne-planche:hover:where(.manuel-outils, .manuel-portail) {
  border-color: var(--rc-accent-personnalise, #8f6a1e);
  background: #fff7e7;
  background: color-mix(
    in srgb,
    var(--rc-accent-personnalise, #8f6a1e) 9%,
    #fffaf0
  );
  box-shadow: 0 3px 8px rgba(32, 28, 18, 0.16);
  transform: translateY(-1px);
}
:where(.manuel-outils, .manuel-portail) .ligne-planche:focus-visible,
.ligne-planche:focus-visible:where(.manuel-outils, .manuel-portail) {
  position: relative;
  z-index: 1;
  border-color: var(--rc-accent-personnalise, #24418c);
  outline: 3px solid #24418c;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #f8f2e0;
}
:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) {
  max-width: 34rem;
  color: #201c12;
  cursor: default;
}
:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance:hover,
.fiche-sourate-correspondance:hover:where(.manuel-outils, .manuel-portail) {
  border-color: rgba(32, 28, 18, 0.34);
  border-inline-start-color: var(--rc-accent-personnalise, rgba(32, 28, 18, 0.52));
  background: #fffaf0;
  background: color-mix(
    in srgb,
    var(--rc-accent-personnalise, #8f6a1e) 4%,
    #fffaf0
  );
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.08);
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  :where(.manuel-outils, .manuel-portail) .ligne-planche,
.ligne-planche:where(.manuel-outils, .manuel-portail) { transition: none; }
  :where(.manuel-outils, .manuel-portail) .ligne-planche:hover,
.ligne-planche:hover:where(.manuel-outils, .manuel-portail) { transform: none; }
}

/* Hiérarchie des cartes. Ces classes servent au balisage enrichi, tout en
   laissant le contenu historique en ligne parfaitement lisible. */
:where(.manuel-outils, .manuel-portail) .pl-entete,
.pl-entete:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pl-corps,
.pl-corps:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pl-meta,
.pl-meta:where(.manuel-outils, .manuel-portail) {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
}
:where(.manuel-outils, .manuel-portail) .pl-entete,
.pl-entete:where(.manuel-outils, .manuel-portail) {
  gap: 4px 6px;
  margin-bottom: 2px;
}
:where(.manuel-outils, .manuel-portail) .pl-entete > .pl-rang,
.pl-entete:where(.manuel-outils, .manuel-portail) > .pl-rang {
  flex: 1 0 100%;
  color: #665f51;
  font-size: 0.68rem;
  line-height: 1.25;
}
:where(.manuel-outils, .manuel-portail) .pl-prefixe,
.pl-prefixe:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 auto;
  color: #665f51;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
:where(.manuel-outils, .manuel-portail) .pl-corps,
.pl-corps:where(.manuel-outils, .manuel-portail) {
  gap: 2px 7px;
  margin-bottom: 3px;
}
:where(.manuel-outils, .manuel-portail) .pl-meta,
.pl-meta:where(.manuel-outils, .manuel-portail) {
  gap: 2px 5px;
  color: #5f5748;
  font-size: 0.7rem;
}
:where(.manuel-outils, .manuel-portail) .pl-numero-affiche,
.pl-numero-affiche:where(.manuel-outils, .manuel-portail) {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 2.35em;
  min-height: 2em;
  padding: 0 0.42em;
  border: 1px solid var(--rc-accent-personnalise, rgba(32, 28, 18, 0.42));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .pl-emoji,
.pl-emoji:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}
:where(.manuel-outils, .manuel-portail) .pl-titre-fr,
.pl-titre-fr:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 8rem;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}
:where(.manuel-outils, .manuel-portail) .pl-arabe,
.pl-arabe:where(.manuel-outils, .manuel-portail) {
  font-size: 1rem;
  line-height: 1.35;
}
:where(.manuel-outils, .manuel-portail) .pl-lettre,
.pl-lettre:where(.manuel-outils, .manuel-portail) { font-size: 0.9rem; }
:where(.manuel-outils, .manuel-portail) .pl-nombre,
.pl-nombre:where(.manuel-outils, .manuel-portail) {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
}
/* Les nombres classés partagent une palette. Le soulignement plein
   distingue les multi-polygonaux, y compris dans les textes non cliquables. */
:where(.manuel-outils, .manuel-portail) .pl-premier,
.pl-premier:where(.manuel-outils, .manuel-portail) { color: var(--nombre-premier); }
:where(.manuel-outils, .manuel-portail) .pl-polygonal,
.pl-polygonal:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pl-multi-polygonal,
.pl-multi-polygonal:where(.manuel-outils, .manuel-portail) { color: var(--nombre-polygonal); }
:where(.manuel-outils, .manuel-portail) .pl-multi-polygonal,
.pl-multi-polygonal:where(.manuel-outils, .manuel-portail) {
  text-decoration: underline solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:where(.manuel-outils, .manuel-portail) .pl-premier-polygonal,
.pl-premier-polygonal:where(.manuel-outils, .manuel-portail) { color: var(--nombre-premier-polygonal); }
:where(.manuel-outils, .manuel-portail) .pl-un,
.pl-un:where(.manuel-outils, .manuel-portail) { color: var(--nombre-un); }
:where(.manuel-outils, .manuel-portail) .pl-neutre,
.pl-neutre:where(.manuel-outils, .manuel-portail) { color: inherit; font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .legende-libelle,
.legende-libelle:where(.manuel-outils, .manuel-portail) { font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .legende-libelle.pl-neutre,
.legende-libelle.pl-neutre:where(.manuel-outils, .manuel-portail) { font-weight: 600; }

/* Titres et translittérations des lignes de planche */
:where(.manuel-outils, .manuel-portail) .pl-translit,
.pl-translit:where(.manuel-outils, .manuel-portail) {
  color: #665f51;
  font-size: 0.72rem;
  font-style: italic;
}

/* Code couleur centralisé des planètes (légende, lignes, fiches) */
:where(.manuel-outils, .manuel-portail) .planete-mars,
.planete-mars:where(.manuel-outils, .manuel-portail) { color: var(--fiche-mars); font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .planete-venus,
.planete-venus:where(.manuel-outils, .manuel-portail) { color: var(--fiche-venus); font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .planete-mercure,
.planete-mercure:where(.manuel-outils, .manuel-portail) { color: var(--fiche-mercure); font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .planete-lune,
.planete-lune:where(.manuel-outils, .manuel-portail) { color: var(--fiche-lune); font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .planete-soleil,
.planete-soleil:where(.manuel-outils, .manuel-portail) { color: var(--fiche-soleil); font-weight: 700; -webkit-text-stroke: .75px var(--contour-soleil); paint-order: stroke fill; }
:where(.manuel-outils, .manuel-portail) .planete-saturne,
.planete-saturne:where(.manuel-outils, .manuel-portail) { color: var(--fiche-saturne); font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .planete-jupiter,
.planete-jupiter:where(.manuel-outils, .manuel-portail) { color: var(--fiche-jupiter); font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .planche-legende,
.planche-legende:where(.manuel-outils, .manuel-portail) {
  border: 1px solid #201c12;
  border-radius: 4px;
  padding: 6px 10px 8px;
  margin: 0 0 8px;
  background: #fbf7ea;
  font-size: 0.76rem;
}
:where(.manuel-outils, .manuel-portail) .planche-legende-titre,
.planche-legende-titre:where(.manuel-outils, .manuel-portail) {
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}
:where(.manuel-outils, .manuel-portail) .planche-legende-liste,
.planche-legende-liste:where(.manuel-outils, .manuel-portail) {
  margin: 6px 0;
  padding-left: 4px;
  list-style: none;
}
:where(.manuel-outils, .manuel-portail) .planche-legende-liste li,
.planche-legende-liste:where(.manuel-outils, .manuel-portail) li { margin: 2px 0; }
:where(.manuel-outils, .manuel-portail) .planche-legende-bloc,
.planche-legende-bloc:where(.manuel-outils, .manuel-portail) { margin: 4px 0; }

/* Légende en pleine largeur au-dessus de la grille. */
:where(.manuel-outils, .manuel-portail) .planche-legende,
.planche-legende:where(.manuel-outils, .manuel-portail) { margin: 0 0 10px; }

/* Responsive : 1 colonne (téléphone), 2 (tablette), 3 (ordinateur),
   puis 6 colonnes de 19 sourates lorsque la largeur utile le permet.
   L'ordre du DOM reste numérique : 1–19, 20–38, … 96–114. */
@media (min-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .planche-grille,
.planche-grille:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 960px) {
  :where(.manuel-outils, .manuel-portail) .planche-grille,
.planche-grille:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  :where(.manuel-outils, .manuel-portail) .planche-grille,
.planche-grille:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* La planche s'étend au-delà de la colonne centrale pour rester lisible. */
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail) {
    width: min(96vw, 1900px);
    max-width: none;
    margin-left: calc((100% - min(96vw, 1900px)) / 2);
    margin-right: calc((100% - min(96vw, 1900px)) / 2);
  }
}

@media (forced-colors: active) {
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .planche-groupe,
.planche-groupe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .planche-legende,
.planche-legende:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ligne-planche,
.ligne-planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .pl-numero-affiche,
.pl-numero-affiche:where(.manuel-outils, .manuel-portail) {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
  :where(.manuel-outils, .manuel-portail) .ligne-planche:hover,
.ligne-planche:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ligne-planche:focus-visible,
.ligne-planche:focus-visible:where(.manuel-outils, .manuel-portail) {
    background: Canvas;
    border-color: Highlight;
    outline-color: Highlight;
    transform: none;
  }
}

/* ---- v11 : rang de révélation (Document 02) ---- */
:where(.manuel-outils, .manuel-portail) .pl-rang,
.pl-rang:where(.manuel-outils, .manuel-portail) { font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .sourate-rang,
.sourate-rang:where(.manuel-outils, .manuel-portail) {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--encre-2);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
/* Le rang de révélation reste visuellement distinct du numéro de sourate. */
:where(.manuel-outils, .manuel-portail) .sourate-rang,
.sourate-rang:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 auto;
  min-width: 2.6em;
  padding: 0 6px;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  background: var(--creux, transparent);
  text-align: center;
}
/* Fin d'un cycle de 19 révélations : séparation discrète. */
:where(.manuel-outils, .manuel-portail) li.fin-cycle-19,
li.fin-cycle-19:where(.manuel-outils, .manuel-portail) {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ligne);
}

/* Les planches gardent leur fond crème et la palette claire, quel que
   soit le thème de lecture autour d’elles. */
:where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) {
  --nombre-premier: #1a5fb4;
  --nombre-polygonal: #6d31a8;
  --nombre-premier-polygonal: #b81414;
  --nombre-un: #157a3c;
}
@media print {
  :where(.manuel-outils, .manuel-portail),
:root[data-theme] :where(.manuel-outils, .manuel-portail) {
    --nombre-premier: #1a5fb4;
    --nombre-polygonal: #6d31a8;
    --nombre-premier-polygonal: #b81414;
    --nombre-un: #157a3c;
  }
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail) {
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 8pt;
    background: #f8f2e0 !important;
    color: #201c12 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  :where(.manuel-outils, .manuel-portail) .planche-grille,
.planche-grille:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4pt;
  }
  :where(.manuel-outils, .manuel-portail) .planche-groupe,
.planche-groupe:where(.manuel-outils, .manuel-portail) { gap: 2pt; }
  :where(.manuel-outils, .manuel-portail) .ligne-planche,
.ligne-planche:where(.manuel-outils, .manuel-portail) {
    min-height: 0;
    break-inside: avoid;
    border: 0.5pt solid rgba(32, 28, 18, 0.55);
    border-inline-start: 1.5pt solid var(--rc-accent-personnalise, #201c12);
    border-radius: 2pt;
    padding: 2pt 3pt;
    background: #fffaf0 !important;
    box-shadow: none;
    font-size: 6.5pt;
    transform: none;
  }
  :where(.manuel-outils, .manuel-portail) .pl-numero-affiche,
.pl-numero-affiche:where(.manuel-outils, .manuel-portail) { min-height: 0; }
}

/* ====================================================================
   v12 — Calculateur de dates
   ==================================================================== */
:where(.manuel-outils, .manuel-portail) .datecalc-panneaux,
.datecalc-panneaux:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 14px 0;
}
:where(.manuel-outils, .manuel-portail) .datecalc-saisie,
.datecalc-saisie:where(.manuel-outils, .manuel-portail) { gap: 8px; }
:where(.manuel-outils, .manuel-portail) .datecalc-echanger,
.datecalc-echanger:where(.manuel-outils, .manuel-portail) {
  align-self: center; justify-self: center; min-width: 44px; min-height: 44px;
  padding: 4px 8px; border-radius: 50%;
}
:where(.manuel-outils, .manuel-portail) .datecalc-fleche,
.datecalc-fleche:where(.manuel-outils, .manuel-portail) { display: block; font-size: 1.6rem; line-height: 1; transform: rotate(90deg); }
:where(.manuel-outils, .manuel-portail) .datecalc-format,
.datecalc-format:where(.manuel-outils, .manuel-portail) { margin: 6px 0 0; font-size: 0.76rem; }
@media (min-width: 1000px) {
  :where(.manuel-outils, .manuel-portail) .datecalc-panneaux,
.datecalc-panneaux:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .datecalc-saisie,
.datecalc-saisie:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .datecalc-fleche,
.datecalc-fleche:where(.manuel-outils, .manuel-portail) { transform: none; }
}
:where(.manuel-outils, .manuel-portail) .datecalc-panneau,
.datecalc-panneau:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .datecalc-section,
.datecalc-section:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--carte);
  padding: 12px 16px 14px;
  margin: 0;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .datecalc-centrale,
.datecalc-centrale:where(.manuel-outils, .manuel-portail) { border: 2px solid var(--lapis); background: var(--lapis-teinte); }
:where(.manuel-outils, .manuel-portail) .datecalc-section,
.datecalc-section:where(.manuel-outils, .manuel-portail) { margin: 14px 0; }
:where(.manuel-outils, .manuel-portail) .datecalc-panneau legend,
.datecalc-panneau:where(.manuel-outils, .manuel-portail) legend,
:where(.manuel-outils, .manuel-portail) .datecalc-section legend,
.datecalc-section:where(.manuel-outils, .manuel-portail) legend {
  font-weight: 700;
  padding: 0 6px;
}
:where(.manuel-outils, .manuel-portail) .datecalc-label,
.datecalc-label:where(.manuel-outils, .manuel-portail) { display: block; font-size: 0.82rem; color: var(--encre-2); margin: 4px 0; }
:where(.manuel-outils, .manuel-portail) .datecalc-champ,
.datecalc-champ:where(.manuel-outils, .manuel-portail) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--creux, var(--papier));
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
  width: 100%;
  max-width: 260px;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .datecalc-champ:focus-visible,
.datecalc-champ:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--lapis); outline-offset: 1px; }
:where(.manuel-outils, .manuel-portail) .datecalc-action,
.datecalc-action:where(.manuel-outils, .manuel-portail) { min-height: 44px; margin-top: 8px; }
:where(.manuel-outils, .manuel-portail) .datecalc-resume,
.datecalc-resume:where(.manuel-outils, .manuel-portail) { margin: 8px 0 0; font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .datecalc-erreur,
.datecalc-erreur:where(.manuel-outils, .manuel-portail) { margin: 6px 0 0; color: #b81414; font-size: 0.85rem; }
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .datecalc-erreur,
:root[data-theme="sombre"] .datecalc-erreur:where(.manuel-outils, .manuel-portail) { color: #ff9090; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .datecalc-erreur,
:root:not([data-theme]) .datecalc-erreur:where(.manuel-outils, .manuel-portail) { color: #ff9090; }
}
:where(.manuel-outils, .manuel-portail) .datecalc-analyse-titre,
.datecalc-analyse-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 8px; font-size: 0.95rem; }
:where(.manuel-outils, .manuel-portail) .datecalc-liste,
.datecalc-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:where(.manuel-outils, .manuel-portail) .datecalc-ligne,
.datecalc-ligne:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 6px 8px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--creux, transparent);
}
:where(.manuel-outils, .manuel-portail) .datecalc-ligne-nom,
.datecalc-ligne-nom:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 100%;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .datecalc-ligne-formule,
.datecalc-ligne-formule:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 auto;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .datecalc-nombre,
.datecalc-nombre:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: var(--carte);
  padding: 6px 12px;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  cursor: pointer;
  margin-left: auto;
}
:where(.manuel-outils, .manuel-portail) .datecalc-nombre:hover,
.datecalc-nombre:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .datecalc-nombre:focus-visible,
.datecalc-nombre:focus-visible:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); }
:where(.manuel-outils, .manuel-portail) .datecalc-composantes,
.datecalc-composantes:where(.manuel-outils, .manuel-portail) { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
:where(.manuel-outils, .manuel-portail) .datecalc-composantes .datecalc-nombre,
.datecalc-composantes:where(.manuel-outils, .manuel-portail) .datecalc-nombre { margin-left: 0; }
:where(.manuel-outils, .manuel-portail) .datecalc-inclure,
.datecalc-inclure:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
:where(.manuel-outils, .manuel-portail) .datecalc-periode-grille,
.datecalc-periode-grille:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
:where(.manuel-outils, .manuel-portail) .datecalc-periode-champ label,
.datecalc-periode-champ:where(.manuel-outils, .manuel-portail) label { display: block; font-size: 0.8rem; color: var(--encre-2); }
:where(.manuel-outils, .manuel-portail) .datecalc-periode-champ input,
.datecalc-periode-champ:where(.manuel-outils, .manuel-portail) input {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--creux, var(--papier));
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
}
:where(.manuel-outils, .manuel-portail) .datecalc-resultat-periode,
.datecalc-resultat-periode:where(.manuel-outils, .manuel-portail) { font-weight: 700; margin: 10px 0 6px; }
:where(.manuel-outils, .manuel-portail) .datecalc-resultat-periode:empty,
.datecalc-resultat-periode:empty:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .datecalc-erreur:empty,
.datecalc-erreur:empty:where(.manuel-outils, .manuel-portail) { display: none; }
:where(.manuel-outils, .manuel-portail) .datecalc-regle-periode,
.datecalc-regle-periode:where(.manuel-outils, .manuel-portail) { max-width: 85ch; margin: 12px 0 0; line-height: 1.5; }
:where(.manuel-outils, .manuel-portail) .datecalc-durees,
.datecalc-durees:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
:where(.manuel-outils, .manuel-portail) .datecalc-duree-carte,
.datecalc-duree-carte:where(.manuel-outils, .manuel-portail) {
  min-width: 0; padding: 14px; border: 1px solid var(--ligne);
  border-radius: 12px; background: var(--creux, var(--papier));
}
:where(.manuel-outils, .manuel-portail) .datecalc-duree-carte h3,
.datecalc-duree-carte:where(.manuel-outils, .manuel-portail) h3 { margin: 0; font-size: 1rem; }
:where(.manuel-outils, .manuel-portail) .datecalc-intervalle-dates,
.datecalc-intervalle-dates:where(.manuel-outils, .manuel-portail) { font-size: 0.88rem; color: var(--encre-2); overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .datecalc-total-intervalle,
.datecalc-total-intervalle:where(.manuel-outils, .manuel-portail) { display: flex; align-items: baseline; gap: 8px; font-size: 1.15rem; margin: 10px 0; }
:where(.manuel-outils, .manuel-portail) .datecalc-total-intervalle .datecalc-nombre,
.datecalc-total-intervalle:where(.manuel-outils, .manuel-portail) .datecalc-nombre { margin: 0; font-size: 1.7rem; }
:where(.manuel-outils, .manuel-portail) .datecalc-details-duree summary,
.datecalc-details-duree:where(.manuel-outils, .manuel-portail) summary,
:where(.manuel-outils, .manuel-portail) .datecalc-details-analyse summary,
.datecalc-details-analyse:where(.manuel-outils, .manuel-portail) summary {
  cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0;
}
:where(.manuel-outils, .manuel-portail) .datecalc-details-duree summary:focus-visible,
.datecalc-details-duree:where(.manuel-outils, .manuel-portail) summary:focus-visible,
:where(.manuel-outils, .manuel-portail) .datecalc-details-analyse summary:focus-visible,
.datecalc-details-analyse:where(.manuel-outils, .manuel-portail) summary:focus-visible {
  outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 4px;
}
:where(.manuel-outils, .manuel-portail) .datecalc-details-analyse,
.datecalc-details-analyse:where(.manuel-outils, .manuel-portail) { margin: 0; }
:where(.manuel-outils, .manuel-portail) .datecalc-details-analyse .datecalc-analyse,
.datecalc-details-analyse:where(.manuel-outils, .manuel-portail) .datecalc-analyse { margin-top: 12px; }
@media (min-width: 1000px) {
  :where(.manuel-outils, .manuel-portail) .datecalc-durees,
.datecalc-durees:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  :where(.manuel-outils, .manuel-portail) .datecalc-nombre,
.datecalc-nombre:where(.manuel-outils, .manuel-portail) { transition: none; }
}

/* ============ v13 : Références gématriques ============ */

:where(.manuel-outils, .manuel-portail) .refgem-outils,
.refgem-outils:where(.manuel-outils, .manuel-portail) { flex-wrap: wrap; align-items: center; gap: 0.6rem; }
:where(.manuel-outils, .manuel-portail) .refgem-mode-import,
.refgem-mode-import:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .refgem-mode-import select,
.refgem-mode-import:where(.manuel-outils, .manuel-portail) select { min-height: 44px; }
:where(.manuel-outils, .manuel-portail) .refgem-fichier[hidden],
.refgem-fichier[hidden]:where(.manuel-outils, .manuel-portail) { display: none !important; }

:where(.manuel-outils, .manuel-portail) .refgem-zone-copie textarea,
.refgem-zone-copie:where(.manuel-outils, .manuel-portail) textarea {
  width: 100%; min-height: 8rem; resize: vertical;
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.85rem;
  background: var(--fond-carte); color: var(--texte); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 0.6rem;
}

:where(.manuel-outils, .manuel-portail) .refgem-filtres,
.refgem-filtres:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem; margin: 0.9rem 0; align-items: end;
}
:where(.manuel-outils, .manuel-portail) .refgem-champ,
.refgem-champ:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: 0.3rem; }
:where(.manuel-outils, .manuel-portail) .refgem-champ-large,
.refgem-champ-large:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }
:where(.manuel-outils, .manuel-portail) .refgem-champ label,
.refgem-champ:where(.manuel-outils, .manuel-portail) label { font-size: 0.88rem; color: var(--texte-attenue); }
:where(.manuel-outils, .manuel-portail) .refgem-champ input,
.refgem-champ:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .refgem-champ select,
.refgem-champ:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .refgem-champ textarea,
.refgem-champ:where(.manuel-outils, .manuel-portail) textarea {
  min-height: 44px; padding: 0.45rem 0.6rem; border: 1px solid var(--bordure);
  border-radius: 8px; background: var(--fond-carte); color: var(--texte);
  font: inherit;
}
:where(.manuel-outils, .manuel-portail) .refgem-champ textarea,
.refgem-champ:where(.manuel-outils, .manuel-portail) textarea { min-height: 5rem; resize: vertical; }
:where(.manuel-outils, .manuel-portail) .refgem-erreur,
.refgem-erreur:where(.manuel-outils, .manuel-portail) { color: var(--couleur-danger, #b3261e); font-size: 0.85rem; min-height: 1em; margin: 0; }

:where(.manuel-outils, .manuel-portail) .refgem-vues,
.refgem-vues:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0.4rem 0 0.9rem; }
:where(.manuel-outils, .manuel-portail) .refgem-vue-bouton[aria-pressed="true"],
.refgem-vue-bouton[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  background: var(--accent); color: var(--texte-sur-accent, #fff);
  border-color: var(--accent);
}
:where(.manuel-outils, .manuel-portail) .refgem-compteur,
.refgem-compteur:where(.manuel-outils, .manuel-portail) { margin-inline-start: auto; font-size: 0.9rem; color: var(--texte-attenue); }

:where(.manuel-outils, .manuel-portail) .refgem-editeur,
.refgem-editeur:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 12px;
  padding: 1rem; margin: 0 0 1.1rem; background: var(--fond-carte);
}
:where(.manuel-outils, .manuel-portail) .refgem-editeur-titre,
.refgem-editeur-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.6rem; font-size: 1.15rem; }
:where(.manuel-outils, .manuel-portail) .refgem-editeur-grille,
.refgem-editeur-grille:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-avertissement,
.refgem-avertissement:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--couleur-avertissement, #9a6a00);
  border-radius: 8px; padding: 0.55rem 0.7rem; margin: 0 0 0.7rem;
  font-size: 0.92rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-systemes,
.refgem-systemes:where(.manuel-outils, .manuel-portail) { border: 1px solid var(--bordure); border-radius: 10px; margin: 0.9rem 0 0; padding: 0.7rem; }
:where(.manuel-outils, .manuel-portail) .refgem-systemes legend,
.refgem-systemes:where(.manuel-outils, .manuel-portail) legend { padding: 0 0.4rem; font-size: 0.92rem; }
:where(.manuel-outils, .manuel-portail) .refgem-systemes-grille,
.refgem-systemes-grille:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.35rem; max-height: 21rem; overflow-y: auto; padding: 0.15rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-systeme-ligne,
.refgem-systeme-ligne:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.3rem 0.4rem; border-radius: 8px;
}
:where(.manuel-outils, .manuel-portail) .refgem-systeme-ligne input[type="checkbox"],
.refgem-systeme-ligne:where(.manuel-outils, .manuel-portail) input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: none; }
:where(.manuel-outils, .manuel-portail) .refgem-systeme-nom,
.refgem-systeme-nom:where(.manuel-outils, .manuel-portail) { color: var(--systeme-accent); font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .refgem-systeme-actuel,
.refgem-systeme-actuel:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; color: var(--texte-attenue); }
:where(.manuel-outils, .manuel-portail) .refgem-systeme-valeur,
.refgem-systeme-valeur:where(.manuel-outils, .manuel-portail) { width: 7.5rem; min-height: 40px; padding: 0.3rem 0.5rem;
  border: 1px solid var(--bordure); border-radius: 8px;
  background: var(--fond); color: var(--texte); font: inherit; }
:where(.manuel-outils, .manuel-portail) .refgem-avertissement-valeur,
.refgem-avertissement-valeur:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; color: var(--couleur-avertissement, #9a6a00); flex-basis: 100%; }

:where(.manuel-outils, .manuel-portail) .refgem-liste,
.refgem-liste:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: 0.9rem; }
:where(.manuel-outils, .manuel-portail) .refgem-fiche,
.refgem-fiche:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 12px;
  padding: 0.9rem 1rem; background: var(--fond-carte);
}
:where(.manuel-outils, .manuel-portail) .refgem-fiche-entete,
.refgem-fiche-entete:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
:where(.manuel-outils, .manuel-portail) .refgem-fiche-titre,
.refgem-fiche-titre:where(.manuel-outils, .manuel-portail) { margin: 0; font-size: 1.05rem; }
:where(.manuel-outils, .manuel-portail) .refgem-badge-module,
.refgem-badge-module:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .refgem-badge-ordre,
.refgem-badge-ordre:where(.manuel-outils, .manuel-portail) {
  font-size: 0.78rem; border: 1px solid var(--bordure); border-radius: 999px;
  padding: 0.1rem 0.55rem; color: var(--texte-attenue);
}
:where(.manuel-outils, .manuel-portail) .refgem-badge-ordre,
.refgem-badge-ordre:where(.manuel-outils, .manuel-portail) { font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .refgem-texte,
.refgem-texte:where(.manuel-outils, .manuel-portail) { font-size: 1.25rem; margin: 0.45rem 0 0.2rem; overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .refgem-texte[dir="rtl"],
.refgem-texte[dir="rtl"]:where(.manuel-outils, .manuel-portail) { font-size: 1.5rem; }
:where(.manuel-outils, .manuel-portail) .refgem-variantes,
.refgem-variantes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .refgem-normalise,
.refgem-normalise:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .refgem-dates,
.refgem-dates:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .refgem-source,
.refgem-source:where(.manuel-outils, .manuel-portail) {
  margin: 0.15rem 0; font-size: 0.88rem; color: var(--texte-attenue); overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .refgem-note,
.refgem-note:where(.manuel-outils, .manuel-portail) { margin: 0.3rem 0; font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .refgem-categories,
.refgem-categories:where(.manuel-outils, .manuel-portail) { margin: 0.35rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
:where(.manuel-outils, .manuel-portail) .refgem-categorie,
.refgem-categorie:where(.manuel-outils, .manuel-portail) {
  font-size: 0.8rem; border: 1px solid var(--bordure); border-radius: 999px;
  padding: 0.12rem 0.6rem; background: var(--fond);
}
:where(.manuel-outils, .manuel-portail) .refgem-valeurs,
.refgem-valeurs:where(.manuel-outils, .manuel-portail) { list-style: none; margin: 0.55rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
:where(.manuel-outils, .manuel-portail) .refgem-valeur,
.refgem-valeur:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
:where(.manuel-outils, .manuel-portail) .refgem-nombre,
.refgem-nombre:where(.manuel-outils, .manuel-portail) {
  min-height: 44px; min-width: 44px; padding: 0.3rem 0.75rem;
  border: 1px solid currentColor; border-radius: 10px; background: transparent;
  font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums;
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .refgem-badge-propriete,
.refgem-badge-propriete:where(.manuel-outils, .manuel-portail) {
  font-size: 0.78rem; border: 1px solid currentColor; border-radius: 999px;
  padding: 0.08rem 0.55rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-alerte,
.refgem-alerte:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-direction: column; gap: 0.1rem; flex-basis: 100%;
  border: 1px solid var(--couleur-avertissement, #9a6a00); border-radius: 8px;
  padding: 0.45rem 0.6rem; font-size: 0.88rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-indisponible,
.refgem-indisponible:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; font-style: italic; color: var(--texte-attenue); }
:where(.manuel-outils, .manuel-portail) .refgem-fiche-actions,
.refgem-fiche-actions:where(.manuel-outils, .manuel-portail) { margin-top: 0.7rem; flex-wrap: wrap; }

:where(.manuel-outils, .manuel-portail) .refgem-groupe,
.refgem-groupe:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 12px;
  padding: 0.8rem 1rem; background: var(--fond-carte);
}
:where(.manuel-outils, .manuel-portail) .refgem-groupe-entete,
.refgem-groupe-entete:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
:where(.manuel-outils, .manuel-portail) .refgem-groupe-compte,
.refgem-groupe-compte:where(.manuel-outils, .manuel-portail) { font-size: 0.88rem; color: var(--texte-attenue); }
:where(.manuel-outils, .manuel-portail) .refgem-badge-resonance,
.refgem-badge-resonance:where(.manuel-outils, .manuel-portail) {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 0.1rem 0.6rem;
}
:where(.manuel-outils, .manuel-portail) .refgem-groupe-liste,
.refgem-groupe-liste:where(.manuel-outils, .manuel-portail) { list-style: none; margin: 0.5rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.3rem; }
:where(.manuel-outils, .manuel-portail) .refgem-groupe-item,
.refgem-groupe-item:where(.manuel-outils, .manuel-portail) { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.95rem; }
:where(.manuel-outils, .manuel-portail) .refgem-groupe-expression,
.refgem-groupe-expression:where(.manuel-outils, .manuel-portail) { overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .refgem-groupe-systeme,
.refgem-groupe-systeme:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; color: var(--texte-attenue); }

@media (max-width: 640px) {
  :where(.manuel-outils, .manuel-portail) .refgem-filtres,
.refgem-filtres:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .refgem-editeur-grille,
.refgem-editeur-grille:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .refgem-systemes-grille,
.refgem-systemes-grille:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; max-height: 17rem; }
  :where(.manuel-outils, .manuel-portail) .refgem-compteur,
.refgem-compteur:where(.manuel-outils, .manuel-portail) { margin-inline-start: 0; flex-basis: 100%; }
}

/* ---------- v14 : Correspondances numériques ---------- */
:where(.manuel-outils, .manuel-portail) .corres-vues,
.corres-vues:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem;
}
:where(.manuel-outils, .manuel-portail) .corres-vue-bouton,
.corres-vue-bouton:where(.manuel-outils, .manuel-portail) { min-height: 44px; }
:where(.manuel-outils, .manuel-portail) .corres-vue-bouton[aria-current="true"],
.corres-vue-bouton[aria-current="true"]:where(.manuel-outils, .manuel-portail) {
  background: var(--accent); color: var(--fond);
  border-color: var(--accent); font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .corres-champ,
.corres-champ:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0 1rem; }
:where(.manuel-outils, .manuel-portail) .corres-champ label,
.corres-champ:where(.manuel-outils, .manuel-portail) label { font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .corres-champ input,
.corres-champ:where(.manuel-outils, .manuel-portail) input {
  min-height: 44px; padding: 0.5rem 0.75rem; font-size: 1rem;
  background: var(--fond-carte); color: var(--texte);
  border: 1px solid var(--bordure); border-radius: 8px; max-width: 26rem;
}
:where(.manuel-outils, .manuel-portail) .corres-compteur,
.corres-compteur:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); margin: 0.25rem 0 0.75rem; }
:where(.manuel-outils, .manuel-portail) .corres-resultat,
.corres-resultat:where(.manuel-outils, .manuel-portail) {
  background: var(--fond-carte); border: 1px solid var(--bordure);
  border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.9rem;
}
:where(.manuel-outils, .manuel-portail) .corres-resultat h3,
.corres-resultat:where(.manuel-outils, .manuel-portail) h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
:where(.manuel-outils, .manuel-portail) .corres-ligne,
.corres-ligne:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0;
}
:where(.manuel-outils, .manuel-portail) .corres-nombre,
.corres-nombre:where(.manuel-outils, .manuel-portail) {
  min-height: 44px; min-width: 44px; padding: 0.35rem 0.7rem;
  border: 1px solid var(--bordure); border-radius: 8px;
  background: var(--fond-carte); font-variant-numeric: tabular-nums;
  font-size: 1rem; cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .corres-nombre:hover,
.corres-nombre:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .corres-nombre:focus-visible,
.corres-nombre:focus-visible:where(.manuel-outils, .manuel-portail) { border-color: var(--accent); }
:where(.manuel-outils, .manuel-portail) .corres-table,
.corres-table:where(.manuel-outils, .manuel-portail) { width: 100%; border-collapse: collapse; }
:where(.manuel-outils, .manuel-portail) .corres-table th,
.corres-table:where(.manuel-outils, .manuel-portail) th,
:where(.manuel-outils, .manuel-portail) .corres-table td,
.corres-table:where(.manuel-outils, .manuel-portail) td {
  padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid var(--bordure);
}
:where(.manuel-outils, .manuel-portail) .corres-table th,
.corres-table:where(.manuel-outils, .manuel-portail) th { position: sticky; top: 0; background: var(--fond); }
:where(.manuel-outils, .manuel-portail) .corres-symbole,
.corres-symbole:where(.manuel-outils, .manuel-portail) { font-weight: 700; }
:where(.manuel-outils, .manuel-portail) .corres-continent,
.corres-continent:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--fond-carte); margin-bottom: 0.7rem; padding: 0;
}
:where(.manuel-outils, .manuel-portail) .corres-continent summary,
.corres-continent:where(.manuel-outils, .manuel-portail) summary {
  cursor: pointer; padding: 0.7rem 1rem; min-height: 44px;
  font-weight: 600; display: flex; align-items: center; flex-wrap: wrap;
}
:where(.manuel-outils, .manuel-portail) .corres-continent-compte,
.corres-continent-compte:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); font-weight: 400; }
:where(.manuel-outils, .manuel-portail) .corres-liste-territoires,
.corres-liste-territoires:where(.manuel-outils, .manuel-portail) { list-style: none; margin: 0; padding: 0.25rem 1rem 0.75rem; }
:where(.manuel-outils, .manuel-portail) .corres-territoire,
.corres-territoire:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.4rem 0; border-bottom: 1px dashed var(--bordure);
}
:where(.manuel-outils, .manuel-portail) .corres-territoire:last-child,
.corres-territoire:last-child:where(.manuel-outils, .manuel-portail) { border-bottom: none; }
:where(.manuel-outils, .manuel-portail) .corres-territoire-nom,
.corres-territoire-nom:where(.manuel-outils, .manuel-portail) { flex: 1 1 auto; min-width: 8rem; }
:where(.manuel-outils, .manuel-portail) .corres-drapeau,
.corres-drapeau:where(.manuel-outils, .manuel-portail) { font-size: 1.15rem; }
@media (max-width: 640px) {
  :where(.manuel-outils, .manuel-portail) .corres-table thead,
.corres-table:where(.manuel-outils, .manuel-portail) thead { display: none; }
  :where(.manuel-outils, .manuel-portail) .corres-table,
.corres-table:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .corres-table tbody,
.corres-table:where(.manuel-outils, .manuel-portail) tbody,
:where(.manuel-outils, .manuel-portail) .corres-table tr,
.corres-table:where(.manuel-outils, .manuel-portail) tr,
:where(.manuel-outils, .manuel-portail) .corres-table td,
.corres-table:where(.manuel-outils, .manuel-portail) td { display: block; }
  :where(.manuel-outils, .manuel-portail) .corres-table tr,
.corres-table:where(.manuel-outils, .manuel-portail) tr {
    border: 1px solid var(--bordure); border-radius: 10px;
    background: var(--fond-carte); margin-bottom: 0.6rem; padding: 0.4rem 0.75rem;
  }
  :where(.manuel-outils, .manuel-portail) .corres-table td,
.corres-table:where(.manuel-outils, .manuel-portail) td { border-bottom: none; padding: 0.25rem 0; }
  :where(.manuel-outils, .manuel-portail) .corres-table td::before,
.corres-table:where(.manuel-outils, .manuel-portail) td::before {
    content: attr(data-libelle) " : "; color: var(--texte-doux); font-size: 0.85rem;
  }
}

/* ---------- v16 : Tableau périodique interactif ---------- */
:where(.manuel-outils, .manuel-portail) {
  --chimie-non_metaux: #2e7d32;        --chimie-fond-non_metaux: #cdeccb;
  --chimie-gaz_nobles: #5c53b8;        --chimie-fond-gaz_nobles: #d5d1f2;
  --chimie-halogenes: #558b2f;         --chimie-fond-halogenes: #dcf0c5;
  --chimie-alcalins: #c62828;          --chimie-fond-alcalins: #f4c0c0;
  --chimie-alcalino_terreux: #d97706;  --chimie-fond-alcalino_terreux: #fbdcb0;
  --chimie-transition: #a8880a;        --chimie-fond-transition: #f7ecb0;
  --chimie-post_transition: #546e7a;   --chimie-fond-post_transition: #ccd7de;
  --chimie-metalloides: #00838f;       --chimie-fond-metalloides: #c0e7e4;
  --chimie-lanthanides: #7b3fa0;       --chimie-fond-lanthanides: #e2c9ef;
  --chimie-actinides: #c2359b;         --chimie-fond-actinides: #f3c4de;
}
:where(.manuel-outils, .manuel-portail) .perio-guide,
.perio-guide:where(.manuel-outils, .manuel-portail) { border-left: 3px solid var(--accent); padding: 0.2rem 0.8rem; margin: 0.6rem 0; }
:where(.manuel-outils, .manuel-portail) .perio-guide p,
.perio-guide:where(.manuel-outils, .manuel-portail) p { margin: 0.25rem 0; font-size: 0.88rem; }
:where(.manuel-outils, .manuel-portail) .perio-guide p + p,
.perio-guide:where(.manuel-outils, .manuel-portail) p + p { color: var(--texte-doux); }
:where(.manuel-outils, .manuel-portail) .perio-balayage,
.perio-balayage:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); font-size: 0.9rem; margin: 0.25rem 0 0.5rem; }
@media (min-width: 1000px) { :where(.manuel-outils, .manuel-portail) .perio-balayage,
.perio-balayage:where(.manuel-outils, .manuel-portail) { display: none; } }
:where(.manuel-outils, .manuel-portail) .perio-defilement,
.perio-defilement:where(.manuel-outils, .manuel-portail) {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%; padding-bottom: 0.5rem; margin-bottom: 0.75rem;
}
:where(.manuel-outils, .manuel-portail) .perio-grille,
.perio-grille:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 3px; width: 100%; min-width: 880px; margin-bottom: 6px;
}
/* Les 18 colonnes occupent la largeur disponible. Le plancher conserve des
 * boutons de 44 px sur petit écran ; les cartes hors grille restent agrandies. */
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-case,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-case { min-width: 0; }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-repere,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-repere { padding-inline: 0; }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-libelle,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-libelle {
  max-width: 100%; padding-inline: 0.12rem; white-space: normal;
  overflow-wrap: anywhere; font-size: clamp(0.56rem, 0.8vw, 0.62rem);
}
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-nombre.corres-nombre,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre { width: 100%; padding-inline: 0; }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-symbole,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-symbole { min-width: 0; padding-inline: 0.1rem; }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-symbole-texte,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-symbole-texte { font-size: clamp(1rem, 1.5vw, 1.3rem); }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-nom,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-nom { width: 100%; min-width: 0; font-size: clamp(0.6rem, 0.82vw, 0.7rem); }
:where(.manuel-outils, .manuel-portail) .perio-grille .perio-renvoi,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-renvoi {
  min-width: 0; text-align: center; overflow-wrap: anywhere;
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
}
/* Sur ordinateur, la bande des masses est 40 % plus haute. La hauteur de
 * fenêtre module le reste de la case pour garder les neuf lignes compactes.
 * Les cartes des fiches et du détail conservent leurs dimensions de lecture. */
@media (min-width: 1000px) {
  :where(.manuel-outils, .manuel-portail) .perio-grille,
.perio-grille:where(.manuel-outils, .manuel-portail) {
    --perio-agrandissement: clamp(0px, calc(8vh - 62px), 10px);
    --perio-hauteur-masse: calc((16px + var(--perio-agrandissement) * 0.2) * 1.4);
    gap: 2px; margin-bottom: 3px;
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-case-compacte,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-case-compacte {
    display: grid;
    grid-template-rows: calc(16px + var(--perio-agrandissement) * 0.2) minmax(29px, auto) var(--perio-hauteur-masse);
    min-height: calc(64px + var(--perio-agrandissement) + (16px + var(--perio-agrandissement) * 0.2) * 0.4);
    border-top-width: 2px; border-radius: 4px;
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-repere,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-repere { padding: 0; }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-repere-masse,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-repere-masse { margin-top: 0; }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-nombre.corres-nombre,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre {
    min-height: 16px; height: calc(16px + var(--perio-agrandissement) * 0.2); padding: 0;
    font-size: calc(0.72rem + var(--perio-agrandissement) * 0.12); line-height: 1; border-radius: 2px;
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-numero-case.corres-nombre,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-numero-case.corres-nombre { padding-inline: 0.15rem; text-align: left; }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-repere-masse .perio-nombre.corres-nombre,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-repere-masse .perio-nombre.corres-nombre {
    min-height: 15px; height: calc(var(--perio-hauteur-masse) - 1px);
    font-size: calc(0.72rem + var(--perio-agrandissement) * 0.12);
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-symbole,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-symbole { min-height: 0; padding: 0 0.08rem; gap: 0; }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-symbole-texte,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-symbole-texte {
    font-size: clamp(1rem, calc(1.4vw + var(--perio-agrandissement) * 0.2), calc(1.12rem + var(--perio-agrandissement) * 0.2));
    line-height: 1;
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-nom,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-nom {
    font-size: clamp(0.5rem, calc(0.66vw + var(--perio-agrandissement) * 0.1), calc(0.58rem + var(--perio-agrandissement) * 0.1));
    line-height: 1.05;
  }
  :where(.manuel-outils, .manuel-portail) .perio-grille .perio-renvoi,
.perio-grille:where(.manuel-outils, .manuel-portail) .perio-renvoi { min-height: 0; }
  :where(.manuel-outils, .manuel-portail) .perio-guide,
.perio-guide:where(.manuel-outils, .manuel-portail) { margin: 0.4rem 0; padding-block: 0; }
  :where(.manuel-outils, .manuel-portail) .perio-guide p,
.perio-guide:where(.manuel-outils, .manuel-portail) p { margin-block: 0.15rem; font-size: 0.8rem; }
}
:where(.manuel-outils, .manuel-portail) .perio-defilement:focus-visible,
.perio-defilement:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.manuel-outils, .manuel-portail) .perio-case,
.perio-case:where(.manuel-outils, .manuel-portail) {
  background: var(--fond-carte); border: 1px solid var(--bordure);
  border-top: 3px solid var(--bordure); border-radius: 6px;
  display: flex; flex-direction: column; min-height: 88px; overflow: hidden;
}
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie],
.perio-case[data-categorie]:where(.manuel-outils, .manuel-portail) { border-top-color: var(--chimie-couleur, var(--bordure)); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="non_metaux"],
.perio-case[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="non_metaux"],
.perio-renvoi[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="non_metaux"],
.perio-legende-pastille[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="non_metaux"],
.perio-etiquette-basse[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-non_metaux); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="gaz_nobles"],
.perio-case[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="gaz_nobles"],
.perio-renvoi[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="gaz_nobles"],
.perio-legende-pastille[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="gaz_nobles"],
.perio-etiquette-basse[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-gaz_nobles); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="halogenes"],
.perio-case[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="halogenes"],
.perio-renvoi[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="halogenes"],
.perio-legende-pastille[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="halogenes"],
.perio-etiquette-basse[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-halogenes); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="alcalins"],
.perio-case[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="alcalins"],
.perio-renvoi[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="alcalins"],
.perio-legende-pastille[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="alcalins"],
.perio-etiquette-basse[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-alcalins); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="alcalino_terreux"],
.perio-case[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="alcalino_terreux"],
.perio-renvoi[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="alcalino_terreux"],
.perio-legende-pastille[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="alcalino_terreux"],
.perio-etiquette-basse[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-alcalino_terreux); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="transition"],
.perio-case[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="transition"],
.perio-renvoi[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="transition"],
.perio-legende-pastille[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="transition"],
.perio-etiquette-basse[data-categorie="transition"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-transition); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="post_transition"],
.perio-case[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="post_transition"],
.perio-renvoi[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="post_transition"],
.perio-legende-pastille[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="post_transition"],
.perio-etiquette-basse[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-post_transition); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="metalloides"],
.perio-case[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="metalloides"],
.perio-renvoi[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="metalloides"],
.perio-legende-pastille[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="metalloides"],
.perio-etiquette-basse[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-metalloides); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="lanthanides"],
.perio-case[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="lanthanides"],
.perio-renvoi[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="lanthanides"],
.perio-legende-pastille[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="lanthanides"],
.perio-etiquette-basse[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-lanthanides); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="actinides"],
.perio-case[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="actinides"],
.perio-renvoi[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="actinides"],
.perio-legende-pastille[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="actinides"],
.perio-etiquette-basse[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail) { --chimie-couleur: var(--chimie-actinides); }
:where(.manuel-outils, .manuel-portail) .perio-repere,
.perio-repere:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; flex: 0 0 auto; padding: 0.25rem 0.2rem 0; }
:where(.manuel-outils, .manuel-portail) .perio-repere-numero,
.perio-repere-numero:where(.manuel-outils, .manuel-portail) { align-items: flex-start; }
:where(.manuel-outils, .manuel-portail) .perio-repere-masse,
.perio-repere-masse:where(.manuel-outils, .manuel-portail) { align-items: center; margin-top: auto; border-top: 1px solid var(--chimie-couleur, var(--bordure)); }
:where(.manuel-outils, .manuel-portail) .perio-libelle,
.perio-libelle:where(.manuel-outils, .manuel-portail) { color: var(--texte); font-size: 0.58rem; line-height: 1.2; white-space: nowrap; }
:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre,
.perio-nombre.corres-nombre:where(.manuel-outils, .manuel-portail) {
  min-width: 44px; min-height: 44px; flex: 0 0 auto;
  padding: 0.1rem 0.2rem; font-size: 1rem;
  border: none; border-radius: 4px; background: transparent;
}
:where(.manuel-outils, .manuel-portail) .perio-repere-masse .perio-nombre.corres-nombre,
.perio-repere-masse:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre { font-size: 0.85rem; }
:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre:hover,
.perio-nombre.corres-nombre:hover:where(.manuel-outils, .manuel-portail) { background: var(--fond-carte); }
:where(.manuel-outils, .manuel-portail) .perio-symbole,
.perio-symbole:where(.manuel-outils, .manuel-portail) {
  flex: 1 1 auto; min-height: 44px; border: none; background: transparent;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  color: var(--texte); padding: 0.15rem;
}
:where(.manuel-outils, .manuel-portail) .perio-symbole:hover,
.perio-symbole:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-symbole:focus-visible,
.perio-symbole:focus-visible:where(.manuel-outils, .manuel-portail) { background: var(--fond); }
:where(.manuel-outils, .manuel-portail) .perio-symbole:focus-visible,
.perio-symbole:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-nombre.corres-nombre:focus-visible,
.perio-nombre.corres-nombre:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
:where(.manuel-outils, .manuel-portail) .perio-symbole-texte,
.perio-symbole-texte:where(.manuel-outils, .manuel-portail) { font-weight: 700; font-size: 1.05rem; }
:where(.manuel-outils, .manuel-portail) .perio-nom,
.perio-nom:where(.manuel-outils, .manuel-portail) { font-size: 0.66rem; color: var(--texte); line-height: 1.25; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
:where(.manuel-outils, .manuel-portail) div.perio-symbole,
div.perio-symbole:where(.manuel-outils, .manuel-portail) { cursor: default; }
:where(.manuel-outils, .manuel-portail) div.perio-symbole:hover,
div.perio-symbole:hover:where(.manuel-outils, .manuel-portail) { background: transparent; }
:where(.manuel-outils, .manuel-portail) .perio-renvoi,
.perio-renvoi:where(.manuel-outils, .manuel-portail) {
  border: 1px dashed var(--chimie-couleur, var(--bordure)); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--texte-doux); font-size: 0.82rem; min-height: 88px;
}
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse,
.perio-etiquette-basse:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.6rem; color: var(--texte-doux); font-size: 0.85rem;
  border-right: 3px solid var(--chimie-couleur, var(--bordure));
}
:where(.manuel-outils, .manuel-portail) .perio-detail,
.perio-detail:where(.manuel-outils, .manuel-portail) {
  background: var(--fond-carte); border: 1px solid var(--bordure);
  border-radius: 10px; padding: 0.75rem 1rem; margin: 0.75rem 0;
}
:where(.manuel-outils, .manuel-portail) .perio-detail-titre,
.perio-detail-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.5rem; font-size: 1.02rem; }
:where(.manuel-outils, .manuel-portail) .perio-detail-contenu,
.perio-detail-contenu:where(.manuel-outils, .manuel-portail) { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1rem 1.5rem; }
:where(.manuel-outils, .manuel-portail) .perio-detail-etiquette,
.perio-detail-etiquette:where(.manuel-outils, .manuel-portail) { flex: 0 0 148px; }
:where(.manuel-outils, .manuel-portail) .perio-detail-etiquette .perio-case,
.perio-detail-etiquette:where(.manuel-outils, .manuel-portail) .perio-case { min-height: 215px; }
:where(.manuel-outils, .manuel-portail) .perio-detail-etiquette .perio-symbole-texte,
.perio-detail-etiquette:where(.manuel-outils, .manuel-portail) .perio-symbole-texte { font-size: 2.2rem; }
:where(.manuel-outils, .manuel-portail) .perio-detail-etiquette .perio-nom,
.perio-detail-etiquette:where(.manuel-outils, .manuel-portail) .perio-nom { font-size: 0.88rem; }
:where(.manuel-outils, .manuel-portail) .perio-detail-etiquette .perio-libelle,
.perio-detail-etiquette:where(.manuel-outils, .manuel-portail) .perio-libelle { font-size: 0.7rem; }
:where(.manuel-outils, .manuel-portail) .perio-detail-informations,
.perio-detail-informations:where(.manuel-outils, .manuel-portail) { flex: 1 1 270px; min-width: 0; }
:where(.manuel-outils, .manuel-portail) .perio-detail-ligne,
.perio-detail-ligne:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0;
}
:where(.manuel-outils, .manuel-portail) .perio-detail-nom,
.perio-detail-nom:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); }
:where(.manuel-outils, .manuel-portail) .perio-detail-fermer,
.perio-detail-fermer:where(.manuel-outils, .manuel-portail) { margin-top: 0.5rem; }
:where(.manuel-outils, .manuel-portail) .perio-legende,
.perio-legende:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--fond-carte); padding: 0; margin-bottom: 0.75rem;
}
:where(.manuel-outils, .manuel-portail) .perio-legende summary,
.perio-legende:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding: 0.6rem 1rem; min-height: 44px; font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .perio-legende-liste,
.perio-legende-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none; margin: 0; padding: 0.25rem 1rem 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
}
:where(.manuel-outils, .manuel-portail) .perio-legende-item,
.perio-legende-item:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille,
.perio-legende-pastille:where(.manuel-outils, .manuel-portail) {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--chimie-fond, var(--bordure));
  border: 2px solid var(--chimie-couleur, var(--bordure));
  box-sizing: border-box; display: inline-block; flex: none;
}

/* v16.1 : totaux non applicables (aucun caractère reconnu par le système) */
:where(.manuel-outils, .manuel-portail) .mini-total:disabled,
.mini-total:disabled:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-total:disabled,
.ghg-total:disabled:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-total:disabled,
.ghg-comparaison-total:disabled:where(.manuel-outils, .manuel-portail) {
  cursor: default; opacity: 0.55; text-decoration: none;
}
:where(.manuel-outils, .manuel-portail) .valeur-non-applicable,
.valeur-non-applicable:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); opacity: 0.75; }
:where(.manuel-outils, .manuel-portail) .cellule-non-applicable,
.cellule-non-applicable:where(.manuel-outils, .manuel-portail) { background: transparent; }

/* v16.2 : sauvegarde complète et diagnostic */
:where(.manuel-outils, .manuel-portail) .sauvegarde-texte,
.sauvegarde-texte:where(.manuel-outils, .manuel-portail) {
  width: 100%; box-sizing: border-box; margin-top: 0.5rem;
  background: var(--fond-champ); color: var(--texte);
  border: 1px solid var(--bordure); border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.78rem; padding: 0.5rem;
}
:where(.manuel-outils, .manuel-portail) .sauvegarde-apercu,
.sauvegarde-apercu:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--fond-carte); padding: 0.75rem 1rem; margin-top: 0.75rem;
}
:where(.manuel-outils, .manuel-portail) .sauvegarde-apercu h3,
.sauvegarde-apercu:where(.manuel-outils, .manuel-portail) h3 { margin: 0 0 0.5rem; font-size: 1rem; }
:where(.manuel-outils, .manuel-portail) .sauvegarde-apercu-ligne,
.sauvegarde-apercu-ligne:where(.manuel-outils, .manuel-portail) { margin: 0.25rem 0; }
:where(.manuel-outils, .manuel-portail) .sauvegarde-apercu-nom,
.sauvegarde-apercu-nom:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); }
:where(.manuel-outils, .manuel-portail) .diagnostic-details,
.diagnostic-details:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--fond-carte); margin-top: 0.5rem;
}
:where(.manuel-outils, .manuel-portail) .diagnostic-details summary,
.diagnostic-details:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding: 0.6rem 1rem; min-height: 44px; font-weight: 600; }
:where(.manuel-outils, .manuel-portail) .diagnostic-liste,
.diagnostic-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none; margin: 0; padding: 0.25rem 1rem 0.75rem;
  font-size: 0.86rem; line-height: 1.5;
}

/* v16.3 : décomposition en direct */
:where(.manuel-outils, .manuel-portail) .panneau-decomposition,
.panneau-decomposition:where(.manuel-outils, .manuel-portail) {
  border: 1px solid var(--systeme-accent, var(--bordure));
  border-radius: 10px; background: var(--fond-carte);
  padding: 0.6rem 0.85rem; margin: 0.6rem 0 0.35rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-entete,
.decomposition-entete:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-titre,
.decomposition-titre:where(.manuel-outils, .manuel-portail) {
  margin: 0; font-size: 0.98rem; color: var(--systeme-accent, var(--texte));
}
:where(.manuel-outils, .manuel-portail) .decomposition-navigation,
.decomposition-navigation:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; gap: 0.35rem;
  max-width: 100%; min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .decomposition-fleche,
.decomposition-fleche:where(.manuel-outils, .manuel-portail) {
  min-width: 44px; min-height: 48px; padding: 0.2rem 0.6rem;
  font-size: 1.1rem; line-height: 1;
}
:where(.manuel-outils, .manuel-portail) #ga-decomposition-systeme,
#ga-decomposition-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) #gf-decomposition-systeme,
#gf-decomposition-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) #ghg-decomposition-systeme,
#ghg-decomposition-systeme:where(.manuel-outils, .manuel-portail) {
  min-height: 48px; width: min(320px, 60vw); min-width: 0; flex: 1 1 auto;
  box-sizing: border-box; font: inherit; font-size: 1.05rem;
  font-weight: 600; line-height: 1.4;
  background: var(--fond-champ); color: var(--texte);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 0.55rem 0.75rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-contenu,
.decomposition-contenu:where(.manuel-outils, .manuel-portail) { margin-top: 0.5rem; }
:where(.manuel-outils, .manuel-portail) .decomposition-vide,
.decomposition-vide:where(.manuel-outils, .manuel-portail) { margin: 0.25rem 0; }
:where(.manuel-outils, .manuel-portail) .decomposition-mots,
.decomposition-mots:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 0.7rem 1.1rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-mot,
.decomposition-mot:where(.manuel-outils, .manuel-portail) {
  display: inline-flex; flex-wrap: wrap; align-items: flex-end;
  gap: 0.3rem; padding: 0.25rem 0.35rem;
  border-radius: 8px; background: var(--fond-champ);
}
:where(.manuel-outils, .manuel-portail) .decomposition-tuile,
.decomposition-tuile:where(.manuel-outils, .manuel-portail) {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 1.9rem; padding: 0.15rem 0.3rem; border-radius: 6px;
  background: var(--fond-carte); border: 1px solid var(--bordure);
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .tuile-glyphe,
.tuile-glyphe:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; line-height: 1.25; }
:where(.manuel-outils, .manuel-portail) .decomposition-mots[dir="rtl"] .tuile-glyphe,
.decomposition-mots[dir="rtl"]:where(.manuel-outils, .manuel-portail) .tuile-glyphe {
  font-family: var(--pile-arabe); font-synthesis: none;
  letter-spacing: 0; font-size: 1.3rem;
}
:where(.manuel-outils, .manuel-portail) .tuile-normalise,
.tuile-normalise:where(.manuel-outils, .manuel-portail) { font-size: 0.68rem; color: var(--texte-doux); }
:where(.manuel-outils, .manuel-portail) .decomposition-mots[dir="rtl"] .tuile-normalise,
.decomposition-mots[dir="rtl"]:where(.manuel-outils, .manuel-portail) .tuile-normalise {
  font-family: var(--pile-arabe); font-synthesis: none; letter-spacing: 0;
}
:where(.manuel-outils, .manuel-portail) .tuile-valeur,
.tuile-valeur:where(.manuel-outils, .manuel-portail) {
  font-size: 0.82rem; font-variant-numeric: tabular-nums;
  color: var(--systeme-accent, var(--texte)); font-weight: 600;
  unicode-bidi: isolate;
}
:where(.manuel-outils, .manuel-portail) .decomposition-sous-total,
.decomposition-sous-total:where(.manuel-outils, .manuel-portail) {
  font-size: 0.78rem; color: var(--texte-doux); align-self: center;
  unicode-bidi: isolate; padding: 0 0.15rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-ellipse,
.decomposition-ellipse:where(.manuel-outils, .manuel-portail) { align-self: center; color: var(--texte-doux); }
:where(.manuel-outils, .manuel-portail) .contributions-smart,
.contributions-smart:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem;
  min-width: 0; margin-top: 0.55rem; padding: 0.45rem 0.55rem;
  border: 1px solid var(--systeme-accent, var(--bordure));
  border-radius: 8px; background: var(--fond-champ);
  font-size: 0.84rem;
}
:where(.manuel-outils, .manuel-portail) .contributions-smart-titre,
.contributions-smart-titre:where(.manuel-outils, .manuel-portail) { flex: 0 0 auto; }
:where(.manuel-outils, .manuel-portail) .contributions-smart-liste,
.contributions-smart-liste:where(.manuel-outils, .manuel-portail) {
  display: inline-flex; flex: 1 1 12rem; flex-wrap: wrap; gap: 0.35rem;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .contribution-smart,
.contribution-smart:where(.manuel-outils, .manuel-portail) {
  display: inline-flex; align-items: center; min-width: 0;
  padding: 0.18rem 0.42rem; border: 1px solid var(--bordure);
  border-radius: 999px; background: var(--fond-carte);
  color: var(--systeme-accent, var(--texte));
  font-variant-numeric: tabular-nums; unicode-bidi: isolate;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .contribution-smart-originale,
.contribution-smart-originale:where(.manuel-outils, .manuel-portail) { unicode-bidi: isolate; }
:where(.manuel-outils, .manuel-portail) .decomposition-total-ligne,
.decomposition-total-ligne:where(.manuel-outils, .manuel-portail) {
  margin: 0.5rem 0 0.1rem; display: flex; align-items: center; gap: 0.35rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-total,
.decomposition-total:where(.manuel-outils, .manuel-portail) {
  font-weight: 700; color: var(--systeme-accent, var(--lapis));
  min-height: 44px; padding: 0.2rem 0.55rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-developper,
.decomposition-developper:where(.manuel-outils, .manuel-portail) { margin-top: 0.35rem; }
:where(.manuel-outils, .manuel-portail) .decomposition-reference,
.decomposition-reference:where(.manuel-outils, .manuel-portail) { margin-top: 0.4rem; }
:where(.manuel-outils, .manuel-portail) .decomposition-reference summary,
.decomposition-reference:where(.manuel-outils, .manuel-portail) summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-size: 0.88rem; color: var(--texte-doux);
}
:where(.manuel-outils, .manuel-portail) .decomposition-table,
.decomposition-table:where(.manuel-outils, .manuel-portail) { min-width: 0; }
:where(.manuel-outils, .manuel-portail) .decomposition-legende-reference,
.decomposition-legende-reference:where(.manuel-outils, .manuel-portail) {
  margin: 0.3rem 0 0; font-size: 0.72rem; color: var(--texte-doux);
}
:where(.manuel-outils, .manuel-portail) .decomposition-grille-reference,
.decomposition-grille-reference:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.4rem 0 0.6rem;
}
:where(.manuel-outils, .manuel-portail) .decomposition-case-reference,
.decomposition-case-reference:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--bordure);
  border-radius: 7px;
  background: var(--fond-champ);
  text-align: center;
}
:where(.manuel-outils, .manuel-portail) .reference-rang,
.reference-rang:where(.manuel-outils, .manuel-portail) {
  display: block; font-size: 0.65rem; color: var(--texte-doux);
}
:where(.manuel-outils, .manuel-portail) .reference-lettre,
.reference-lettre:where(.manuel-outils, .manuel-portail) {
  display: block; font-size: 1.15rem; line-height: 1.3;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .decomposition-grille-reference[dir="rtl"] .reference-lettre,
.decomposition-grille-reference[dir="rtl"]:where(.manuel-outils, .manuel-portail) .reference-lettre {
  font-family: var(--pile-arabe); font-synthesis: none; letter-spacing: 0;
  font-size: 1.35rem;
}
:where(.manuel-outils, .manuel-portail) .reference-valeur,
.reference-valeur:where(.manuel-outils, .manuel-portail) {
  display: block; color: var(--systeme-accent, var(--texte));
  font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (max-width: 360px) {
  :where(.manuel-outils, .manuel-portail) .decomposition-grille-reference,
.decomposition-grille-reference:where(.manuel-outils, .manuel-portail) { gap: 0.25rem; }
  :where(.manuel-outils, .manuel-portail) .decomposition-case-reference,
.decomposition-case-reference:where(.manuel-outils, .manuel-portail) { padding: 0.25rem 0.15rem; }
  :where(.manuel-outils, .manuel-portail) .reference-rang,
.reference-rang:where(.manuel-outils, .manuel-portail) { font-size: 0.58rem; }
}
@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .decomposition-entete,
.decomposition-entete:where(.manuel-outils, .manuel-portail) { align-items: stretch; }
  :where(.manuel-outils, .manuel-portail) .decomposition-navigation,
.decomposition-navigation:where(.manuel-outils, .manuel-portail) {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%; min-width: 0;
  }
  :where(.manuel-outils, .manuel-portail) .decomposition-fleche,
.decomposition-fleche:where(.manuel-outils, .manuel-portail) { min-width: 0; width: 44px; }
  :where(.manuel-outils, .manuel-portail) #ga-decomposition-systeme,
#ga-decomposition-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) #gf-decomposition-systeme,
#gf-decomposition-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) #ghg-decomposition-systeme,
#ghg-decomposition-systeme:where(.manuel-outils, .manuel-portail) {
    width: 100%; min-width: 0; max-width: none;
  }
  :where(.manuel-outils, .manuel-portail) .panneau-decomposition,
.panneau-decomposition:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .decomposition-contenu,
.decomposition-contenu:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .decomposition-mots,
.decomposition-mots:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .decomposition-mot,
.decomposition-mot:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .contributions-smart,
.contributions-smart:where(.manuel-outils, .manuel-portail) {
    max-width: 100%; min-width: 0; box-sizing: border-box;
  }
  :where(.manuel-outils, .manuel-portail) .contributions-smart,
.contributions-smart:where(.manuel-outils, .manuel-portail) { align-items: flex-start; }
  :where(.manuel-outils, .manuel-portail) .contributions-smart-titre,
.contributions-smart-titre:where(.manuel-outils, .manuel-portail) { flex-basis: 100%; }
}

/* v16.4 : sélection des cartes et bouton d'information */
:where(.manuel-outils, .manuel-portail) .carte,
.carte:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte,
.mini-carte:where(.manuel-outils, .manuel-portail) { position: relative; }
:where(.manuel-outils, .manuel-portail) .carte-selection-systeme,
.carte-selection-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-selection-systeme,
.mini-selection-systeme:where(.manuel-outils, .manuel-portail) { padding-right: 2.1rem; }
:where(.manuel-outils, .manuel-portail) .carte-info-systeme,
.carte-info-systeme:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-info-systeme,
.mini-info-systeme:where(.manuel-outils, .manuel-portail) {
  position: absolute; top: 4px; right: 6px;
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bordure); border-radius: 50%;
  background: var(--fond-carte); color: var(--texte-doux);
  font-size: 0.95rem; line-height: 1; cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .carte-info-systeme:hover,
.carte-info-systeme:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .carte-info-systeme:focus-visible,
.carte-info-systeme:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-info-systeme:hover,
.mini-info-systeme:hover:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-info-systeme:focus-visible,
.mini-info-systeme:focus-visible:where(.manuel-outils, .manuel-portail) {
  color: var(--systeme-accent, var(--texte));
  border-color: var(--systeme-accent, var(--bordure));
}
:where(.manuel-outils, .manuel-portail) .carte.systeme-affiche,
.carte.systeme-affiche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-carte.systeme-affiche,
.mini-carte.systeme-affiche:where(.manuel-outils, .manuel-portail) {
  border-color: var(--systeme-accent, var(--bordure));
  box-shadow: 0 0 0 1.5px var(--systeme-accent, transparent) inset,
    0 0 9px -3px var(--systeme-accent, transparent);
}
:where(.manuel-outils, .manuel-portail) .carte-mention-affiche,
.carte-mention-affiche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .mini-mention-affiche,
.mini-mention-affiche:where(.manuel-outils, .manuel-portail) {
  display: inline-block; margin-left: 0.4rem;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--systeme-accent, var(--texte-doux));
  border: 1px solid var(--systeme-accent, var(--bordure));
  border-radius: 999px; padding: 0.05rem 0.35rem; vertical-align: middle;
}

/* v16.5 : fonds de familles chimiques (tableau, légende et fiche) */
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="non_metaux"],
.perio-case[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="non_metaux"],
.perio-renvoi[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="non_metaux"],
.perio-legende-pastille[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="non_metaux"],
.perio-etiquette-basse[data-categorie="non_metaux"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-non_metaux); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="gaz_nobles"],
.perio-case[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="gaz_nobles"],
.perio-renvoi[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="gaz_nobles"],
.perio-legende-pastille[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="gaz_nobles"],
.perio-etiquette-basse[data-categorie="gaz_nobles"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-gaz_nobles); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="halogenes"],
.perio-case[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="halogenes"],
.perio-renvoi[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="halogenes"],
.perio-legende-pastille[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="halogenes"],
.perio-etiquette-basse[data-categorie="halogenes"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-halogenes); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="alcalins"],
.perio-case[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="alcalins"],
.perio-renvoi[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="alcalins"],
.perio-legende-pastille[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="alcalins"],
.perio-etiquette-basse[data-categorie="alcalins"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-alcalins); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="alcalino_terreux"],
.perio-case[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="alcalino_terreux"],
.perio-renvoi[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="alcalino_terreux"],
.perio-legende-pastille[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="alcalino_terreux"],
.perio-etiquette-basse[data-categorie="alcalino_terreux"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-alcalino_terreux); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="transition"],
.perio-case[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="transition"],
.perio-renvoi[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="transition"],
.perio-legende-pastille[data-categorie="transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="transition"],
.perio-etiquette-basse[data-categorie="transition"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-transition); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="post_transition"],
.perio-case[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="post_transition"],
.perio-renvoi[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="post_transition"],
.perio-legende-pastille[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="post_transition"],
.perio-etiquette-basse[data-categorie="post_transition"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-post_transition); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="metalloides"],
.perio-case[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="metalloides"],
.perio-renvoi[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="metalloides"],
.perio-legende-pastille[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="metalloides"],
.perio-etiquette-basse[data-categorie="metalloides"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-metalloides); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="lanthanides"],
.perio-case[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="lanthanides"],
.perio-renvoi[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="lanthanides"],
.perio-legende-pastille[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="lanthanides"],
.perio-etiquette-basse[data-categorie="lanthanides"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-lanthanides); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie="actinides"],
.perio-case[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie="actinides"],
.perio-renvoi[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-legende-pastille[data-categorie="actinides"],
.perio-legende-pastille[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie="actinides"],
.perio-etiquette-basse[data-categorie="actinides"]:where(.manuel-outils, .manuel-portail) { --chimie-fond: var(--chimie-fond-actinides); }
:where(.manuel-outils, .manuel-portail) .perio-case[data-categorie],
.perio-case[data-categorie]:where(.manuel-outils, .manuel-portail) {
  background: var(--chimie-fond, var(--carte));
  border-color: var(--chimie-couleur, var(--bordure));
}
:where(.manuel-outils, .manuel-portail) .perio-case > button,
.perio-case:where(.manuel-outils, .manuel-portail) > button { background: transparent; }
:where(.manuel-outils, .manuel-portail) .perio-numero-case,
.perio-numero-case:where(.manuel-outils, .manuel-portail) {
  align-self: flex-start; font-size: 0.66rem; padding: 2px 6px;
}
:where(.manuel-outils, .manuel-portail) .perio-masse-case,
.perio-masse-case:where(.manuel-outils, .manuel-portail) {
  align-self: stretch; text-align: center; font-size: 0.66rem;
  padding: 1px 3px 4px; margin-top: auto;
}
:where(.manuel-outils, .manuel-portail) .perio-symbole-texte,
.perio-symbole-texte:where(.manuel-outils, .manuel-portail) { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
:where(.manuel-outils, .manuel-portail) .perio-renvoi[data-categorie],
.perio-renvoi[data-categorie]:where(.manuel-outils, .manuel-portail) { background: var(--chimie-fond, var(--carte)); }
:where(.manuel-outils, .manuel-portail) .perio-etiquette-basse[data-categorie],
.perio-etiquette-basse[data-categorie]:where(.manuel-outils, .manuel-portail) { background: var(--chimie-fond, transparent); }
:where(.manuel-outils, .manuel-portail) .perio-famille-detail,
.perio-famille-detail:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; gap: 0.35rem; }

:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) {
  --chimie-non_metaux: #7dc981;        --chimie-fond-non_metaux: #1e3b25;
  --chimie-gaz_nobles: #a49af5;        --chimie-fond-gaz_nobles: #2a2750;
  --chimie-halogenes: #a3d977;         --chimie-fond-halogenes: #2c4020;
  --chimie-alcalins: #ef6b6b;          --chimie-fond-alcalins: #4a2020;
  --chimie-alcalino_terreux: #ffa64d;  --chimie-fond-alcalino_terreux: #4a3418;
  --chimie-transition: #e6cf5c;        --chimie-fond-transition: #45401c;
  --chimie-post_transition: #9fb6c4;   --chimie-fond-post_transition: #2b353d;
  --chimie-metalloides: #55d0dd;       --chimie-fond-metalloides: #163d40;
  --chimie-lanthanides: #c47fe0;       --chimie-fond-lanthanides: #3a2350;
  --chimie-actinides: #f278be;         --chimie-fond-actinides: #4a1f38;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) {
    --chimie-non_metaux: #7dc981;        --chimie-fond-non_metaux: #1e3b25;
    --chimie-gaz_nobles: #a49af5;        --chimie-fond-gaz_nobles: #2a2750;
    --chimie-halogenes: #a3d977;         --chimie-fond-halogenes: #2c4020;
    --chimie-alcalins: #ef6b6b;          --chimie-fond-alcalins: #4a2020;
    --chimie-alcalino_terreux: #ffa64d;  --chimie-fond-alcalino_terreux: #4a3418;
    --chimie-transition: #e6cf5c;        --chimie-fond-transition: #45401c;
    --chimie-post_transition: #9fb6c4;   --chimie-fond-post_transition: #2b353d;
    --chimie-metalloides: #55d0dd;       --chimie-fond-metalloides: #163d40;
    --chimie-lanthanides: #c47fe0;       --chimie-fond-lanthanides: #3a2350;
    --chimie-actinides: #f278be;         --chimie-fond-actinides: #4a1f38;
  }
}

/* Mode Coran : fin de cascade après les styles génériques historiques. */
:where(.manuel-outils, .manuel-portail) .navigation-coran,
.navigation-coran:where(.manuel-outils, .manuel-portail) {
  display: flex;
  gap: 6px;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .navigation-coran .bouton,
.navigation-coran:where(.manuel-outils, .manuel-portail) .bouton {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 0.8rem;
}
:where(.manuel-outils, .manuel-portail) .navigation-coran .bouton span,
.navigation-coran:where(.manuel-outils, .manuel-portail) .bouton span { font-size: 1.15em; }
:where(.manuel-outils, .manuel-portail) .bloc.bloc-verset,
.bloc.bloc-verset:where(.manuel-outils, .manuel-portail) {
  border-top: 3px solid var(--systeme-accent, var(--lapis));
}
:where(.manuel-outils, .manuel-portail) .bloc.bloc-verset[data-sens="inverse"],
.bloc.bloc-verset[data-sens="inverse"]:where(.manuel-outils, .manuel-portail) { border-top-style: dashed; }
:where(.manuel-outils, .manuel-portail) .lecteur-verset-statut.statut,
.lecteur-verset-statut.statut:where(.manuel-outils, .manuel-portail) { min-height: 0; }
:where(.manuel-outils, .manuel-portail) .bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled),
.bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #ffffff;
  filter: brightness(1.08);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled),
:root[data-theme="sombre"] .bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled),
:root:not([data-theme]) .bouton.bouton-mode-verset[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
    color: #10121a;
  }
}

/* ====================================================================
   v18 — Rubrique unifiée « Gématrie »
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) { margin-bottom: 16px; }
:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete > .aide,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) > .aide { max-width: 72ch; }
:where(.manuel-outils, .manuel-portail) .gematrie-selecteur-langues,
.gematrie-selecteur-langues:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
:where(.manuel-outils, .manuel-portail) .gematrie-langue,
.gematrie-langue:where(.manuel-outils, .manuel-portail) {
  width: 100%;
  min-height: 48px;
  font-weight: 650;
}
:where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"],
.gematrie-langue[aria-selected="true"]:where(.manuel-outils, .manuel-portail) {
  color: #ffffff;
  background: var(--lapis);
  border-color: var(--lapis);
  box-shadow: 0 0 0 1px var(--lapis) inset;
}
:where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"]:hover:not(:disabled),
.gematrie-langue[aria-selected="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #ffffff;
  filter: brightness(1.08);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"],
:root[data-theme="sombre"] .gematrie-langue[aria-selected="true"]:where(.manuel-outils, .manuel-portail),
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"]:hover:not(:disabled),
:root[data-theme="sombre"] .gematrie-langue[aria-selected="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"],
:root:not([data-theme]) .gematrie-langue[aria-selected="true"]:where(.manuel-outils, .manuel-portail),
:root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"]:hover:not(:disabled),
:root:not([data-theme]) .gematrie-langue[aria-selected="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
    color: #10121a;
  }
}
:where(.manuel-outils, .manuel-portail) .gematrie-panneau,
.gematrie-panneau:where(.manuel-outils, .manuel-portail) { min-width: 0; }

@media (max-width: 900px) {
  :where(.manuel-outils, .manuel-portail) .gematrie-selecteur-langues,
.gematrie-selecteur-langues:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ====================================================================
   v19 — Bibliothèque gématrique : recherches complètes + références
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .bibliotheque-entete,
.bibliotheque-entete:where(.manuel-outils, .manuel-portail) { margin-bottom: 16px; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-onglets,
.bibliotheque-onglets:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-onglets .bouton[aria-selected="true"],
.bibliotheque-onglets:where(.manuel-outils, .manuel-portail) .bouton[aria-selected="true"] {
  color: #ffffff;
  background: var(--lapis);
  border-color: var(--lapis);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .bibliotheque-onglets .bouton[aria-selected="true"],
:root[data-theme="sombre"] .bibliotheque-onglets:where(.manuel-outils, .manuel-portail) .bouton[aria-selected="true"] {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .bibliotheque-onglets .bouton[aria-selected="true"],
:root:not([data-theme]) .bibliotheque-onglets:where(.manuel-outils, .manuel-portail) .bouton[aria-selected="true"] {
    color: #10121a;
  }
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-statut,
.bibliotheque-statut:where(.manuel-outils, .manuel-portail) { min-height: 1.4em; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-statut-erreur,
.bibliotheque-statut-erreur:where(.manuel-outils, .manuel-portail) { color: var(--couleur-danger, #b3261e); }
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur,
.bibliotheque-editeur:where(.manuel-outils, .manuel-portail) {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--lapis);
  border-radius: 12px;
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-titre,
.bibliotheque-editeur-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 4px; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-filtres,
.bibliotheque-filtres:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .bibliotheque-champ:first-child,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .bibliotheque-champ:first-child,
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .bibliotheque-champ:nth-child(3),
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .bibliotheque-champ:nth-child(3),
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .refgem-erreur,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .refgem-erreur,
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .barre-actions,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .barre-actions {
  grid-column: 1 / -1;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ label,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) label {
  color: var(--texte-attenue);
  font-size: 0.9rem;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ input,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ select,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ textarea,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) textarea {
  width: 100%;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ textarea,
.bibliotheque-champ:where(.manuel-outils, .manuel-portail) textarea { min-height: 7rem; resize: vertical; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ-recherche,
.bibliotheque-champ-recherche:where(.manuel-outils, .manuel-portail) { grid-column: span 2; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ-nombre,
.bibliotheque-champ-nombre:where(.manuel-outils, .manuel-portail) { grid-column: span 1; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-ligne,
.bibliotheque-nombre-ligne:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-ligne .bouton,
.bibliotheque-nombre-ligne:where(.manuel-outils, .manuel-portail) .bouton {
  min-width: 0;
  padding-inline: 12px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-effacer,
.bibliotheque-nombre-effacer:where(.manuel-outils, .manuel-portail) {
  width: 2.75rem;
  padding-inline: 0 !important;
  color: var(--couleur-danger, #b3261e);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-aide,
.bibliotheque-nombre-aide:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-erreur,
.bibliotheque-nombre-erreur:where(.manuel-outils, .manuel-portail) {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.78rem;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-resume,
.bibliotheque-nombre-resume:where(.manuel-outils, .manuel-portail) {
  margin: 14px 0 0;
  color: var(--lapis-fonce);
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-catalogue-entete,
.bibliotheque-catalogue-entete:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-entete,
.bibliotheque-recherche-entete:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-catalogue-entete .refgem-compteur,
.bibliotheque-catalogue-entete:where(.manuel-outils, .manuel-portail) .refgem-compteur {
  margin-inline-start: auto;
  padding-top: 7px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherches-liste,
.bibliotheque-recherches-liste:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-carte,
.bibliotheque-recherche-carte:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-titre,
.bibliotheque-recherche-titre:where(.manuel-outils, .manuel-portail) { margin: 0; overflow-wrap: anywhere; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-meta,
.bibliotheque-recherche-meta:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-date,
.bibliotheque-recherche-date:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-source,
.bibliotheque-recherche-source:where(.manuel-outils, .manuel-portail) {
  margin: 4px 0 0;
  color: var(--texte-attenue);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-portee,
.bibliotheque-portee:where(.manuel-outils, .manuel-portail) {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--lapis);
  border-radius: 999px;
  color: var(--lapis-fonce);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-categories,
.bibliotheque-categories:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-note,
.bibliotheque-recherche-note:where(.manuel-outils, .manuel-portail) {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-avertissement-version,
.bibliotheque-avertissement-version:where(.manuel-outils, .manuel-portail) {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-inline-start: 3px solid var(--or, #9a6a00);
  border-radius: 6px;
  background: color-mix(in srgb, var(--or, #9a6a00) 10%, transparent);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entrees-apercu,
.bibliotheque-entrees-apercu:where(.manuel-outils, .manuel-portail) {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-apercu,
.bibliotheque-entree-apercu:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-langue,
.bibliotheque-entree-langue:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-texte,
.bibliotheque-entree-texte:where(.manuel-outils, .manuel-portail) {
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-texte[lang="ar"],
.bibliotheque-entree-texte[lang="ar"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-texte[lang="he"],
.bibliotheque-entree-texte[lang="he"]:where(.manuel-outils, .manuel-portail) { font-size: 1.08rem; }
:where(.manuel-outils, .manuel-portail) .bibliotheque-entree-contexte,
.bibliotheque-entree-contexte:where(.manuel-outils, .manuel-portail) {
  color: var(--texte-attenue);
  font-size: 0.75rem;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-entrees-suite,
.bibliotheque-entrees-suite:where(.manuel-outils, .manuel-portail) {
  align-self: center;
  color: var(--texte-attenue);
  font-size: 0.82rem;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrences-nombre,
.bibliotheque-occurrences-nombre:where(.manuel-outils, .manuel-portail) {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--lapis) 58%, var(--ligne));
  border-radius: 9px;
  background: color-mix(in srgb, var(--lapis) 7%, transparent);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrences-resume,
.bibliotheque-occurrences-resume:where(.manuel-outils, .manuel-portail) {
  color: var(--lapis-fonce);
  font-weight: 750;
  cursor: pointer;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrences-liste,
.bibliotheque-occurrences-liste:where(.manuel-outils, .manuel-portail) {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrence-nombre,
.bibliotheque-occurrence-nombre:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: auto minmax(8ch, auto) minmax(10ch, 1fr);
  align-items: baseline;
  gap: 6px 9px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrence-texte,
.bibliotheque-occurrence-texte:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-occurrence-systemes,
.bibliotheque-occurrence-systemes:where(.manuel-outils, .manuel-portail) {
  color: var(--texte-attenue);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-cible,
.bibliotheque-nombre-cible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid var(--or, #c58a12) !important;
  outline-offset: 3px;
  border-radius: 5px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--or, #c58a12) 22%, transparent);
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-actions,
.bibliotheque-recherche-actions:where(.manuel-outils, .manuel-portail) {
  align-items: stretch;
  margin-top: 14px;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-actions .bouton,
.bibliotheque-recherche-actions:where(.manuel-outils, .manuel-portail) .bouton {
  flex: 1 1 auto;
}
:where(.manuel-outils, .manuel-portail) .bibliotheque-vide,
.bibliotheque-vide:where(.manuel-outils, .manuel-portail) { margin-top: 16px; }

@media (max-width: 900px) {
  :where(.manuel-outils, .manuel-portail) .bibliotheque-recherches-liste,
.bibliotheque-recherches-liste:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-filtres,
.bibliotheque-filtres:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .bibliotheque-champ:first-child,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .bibliotheque-champ:first-child,
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .bibliotheque-champ:nth-child(3),
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .bibliotheque-champ:nth-child(3),
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .refgem-erreur,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .refgem-erreur,
:where(.manuel-outils, .manuel-portail) .bibliotheque-editeur-formulaire .barre-actions,
.bibliotheque-editeur-formulaire:where(.manuel-outils, .manuel-portail) .barre-actions,
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ-recherche,
.bibliotheque-champ-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bibliotheque-champ-nombre,
.bibliotheque-champ-nombre:where(.manuel-outils, .manuel-portail) { grid-column: auto; }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-onglets .bouton,
.bibliotheque-onglets:where(.manuel-outils, .manuel-portail) .bouton { flex: 1 1 100%; }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-recherche-entete,
.bibliotheque-recherche-entete:where(.manuel-outils, .manuel-portail) { align-items: flex-start; }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-occurrence-nombre,
.bibliotheque-occurrence-nombre:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: auto minmax(0, 1fr);
  }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-occurrence-systemes,
.bibliotheque-occurrence-systemes:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  :where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-ligne,
.bibliotheque-nombre-ligne:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  :where(.manuel-outils, .manuel-portail) .bibliotheque-nombre-effacer,
.bibliotheque-nombre-effacer:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; width: 100%; }
}

/* ====================================================================
   v18 — Rubrique commune « Hébreu & grec »
   Styles strictement locaux au préfixe ghg-, sans police ni dépendance
   distante. Les piles hébraïque et grecque utilisent les polices du système.
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .ghg-introduction,
.ghg-introduction:where(.manuel-outils, .manuel-portail) { margin-bottom: 0; }
:where(.manuel-outils, .manuel-portail) .ghg-zone > .bloc,
.ghg-zone:where(.manuel-outils, .manuel-portail) > .bloc { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .ghg-selecteur-langue,
.ghg-selecteur-langue:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  margin: 0 0 18px;
  padding: 10px 12px 12px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .ghg-selecteur-langue legend,
.ghg-selecteur-langue:where(.manuel-outils, .manuel-portail) legend {
  padding: 0 6px;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .ghg-boutons-langue,
.ghg-boutons-langue:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 6px;
}
:where(.manuel-outils, .manuel-portail) .ghg-langue,
.ghg-langue:where(.manuel-outils, .manuel-portail) { width: 100%; }
:where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"],
.ghg-langue[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) {
  color: #ffffff;
  background: var(--lapis);
  border-color: var(--lapis);
  box-shadow: 0 0 0 1px var(--lapis) inset;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"]:hover:not(:disabled),
.ghg-langue[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #ffffff;
  filter: brightness(1.08);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"],
:root[data-theme="sombre"] .ghg-langue[aria-pressed="true"]:where(.manuel-outils, .manuel-portail),
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"]:hover:not(:disabled),
:root[data-theme="sombre"] .ghg-langue[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"],
:root:not([data-theme]) .ghg-langue[aria-pressed="true"]:where(.manuel-outils, .manuel-portail),
:root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .ghg-langue[aria-pressed="true"]:hover:not(:disabled),
:root:not([data-theme]) .ghg-langue[aria-pressed="true"]:hover:not(:disabled):where(.manuel-outils, .manuel-portail) {
    color: #10121a;
  }
}

:where(.manuel-outils, .manuel-portail) .ghg-saisie,
.ghg-saisie:where(.manuel-outils, .manuel-portail) {
  min-height: 112px;
  padding: 14px 16px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.75;
  text-align: start;
  unicode-bidi: plaintext;
}
:where(.manuel-outils, .manuel-portail) .ghg-saisie[lang="he"],
.ghg-saisie[lang="he"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-texte-normalise[lang="he"],
.ghg-texte-normalise[lang="he"]:where(.manuel-outils, .manuel-portail) {
  font-family: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
:where(.manuel-outils, .manuel-portail) .ghg-saisie[lang="el"],
.ghg-saisie[lang="el"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-texte-normalise[lang="el"],
.ghg-texte-normalise[lang="el"]:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-ui);
}
:where(.manuel-outils, .manuel-portail) .ghg-resume,
.ghg-resume:where(.manuel-outils, .manuel-portail) { margin-top: 12px; }
:where(.manuel-outils, .manuel-portail) .ghg-resume h3,
.ghg-resume:where(.manuel-outils, .manuel-portail) h3 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--encre-2);
}
:where(.manuel-outils, .manuel-portail) .ghg-texte-normalise,
.ghg-texte-normalise:where(.manuel-outils, .manuel-portail) {
  min-height: 1.75em;
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
:where(.manuel-outils, .manuel-portail) .ghg-resume .aide,
.ghg-resume:where(.manuel-outils, .manuel-portail) .aide { margin: 0; }
:where(.manuel-outils, .manuel-portail) .ghg-ajout-comparaison-aide,
.ghg-ajout-comparaison-aide:where(.manuel-outils, .manuel-portail) {
  margin: 8px 0 0;
}
:where(.manuel-outils, .manuel-portail) .ghg-ajout-comparaison-statut,
.ghg-ajout-comparaison-statut:where(.manuel-outils, .manuel-portail) {
  min-height: 0;
  margin-top: 4px;
}
:where(.manuel-outils, .manuel-portail) .ghg-ajout-comparaison-statut:empty,
.ghg-ajout-comparaison-statut:empty:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .ghg-resultats,
.ghg-resultats:where(.manuel-outils, .manuel-portail) {
  display: grid;
  gap: 10px;
}
:where(.manuel-outils, .manuel-portail) .ghg-couple,
.ghg-couple:where(.manuel-outils, .manuel-portail) { min-width: 0; }
:where(.manuel-outils, .manuel-portail) .ghg-carte,
.ghg-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; }
:where(.manuel-outils, .manuel-portail) .ghg-carte .ghg-total,
.ghg-carte:where(.manuel-outils, .manuel-portail) .ghg-total {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}
:where(.manuel-outils, .manuel-portail) .ghg-famille,
.ghg-famille:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .ghg-famille .famille-titre,
.ghg-famille:where(.manuel-outils, .manuel-portail) .famille-titre {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li {
  min-width: 0;
  align-items: baseline;
  border-bottom: 0;
  padding: 5px 0;
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li + li,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li + li {
  border-top: 1px dashed var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li[data-couleur],
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li[data-couleur],
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-resultat[data-couleur],
.ghg-comparaison-resultat[data-couleur]:where(.manuel-outils, .manuel-portail) {
  border-inline-start: 3px solid var(--systeme-accent);
  padding-inline: 8px;
  background: color-mix(in srgb, var(--systeme-accent) 6%, transparent);
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li[data-sens="inverse"],
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li[data-sens="inverse"],
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-resultat[data-sens="inverse"],
.ghg-comparaison-resultat[data-sens="inverse"]:where(.manuel-outils, .manuel-portail) {
  border-inline-start-style: dashed;
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li[data-couleur] .total-nom,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li[data-couleur] .total-nom,
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats li[data-couleur] .ghg-total,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) li[data-couleur] .ghg-total,
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-resultat[data-couleur]:not(.paire-correspondance) .total-nom,
.ghg-comparaison-resultat[data-couleur]:not(.paire-correspondance):where(.manuel-outils, .manuel-portail) .total-nom,
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-resultat[data-couleur]:not(.paire-correspondance) .ghg-comparaison-total,
.ghg-comparaison-resultat[data-couleur]:not(.paire-correspondance):where(.manuel-outils, .manuel-portail) .ghg-comparaison-total {
  color: var(--systeme-accent);
}
:where(.manuel-outils, .manuel-portail) .ghg-liste-resultats .total-nom,
.ghg-liste-resultats:where(.manuel-outils, .manuel-portail) .total-nom {
  min-width: 0;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .ghg-total,
.ghg-total:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 auto;
  margin-inline-start: 0;
  white-space: nowrap;
  font-size: 1rem;
}
:where(.manuel-outils, .manuel-portail) .ghg-groupe-valeur,
.ghg-groupe-valeur:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .ghg-groupe-valeur .valeur-bouton,
.ghg-groupe-valeur:where(.manuel-outils, .manuel-portail) .valeur-bouton { align-self: center; }
:where(.manuel-outils, .manuel-portail) .ghg-premier,
.ghg-premier:where(.manuel-outils, .manuel-portail) { line-height: 1; }
:where(.manuel-outils, .manuel-portail) .ghg-legende-premier,
.ghg-legende-premier:where(.manuel-outils, .manuel-portail) { margin: 12px 0 0; }
:where(.manuel-outils, .manuel-portail) .ghg-decomposition-mots[lang="he"] .tuile-glyphe,
.ghg-decomposition-mots[lang="he"]:where(.manuel-outils, .manuel-portail) .tuile-glyphe,
:where(.manuel-outils, .manuel-portail) .ghg-decomposition-mots[lang="he"] .tuile-normalise,
.ghg-decomposition-mots[lang="he"]:where(.manuel-outils, .manuel-portail) .tuile-normalise,
:where(.manuel-outils, .manuel-portail) .ghg-reference-lettre[lang="he"],
.ghg-reference-lettre[lang="he"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-detail-mot[lang="he"],
.ghg-detail-mot[lang="he"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-texte[lang="he"],
.ghg-comparaison-texte[lang="he"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-normalise[lang="he"],
.ghg-comparaison-normalise[lang="he"]:where(.manuel-outils, .manuel-portail) {
  font-family: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-texte[dir="rtl"],
.ghg-comparaison-texte[dir="rtl"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-normalise[dir="rtl"],
.ghg-comparaison-normalise[dir="rtl"]:where(.manuel-outils, .manuel-portail) {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-texte[dir="ltr"],
.ghg-comparaison-texte[dir="ltr"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-normalise[dir="ltr"],
.ghg-comparaison-normalise[dir="ltr"]:where(.manuel-outils, .manuel-portail) {
  direction: ltr;
  text-align: left;
}
:where(.manuel-outils, .manuel-portail) .ghg-chip-entree .ghg-comparaison-texte,
.ghg-chip-entree:where(.manuel-outils, .manuel-portail) .ghg-comparaison-texte {
  width: auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
}
:where(.manuel-outils, .manuel-portail) .ghg-chip-entree .bouton-ligne-supprimer,
.ghg-chip-entree:where(.manuel-outils, .manuel-portail) .bouton-ligne-supprimer { margin-top: 0; }
:where(.manuel-outils, .manuel-portail) .ghg-cellule-entree .ghg-comparaison-normalise,
.ghg-cellule-entree:where(.manuel-outils, .manuel-portail) .ghg-comparaison-normalise {
  display: block;
  margin-top: 3px;
  color: var(--encre-2);
  font-size: 0.78rem;
  line-height: 1.45;
}
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-blocs,
.ghg-comparaison-blocs:where(.manuel-outils, .manuel-portail) { min-width: 0; }
:where(.manuel-outils, .manuel-portail) .bloc-comparaison-hg .table-comparaison thead th:first-child,
.bloc-comparaison-hg:where(.manuel-outils, .manuel-portail) .table-comparaison thead th:first-child {
  width: 18%;
}
:where(.manuel-outils, .manuel-portail) .ghg-correspondances .correspondance-expression-texte,
.ghg-correspondances:where(.manuel-outils, .manuel-portail) .correspondance-expression-texte {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

/* Les expressions ne sont pas limitées en longueur. Une chaîne continue doit
   donc pouvoir se rompre sans élargir une carte ni être coupée sur mobile. */
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-texte,
.ghg-comparaison-texte:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-comparaison-normalise,
.ghg-comparaison-normalise:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ghg-texte-historique,
.ghg-texte-historique:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .occurrence-rtl,
.occurrence-rtl:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
  :where(.manuel-outils, .manuel-portail) .ghg-zone,
.ghg-zone:where(.manuel-outils, .manuel-portail) {
    grid-template-columns: minmax(300px, 36fr) minmax(0, 64fr);
  }
}
@media (max-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .ghg-resultats,
.ghg-resultats:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .ghg-famille,
.ghg-famille:where(.manuel-outils, .manuel-portail) { padding: 10px 12px; }
}
@media (max-width: 360px) {
  :where(.manuel-outils, .manuel-portail) .ghg-resultats,
.ghg-resultats:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .ghg-selecteur-langue,
.ghg-selecteur-langue:where(.manuel-outils, .manuel-portail) { padding-inline: 9px; }
  :where(.manuel-outils, .manuel-portail) .ghg-boutons-langue,
.ghg-boutons-langue:where(.manuel-outils, .manuel-portail) { gap: 6px; }
  :where(.manuel-outils, .manuel-portail) .ghg-langue,
.ghg-langue:where(.manuel-outils, .manuel-portail) { padding-inline: 8px; }
  :where(.manuel-outils, .manuel-portail) .ghg-saisie,
.ghg-saisie:where(.manuel-outils, .manuel-portail) { min-height: 104px; font-size: 1.3rem; }
}

/* ====================================================================
   v17 — Comparaison inter-langues (vue dérivée, sans nouveau stockage)
   ==================================================================== */

:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-introduction h2,
.comparaison-interlangues-introduction:where(.manuel-outils, .manuel-portail) h2 {
  margin: 18px 0 4px;
  font-size: 1rem;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres,
.comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) { gap: 7px; }
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"],
.comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"] {
  color: #ffffff;
  background: var(--lapis);
  border-color: var(--lapis);
  box-shadow: 0 0 0 1px var(--lapis) inset;
  font-weight: 700;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"]:hover:not(:disabled),
.comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"]:hover:not(:disabled) {
  color: #ffffff;
  filter: brightness(1.08);
}
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"],
:root[data-theme="sombre"] .comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"],
:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"]:hover:not(:disabled),
:root[data-theme="sombre"] .comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"]:hover:not(:disabled) {
  color: #10121a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"],
:root:not([data-theme]) .comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"],
:root:not([data-theme]) :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton[aria-pressed="true"]:hover:not(:disabled),
:root:not([data-theme]) .comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton[aria-pressed="true"]:hover:not(:disabled) {
    color: #10121a;
  }
}

:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-liste,
.comparaison-interlangues-liste:where(.manuel-outils, .manuel-portail) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-carte,
.comparaison-interlangues-carte:where(.manuel-outils, .manuel-portail) {
  position: relative;
  min-width: 0;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > summary,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > summary {
  cursor: pointer;
  padding: 13px 16px;
  line-height: 1.55;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree:not([open]) > summary,
.comparaison-interlangues-entree:not([open]):where(.manuel-outils, .manuel-portail) > summary {
  padding-inline-end: 72px;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > summary:hover,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > summary:hover {
  background: var(--lapis-teinte);
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree[open] > summary,
.comparaison-interlangues-entree[open]:where(.manuel-outils, .manuel-portail) > summary {
  border-bottom: 1px solid var(--ligne);
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree .ghg-comparaison-langue,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) .ghg-comparaison-langue {
  display: inline-block;
  margin: 0 8px 2px 4px;
  padding: 1px 8px;
  border: 1px solid var(--lapis);
  border-radius: 999px;
  color: var(--lapis-fonce);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-texte,
.comparaison-interlangues-texte:where(.manuel-outils, .manuel-portail) {
  font-size: 1.02rem;
  font-weight: 600;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-compteur,
.comparaison-interlangues-compteur:where(.manuel-outils, .manuel-portail) {
  display: inline-block;
  margin-inline-start: 8px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-texte[lang="ar"],
.comparaison-interlangues-texte[lang="ar"]:where(.manuel-outils, .manuel-portail) {
  font-family: var(--pile-arabe);
  font-size: 1.18rem;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-supprimer-compacte,
.comparaison-interlangues-supprimer-compacte:where(.manuel-outils, .manuel-portail) {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-end: 12px;
  display: grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-50%);
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree[open] +
  .comparaison-interlangues-supprimer-compacte,
.comparaison-interlangues-entree[open]:where(.manuel-outils, .manuel-portail) +
  .comparaison-interlangues-supprimer-compacte {
  display: none;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-texte[lang="he"],
.comparaison-interlangues-texte[lang="he"]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .ghg-comparaison-normalise[lang="he"],
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .ghg-comparaison-normalise[lang="he"],
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe
  .correspondance-expression-texte[lang="he"],
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail)
  .correspondance-expression-texte[lang="he"] {
  font-family: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .comparaison-ordre,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .comparaison-ordre,
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .comparaison-reference-verset,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .comparaison-reference-verset,
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .ghg-comparaison-normalise,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .ghg-comparaison-normalise {
  margin: 10px 16px 0;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .ghg-comparaison-resultats,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .ghg-comparaison-resultats {
  padding: 12px 16px 4px;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-valeur,
.comparaison-interlangues-valeur:where(.manuel-outils, .manuel-portail) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  white-space: nowrap;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .barre-actions,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .barre-actions {
  margin: 4px 16px 14px;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe,
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail) {
  min-width: 0;
  padding: 0 10px 10px;
  border: 1px solid var(--correspondance-bordure);
  border-radius: 12px;
  background: var(--papier);
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-correspondances .correspondances-detail >
  .barre-actions,
.comparaison-interlangues-correspondances:where(.manuel-outils, .manuel-portail) .correspondances-detail >
  .barre-actions {
  grid-column: 1 / -1;
  margin: 0;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe > h4,
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail) > h4 { margin-bottom: 8px; }
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe .correspondance-expression,
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail) .correspondance-expression {
  background: var(--carte);
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe .correspondance-expression +
  .correspondance-expression,
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail) .correspondance-expression +
  .correspondance-expression {
  margin-top: 8px;
}
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-groupe .correspondance-systemes li[data-couleur],
.comparaison-interlangues-groupe:where(.manuel-outils, .manuel-portail) .correspondance-systemes li[data-couleur] {
  border-color: color-mix(in srgb, var(--systeme-accent) 55%, var(--ligne));
  color: var(--systeme-accent);
}

@media (max-width: 560px) {
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-filtres .bouton,
.comparaison-interlangues-filtres:where(.manuel-outils, .manuel-portail) .bouton { flex: 1 1 45%; }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > summary,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > summary { padding: 11px 12px; }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree:not([open]) > summary,
.comparaison-interlangues-entree:not([open]):where(.manuel-outils, .manuel-portail) > summary {
    padding-inline-end: 64px;
  }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-supprimer-compacte,
.comparaison-interlangues-supprimer-compacte:where(.manuel-outils, .manuel-portail) { inset-inline-end: 8px; }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .comparaison-ordre,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .comparaison-ordre,
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .comparaison-reference-verset,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .comparaison-reference-verset,
:where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .ghg-comparaison-normalise,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .ghg-comparaison-normalise {
    margin-inline: 12px;
  }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .ghg-comparaison-resultats,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .ghg-comparaison-resultats {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 12px;
  }
  :where(.manuel-outils, .manuel-portail) .comparaison-interlangues-entree > .barre-actions,
.comparaison-interlangues-entree:where(.manuel-outils, .manuel-portail) > .barre-actions {
    margin-inline: 12px;
  }
}

/* Source Manuel : styles-compteurs-reperes.css
 */

/* Synthèse locale des repères des résultats, sous chaque saisie. */

:where(.manuel-outils, .manuel-portail) .compteurs-reperes,
.compteurs-reperes:where(.manuel-outils, .manuel-portail) { margin: 1rem 0; padding: .9rem; border: 1px solid var(--bordure); border-radius: .75rem; background: var(--fond-carte); color: var(--texte); }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes[hidden],
.compteurs-reperes[hidden]:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-titre,
.compteurs-reperes-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 .35rem; font-size: 1rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-portee,
.compteurs-reperes-portee:where(.manuel-outils, .manuel-portail) { margin: 0; font-size: .8rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-aide,
.compteurs-reperes-aide:where(.manuel-outils, .manuel-portail) { margin: .35rem 0 .75rem; color: var(--texte-doux); font-size: .75rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-vide,
.compteurs-reperes-vide:where(.manuel-outils, .manuel-portail) { margin: .5rem 0 .75rem; color: var(--texte-doux); font-size: .78rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-famille,
.compteurs-reperes-famille:where(.manuel-outils, .manuel-portail) { border-top: 1px solid var(--bordure); }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-resume,
.compteurs-reperes-resume:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume,
.compteurs-reperes-repere-resume:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: .45rem; padding: .65rem .1rem; cursor: pointer; list-style: none; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-resume::-webkit-details-marker,
.compteurs-reperes-resume:where(.manuel-outils, .manuel-portail)::-webkit-details-marker,
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume::-webkit-details-marker,
.compteurs-reperes-repere-resume:where(.manuel-outils, .manuel-portail)::-webkit-details-marker { display: none; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-resume::after,
.compteurs-reperes-resume:where(.manuel-outils, .manuel-portail)::after,
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume::after,
.compteurs-reperes-repere-resume:where(.manuel-outils, .manuel-portail)::after { content: "+"; flex: 0 0 .8rem; text-align: center; color: var(--texte-doux); }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-famille[open] > .compteurs-reperes-resume::after,
.compteurs-reperes-famille[open]:where(.manuel-outils, .manuel-portail) > .compteurs-reperes-resume::after,
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere[open] > .compteurs-reperes-repere-resume::after,
.compteurs-reperes-repere[open]:where(.manuel-outils, .manuel-portail) > .compteurs-reperes-repere-resume::after { content: "−"; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-resume:focus-visible,
.compteurs-reperes-resume:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume:focus-visible,
.compteurs-reperes-repere-resume:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: .25rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-icone,
.compteurs-reperes-icone:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-symbole,
.compteurs-reperes-symbole:where(.manuel-outils, .manuel-portail) { flex: 0 0 1.5rem; text-align: center; font-size: 1.15rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-nom,
.compteurs-reperes-nom:where(.manuel-outils, .manuel-portail) { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .83rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-total,
.compteurs-reperes-total:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-compte,
.compteurs-reperes-compte:where(.manuel-outils, .manuel-portail) { flex: 0 0 auto; font-size: .73rem; font-variant-numeric: tabular-nums; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-total,
.compteurs-reperes-total:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux); }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-lecture,
.compteurs-reperes-lecture:where(.manuel-outils, .manuel-portail) { margin: 0 0 .75rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-lecture[data-lecture="totaux"],
.compteurs-reperes-lecture[data-lecture="totaux"]:where(.manuel-outils, .manuel-portail) { padding-top: .35rem; border-top: 1px dashed var(--bordure); }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-lecture-titre,
.compteurs-reperes-lecture-titre:where(.manuel-outils, .manuel-portail) { margin: .4rem 0; color: var(--texte-doux); font-size: .74rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-dominants,
.compteurs-reperes-dominants:where(.manuel-outils, .manuel-portail) { margin: .4rem 0; font-size: .78rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere,
.compteurs-reperes-repere:where(.manuel-outils, .manuel-portail) { margin: .25rem 0; border: 1px solid var(--bordure); border-radius: .4rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume,
.compteurs-reperes-repere-resume:where(.manuel-outils, .manuel-portail) { padding: .4rem; }

:where(.manuel-outils, .manuel-portail) .compteurs-reperes-systemes,
.compteurs-reperes-systemes:where(.manuel-outils, .manuel-portail) { margin: 0; padding: .35rem .75rem .65rem 1.7rem; border-top: 1px solid var(--bordure); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  :where(.manuel-outils, .manuel-portail) .compteurs-reperes,
.compteurs-reperes:where(.manuel-outils, .manuel-portail) { padding: .7rem; }
  :where(.manuel-outils, .manuel-portail) .compteurs-reperes-resume,
.compteurs-reperes-resume:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-repere-resume,
.compteurs-reperes-repere-resume:where(.manuel-outils, .manuel-portail) { gap: .3rem; }
  :where(.manuel-outils, .manuel-portail) .compteurs-reperes-icone,
.compteurs-reperes-icone:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .compteurs-reperes-symbole,
.compteurs-reperes-symbole:where(.manuel-outils, .manuel-portail) { flex-basis: 1.2rem; }
}

/* Source Manuel : styles-referentiels-v8.css
 */

/* Référentiels V8 : navigation locale, lecture et liens explicites. */

:where(.manuel-outils, .manuel-portail) .rc-surtitre,
.rc-surtitre:where(.manuel-outils, .manuel-portail) { color: var(--lapis); font-size: .72rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 .65rem; }

:where(.manuel-outils, .manuel-portail) .rc-accueil-v8 > .accueil-intro,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) > .accueil-intro { max-width: 48rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .grille-classements,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .grille-classements { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.8rem; }

:where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .carte-classement,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .carte-classement { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .carte-classement-titre,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .carte-classement-titre { font-size: 1.18rem; line-height: 1.35; }

:where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .carte-classement-texte,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .carte-classement-texte { flex: 1; margin-bottom: 1.35rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .rc-premiers-pas,
.rc-premiers-pas:where(.manuel-outils, .manuel-portail) { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .rc-premiers-pas h2,
.rc-premiers-pas:where(.manuel-outils, .manuel-portail) h2 { font-size: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .rc-exemples-nombres,
.rc-exemples-nombres:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-exemples-nombres > div,
.rc-exemples-nombres:where(.manuel-outils, .manuel-portail) > div { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; background: var(--creux); border-radius: 10px; padding: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-exemples-nombres .rc-nombre-lien,
.rc-exemples-nombres:where(.manuel-outils, .manuel-portail) .rc-nombre-lien { font-size: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-exemples-nombres > div > span,
.rc-exemples-nombres:where(.manuel-outils, .manuel-portail) > div > span { font-size: .82rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-note-evolutive,
.rc-note-evolutive:where(.manuel-outils, .manuel-portail) { font-size: .86rem; line-height: 1.7; color: var(--encre-2); margin-top: 1.7rem; max-width: 55rem; }

:where(.manuel-outils, .manuel-portail) .rc-navigation-documents,
.rc-navigation-documents:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-nav-document,
.rc-nav-document:where(.manuel-outils, .manuel-portail) { font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .rc-nav-document[aria-current="page"],
.rc-nav-document[aria-current="page"]:where(.manuel-outils, .manuel-portail) { color: var(--lapis); border-color: var(--lapis); background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .rc-onglets,
.rc-onglets:where(.manuel-outils, .manuel-portail) { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--ligne); margin-bottom: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .rc-onglet,
.rc-onglet:where(.manuel-outils, .manuel-portail) { padding: .8rem .15rem; color: var(--encre-2); font: inherit; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rc-onglet[aria-selected="true"],
.rc-onglet[aria-selected="true"]:where(.manuel-outils, .manuel-portail) { color: var(--lapis); border-bottom-color: var(--lapis); font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-guide-liens,
.rc-guide-liens:where(.manuel-outils, .manuel-portail) { font-size: .82rem; color: var(--encre-2); margin: 0 0 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre,
.rc-comprendre:where(.manuel-outils, .manuel-portail) { max-width: 56rem; line-height: 1.75; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre h2,
.rc-comprendre:where(.manuel-outils, .manuel-portail) h2 { font-size: 1.15rem; margin-top: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende { margin-top: 1.5rem; }

/* Dans Comprendre, la légende suit le thème de lecture. La planche et
   sa palette d'impression gardent leur fond crème et leurs couleurs. */

@media screen {
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende {
    color: var(--encre); background: var(--carte); border-color: var(--ligne);
    border-radius: 10px; padding: 1rem 1.2rem; font-size: .9rem; line-height: 1.75;
  }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende-titre,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende-titre { color: var(--encre); text-align: left; font-size: 1rem; }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende-titre:focus-visible,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende-titre:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende-liste,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende-liste { margin: .8rem 0; padding: 0; }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende-liste li,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende-liste li { margin: .3rem 0; }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende-bloc,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planche-legende-bloc { margin: .6rem 0; }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .legende-libelle.pl-neutre,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .legende-libelle.pl-neutre { color: var(--encre); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-mars,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-mars { color: var(--fiche-mars); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-venus,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-venus { color: var(--fiche-venus); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-mercure,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-mercure { color: var(--fiche-mercure); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-lune,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-lune { color: var(--fiche-lune); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-soleil,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-soleil { color: var(--fiche-soleil); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-saturne,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-saturne { color: var(--fiche-saturne); }
  :where(.manuel-outils, .manuel-portail) .rc-comprendre .planete-jupiter,
.rc-comprendre:where(.manuel-outils, .manuel-portail) .planete-jupiter { color: var(--fiche-jupiter); }
}

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate,
.rc-lien-sourate:where(.manuel-outils, .manuel-portail) { appearance: none; border: 0; border-radius: 3px; background: none; padding: 2px 0; color: inherit; font: inherit; text-align: inherit; cursor: pointer; line-height: inherit; }

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate:hover,
.rc-lien-sourate:hover:where(.manuel-outils, .manuel-portail) { text-decoration: underline; text-underline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate.pl-titre-fr,
.rc-lien-sourate.pl-titre-fr:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-lien-sourate.sourate-titre-fr,
.rc-lien-sourate.sourate-titre-fr:where(.manuel-outils, .manuel-portail) { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate.sourate-arabe,
.rc-lien-sourate.sourate-arabe:where(.manuel-outils, .manuel-portail) { font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate.sourate-translit,
.rc-lien-sourate.sourate-translit:where(.manuel-outils, .manuel-portail) { font-size: .8rem; font-style: italic; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-nombre-lien,
.rc-nombre-lien:where(.manuel-outils, .manuel-portail) { min-width: 1.4em; padding: 2px 4px; border-radius: 4px; font-size: inherit; font-weight: 700; line-height: inherit; text-underline-offset: 3px; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rc-nombre-lien:hover,
.rc-nombre-lien:hover:where(.manuel-outils, .manuel-portail) { background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .rc-lien-sourate:focus-visible,
.rc-lien-sourate:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-nombre-lien:focus-visible,
.rc-nombre-lien:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-onglet:focus-visible,
.rc-onglet:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--lapis); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) article.ligne-planche,
article.ligne-planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) article.ligne-sourate,
article.ligne-sourate:where(.manuel-outils, .manuel-portail) { cursor: default; }

:where(.manuel-outils, .manuel-portail) article.ligne-planche:hover,
article.ligne-planche:hover:where(.manuel-outils, .manuel-portail) { transform: none; }

:where(.manuel-outils, .manuel-portail) .sourate-ligne-haute,
.sourate-ligne-haute:where(.manuel-outils, .manuel-portail) { flex-wrap: wrap; }

:where(.manuel-outils, .manuel-portail) .rc-groupes-versets,
.rc-groupes-versets:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }

:where(.manuel-outils, .manuel-portail) .rc-groupe-versets,
.rc-groupe-versets:where(.manuel-outils, .manuel-portail) { min-width: 0; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); padding: 1rem 1.1rem; }

:where(.manuel-outils, .manuel-portail) .rc-groupe-entete,
.rc-groupe-entete:where(.manuel-outils, .manuel-portail) { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding-bottom: .65rem; border-bottom: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .rc-groupe-entete h2,
.rc-groupe-entete:where(.manuel-outils, .manuel-portail) h2 { font-size: 1.08rem; margin: 0; }

:where(.manuel-outils, .manuel-portail) .rc-groupe-compte,
.rc-groupe-compte:where(.manuel-outils, .manuel-portail) { font-size: .74rem; color: var(--encre-2); white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .rc-groupe-sourates,
.rc-groupe-sourates:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; align-items: stretch; list-style: none; padding: 0; margin: 1rem 0 0; }

:where(.manuel-outils, .manuel-portail) .rc-groupe-sourates > li,
.rc-groupe-sourates:where(.manuel-outils, .manuel-portail) > li { display: flex; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-outils,
.rc-lettres-outils:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-outils,
.rc-elements-outils:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-outils,
.rc-reperes-outils:where(.manuel-outils, .manuel-portail) { align-items: end; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-champ,
.rc-lettres-champ:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-champ,
.rc-elements-champ:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ,
.rc-reperes-champ:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-champ-recherche,
.rc-lettres-champ-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-champ-recherche,
.rc-elements-champ-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ-recherche,
.rc-reperes-champ-recherche:where(.manuel-outils, .manuel-portail) { flex: 1 1 18rem; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-champ label,
.rc-lettres-champ:where(.manuel-outils, .manuel-portail) label,
:where(.manuel-outils, .manuel-portail) .rc-elements-champ label,
.rc-elements-champ:where(.manuel-outils, .manuel-portail) label,
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ label,
.rc-reperes-champ:where(.manuel-outils, .manuel-portail) label { font-size: .85rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-champ select,
.rc-lettres-champ:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .rc-elements-champ select,
.rc-elements-champ:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ select,
.rc-reperes-champ:where(.manuel-outils, .manuel-portail) select {
  min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--ligne);
  border-radius: 9px; background: var(--carte); color: var(--encre); font: inherit;
}

:where(.manuel-outils, .manuel-portail) .rc-lettres-champ .rc-recherche,
.rc-lettres-champ:where(.manuel-outils, .manuel-portail) .rc-recherche,
:where(.manuel-outils, .manuel-portail) .rc-elements-champ .rc-recherche,
.rc-elements-champ:where(.manuel-outils, .manuel-portail) .rc-recherche,
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ .rc-recherche,
.rc-reperes-champ:where(.manuel-outils, .manuel-portail) .rc-recherche { width: 100%; flex: 0 1 auto; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-groupes,
.rc-lettres-groupes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-groupes,
.rc-elements-groupes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-groupes,
.rc-reperes-groupes:where(.manuel-outils, .manuel-portail) { display: grid; gap: 2rem; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-groupe,
.rc-lettre-groupe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-element-groupe,
.rc-element-groupe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-repere-groupe,
.rc-repere-groupe:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-entete,
.rc-lettre-entete:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-element-entete,
.rc-element-entete:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-repere-entete,
.rc-repere-entete:where(.manuel-outils, .manuel-portail) {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: 0 0 .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ligne);
}

:where(.manuel-outils, .manuel-portail) .rc-lettre-entete h2,
.rc-lettre-entete:where(.manuel-outils, .manuel-portail) h2,
:where(.manuel-outils, .manuel-portail) .rc-element-entete h2,
.rc-element-entete:where(.manuel-outils, .manuel-portail) h2,
:where(.manuel-outils, .manuel-portail) .rc-repere-entete h2,
.rc-repere-entete:where(.manuel-outils, .manuel-portail) h2 { margin: 0; font-size: 1.25rem; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-entete .rc-groupe-compte,
.rc-lettre-entete:where(.manuel-outils, .manuel-portail) .rc-groupe-compte,
:where(.manuel-outils, .manuel-portail) .rc-element-entete .rc-groupe-compte,
.rc-element-entete:where(.manuel-outils, .manuel-portail) .rc-groupe-compte,
:where(.manuel-outils, .manuel-portail) .rc-repere-entete .rc-groupe-compte,
.rc-repere-entete:where(.manuel-outils, .manuel-portail) .rc-groupe-compte { margin-inline-start: auto; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-symbole,
.rc-lettre-symbole:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-element-symbole,
.rc-element-symbole:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-repere-symbole,
.rc-repere-symbole:where(.manuel-outils, .manuel-portail) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3rem;
  min-height: 3rem; border-radius: 12px; background: var(--lapis-teinte); color: var(--lapis); font-size: 1.8rem;
}

:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes,
.rc-lettres-cartes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-cartes,
.rc-elements-cartes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes,
.rc-reperes-cartes:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem; align-items: stretch;
}

:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes .fiche-sourate-correspondance,
.rc-lettres-cartes:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance,
:where(.manuel-outils, .manuel-portail) .rc-elements-cartes .fiche-sourate-correspondance,
.rc-elements-cartes:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance,
:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes .fiche-sourate-correspondance,
.rc-reperes-cartes:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance {
  display: flex; flex-direction: column; min-width: 0; width: 100%; margin: 0;
}

:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes .pl-meta,
.rc-lettres-cartes:where(.manuel-outils, .manuel-portail) .pl-meta,
:where(.manuel-outils, .manuel-portail) .rc-elements-cartes .pl-meta,
.rc-elements-cartes:where(.manuel-outils, .manuel-portail) .pl-meta,
:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes .pl-meta,
.rc-reperes-cartes:where(.manuel-outils, .manuel-portail) .pl-meta { margin-top: auto; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes .pl-corps,
.rc-lettres-cartes:where(.manuel-outils, .manuel-portail) .pl-corps,
:where(.manuel-outils, .manuel-portail) .rc-elements-cartes .pl-corps,
.rc-elements-cartes:where(.manuel-outils, .manuel-portail) .pl-corps,
:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes .pl-corps,
.rc-reperes-cartes:where(.manuel-outils, .manuel-portail) .pl-corps { min-height: 6.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes .pl-arabe,
.rc-lettres-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe,
:where(.manuel-outils, .manuel-portail) .rc-elements-cartes .pl-arabe,
.rc-elements-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe,
:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes .pl-arabe,
.rc-reperes-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe { flex-basis: 100%; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  :where(.manuel-outils, .manuel-portail) .rc-lettres-outils > *,
.rc-lettres-outils:where(.manuel-outils, .manuel-portail) > *,
:where(.manuel-outils, .manuel-portail) .rc-elements-outils > *,
.rc-elements-outils:where(.manuel-outils, .manuel-portail) > *,
:where(.manuel-outils, .manuel-portail) .rc-reperes-outils > *,
.rc-reperes-outils:where(.manuel-outils, .manuel-portail) > * { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .rc-lettres-champ-recherche,
.rc-lettres-champ-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-elements-champ-recherche,
.rc-elements-champ-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-reperes-champ-recherche,
.rc-reperes-champ-recherche:where(.manuel-outils, .manuel-portail) { flex-basis: auto; }
}

:where(.manuel-outils, .manuel-portail) .rc-chrono-cartes,
.rc-chrono-cartes:where(.manuel-outils, .manuel-portail) { gap: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-chrono-cartes > li,
.rc-chrono-cartes:where(.manuel-outils, .manuel-portail) > li { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-carte-versets,
.rc-carte-versets:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-carte-chronologique,
.rc-carte-chronologique:where(.manuel-outils, .manuel-portail) { width: 100%; box-sizing: border-box; }

:where(.manuel-outils, .manuel-portail) .rc-carte-versets,
.rc-carte-versets:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; }

:where(.manuel-outils, .manuel-portail) .rc-carte-versets .pl-rang,
.rc-carte-versets:where(.manuel-outils, .manuel-portail) .pl-rang,
:where(.manuel-outils, .manuel-portail) .rc-carte-chronologique .pl-rang,
.rc-carte-chronologique:where(.manuel-outils, .manuel-portail) .pl-rang { display: block; flex-basis: 100%; }

:where(.manuel-outils, .manuel-portail) .rc-carte-versets .pl-meta,
.rc-carte-versets:where(.manuel-outils, .manuel-portail) .pl-meta { margin-top: auto; }

:where(.manuel-outils, .manuel-portail) .rc-carte-versets .pl-arabe,
.rc-carte-versets:where(.manuel-outils, .manuel-portail) .pl-arabe,
:where(.manuel-outils, .manuel-portail) .rc-carte-chronologique .pl-arabe,
.rc-carte-chronologique:where(.manuel-outils, .manuel-portail) .pl-arabe { overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rc-nom-sourate,
.rc-nom-sourate:where(.manuel-outils, .manuel-portail) { overflow-wrap: anywhere; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rc-rang-groupe,
.rc-rang-groupe:where(.manuel-outils, .manuel-portail) { font-size: .76rem; color: var(--encre-2); white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .rc-correspondances-cartes,
.rc-correspondances-cartes:where(.manuel-outils, .manuel-portail) { display: grid; gap: .7rem; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance:hover,
.fiche-sourate-correspondance:hover:where(.manuel-outils, .manuel-portail) {
  max-width: none; padding: 20px 22px; border-radius: 14px;
  color: var(--encre); background: var(--carte); border-color: var(--ligne);
  border-inline-start: 3px solid var(--rc-accent-personnalise, var(--lapis));
  box-shadow: 0 4px 16px rgb(0 0 0 / 5%); font-size: 1rem; line-height: 1.55;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-entete,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-entete { gap: 8px 10px; align-items: center; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-rang,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-rang {
  color: var(--encre-2); font-size: .8rem; margin-bottom: 8px;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-prefixe,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-prefixe { color: var(--encre-2); font-size: .75rem; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-titre-fr,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-titre-fr { font-size: 1.3rem; line-height: 1.4; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-emoji,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-emoji { font-size: 1.8rem; margin-inline-start: auto; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-numero-affiche,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-numero-affiche {
  background: var(--creux); font-size: 1.15rem; border-radius: 9px;
  border-color: var(--rc-accent-personnalise, var(--ligne));
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-corps,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-corps {
  gap: 8px 20px; align-items: center; justify-content: space-between; margin: 12px 0 18px;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-arabe,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-arabe {
  font-family: var(--pile-arabe); font-size: 2rem; line-height: 1.7;
  order: 2; margin-left: auto; margin-right: 0; max-width: 100%;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-translit,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-translit { color: var(--encre-2); font-size: .95rem; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-meta {
  gap: 8px; padding-top: 16px; border-top: 1px solid var(--ligne);
  color: var(--encre-2); font-size: .88rem; align-items: stretch;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta > span,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-meta > span {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  padding: 5px 10px; background: var(--creux); border-radius: 7px;
}

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-lettre,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-lettre { font-size: 1.45rem; line-height: 1.4; }

:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .rc-ouvrir-sourate,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .rc-ouvrir-sourate {
  display: block; margin: 14px 0 0 auto; padding: 8px 0;
  min-height: 44px; color: var(--lapis); font-size: .9rem; font-weight: 600;
}

:where(.manuel-outils, .manuel-portail) .rc-liens-documents,
.rc-liens-documents:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .55rem; }

:where(.manuel-outils, .manuel-portail) .rc-lien-document,
.rc-lien-document:where(.manuel-outils, .manuel-portail) { text-align: left; }

:where(.manuel-outils, .manuel-portail) #rc-voile .fiche-ligne > .rc-nombre-lien,
#rc-voile:where(.manuel-outils, .manuel-portail) .fiche-ligne > .rc-nombre-lien { margin-left: auto; }

:where(.manuel-outils, .manuel-portail) [id^="rc-"][role="tabpanel"][hidden],
[id^="rc-"][role="tabpanel"][hidden]:where(.manuel-outils, .manuel-portail) { display: none; }

/* Document 05 : les valeurs restent lisibles dans leur famille. */

:where(.manuel-outils, .manuel-portail) .rc-signatures-intro,
.rc-signatures-intro:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); line-height: 1.65; margin: 0 0 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-recherche-formulaire,
.rc-signatures-recherche-formulaire:where(.manuel-outils, .manuel-portail) { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-recherche-formulaire label,
.rc-signatures-recherche-formulaire:where(.manuel-outils, .manuel-portail) label { flex: 1 1 260px; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-recherche-formulaire input,
.rc-signatures-recherche-formulaire:where(.manuel-outils, .manuel-portail) input { width: 100%; min-height: 44px; padding: .65rem; font: inherit; color: var(--encre); background: var(--creux); border: 1px solid var(--ligne); border-radius: 8px; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-options,
.rc-signatures-options:where(.manuel-outils, .manuel-portail) { margin: .7rem 0; color: var(--encre-2); font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-options summary,
.rc-signatures-options:where(.manuel-outils, .manuel-portail) summary { padding: .7rem 0; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-outils,
.rc-signatures-outils:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-outils label,
.rc-signatures-outils:where(.manuel-outils, .manuel-portail) label { display: flex; flex-direction: column; gap: .45rem; font-size: .85rem; font-weight: 600; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-outils select,
.rc-signatures-outils:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .rc-signatures-outils input,
.rc-signatures-outils:where(.manuel-outils, .manuel-portail) input { width: 100%; min-width: 0; min-height: 44px; font: inherit; padding: .65rem; color: var(--encre); background: var(--creux); border: 1px solid var(--ligne); border-radius: 8px; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-inclure,
.rc-signatures-inclure:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .88rem; margin: .6rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-inclure input,
.rc-signatures-inclure:where(.manuel-outils, .manuel-portail) input { width: 18px; height: 18px; accent-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .rc-signatures-bilan,
.rc-signatures-bilan:where(.manuel-outils, .manuel-portail) { padding: .8rem 1rem; background: var(--creux); color: var(--encre-2); border-radius: 8px; font-size: .85rem; line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .rc-document-signatures .rc-compteur,
.rc-document-signatures:where(.manuel-outils, .manuel-portail) .rc-compteur { scroll-margin-top: 90px; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-groupes,
.rc-signatures-groupes:where(.manuel-outils, .manuel-portail) { display: grid; gap: 1.25rem; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-sommaire,
.rc-signatures-sommaire:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-sommaire .bouton,
.rc-signatures-sommaire:where(.manuel-outils, .manuel-portail) .bouton { font-size: .8rem; text-align: left; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-partie > h2,
.rc-signatures-partie:where(.manuel-outils, .manuel-portail) > h2 { scroll-margin-top: 90px; color: var(--lapis); font-size: 1.35rem; margin: 1rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-signatures-liste,
.rc-signatures-liste:where(.manuel-outils, .manuel-portail) { display: grid; gap: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-carte,
.rc-signature-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 1.2rem; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-signature-entete,
.rc-signature-entete:where(.manuel-outils, .manuel-portail) { display: flex; gap: .7rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-entete h3,
.rc-signature-entete:where(.manuel-outils, .manuel-portail) h3 { margin: 0; color: var(--lapis); font-size: 1.05rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-entete > span,
.rc-signature-entete:where(.manuel-outils, .manuel-portail) > span { color: var(--encre-2); font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; gap: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membre,
.rc-signature-membre:where(.manuel-outils, .manuel-portail) { min-width: 0; display: grid; gap: .8rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membre h4,
.rc-signature-membre:where(.manuel-outils, .manuel-portail) h4 { margin: 0 0 .3rem; font-size: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres .fiche-sourate-correspondance,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance { padding: 16px; background: var(--creux); min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres .pl-meta > span,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) .pl-meta > span { background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres .pl-titre-fr,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) .pl-titre-fr { font-size: 1.15rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres .pl-arabe,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) .pl-arabe { flex-basis: 100%; text-align: right; }

:where(.manuel-outils, .manuel-portail) .rc-signature-membres .pl-corps,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) .pl-corps { min-height: 6.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-meta,
.rc-signature-meta:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .82rem; line-height: 1.7; margin: .2rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-signature-relations,
.rc-signature-relations:where(.manuel-outils, .manuel-portail) { margin-top: 1rem; padding-top: .65rem; border-top: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .rc-signature-relation,
.rc-signature-relation:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-signature-motif,
.rc-signature-motif:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); border: 1px solid var(--ligne); border-radius: 20px; padding: .25rem .65rem; margin-left: .35rem; font-size: .78rem; }

:where(.manuel-outils, .manuel-portail) .rc-signature-correspondance > .bouton,
.rc-signature-correspondance:where(.manuel-outils, .manuel-portail) > .bouton { margin-top: .7rem; }

:where(.manuel-outils, .manuel-portail) .rc-croisement-signatures,
.rc-croisement-signatures:where(.manuel-outils, .manuel-portail) { line-height: 2; }

/* Documents 04 et 03 : lecture des trois rôles et des parcours complets. */

:where(.manuel-outils, .manuel-portail) .rc-parcours-intro,
.rc-parcours-intro:where(.manuel-outils, .manuel-portail) { max-width: 64rem; color: var(--encre-2); line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-compteur,
.rc-parcours-compteur:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-parcours-partie > h2,
.rc-parcours-partie:where(.manuel-outils, .manuel-portail) > h2,
:where(.manuel-outils, .manuel-portail) .rc-parcours-carte,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) { scroll-margin-top: 90px; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-groupes,
.rc-parcours-groupes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-parcours-chaines-liste,
.rc-parcours-chaines-liste:where(.manuel-outils, .manuel-portail) { display: grid; gap: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-partie > h2,
.rc-parcours-partie:where(.manuel-outils, .manuel-portail) > h2 { margin: 1.4rem 0 1rem; font-size: 1.45rem; color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-chaine > h3,
.rc-parcours-chaine:where(.manuel-outils, .manuel-portail) > h3 { margin: 0 0 1.15rem; font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-triplet,
.rc-parcours-triplet:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-colonne,
.rc-parcours-colonne:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-role,
.rc-parcours-role:where(.manuel-outils, .manuel-portail) { margin: 0 0 .65rem; color: var(--encre-2); font-size: .87rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-colonne-centre .rc-parcours-role,
.rc-parcours-colonne-centre:where(.manuel-outils, .manuel-portail) .rc-parcours-role { color: var(--lapis); font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-colonne-centre .rc-parcours-carte,
.rc-parcours-colonne-centre:where(.manuel-outils, .manuel-portail) .rc-parcours-carte { border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 16px; background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-colonne .rc-parcours-carte,
.rc-parcours-colonne:where(.manuel-outils, .manuel-portail) .rc-parcours-carte { flex: 1; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte .pl-rang,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) .pl-rang { display: block; flex-basis: 100%; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte .pl-titre-fr,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) .pl-titre-fr { font-size: 1.15rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte .pl-arabe,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) .pl-arabe { flex-basis: 100%; text-align: right; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte .pl-meta > span,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) .pl-meta > span { background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte .pl-corps,
.rc-parcours-carte:where(.manuel-outils, .manuel-portail) .pl-corps { min-height: 6.5rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte:focus,
.rc-parcours-carte:focus:where(.manuel-outils, .manuel-portail) { outline: 3px solid var(--lapis); outline-offset: 4px; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-carte[data-parcours-selection="true"],
.rc-parcours-carte[data-parcours-selection="true"]:where(.manuel-outils, .manuel-portail) { border: 2px solid var(--lapis); border-inline-start-width: 5px; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-chaine > .bouton,
.rc-parcours-chaine:where(.manuel-outils, .manuel-portail) > .bouton { margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite,
.rc-parcours-orbite:where(.manuel-outils, .manuel-portail) { padding: 1.35rem; border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite > .rc-surtitre,
.rc-parcours-orbite:where(.manuel-outils, .manuel-portail) > .rc-surtitre { margin-bottom: .45rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite > h2,
.rc-parcours-orbite:where(.manuel-outils, .manuel-portail) > h2 { margin-top: 0; margin-bottom: .4rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-lecture,
.rc-parcours-lecture:where(.manuel-outils, .manuel-portail) { margin: 0; color: var(--encre); font-size: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-bilan,
.rc-parcours-bilan:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-parcours-note,
.rc-parcours-note:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .88rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-sequence,
.rc-parcours-sequence:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .3rem; padding: 1rem; margin: 1rem 0 1.5rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--creux); line-height: 1.8; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-sequence > span,
.rc-parcours-sequence:where(.manuel-outils, .manuel-portail) > span { color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite-cartes,
.rc-parcours-orbite-cartes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; align-items: start; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-etape,
.rc-parcours-etape:where(.manuel-outils, .manuel-portail) { min-width: 0; display: flex; flex-direction: column; gap: .65rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-etape-titre,
.rc-parcours-etape-titre:where(.manuel-outils, .manuel-portail) { margin: 0; font: inherit; font-size: .8rem; font-weight: 700; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-navigation,
.rc-parcours-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-navigation > .bouton,
.rc-parcours-navigation:where(.manuel-outils, .manuel-portail) > .bouton { flex: 1; font-size: .76rem; padding: .65rem .5rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-lien-document,
.rc-parcours-lien-document:where(.manuel-outils, .manuel-portail) { font-size: .86rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-options > label,
.rc-parcours-options:where(.manuel-outils, .manuel-portail) > label { display: flex; flex-direction: column; gap: .5rem; max-width: 24rem; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-options select,
.rc-parcours-options:where(.manuel-outils, .manuel-portail) select { padding: .65rem; min-height: 44px; border: 1px solid var(--ligne); border-radius: 8px; font: inherit; color: var(--encre); background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .rc-parcours-correspondance,
.rc-parcours-correspondance:where(.manuel-outils, .manuel-portail) { color: var(--encre); font-size: .9rem; line-height: 1.6; margin: 0; }

:where(.manuel-outils, .manuel-portail) .rc-parcours-relation,
.rc-parcours-relation:where(.manuel-outils, .manuel-portail) { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume,
.rc-chaine-resume:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; list-style: none; padding: 0; margin: 1rem 0 1.2rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-etape,
.rc-chaine-resume-etape:where(.manuel-outils, .manuel-portail) { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: .9rem; padding: 1rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-etape:not(:last-child)::after,
.rc-chaine-resume-etape:not(:last-child):where(.manuel-outils, .manuel-portail)::after { content: "→"; position: absolute; inset-inline-end: -1.9rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-centre,
.rc-chaine-resume-centre:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-role,
.rc-chaine-resume-role:where(.manuel-outils, .manuel-portail) { margin: 0; color: var(--encre-2); font-size: .8rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-centre .rc-chaine-resume-role,
.rc-chaine-resume-centre:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-role { color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte.rc-parcours-carte,
.rc-chaine-resume-carte.rc-parcours-carte:where(.manuel-outils, .manuel-portail) { flex: 1; display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: .88rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-entete,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-entete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-rang,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-rang { grid-column: 1 / -1; margin: 0 0 .25rem; font-size: .76rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-prefixe,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-prefixe { grid-column: 1; grid-row: 2; font-size: .72rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-numero-affiche,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-numero-affiche { grid-column: 2; grid-row: 2; justify-self: start; min-height: 0; padding: 0 .3rem; border-radius: 7px; background: var(--carte); font-size: 1.25rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-numero-affiche .nombre-lien,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-numero-affiche .nombre-lien { white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-emoji,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-emoji { grid-column: 3; grid-row: 2; margin: 0; font-size: 1.6rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .rc-chaine-resume-nom,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-nom { grid-column: 1 / -1; grid-row: 3; margin-top: .25rem; font-size: 1.12rem; font-weight: 700; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .rc-badge-personnalise,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .rc-badge-personnalise { grid-column: 1 / -1; justify-self: start; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-corps,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-corps { display: flex; flex-flow: column nowrap; align-items: stretch; justify-content: flex-start; gap: .25rem; min-height: 0; margin: .85rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte.fiche-sourate-correspondance .pl-arabe,
.rc-chaine-resume-carte.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-arabe { order: 0; flex: none; margin: 0; font-size: 1.85rem; line-height: 1.6; text-align: right; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-translit,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-translit { font-size: .88rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-meta,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: auto; padding-top: .8rem; font-size: .78rem; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-meta > span,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-meta > span { min-width: 0; min-height: 34px; padding: .35rem .45rem; gap: .2rem; flex-wrap: wrap; overflow-wrap: anywhere; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .pl-lettre,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .pl-lettre { font-size: 1.35rem; line-height: 1.3; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-carte .rc-ouvrir-sourate,
.rc-chaine-resume-carte:where(.manuel-outils, .manuel-portail) .rc-ouvrir-sourate { order: 2; margin: .4rem 0 0; min-height: 36px; padding: .5rem 0; font-size: .82rem; text-align: left; }

:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-cycle,
.rc-chaine-resume-cycle:where(.manuel-outils, .manuel-portail) { order: 1; margin: .25rem 0 0; color: var(--encre-2); font-size: .75rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .rc-actions-parcours,
.rc-actions-parcours:where(.manuel-outils, .manuel-portail) { margin: .9rem 0 1.25rem; }

@media (max-width: 1100px) {
  :where(.manuel-outils, .manuel-portail) .rc-parcours-triplet,
.rc-parcours-triplet:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .rc-parcours-colonne + .rc-parcours-colonne,
.rc-parcours-colonne:where(.manuel-outils, .manuel-portail) + .rc-parcours-colonne { margin-top: .7rem; }
  :where(.manuel-outils, .manuel-portail) .rc-parcours-orbite-cartes,
.rc-parcours-orbite-cartes:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :where(.manuel-outils, .manuel-portail) .rc-chaine-resume,
.rc-chaine-resume:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; gap: 2.2rem; }
  :where(.manuel-outils, .manuel-portail) .rc-chaine-resume-etape:not(:last-child)::after,
.rc-chaine-resume-etape:not(:last-child):where(.manuel-outils, .manuel-portail)::after { content: "↓"; inset-inline-end: auto; left: 50%; top: auto; bottom: -2rem; transform: translateX(-50%); }
  :where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .grille-classements,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .grille-classements { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .rc-exemples-nombres,
.rc-exemples-nombres:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  :where(.manuel-outils, .manuel-portail) .rc-parcours-orbite-cartes,
.rc-parcours-orbite-cartes:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .rc-parcours-orbite,
.rc-parcours-orbite:where(.manuel-outils, .manuel-portail) { padding: .85rem; }
  :where(.manuel-outils, .manuel-portail) .rc-parcours-sequence,
.rc-parcours-sequence:where(.manuel-outils, .manuel-portail) { padding: .7rem; }
  :where(.manuel-outils, .manuel-portail) .rc-parcours-formulaire .bouton,
.rc-parcours-formulaire:where(.manuel-outils, .manuel-portail) .bouton { flex: 1; }
  :where(.manuel-outils, .manuel-portail) .rc-signatures-outils,
.rc-signatures-outils:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; gap: .75rem; }
  :where(.manuel-outils, .manuel-portail) .rc-signature-carte,
.rc-signature-carte:where(.manuel-outils, .manuel-portail) { padding: .85rem; }
  :where(.manuel-outils, .manuel-portail) .rc-signature-membres,
.rc-signature-membres:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .rc-signatures-recherche-formulaire .bouton,
.rc-signatures-recherche-formulaire:where(.manuel-outils, .manuel-portail) .bouton { flex: 1; }
  :where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance:hover,
.fiche-sourate-correspondance:hover:where(.manuel-outils, .manuel-portail) { padding: 16px; }
  :where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-titre-fr,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-titre-fr { flex-basis: calc(100% - 3rem); font-size: 1.15rem; }
  :where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-arabe,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-arabe { flex-basis: 100%; text-align: right; }
  :where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-corps,
.fiche-sourate-correspondance:where(.manuel-outils, .manuel-portail) .pl-corps { gap: 0; }
  :where(.manuel-outils, .manuel-portail) .rc-groupes-versets,
.rc-groupes-versets:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .rc-navigation-documents,
.rc-navigation-documents:where(.manuel-outils, .manuel-portail) { gap: .35rem; }
  :where(.manuel-outils, .manuel-portail) .rc-nav-document,
.rc-nav-document:where(.manuel-outils, .manuel-portail) { font-size: .74rem; padding: .5rem .65rem; }
  :where(.manuel-outils, .manuel-portail) .rc-groupe-versets,
.rc-groupe-versets:where(.manuel-outils, .manuel-portail) { padding: .85rem; }
  :where(.manuel-outils, .manuel-portail) .rc-rang-groupe,
.rc-rang-groupe:where(.manuel-outils, .manuel-portail) { font-size: .69rem; }
  :where(.manuel-outils, .manuel-portail) .rc-accueil-v8 .carte-classement,
.rc-accueil-v8:where(.manuel-outils, .manuel-portail) .carte-classement { padding: 1.15rem; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .rc-nombre-lien,
.rc-nombre-lien:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-lien-sourate,
.rc-lien-sourate:where(.manuel-outils, .manuel-portail) { padding: 0; }
  :where(.manuel-outils, .manuel-portail) .rc-lien-sourate,
.rc-lien-sourate:where(.manuel-outils, .manuel-portail) { text-decoration: none; }
}

/* Navigation des orbites, sur le modèle des fiches techniques. */

:where(.manuel-outils, .manuel-portail) .rc-orbites-choix,
.rc-orbites-choix:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-block: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-choix label,
.rc-orbites-choix:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-choix select,
.rc-orbites-choix:where(.manuel-outils, .manuel-portail) select { min-height: 44px; min-width: 0; max-width: 100%; padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: 6px; background: var(--carte); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-navigation,
.rc-orbites-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-navigation-bouton,
.rc-orbites-navigation-bouton:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-navigation-bouton:disabled,
.rc-orbites-navigation-bouton:disabled:where(.manuel-outils, .manuel-portail) { opacity: .45; cursor: default; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-catalogue,
.rc-orbites-catalogue:where(.manuel-outils, .manuel-portail) { margin-block: .5rem 1rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rc-orbites-catalogue summary,
.rc-orbites-catalogue:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding-block: .6rem; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-catalogue-liste,
.rc-orbites-catalogue-liste:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .55rem 1rem; list-style: none; padding: .5rem 0; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-ouvrir,
.rc-orbites-ouvrir:where(.manuel-outils, .manuel-portail) { width: 100%; height: 100%; min-height: 44px; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--lapis); font: inherit; font-weight: 700; text-align: start; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-ouvrir:hover,
.rc-orbites-ouvrir:hover:where(.manuel-outils, .manuel-portail) { background: var(--carte); text-decoration: underline; text-underline-offset: .2em; }

:where(.manuel-outils, .manuel-portail) .rc-orbites-ouvrir[aria-current="true"],
.rc-orbites-ouvrir[aria-current="true"]:where(.manuel-outils, .manuel-portail) { border-color: currentColor; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .rc-orbites-ouvrir:focus-visible,
.rc-orbites-ouvrir:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-orbites-navigation-bouton:focus-visible,
.rc-orbites-navigation-bouton:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid var(--lapis); outline-offset: 3px; }

@media print { :where(.manuel-outils, .manuel-portail) .rc-orbites-choix,
.rc-orbites-choix:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rc-orbites-catalogue,
.rc-orbites-catalogue:where(.manuel-outils, .manuel-portail) { display: none; } }

/* Les lettres séparées décrivent les ouvertures, indépendamment du groupe fréquentiel. */

:where(.manuel-outils, .manuel-portail) .rc-statut-lettre,
.rc-statut-lettre:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .7rem; margin: .5rem 0 1rem; font-size: .82rem; }

:where(.manuel-outils, .manuel-portail) .rc-statut-lettre-badge,
.rc-statut-lettre-badge:where(.manuel-outils, .manuel-portail) { display: inline-block; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 1rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-statut-lettre[data-lettre-separee="true"] .rc-statut-lettre-badge,
.rc-statut-lettre[data-lettre-separee="true"]:where(.manuel-outils, .manuel-portail) .rc-statut-lettre-badge { color: var(--lapis); background: var(--lapis-teinte); }

:where(.manuel-outils, .manuel-portail) .rc-lettre-ouvertures,
.rc-lettre-ouvertures:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-ouvertures summary,
.rc-lettre-ouvertures:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-ouvertures-liens,
.rc-lettre-ouvertures-liens:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .3rem .65rem; padding-block: .4rem; }

:where(.manuel-outils, .manuel-portail) .rc-lettre-ouvertures-liens .rc-lien-sourate,
.rc-lettre-ouvertures-liens:where(.manuel-outils, .manuel-portail) .rc-lien-sourate { font-size: inherit; text-align: start; overflow-wrap: anywhere; }

@media print {
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-reperes-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-reperes-groupes { display: block; min-width: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-reperes-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-reperes-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-repere-groupe,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-repere-groupe { break-inside: auto; margin-bottom: 4mm; }
}

/* Source Manuel : styles-planches-coraniques.css
 */

/* Planches vivantes des Documents 04, 05 et 06 et des classements par lettres et éléments.
 * Les couleurs numériques,
 * planétaires et personnalisées viennent des cartes du référentiel commun. */

:where(.manuel-outils, .manuel-portail) .rcp-planche,
.rcp-planche:where(.manuel-outils, .manuel-portail) {
  --rcp-encre: #201c12;
  --rcp-papier: #f8f2e0;
  --rcp-filet: rgba(32, 28, 18, 0.7);
  background: var(--rcp-papier);
  color: var(--rcp-encre);
  /* La classe .planche garde ensemble la largeur et les marges de centrage. */
  min-width: 0;
  box-sizing: border-box;
}

:where(.manuel-outils, .manuel-portail) .rcp-titre,
.rcp-titre:where(.manuel-outils, .manuel-portail) { color: var(--rcp-encre); margin: 0 0 0.65rem; text-align: center; font-size: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .rcp-navigation,
.rcp-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.6rem 0; }

:where(.manuel-outils, .manuel-portail) .rcp-raccourci,
.rcp-raccourci:where(.manuel-outils, .manuel-portail) {
  min-height: 44px; padding: 0.45rem 0.75rem; border: 1px solid var(--rcp-filet);
  border-radius: 6px; background: #fffaf0; color: var(--rcp-encre); cursor: pointer;
  font: inherit; font-size: 0.85rem; line-height: 1.3;
  max-width: 100%; overflow-wrap: anywhere;
}

:where(.manuel-outils, .manuel-portail) .rcp-raccourci:hover,
.rcp-raccourci:hover:where(.manuel-outils, .manuel-portail) { background: #eee2b9; }

:where(.manuel-outils, .manuel-portail) .rcp-aide,
.rcp-aide:where(.manuel-outils, .manuel-portail) { font-size: 0.85rem; line-height: 1.45; color: #5f5748; margin: 0.5rem 0 0.8rem; }

:where(.manuel-outils, .manuel-portail) .rcp-defilement,
.rcp-defilement:where(.manuel-outils, .manuel-portail) {
  max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 3px 3px 1rem; overscroll-behavior-x: contain;
  scrollbar-width: auto;
}

:where(.manuel-outils, .manuel-portail) .rcp-defilement:focus-visible,
.rcp-defilement:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-raccourci:focus-visible,
.rcp-raccourci:focus-visible:where(.manuel-outils, .manuel-portail) {
  outline: 3px solid #24418c; outline-offset: 2px;
}

:where(.manuel-outils, .manuel-portail) .rcp-canevas,
.rcp-canevas:where(.manuel-outils, .manuel-portail) { color: var(--rcp-encre); font-size: 0.875rem; line-height: 1.35; }

:where(.manuel-outils, .manuel-portail) .rcp-titre-section,
.rcp-titre-section:where(.manuel-outils, .manuel-portail) {
  color: var(--rcp-encre); background: #f3ebc4; border-bottom: 1px solid var(--rcp-filet);
  margin: 0; padding: 0.7rem 0.5rem; text-align: center; font: inherit; font-weight: 700;
  scroll-margin: 1rem;
}

:where(.manuel-outils, .manuel-portail) .rcp-titre-section:focus-visible,
.rcp-titre-section:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid #24418c; outline-offset: -3px; }

:where(.manuel-outils, .manuel-portail) .rcp-famille-titre,
.rcp-famille-titre:where(.manuel-outils, .manuel-portail) {
  color: var(--rcp-encre); margin: 0; padding: 0.45rem 0.4rem;
  font: inherit; font-weight: 700; text-align: center; line-height: 1.5;
}

:where(.manuel-outils, .manuel-portail) .rcp-nombres,
.rcp-nombres:where(.manuel-outils, .manuel-portail) { display: inline; }

:where(.manuel-outils, .manuel-portail) .rcp-compteur,
.rcp-compteur:where(.manuel-outils, .manuel-portail) { text-align: center; margin: 0; padding: 0.3rem; border-bottom: 1px solid var(--rcp-filet); font-size: 0.8rem; }

:where(.manuel-outils, .manuel-portail) .rcp-note,
.rcp-note:where(.manuel-outils, .manuel-portail) { margin: 0; padding: 0.6rem; font-size: 0.8rem; color: #5f5748; text-align: center; }

:where(.manuel-outils, .manuel-portail) .rcp-carte,
.rcp-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-carte > .ligne-planche,
.rcp-carte:where(.manuel-outils, .manuel-portail) > .ligne-planche {
  width: 100%; max-width: none; border-radius: 0; border: 0;
  border-inline-start: 2px solid var(--rc-accent-personnalise, transparent);
  box-shadow: none; background: transparent; padding: 0.3rem 0.45rem;
  color: var(--rcp-encre); font-size: 0.8rem; line-height: 1.4;
}

:where(.manuel-outils, .manuel-portail) .rcp-carte > .ligne-planche:hover,
.rcp-carte:where(.manuel-outils, .manuel-portail) > .ligne-planche:hover { transform: none; box-shadow: none; background: #fff7e7; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-entete,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-entete,
:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-corps,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-corps,
:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-meta,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-meta { gap: 0.1rem 0.3rem; margin-bottom: 0.1rem; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-rang,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-rang { flex-basis: auto; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-prefixe,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-prefixe { font-size: 0.7rem; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-numero-affiche,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-numero-affiche { min-width: 0; min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-meta,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-meta { font-size: 0.76rem; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-titre-fr,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-titre-fr { font-size: inherit; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-arabe,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-arabe { font-size: 1rem; }

:where(.manuel-outils, .manuel-portail) .rcp-carte .pl-translit,
.rcp-carte:where(.manuel-outils, .manuel-portail) .pl-translit { font-size: 0.75rem; }

:where(.manuel-outils, .manuel-portail) .rcp-planche .rcp-modifier,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rcp-modifier {
  min-width: 28px; min-height: 28px; padding: 0.1rem 0.25rem;
  border: 1px solid rgba(32, 28, 18, 0.45); border-radius: 4px;
  background: #fffaf0; color: var(--rcp-encre); cursor: pointer;
  font-size: 0.9rem; line-height: 1.2;
}

:where(.manuel-outils, .manuel-portail) .rcp-planche .rcp-modifier:hover,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rcp-modifier:hover { background: #eee2b9; }

:where(.manuel-outils, .manuel-portail) .rcp-planche .rcp-modifier:focus-visible,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rcp-modifier:focus-visible { outline: 3px solid #24418c; outline-offset: 2px; }

/* Document 04 : trois blocs en largeur, deux rangées de 19 chaînes. */

:where(.manuel-outils, .manuel-portail) .rcp-canevas-chaines,
.rcp-canevas-chaines:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(900px, 1fr)); gap: 1.1rem; min-width: 2740px; align-items: start; }

:where(.manuel-outils, .manuel-portail) .rcp-chaines-bloc,
.rcp-chaines-bloc:where(.manuel-outils, .manuel-portail) { border: 1px solid var(--rcp-filet); background: #f3ebc4; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-chaine,
.rcp-chaine:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr) 1.1rem minmax(0, 1fr) 1.1rem minmax(0, 1fr); align-items: center; border-top: 1px solid var(--rcp-filet); }

:where(.manuel-outils, .manuel-portail) .rcp-chaine-reperes,
.rcp-chaine-reperes:where(.manuel-outils, .manuel-portail) { border-top: 0; text-align: center; padding: 0.3rem 0; font-size: 0.75rem; color: #5f5748; }

:where(.manuel-outils, .manuel-portail) .rcp-chaine-membre,
.rcp-chaine-membre:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-fleche,
.rcp-fleche:where(.manuel-outils, .manuel-portail) { font-size: 1rem; text-align: center; font-weight: 700; }

/* Document 05 : familles de numéros à gauche, quantités de versets à droite. */

:where(.manuel-outils, .manuel-portail) .rcp-canevas-signatures,
.rcp-canevas-signatures:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(1400px, 1fr) minmax(1400px, 1fr); gap: 1.2rem; min-width: 2825px; align-items: start; }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-gauche,
.rcp-signatures-gauche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-signatures-droite,
.rcp-signatures-droite:where(.manuel-outils, .manuel-portail) { min-width: 0; display: grid; align-content: start; gap: 0.9rem; }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-section,
.rcp-signatures-section:where(.manuel-outils, .manuel-portail) { border: 1px solid var(--rcp-filet); background: #f3ebc4; }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-colonnes,
.rcp-signatures-colonnes:where(.manuel-outils, .manuel-portail) { display: grid; align-items: start; }

:where(.manuel-outils, .manuel-portail) .rcp-colonnes-3,
.rcp-colonnes-3:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

:where(.manuel-outils, .manuel-portail) .rcp-colonnes-2,
.rcp-colonnes-2:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-colonne + .rcp-signatures-colonne,
.rcp-signatures-colonne:where(.manuel-outils, .manuel-portail) + .rcp-signatures-colonne { border-inline-start: 1px solid var(--rcp-filet); }

:where(.manuel-outils, .manuel-portail) .rcp-famille + .rcp-famille,
.rcp-famille:where(.manuel-outils, .manuel-portail) + .rcp-famille { border-top: 1px solid var(--rcp-filet); }

:where(.manuel-outils, .manuel-portail) .rcp-famille,
.rcp-famille:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 0.2rem 0; }

:where(.manuel-outils, .manuel-portail) .rcp-famille-versets .rcp-famille-valeur + .rcp-famille-valeur,
.rcp-famille-versets:where(.manuel-outils, .manuel-portail) .rcp-famille-valeur + .rcp-famille-valeur { margin-top: 0.5rem; }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-isoles,
.rcp-signatures-isoles:where(.manuel-outils, .manuel-portail) { width: calc(100% * 2 / 3); }

:where(.manuel-outils, .manuel-portail) .rcp-signatures-isoles-versets,
.rcp-signatures-isoles-versets:where(.manuel-outils, .manuel-portail) { border-style: dashed; }

:where(.manuel-outils, .manuel-portail) .rcp-reciprocites,
.rcp-reciprocites:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; width: min(740px, 100%); justify-self: center; border: 1px solid var(--rcp-filet); background: #f3ebc4; }

:where(.manuel-outils, .manuel-portail) .rcp-reciprocite + .rcp-reciprocite,
.rcp-reciprocite:where(.manuel-outils, .manuel-portail) + .rcp-reciprocite { border-top: 1px solid var(--rcp-filet); }

/* Document 06 : quatre colonnes lues de haut en bas, sources puis cibles. */

:where(.manuel-outils, .manuel-portail) .rcp-canevas-correspondances,
.rcp-canevas-correspondances:where(.manuel-outils, .manuel-portail) { min-width: 1440px; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonnes,
.rcp-correspondances-colonnes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(4, minmax(360px, 1fr)); align-items: start; border: 1px solid var(--rcp-filet); background: #f3ebc4; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonne,
.rcp-correspondances-colonne:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonne + .rcp-correspondances-colonne,
.rcp-correspondances-colonne:where(.manuel-outils, .manuel-portail) + .rcp-correspondances-colonne { border-inline-start: 1px solid var(--rcp-filet); }

:where(.manuel-outils, .manuel-portail) .rcp-correspondance,
.rcp-correspondance:where(.manuel-outils, .manuel-portail) { padding: 0.3rem 0; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondance + .rcp-correspondance,
.rcp-correspondance:where(.manuel-outils, .manuel-portail) + .rcp-correspondance { border-top: 1px solid var(--rcp-filet); }

:where(.manuel-outils, .manuel-portail) .rcp-correspondance-source,
.rcp-correspondance-source:where(.manuel-outils, .manuel-portail) { margin-bottom: 0.3rem; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondance-cibles,
.rcp-correspondance-cibles:where(.manuel-outils, .manuel-portail) { padding-inline: 0.4rem; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-complement,
.rcp-correspondances-complement:where(.manuel-outils, .manuel-portail) { border: 1px dashed var(--rcp-filet); margin-top: 1rem; background: #f3ebc4; }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-supplements,
.rcp-correspondances-supplements:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(4, minmax(360px, 1fr)); }

:where(.manuel-outils, .manuel-portail) .rcp-correspondances-supplements .rcp-correspondance,
.rcp-correspondances-supplements:where(.manuel-outils, .manuel-portail) .rcp-correspondance { border-top: 1px solid var(--rcp-filet); border-inline-end: 1px solid var(--rcp-filet); }

/* Par lettres : chaque groupe reste entier ; la grille suit l'ordre
 * fréquentiel sans imposer une largeur ni un défilement horizontal. */

:where(.manuel-outils, .manuel-portail) .rcp-contenu-fluide,
.rcp-contenu-fluide:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 3px; }

:where(.manuel-outils, .manuel-portail) .rcp-canevas-lettres,
.rcp-canevas-lettres:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem; align-items: start; min-width: 0;
}

:where(.manuel-outils, .manuel-portail) .rcp-planche-lettres .rcp-navigation,
.rcp-planche-lettres:where(.manuel-outils, .manuel-portail) .rcp-navigation {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(2.4rem, 1fr));
  gap: 0.35rem;
}

:where(.manuel-outils, .manuel-portail) .rcp-planche-lettres .rcp-raccourci,
.rcp-planche-lettres:where(.manuel-outils, .manuel-portail) .rcp-raccourci { padding: 0.15rem; }

:where(.manuel-outils, .manuel-portail) .rcp-planche-lettres .rcp-raccourci .texte-arabe,
.rcp-planche-lettres:where(.manuel-outils, .manuel-portail) .rcp-raccourci .texte-arabe { font-size: 1.6rem; line-height: 1.35; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe,
.rcp-lettre-groupe:where(.manuel-outils, .manuel-portail) { min-width: 0; border: 1px solid var(--rcp-filet); background: #fffaf0; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe .rcp-titre-section,
.rcp-lettre-groupe:where(.manuel-outils, .manuel-portail) .rcp-titre-section {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 0.45rem 0.6rem; min-height: 5rem;
}

:where(.manuel-outils, .manuel-portail) .rcp-lettre-symbole,
.rcp-lettre-symbole:where(.manuel-outils, .manuel-portail) { flex: 0 0 auto; font-size: 2.7rem; line-height: 1.35; font-weight: 400; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-identite,
.rcp-lettre-identite:where(.manuel-outils, .manuel-portail) { display: grid; gap: 0.2rem; text-align: left; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-nom,
.rcp-lettre-nom:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-rang,
.rcp-lettre-rang:where(.manuel-outils, .manuel-portail) { font-size: 0.74rem; font-weight: 400; color: #5f5748; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe .rcp-compteur,
.rcp-lettre-groupe:where(.manuel-outils, .manuel-portail) .rcp-compteur { background: #f8f2e0; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-cartes,
.rcp-lettre-cartes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-cartes > .rcp-carte + .rcp-carte,
.rcp-lettre-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte + .rcp-carte { border-top: 1px solid rgba(32, 28, 18, 0.2); }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-cartes > .rcp-carte > .ligne-planche,
.rcp-lettre-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte > .ligne-planche { padding: 0.55rem; }

:where(.manuel-outils, .manuel-portail) .rcp-lettre-cartes .pl-arabe,
.rcp-lettre-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe { font-size: 1.15rem; }

@media (min-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-lettres,
.rcp-canevas-lettres:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-lettres,
.rcp-canevas-lettres:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Par éléments : quatre groupes complets, dans l’ordre du cycle du corpus. */

:where(.manuel-outils, .manuel-portail) .rcp-canevas-elements,
.rcp-canevas-elements:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem; align-items: start; min-width: 0;
}

:where(.manuel-outils, .manuel-portail) .rcp-element-groupe,
.rcp-element-groupe:where(.manuel-outils, .manuel-portail) { min-width: 0; border: 1px solid var(--rcp-filet); background: #fffaf0; }

:where(.manuel-outils, .manuel-portail) .rcp-element-groupe .rcp-titre-section,
.rcp-element-groupe:where(.manuel-outils, .manuel-portail) .rcp-titre-section {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 0.65rem; min-height: 4rem;
}

:where(.manuel-outils, .manuel-portail) .rcp-element-symbole,
.rcp-element-symbole:where(.manuel-outils, .manuel-portail) { font-size: 2rem; line-height: 1.35; }

:where(.manuel-outils, .manuel-portail) .rcp-element-nom,
.rcp-element-nom:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; }

:where(.manuel-outils, .manuel-portail) .rcp-element-groupe .rcp-compteur,
.rcp-element-groupe:where(.manuel-outils, .manuel-portail) .rcp-compteur { background: #f8f2e0; }

:where(.manuel-outils, .manuel-portail) .rcp-element-cartes,
.rcp-element-cartes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-element-cartes > .rcp-carte + .rcp-carte,
.rcp-element-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte + .rcp-carte { border-top: 1px solid rgba(32, 28, 18, 0.2); }

:where(.manuel-outils, .manuel-portail) .rcp-element-cartes > .rcp-carte > .ligne-planche,
.rcp-element-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte > .ligne-planche { padding: 0.55rem; }

:where(.manuel-outils, .manuel-portail) .rcp-element-cartes .pl-arabe,
.rcp-element-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe { font-size: 1.15rem; }

@media (min-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-elements,
.rcp-canevas-elements:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-elements,
.rcp-canevas-elements:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Signes, planètes et statuts : planches fluides du même référentiel. */

:where(.manuel-outils, .manuel-portail) .rcp-canevas-reperes,
.rcp-canevas-reperes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; align-items: start; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-groupe,
.rcp-repere-groupe:where(.manuel-outils, .manuel-portail) { min-width: 0; border: 1px solid var(--rcp-filet); background: #fffaf0; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-groupe .rcp-titre-section,
.rcp-repere-groupe:where(.manuel-outils, .manuel-portail) .rcp-titre-section { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .65rem; min-height: 4rem; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-symbole,
.rcp-repere-symbole:where(.manuel-outils, .manuel-portail) { font-size: 2rem; line-height: 1.35; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-nom,
.rcp-repere-nom:where(.manuel-outils, .manuel-portail) { font-size: 1.05rem; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-groupe .rcp-compteur,
.rcp-repere-groupe:where(.manuel-outils, .manuel-portail) .rcp-compteur { background: #f8f2e0; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes,
.rcp-repere-cartes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes > .rcp-carte + .rcp-carte,
.rcp-repere-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte + .rcp-carte { border-top: 1px solid rgba(32, 28, 18, .2); }

:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes > .rcp-carte > .ligne-planche,
.rcp-repere-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte > .ligne-planche { padding: .55rem; }

:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes .pl-arabe,
.rcp-repere-cartes:where(.manuel-outils, .manuel-portail) .pl-arabe { font-size: 1.15rem; }

:where(.manuel-outils, .manuel-portail) .rcp-planche .rc-statut-lettre,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rc-statut-lettre { margin: 0; padding: .5rem .65rem; border-bottom: 1px solid var(--rcp-filet); color: #5f5748; }

:where(.manuel-outils, .manuel-portail) .rcp-planche .rc-statut-lettre[data-lettre-separee="true"] .rc-statut-lettre-badge,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rc-statut-lettre[data-lettre-separee="true"] .rc-statut-lettre-badge { color: #24418c; background: #e5eaf6; }

:where(.manuel-outils, .manuel-portail) .rcp-planche .rc-lettre-ouvertures-liens .rc-lien-sourate,
.rcp-planche:where(.manuel-outils, .manuel-portail) .rc-lettre-ouvertures-liens .rc-lien-sourate { color: #24418c; background: transparent; }

@media (min-width: 700px) { :where(.manuel-outils, .manuel-portail) .rcp-canevas-reperes,
.rcp-canevas-reperes:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-zodiaques,
.rcp-canevas-zodiaques:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-canevas-planetes,
.rcp-canevas-planetes:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media print {
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-canevas-reperes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-canevas-reperes { display: block; min-width: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-repere-groupe,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-repere-groupe { break-inside: auto; margin-bottom: 4mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-repere-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-repere-cartes > .rcp-carte,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-repere-cartes > .rcp-carte { break-inside: avoid; }
}

/* Les lignes des colonnes voisines s'alignent comme celles du document, tout
 * en grandissant si un nom ou une note personnalisée occupe plus de place. */

@supports (grid-template-rows: subgrid) {
  :where(.manuel-outils, .manuel-portail) .rcp-signatures-colonnes,
.rcp-signatures-colonnes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonnes,
.rcp-correspondances-colonnes:where(.manuel-outils, .manuel-portail) { grid-template-rows: repeat(var(--rcp-lignes), auto); align-items: stretch; }
  :where(.manuel-outils, .manuel-portail) .rcp-signatures-colonne,
.rcp-signatures-colonne:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonne,
.rcp-correspondances-colonne:where(.manuel-outils, .manuel-portail) { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .rcp-navigation,
.rcp-navigation:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-aide,
.rcp-aide:where(.manuel-outils, .manuel-portail) { display: none; }
  :where(.manuel-outils, .manuel-portail) .rcp-defilement,
.rcp-defilement:where(.manuel-outils, .manuel-portail) { overflow: visible; padding: 0; }
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-chaines,
.rcp-canevas-chaines:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-canevas-signatures,
.rcp-canevas-signatures:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-canevas-correspondances,
.rcp-canevas-correspondances:where(.manuel-outils, .manuel-portail) { min-width: 0; display: block; }
  :where(.manuel-outils, .manuel-portail) .rcp-chaines-bloc,
.rcp-chaines-bloc:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-signatures-section,
.rcp-signatures-section:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-reciprocites,
.rcp-reciprocites:where(.manuel-outils, .manuel-portail) { margin-bottom: 0.6rem; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .rcp-signatures-isoles,
.rcp-signatures-isoles:where(.manuel-outils, .manuel-portail) { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonnes,
.rcp-correspondances-colonnes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcp-correspondances-supplements,
.rcp-correspondances-supplements:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  :where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonne,
.rcp-correspondances-colonne:where(.manuel-outils, .manuel-portail) { display: block; grid-row: auto; }
  :where(.manuel-outils, .manuel-portail) .rcp-correspondance,
.rcp-correspondance:where(.manuel-outils, .manuel-portail) { break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-lettres,
.rcp-canevas-lettres:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe,
.rcp-lettre-groupe:where(.manuel-outils, .manuel-portail) { break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .rcp-canevas-elements,
.rcp-canevas-elements:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .rcp-element-cartes > .rcp-carte,
.rcp-element-cartes:where(.manuel-outils, .manuel-portail) > .rcp-carte { break-inside: avoid; }
}

/* Source Manuel : styles-fiche-v8.css
 */

/* Première exploration V8 : présentation de la fiche commune uniquement. */

:where(.manuel-outils, .manuel-portail) .bloc-fiche,
.bloc-fiche:where(.manuel-outils, .manuel-portail) { max-width: 980px; margin-inline: auto; counter-reset: fiche-rubrique; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-entete,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-entete { margin-bottom: 22px; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-surtitre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-surtitre {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 750;
  line-height: 1.3; text-transform: uppercase; letter-spacing: .055em;
}

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-nombre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-nombre { font-size: clamp(3.2rem, 9vw, 5.2rem); }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-nombre.pl-multi-polygonal,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-nombre.pl-multi-polygonal { text-underline-offset: .12em; text-decoration-thickness: .035em; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-intro,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-intro { max-width: 66ch; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-lignes,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-lignes { max-width: 780px; }

:where(.manuel-outils, .manuel-portail) .fiche-explorer-nombre,
.fiche-explorer-nombre:where(.manuel-outils, .manuel-portail) { margin-block: 22px 26px; max-width: 560px; }

:where(.manuel-outils, .manuel-portail) .fiche-explorer-nombre label,
.fiche-explorer-nombre:where(.manuel-outils, .manuel-portail) label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .fiche-saisie-actions,
.fiche-saisie-actions:where(.manuel-outils, .manuel-portail) { display: flex; gap: 10px; }

:where(.manuel-outils, .manuel-portail) .fiche-saisie-actions input,
.fiche-saisie-actions:where(.manuel-outils, .manuel-portail) input {
  min-width: 0; flex: 1; width: 100%; padding: 10px 12px;
  border: 1px solid var(--ligne); border-radius: 8px;
  font: inherit; color: var(--encre); background: var(--carte);
  font-variant-numeric: tabular-nums;
}

:where(.manuel-outils, .manuel-portail) .fiche-saisie-actions .bouton,
.fiche-saisie-actions:where(.manuel-outils, .manuel-portail) .bouton { white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .fiche-erreur-nombre,
.fiche-erreur-nombre:where(.manuel-outils, .manuel-portail) { color: var(--danger); font-size: .84rem; margin: 6px 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-erreur-nombre:empty,
.fiche-erreur-nombre:empty:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-intro,
.fiche-profil-intro:where(.manuel-outils, .manuel-portail) { margin: 0 0 22px; max-width: 70ch; line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .fiche-profils-lectures,
.fiche-profils-lectures:where(.manuel-outils, .manuel-portail) { display: grid; gap: 2rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lecture,
.fiche-profil-lecture:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lecture + .fiche-profil-lecture,
.fiche-profil-lecture:where(.manuel-outils, .manuel-portail) + .fiche-profil-lecture { border-top: 1px solid var(--ligne); padding-top: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-titre,
.fiche-profil-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 .35rem; font-size: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-source,
.fiche-profil-source:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu,
.fiche-profil-lieu:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-source,
.fiche-profil-source:where(.manuel-outils, .manuel-portail) { margin: 0 0 1rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu,
.fiche-profil-lieu:where(.manuel-outils, .manuel-portail) { margin: 1rem 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu-titre,
.fiche-profil-lieu-titre:where(.manuel-outils, .manuel-portail) { margin: 0 0 .3rem; font-size: .9rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu-valeur,
.fiche-profil-lieu-valeur:where(.manuel-outils, .manuel-portail) { color: var(--encre); font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu-detail,
.fiche-profil-lieu-detail:where(.manuel-outils, .manuel-portail) { margin: .3rem 0 0; font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-grille,
.fiche-profil-grille:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

:where(.manuel-outils, .manuel-portail) .fiche-profil-carte,
.fiche-profil-carte:where(.manuel-outils, .manuel-portail) {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 14px; padding: 22px 24px; border: 1px solid var(--ligne);
  border-radius: 12px; background: var(--carte); min-width: 0; line-height: 1.5;
}

:where(.manuel-outils, .manuel-portail) .fiche-profil-libelle,
.fiche-profil-libelle:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-profil-detail,
.fiche-profil-detail:where(.manuel-outils, .manuel-portail) { font-size: .85rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .fiche-profil-valeur,
.fiche-profil-valeur:where(.manuel-outils, .manuel-portail) { font-size: 1.35rem; font-weight: 600; }

/* La couleur par défaut laisse la priorité à la palette des planètes. */

:where(.manuel-outils, .manuel-portail) :where(.fiche-profil-valeur),
:where(.fiche-profil-valeur):where(.manuel-outils, .manuel-portail) { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-profil-lettre,
.fiche-profil-lettre:where(.manuel-outils, .manuel-portail) { display: inline-block; font-family: var(--pile-arabe); font-size: 1.7rem; margin-left: 10px; }

/* Même palette pour les symboles de la fiche nombre et de ses sourates.
   Les planches sur fond crème conservent leur palette d'impression. */

:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) {
  --fiche-mars: #d01820; --fiche-venus: #07812f; --fiche-mercure: #d84b16;
  --fiche-lune: #525965; --fiche-soleil: #ffcf00; --contour-soleil: #725500;
  --fiche-saturne: #855018; --fiche-jupiter: #075ccc;
}

:root[data-theme="sombre"] :where(.manuel-outils, .manuel-portail) {
  --fiche-mars: #ff4f53; --fiche-venus: #4bdf75; --fiche-mercure: #ff7043;
  --fiche-lune: #d4d8e0; --fiche-soleil: #ffdc24; --contour-soleil: #725500;
  --fiche-saturne: #d3a166; --fiche-jupiter: #68a4ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(.manuel-outils, .manuel-portail) {
    --fiche-mars: #ff4f53; --fiche-venus: #4bdf75; --fiche-mercure: #ff7043;
    --fiche-lune: #d4d8e0; --fiche-soleil: #ffdc24; --contour-soleil: #725500;
    --fiche-saturne: #d3a166; --fiche-jupiter: #68a4ff;
  }
}

:where(.manuel-outils, .manuel-portail) .fiche-note-zero,
.fiche-note-zero:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondance-bloc,
.fiche-correspondance-bloc:where(.manuel-outils, .manuel-portail) { padding: 6px 0 16px; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondance-bloc + .fiche-correspondance-bloc,
.fiche-correspondance-bloc:where(.manuel-outils, .manuel-portail) + .fiche-correspondance-bloc { border-top: 1px solid var(--ligne); padding-top: 16px; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondance-bloc .fiche-sous-titre-module,
.fiche-correspondance-bloc:where(.manuel-outils, .manuel-portail) .fiche-sous-titre-module { font-size: .98rem; margin: 4px 0 12px; }

:where(.manuel-outils, .manuel-portail) .fiche-elements-chimiques,
.fiche-elements-chimiques:where(.manuel-outils, .manuel-portail) { display: grid; gap: 16px; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique .perio-case,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) .perio-case { flex: 0 0 116px; min-height: 150px; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique .perio-nom,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) .perio-nom { font-size: .75rem; overflow-wrap: anywhere; padding: 3px; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique .perio-symbole,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) .perio-symbole { cursor: default; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique .perio-symbole:hover,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) .perio-symbole:hover { background: transparent; }

:where(.manuel-outils, .manuel-portail) .fiche-element-chimique .perio-nombre,
.fiche-element-chimique:where(.manuel-outils, .manuel-portail) .perio-nombre { min-height: 44px; font-size: .9rem; }

:where(.manuel-outils, .manuel-portail) .fiche-element-description,
.fiche-element-description:where(.manuel-outils, .manuel-portail) { flex: 1 1 200px; margin: 0; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-premier,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-premier { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-familles-titre,
.fiche-familles-titre:where(.manuel-outils, .manuel-portail) { font-size: 1rem; margin: 24px 0 8px; }

:where(.manuel-outils, .manuel-portail) .fiche-familles-premieres,
.fiche-familles-premieres:where(.manuel-outils, .manuel-portail) { list-style: none; margin: 0; padding: 0; }

:where(.manuel-outils, .manuel-portail) .fiche-famille-premiere,
.fiche-famille-premiere:where(.manuel-outils, .manuel-portail) { padding: 14px 0; border-bottom: 1px dotted var(--ligne); overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .fiche-famille-premiere:last-child,
.fiche-famille-premiere:last-child:where(.manuel-outils, .manuel-portail) { border-bottom: 0; }

:where(.manuel-outils, .manuel-portail) .fiche-famille-titre,
.fiche-famille-titre:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-famille-premiere .fiche-premier,
.fiche-famille-premiere:where(.manuel-outils, .manuel-portail) .fiche-premier {
  color: var(--encre); font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 0; padding: 0;
}

:where(.manuel-outils, .manuel-portail) .fiche-famille-explication,
.fiche-famille-explication:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .9rem; line-height: 1.65; margin: 4px 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-rangs,
.fiche-conventions-rangs:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .86rem; line-height: 1.65; margin-top: 10px; }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-rangs summary,
.fiche-conventions-rangs:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-rangs p,
.fiche-conventions-rangs:where(.manuel-outils, .manuel-portail) p { margin: 10px 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-ecritures,
.fiche-ecritures:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-conventions-ecritures,
.fiche-conventions-ecritures:where(.manuel-outils, .manuel-portail) { max-width: 780px; }

:where(.manuel-outils, .manuel-portail) .fiche-ecritures-intro,
.fiche-ecritures-intro:where(.manuel-outils, .manuel-portail) { margin: 0 0 18px; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .fiche-ouvrir-convertisseur,
.fiche-ouvrir-convertisseur:where(.manuel-outils, .manuel-portail) { margin: 0 0 18px; }

:where(.manuel-outils, .manuel-portail) .fiche-ecritures-speciales,
.fiche-ecritures-speciales:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-bases-nombre,
.fiche-bases-nombre:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0;
}

:where(.manuel-outils, .manuel-portail) .fiche-ecriture,
.fiche-ecriture:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 12px 0; border-bottom: 1px dotted var(--ligne); }

:where(.manuel-outils, .manuel-portail) .fiche-ecriture dt,
.fiche-ecriture:where(.manuel-outils, .manuel-portail) dt { font-size: .85rem; color: var(--encre-2); margin: 0 0 5px; }

:where(.manuel-outils, .manuel-portail) .fiche-ecriture dd,
.fiche-ecriture:where(.manuel-outils, .manuel-portail) dd { min-width: 0; margin: 0; line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .fiche-ecriture-valeur,
.fiche-ecriture-valeur:where(.manuel-outils, .manuel-portail) {
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1rem; font-weight: 600;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: text;
}

:where(.manuel-outils, .manuel-portail) .fiche-ecriture-arabo-indienne,
.fiche-ecriture-arabo-indienne:where(.manuel-outils, .manuel-portail) { font-family: var(--pile-arabe); font-size: 1.45rem; font-weight: 400; }

:where(.manuel-outils, .manuel-portail) .fiche-ecriture-note,
.fiche-ecriture-note:where(.manuel-outils, .manuel-portail) { font-size: .85rem; color: var(--encre-2); margin: 4px 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-ecritures-sous-titre,
.fiche-ecritures-sous-titre:where(.manuel-outils, .manuel-portail) { font-size: 1rem; margin: 22px 0 6px; }

:where(.manuel-outils, .manuel-portail) .fiche-poids-hamming p,
.fiche-poids-hamming:where(.manuel-outils, .manuel-portail) p { font-size: .92rem; color: var(--encre-2); margin: 8px 0 0; }

:where(.manuel-outils, .manuel-portail) .fiche-poids-hamming strong,
.fiche-poids-hamming:where(.manuel-outils, .manuel-portail) strong { font-variant-numeric: tabular-nums; }

/* La palette commune .pl-* garde la priorité sur le rendu par défaut. */

:where(.manuel-outils, .manuel-portail) :where(.fiche-ecriture-valeur, .fiche-poids-hamming strong),
:where(.fiche-ecriture-valeur, .fiche-poids-hamming strong):where(.manuel-outils, .manuel-portail) { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-poids-hamming strong.pl-neutre,
.fiche-poids-hamming:where(.manuel-outils, .manuel-portail) strong.pl-neutre { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-ecritures,
.fiche-conventions-ecritures:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .86rem; line-height: 1.65; margin-top: 18px; }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-ecritures summary,
.fiche-conventions-ecritures:where(.manuel-outils, .manuel-portail) summary { color: var(--encre); cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .fiche-conventions-ecritures p,
.fiche-conventions-ecritures:where(.manuel-outils, .manuel-portail) p { margin: 10px 0 0; }

@media (max-width: 580px) {
  :where(.manuel-outils, .manuel-portail) .fiche-ouvrir-convertisseur,
.fiche-ouvrir-convertisseur:where(.manuel-outils, .manuel-portail) { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .fiche-ecritures-speciales,
.fiche-ecritures-speciales:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-bases-nombre,
.fiche-bases-nombre:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .fiche-profil-grille,
.fiche-profil-grille:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .fiche-profil-carte,
.fiche-profil-carte:where(.manuel-outils, .manuel-portail) { padding: 20px; }
  :where(.manuel-outils, .manuel-portail) .fiche-saisie-actions,
.fiche-saisie-actions:where(.manuel-outils, .manuel-portail) { flex-wrap: wrap; }
  :where(.manuel-outils, .manuel-portail) .fiche-saisie-actions .bouton,
.fiche-saisie-actions:where(.manuel-outils, .manuel-portail) .bouton { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .bloc-fiche .ligne-propriete,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .ligne-propriete { flex-wrap: wrap; gap: 5px; }
  :where(.manuel-outils, .manuel-portail) .bloc-fiche .propriete-valeur,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .propriete-valeur { text-align: start; }
}

/* Fiche par thèmes : résumés visibles, approfondissements à la demande. */

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-presentation,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-presentation { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }

:where(.manuel-outils, .manuel-portail) .fiche-identite,
.fiche-identite:where(.manuel-outils, .manuel-portail) { flex: 1 1 22rem; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-identite .fiche-nombre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-identite .fiche-nombre { margin: .25rem 0; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-presentation .fiche-explorer-nombre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-presentation .fiche-explorer-nombre { flex: 0 1 22rem; margin: 0; }

:where(.manuel-outils, .manuel-portail) .fiche-sommaire,
.fiche-sommaire:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding-block: 1rem; border-block: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .fiche-sommaire .fiche-raccourci,
.fiche-sommaire:where(.manuel-outils, .manuel-portail) .fiche-raccourci { min-height: 44px; font-size: .83rem; padding: .55rem .8rem; white-space: normal; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-titre-section,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-titre-section {
  display: flex; align-items: baseline; gap: .55em;
  margin: 2rem 0 1.25rem; padding: .85rem 1rem;
  border: 1px solid var(--ligne); border-inline-start: 4px solid var(--or); border-radius: 0 8px 8px 0;
  color: var(--or); background: var(--carte); font-family: var(--pile-ui);
  font-size: clamp(1.2rem, 1.05rem + .65vw, 1.5rem); font-weight: 750; line-height: 1.35;
  text-transform: none; letter-spacing: .01em; scroll-margin-top: 1.2rem;
}

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-section:not([hidden]) > .fiche-titre-section::before,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-section:not([hidden]) > .fiche-titre-section::before {
  counter-increment: fiche-rubrique; content: counter(fiche-rubrique) ".";
  flex: 0 0 auto; font-variant-numeric: tabular-nums;
}

:where(.manuel-outils, .manuel-portail) .fiche-resume-titre,
.fiche-resume-titre:where(.manuel-outils, .manuel-portail) { margin: 1.2rem 0 .65rem; color: var(--encre-2); font-family: var(--pile-ui); font-size: .95rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche :is(.fiche-resume-titre, .fiche-sous-titre-module, .fiche-profil-titre,
  .fiche-profil-lieu-titre, .fiche-familles-titre, .fiche-ecritures-sous-titre),
.bloc-fiche:where(.manuel-outils, .manuel-portail) :is(.fiche-resume-titre, .fiche-sous-titre-module, .fiche-profil-titre,
  .fiche-profil-lieu-titre, .fiche-familles-titre, .fiche-ecritures-sous-titre) { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-resume,
.fiche-resume:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }

:where(.manuel-outils, .manuel-portail) .fiche-resume .ligne-propriete,
.fiche-resume:where(.manuel-outils, .manuel-portail) .ligne-propriete { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .9rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .fiche-resume .propriete-nom,
.fiche-resume:where(.manuel-outils, .manuel-portail) .propriete-nom { font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .fiche-resume .propriete-valeur,
.fiche-resume:where(.manuel-outils, .manuel-portail) .propriete-valeur { text-align: left; font-size: .95rem; }

:where(.manuel-outils, .manuel-portail) .fiche-resume .nombre-lien,
.fiche-resume:where(.manuel-outils, .manuel-portail) .nombre-lien { min-height: 36px; padding-block: .2rem; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondances-coran,
.fiche-correspondances-coran:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondances-coran > .fiche-correspondance-bloc,
.fiche-correspondances-coran:where(.manuel-outils, .manuel-portail) > .fiche-correspondance-bloc { grid-column: 1 / -1; min-width: 0; padding: .8rem 0; }

:where(.manuel-outils, .manuel-portail) .fiche-correspondances-coran > [data-correspondance-type="codex"],
.fiche-correspondances-coran:where(.manuel-outils, .manuel-portail) > [data-correspondance-type="codex"],
:where(.manuel-outils, .manuel-portail) .fiche-correspondances-coran > [data-correspondance-type="versets"],
.fiche-correspondances-coran:where(.manuel-outils, .manuel-portail) > [data-correspondance-type="versets"] { grid-column: auto; border-top: 0; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance { padding: 1rem; box-shadow: none; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .pl-titre-fr,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-titre-fr { font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .pl-arabe,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-arabe { font-size: 1.8rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .pl-corps,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-corps { margin: .6rem 0; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .pl-meta,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta { gap: .35rem; padding-top: .6rem; font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .pl-meta > span,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta > span { padding: .25rem .45rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-sourate-correspondance .rc-ouvrir-sourate,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .rc-ouvrir-sourate { margin-top: .4rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .rc-liens-documents,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .rc-liens-documents { gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .rc-lien-document,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .rc-lien-document { min-height: 44px; white-space: normal; font-size: .82rem; }

:where(.manuel-outils, .manuel-portail) .fiche-details,
.fiche-details:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-detail-correspondance,
.fiche-detail-correspondance:where(.manuel-outils, .manuel-portail) { padding: .2rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .fiche-details > summary,
.fiche-details:where(.manuel-outils, .manuel-portail) > summary,
:where(.manuel-outils, .manuel-portail) .fiche-detail-correspondance > summary,
.fiche-detail-correspondance:where(.manuel-outils, .manuel-portail) > summary { cursor: pointer; padding: .85rem 0; line-height: 1.5; color: var(--encre); font-weight: 600; }

/* L’héritage des titres, liens et résumés ne recolore jamais les nombres
   neutres : ils gardent l’encre du thème dans toute la fiche. */

:where(.manuel-outils, .manuel-portail) .bloc-fiche .pl-neutre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .pl-neutre { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .fiche-detail-correspondance .rc-signature-carte,
.fiche-detail-correspondance:where(.manuel-outils, .manuel-portail) .rc-signature-carte { padding: 0; border: 0; background: transparent; }

:where(.manuel-outils, .manuel-portail) .fiche-details[open],
.fiche-details[open]:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-detail-correspondance[open],
.fiche-detail-correspondance[open]:where(.manuel-outils, .manuel-portail) { padding-bottom: 1rem; }

:where(.manuel-outils, .manuel-portail) .fiche-details > summary:focus-visible,
.fiche-details:where(.manuel-outils, .manuel-portail) > summary:focus-visible,
:where(.manuel-outils, .manuel-portail) .fiche-detail-correspondance > summary:focus-visible,
.fiche-detail-correspondance:where(.manuel-outils, .manuel-portail) > summary:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 4px; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-intro,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-intro { font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profils-lectures,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profils-lectures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-lecture,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-lecture { padding: 1rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-lecture:only-child,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-lecture:only-child { grid-column: 1 / -1; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-grille,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-grille { gap: .7rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-carte,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-carte { gap: .6rem; padding: .8rem; background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-valeur,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-valeur { font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-libelle,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-libelle,
:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-detail,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-detail { font-size: .76rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-source,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-source,
:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profil-lieu-detail,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profil-lieu-detail { font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profils-lectures .fiche-profil-lettre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profils-lectures .fiche-profil-lettre { font-size: 1.7rem; }

:where(.manuel-outils, .manuel-portail) .bloc-fiche [hidden],
.bloc-fiche:where(.manuel-outils, .manuel-portail) [hidden] { display: none !important; }

@media (max-width: 760px) {
  :where(.manuel-outils, .manuel-portail) .fiche-correspondances-coran,
.fiche-correspondances-coran:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-profils-lectures,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-profils-lectures { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .fiche-resume,
.fiche-resume:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .fiche-resume .ligne-propriete,
.fiche-resume:where(.manuel-outils, .manuel-portail) .ligne-propriete { flex-direction: row; align-items: center; flex-wrap: wrap; }
  :where(.manuel-outils, .manuel-portail) .fiche-resume .propriete-valeur,
.fiche-resume:where(.manuel-outils, .manuel-portail) .propriete-valeur { text-align: start; }
  :where(.manuel-outils, .manuel-portail) .bloc-fiche .fiche-presentation .fiche-explorer-nombre,
.bloc-fiche:where(.manuel-outils, .manuel-portail) .fiche-presentation .fiche-explorer-nombre { flex-basis: 100%; max-width: none; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .fiche-sommaire,
.fiche-sommaire:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .fiche-explorer-nombre,
.fiche-explorer-nombre:where(.manuel-outils, .manuel-portail) { display: none; }
}

/* Source Manuel : styles-retour-haut.css
 */

/* Petit raccourci attaché à la fenêtre, sous les panneaux et dialogues. */

:where(.manuel-outils, .manuel-portail) .retour-haut,
.retour-haut:where(.manuel-outils, .manuel-portail) {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ligne);
  border-radius: 50%;
  background: var(--carte);
  color: var(--encre);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 2px 8px var(--ombre);
  cursor: pointer;
}

:where(.manuel-outils, .manuel-portail) .retour-haut:hover,
.retour-haut:hover:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .retour-haut:focus-visible,
.retour-haut:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid var(--lapis); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .retour-haut[hidden],
.retour-haut[hidden]:where(.manuel-outils, .manuel-portail) { display: none; }

/* Les dernières commandes peuvent toujours passer au-dessus de la flèche. */

:where(.manuel-outils, .manuel-portail) .pied,
.pied:where(.manuel-outils, .manuel-portail) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

@media print {
  :where(.manuel-outils, .manuel-portail) .retour-haut,
.retour-haut:where(.manuel-outils, .manuel-portail) { display: none; }
  :where(.manuel-outils, .manuel-portail) .pied,
.pied:where(.manuel-outils, .manuel-portail) { padding-bottom: 14px; }
}

/* Source Manuel : styles-referentiels-independants.css
 */

:where(.manuel-outils, .manuel-portail) .rci-outils,
.rci-outils:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 1rem 0; }

:where(.manuel-outils, .manuel-portail) .rci-outils input,
.rci-outils:where(.manuel-outils, .manuel-portail) input { flex: 1 1 240px; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rci-outils select,
.rci-outils:where(.manuel-outils, .manuel-portail) select { max-width: 100%; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rci-outils input,
.rci-outils:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .rci-outils select,
.rci-outils:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .rci-editeur input,
.rci-editeur:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .rci-editeur textarea,
.rci-editeur:where(.manuel-outils, .manuel-portail) textarea {
  font: inherit; min-height: 44px; padding: .55rem .65rem; border: 1px solid var(--ligne);
  border-radius: 7px; color: var(--encre); background: var(--carte); box-sizing: border-box;
}

:where(.manuel-outils, .manuel-portail) .rci-outils input:focus-visible,
.rci-outils:where(.manuel-outils, .manuel-portail) input:focus-visible,
:where(.manuel-outils, .manuel-portail) .rci-outils select:focus-visible,
.rci-outils:where(.manuel-outils, .manuel-portail) select:focus-visible,
:where(.manuel-outils, .manuel-portail) .rci-editeur input:focus-visible,
.rci-editeur:where(.manuel-outils, .manuel-portail) input:focus-visible,
:where(.manuel-outils, .manuel-portail) .rci-editeur textarea:focus-visible,
.rci-editeur:where(.manuel-outils, .manuel-portail) textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

:where(.manuel-outils, .manuel-portail) .rci-planche .rci-editeur input,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-editeur input,
:where(.manuel-outils, .manuel-portail) .rci-planche .rci-editeur textarea,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-editeur textarea {
  background: #fffdf7; color: var(--planche-encre); border-color: var(--planche-filet);
}

:where(.manuel-outils, .manuel-portail) .rci-presentations,
.rci-presentations:where(.manuel-outils, .manuel-portail) { display: flex; gap: .4rem; flex-wrap: wrap; }

:where(.manuel-outils, .manuel-portail) .rci-presentations [aria-pressed="true"],
.rci-presentations:where(.manuel-outils, .manuel-portail) [aria-pressed="true"],
:where(.manuel-outils, .manuel-portail) .rci-pagination [aria-current="page"],
.rci-pagination:where(.manuel-outils, .manuel-portail) [aria-current="page"] { border-color: var(--or); box-shadow: inset 0 -2px var(--or); }

:where(.manuel-outils, .manuel-portail) .rci-bilan,
.rci-bilan:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rci-statut,
.rci-statut:where(.manuel-outils, .manuel-portail) { margin: .5rem 0; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .rci-statut:empty,
.rci-statut:empty:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .rci-categorie,
.rci-categorie:where(.manuel-outils, .manuel-portail) { color: inherit; font-size: 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .rci-planche .rci-categorie,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-categorie { border-color: var(--planche-filet); }

:where(.manuel-outils, .manuel-portail) .rci-groupe + .rci-groupe,
.rci-groupe:where(.manuel-outils, .manuel-portail) + .rci-groupe { margin-top: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rci-cartes,
.rci-cartes:where(.manuel-outils, .manuel-portail) { display: grid; gap: .8rem; align-items: start; }

:where(.manuel-outils, .manuel-portail) .rci-planche .rci-cartes,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-cartes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

:where(.manuel-outils, .manuel-portail) .rci-carte,
.rci-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: .9rem; border: 1px solid var(--ligne); border-radius: 8px; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rci-planche .rci-carte,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-carte { background: #fffaf0; border-color: var(--planche-filet); color: var(--planche-encre); }

:where(.manuel-outils, .manuel-portail) .rci-entete,
.rci-entete:where(.manuel-outils, .manuel-portail) { margin-bottom: .8rem; text-align: center; }

:where(.manuel-outils, .manuel-portail) .rci-titre,
.rci-titre:where(.manuel-outils, .manuel-portail) { color: inherit; margin: 0 0 .3rem; font-size: 1.06rem; }

:where(.manuel-outils, .manuel-portail) .rci-arabe,
.rci-arabe:where(.manuel-outils, .manuel-portail) { font-size: 1.3rem; line-height: 1.7; font-family: var(--pile-arabe, serif); margin: .3rem 0; unicode-bidi: isolate; }

:where(.manuel-outils, .manuel-portail) .rci-numero,
.rci-numero:where(.manuel-outils, .manuel-portail) { font-size: 1.1em; }

:where(.manuel-outils, .manuel-portail) .rci-modifiee,
.rci-modifiee:where(.manuel-outils, .manuel-portail) { font-size: .75rem; padding: .1rem .4rem; border: 1px solid currentColor; border-radius: 20px; }

:where(.manuel-outils, .manuel-portail) .rci-champs,
.rci-champs:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(110px, .9fr) minmax(0, 1.1fr); gap: .3rem .7rem; margin: .5rem 0; font-size: .86rem; }

:where(.manuel-outils, .manuel-portail) .rci-champs dt,
.rci-champs:where(.manuel-outils, .manuel-portail) dt { font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .rci-champs dd,
.rci-champs:where(.manuel-outils, .manuel-portail) dd { margin: 0; white-space: pre-line; }

:where(.manuel-outils, .manuel-portail) .rci-references,
.rci-references:where(.manuel-outils, .manuel-portail) { border-top: 1px solid var(--ligne); padding-top: .5rem; margin-top: .6rem; }

:where(.manuel-outils, .manuel-portail) .rci-planche .rci-references,
.rci-planche:where(.manuel-outils, .manuel-portail) .rci-references { border-color: var(--planche-filet); }

:where(.manuel-outils, .manuel-portail) .rci-references summary,
.rci-references:where(.manuel-outils, .manuel-portail) summary { color: inherit; cursor: pointer; font-size: .86rem; }

:where(.manuel-outils, .manuel-portail) .rci-references-liste,
.rci-references-liste:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .4rem .8rem; padding-top: .6rem; max-height: 260px; overflow-y: auto; font-size: .84rem; }

:where(.manuel-outils, .manuel-portail) .rci-references-liste > span,
.rci-references-liste:where(.manuel-outils, .manuel-portail) > span { white-space: pre-wrap; }

:where(.manuel-outils, .manuel-portail) .rci-actions,
.rci-actions:where(.manuel-outils, .manuel-portail) { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }

:where(.manuel-outils, .manuel-portail) .rci-actions .bouton,
.rci-actions:where(.manuel-outils, .manuel-portail) .bouton { font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .rci-planche .bouton,
.rci-planche:where(.manuel-outils, .manuel-portail) .bouton { color: var(--planche-encre); background: #fffaf0; border-color: var(--planche-filet); }

:where(.manuel-outils, .manuel-portail) .rci-editeur,
.rci-editeur:where(.manuel-outils, .manuel-portail) { display: grid; gap: .4rem; padding-top: 1rem; margin-top: .8rem; border-top: 1px solid currentColor; }

:where(.manuel-outils, .manuel-portail) .rci-editeur label,
.rci-editeur:where(.manuel-outils, .manuel-portail) label { font-weight: 600; font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .rci-editeur input,
.rci-editeur:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .rci-editeur textarea,
.rci-editeur:where(.manuel-outils, .manuel-portail) textarea { box-sizing: border-box; width: 100%; min-width: 0; resize: vertical; }

:where(.manuel-outils, .manuel-portail) .rci-editeur .barre-actions,
.rci-editeur:where(.manuel-outils, .manuel-portail) .barre-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .rci-portee,
.rci-portee:where(.manuel-outils, .manuel-portail) { font-size: .85rem; margin: 0 0 .6rem; }

:where(.manuel-outils, .manuel-portail) .rci-pagination,
.rci-pagination:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1rem 0; }

:where(.manuel-outils, .manuel-portail) .rci-document .pl-neutre,
.rci-document:where(.manuel-outils, .manuel-portail) .pl-neutre { color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .rci-planche .pl-neutre,
.rci-planche:where(.manuel-outils, .manuel-portail) .pl-neutre { color: var(--planche-encre); }

:where(.manuel-outils, .manuel-portail) .rci-explication p,
.rci-explication:where(.manuel-outils, .manuel-portail) p { white-space: pre-line; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rci-explication + .rci-explication,
.rci-explication:where(.manuel-outils, .manuel-portail) + .rci-explication { border-top: 1px solid var(--ligne); margin-top: 1.5rem; padding-top: .8rem; }

:where(.manuel-outils, .manuel-portail) .rci-source,
.rci-source:where(.manuel-outils, .manuel-portail) { font-size: .9rem; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  :where(.manuel-outils, .manuel-portail) .rci-outils > label,
.rci-outils:where(.manuel-outils, .manuel-portail) > label { flex-basis: 100%; }
  :where(.manuel-outils, .manuel-portail) .rci-outils input,
.rci-outils:where(.manuel-outils, .manuel-portail) input { flex-basis: 100%; }
  :where(.manuel-outils, .manuel-portail) .rci-carte,
.rci-carte:where(.manuel-outils, .manuel-portail) { padding: .7rem; }
  :where(.manuel-outils, .manuel-portail) .rci-champs,
.rci-champs:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(100px, .9fr) minmax(0, 1.1fr); }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .rci-outils,
.rci-outils:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rci-actions,
.rci-actions:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rci-editeur,
.rci-editeur:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rci-pagination,
.rci-pagination:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rci-statut,
.rci-statut:where(.manuel-outils, .manuel-portail) { display: none !important; }
  :where(.manuel-outils, .manuel-portail) .rci-carte,
.rci-carte:where(.manuel-outils, .manuel-portail) { break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .rci-references-liste,
.rci-references-liste:where(.manuel-outils, .manuel-portail) { max-height: none; overflow: visible; }
}

/* Source Manuel : styles-convertisseur-nombres.css
 */

/* Convertisseur : palette commune, valeurs isolées et sélectionnables. */

:where(.manuel-outils, .manuel-portail) .convertisseur-nombres,
.convertisseur-nombres:where(.manuel-outils, .manuel-portail) { max-width: 1000px; margin-inline: auto; }

:where(.manuel-outils, .manuel-portail) .conversion-intro,
.conversion-intro:where(.manuel-outils, .manuel-portail) { max-width: 740px; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) #conversion-formulaire,
#conversion-formulaire:where(.manuel-outils, .manuel-portail) { max-width: 780px; margin-top: 28px; }

:where(.manuel-outils, .manuel-portail) .conversion-champs,
.conversion-champs:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }

:where(.manuel-outils, .manuel-portail) .conversion-champ,
.conversion-champ:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .conversion-champ label,
.conversion-champ:where(.manuel-outils, .manuel-portail) label { display: block; font-weight: 600; margin-bottom: 8px; }

:where(.manuel-outils, .manuel-portail) .conversion-champ input,
.conversion-champ:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .conversion-champ select,
.conversion-champ:where(.manuel-outils, .manuel-portail) select {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  background: var(--fond-champ); color: var(--encre); border: 1px solid var(--ligne); border-radius: 8px;
  font: inherit; box-sizing: border-box;
}

:where(.manuel-outils, .manuel-portail) .conversion-champ input,
.conversion-champ:where(.manuel-outils, .manuel-portail) input { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .conversion-champ input.conversion-saisie-arabe,
.conversion-champ:where(.manuel-outils, .manuel-portail) input.conversion-saisie-arabe { font-family: var(--pile-arabe); font-size: 1.45rem; }

:where(.manuel-outils, .manuel-portail) .conversion-champ input[aria-invalid="true"],
.conversion-champ:where(.manuel-outils, .manuel-portail) input[aria-invalid="true"] { border-color: var(--danger); }

:where(.manuel-outils, .manuel-portail) .conversion-aide,
.conversion-aide:where(.manuel-outils, .manuel-portail) { line-height: 1.7; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .conversion-limite,
.conversion-limite:where(.manuel-outils, .manuel-portail) { font-size: .82rem; line-height: 1.6; margin-bottom: 18px; }

:where(.manuel-outils, .manuel-portail) .conversion-erreur,
.conversion-erreur:where(.manuel-outils, .manuel-portail) { color: var(--danger); font-size: .9rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .conversion-erreur:empty,
.conversion-erreur:empty:where(.manuel-outils, .manuel-portail) { margin: 0; }

:where(.manuel-outils, .manuel-portail) .conversion-statut,
.conversion-statut:where(.manuel-outils, .manuel-portail) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .conversion-resume,
.conversion-resume:where(.manuel-outils, .manuel-portail) { margin-top: 28px; padding: 22px; border: 1px solid var(--ligne); border-left: 3px solid var(--or); border-radius: 8px; }

:where(.manuel-outils, .manuel-portail) .conversion-resume h2,
.conversion-resume:where(.manuel-outils, .manuel-portail) h2 { color: var(--encre-2); font-family: var(--pile-ui); font-size: .88rem; font-weight: 500; margin: 0 0 8px; }

:where(.manuel-outils, .manuel-portail) .conversion-decimal,
.conversion-decimal:where(.manuel-outils, .manuel-portail) { display: block; font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: text; }

:where(.manuel-outils, .manuel-portail) .conversion-ouvrir,
.conversion-ouvrir:where(.manuel-outils, .manuel-portail) { margin-top: 16px; white-space: normal; }

:where(.manuel-outils, .manuel-portail) .conversion-titre-ecritures,
.conversion-titre-ecritures:where(.manuel-outils, .manuel-portail) { font-size: 1.3rem; margin: 30px 0 14px; }

:where(.manuel-outils, .manuel-portail) .conversion-conventions,
.conversion-conventions:where(.manuel-outils, .manuel-portail) { border-top: 1px solid var(--ligne); padding-top: 18px; margin-top: 28px; }

@media (max-width: 580px) {
  :where(.manuel-outils, .manuel-portail) .conversion-champs,
.conversion-champs:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; gap: 16px; }
  :where(.manuel-outils, .manuel-portail) .conversion-resume,
.conversion-resume:where(.manuel-outils, .manuel-portail) { padding: 18px; }
  :where(.manuel-outils, .manuel-portail) #conversion-formulaire > .bouton,
#conversion-formulaire:where(.manuel-outils, .manuel-portail) > .bouton,
:where(.manuel-outils, .manuel-portail) .conversion-ouvrir,
.conversion-ouvrir:where(.manuel-outils, .manuel-portail) { width: 100%; }
}

/* Source Manuel : styles-fiches-techniques.css
 */

/* Planches des maisons : même structure, palette propre à chaque fiche. */

:where(.manuel-outils, .manuel-portail) .ft-contenu,
.ft-contenu:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .ft-choix-maison,
.ft-choix-maison:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-block: 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-choix-maison label,
.ft-choix-maison:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-choix-maison select,
.ft-choix-maison:where(.manuel-outils, .manuel-portail) select { min-height: 44px; min-width: 0; max-width: 100%; padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: 6px; background: var(--carte); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .ft-navigation,
.ft-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .ft-navigation-bouton,
.ft-navigation-bouton:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .ft-navigation-bouton:disabled,
.ft-navigation-bouton:disabled:where(.manuel-outils, .manuel-portail) { opacity: .45; cursor: default; }

:where(.manuel-outils, .manuel-portail) .ft-catalogue,
.ft-catalogue:where(.manuel-outils, .manuel-portail) { margin-block: .5rem 1rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .ft-catalogue summary,
.ft-catalogue:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding-block: .6rem; }

:where(.manuel-outils, .manuel-portail) .ft-maisons,
.ft-maisons:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .55rem 1rem; list-style: none; padding: .5rem 0; }

:where(.manuel-outils, .manuel-portail) .ft-maison-disponible,
.ft-maison-disponible:where(.manuel-outils, .manuel-portail) { color: var(--lapis); font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-ouvrir-maison,
.ft-ouvrir-maison:where(.manuel-outils, .manuel-portail) { width: 100%; height: 100%; min-height: 44px; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .ft-ouvrir-maison:hover,
.ft-ouvrir-maison:hover:where(.manuel-outils, .manuel-portail) { background: var(--carte); text-decoration: underline; text-underline-offset: .2em; }

:where(.manuel-outils, .manuel-portail) .ft-ouvrir-maison[aria-current="page"],
.ft-ouvrir-maison[aria-current="page"]:where(.manuel-outils, .manuel-portail) { border-color: currentColor; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .ft-ouvrir-maison:focus-visible,
.ft-ouvrir-maison:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-navigation-bouton:focus-visible,
.ft-navigation-bouton:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid var(--lapis); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .ft-statut,
.ft-statut:where(.manuel-outils, .manuel-portail) { color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .ft-statut:empty,
.ft-statut:empty:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-erreur-nom:empty,
.ft-erreur-nom:empty:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .ft-recherche,
.ft-recherche:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-recherche label,
.ft-recherche:where(.manuel-outils, .manuel-portail) label { width: 100%; font-size: .9rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .ft-recherche input,
.ft-recherche:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom input,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) input { min-width: 0; min-height: 44px; padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: 6px; background: var(--carte); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .ft-recherche input,
.ft-recherche:where(.manuel-outils, .manuel-portail) input { flex: 1 1 220px; }

:where(.manuel-outils, .manuel-portail) .ft-compteur,
.ft-compteur:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .85rem; margin-block: .6rem 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) {
  --ft-accent: #ff913e;
  --encre: #201a12; --encre-2: #564834; --carte: #fffaf0; --ligne: #897451; --lapis: #3e427e; --danger: #a21b14;
  background: #f4ebc6; color: var(--encre); border: 2px solid #392b1b;
  font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere;
}

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-2,
.ft-planche-maison-2:where(.manuel-outils, .manuel-portail) { --ft-accent: #c99561; background: #f3edc5; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-3,
.ft-planche-maison-3:where(.manuel-outils, .manuel-portail) { --ft-accent: #c0c0c0; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-4,
.ft-planche-maison-4:where(.manuel-outils, .manuel-portail) { --ft-accent: #00a7f8; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-5,
.ft-planche-maison-5:where(.manuel-outils, .manuel-portail) { --ft-accent: #ff8535; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-6,
.ft-planche-maison-6:where(.manuel-outils, .manuel-portail) { --ft-accent: #c99561; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-7,
.ft-planche-maison-7:where(.manuel-outils, .manuel-portail) { --ft-accent: #c0c0c0; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-8,
.ft-planche-maison-8:where(.manuel-outils, .manuel-portail) { --ft-accent: #00a7f8; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-9,
.ft-planche-maison-9:where(.manuel-outils, .manuel-portail) { --ft-accent: #ff8535; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-10,
.ft-planche-maison-10:where(.manuel-outils, .manuel-portail) { --ft-accent: #c99561; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-11,
.ft-planche-maison-11:where(.manuel-outils, .manuel-portail) { --ft-accent: #c0c0c0; }

:where(.manuel-outils, .manuel-portail) .ft-planche-maison-12,
.ft-planche-maison-12:where(.manuel-outils, .manuel-portail) { --ft-accent: #00a7f8; }

:where(.manuel-outils, .manuel-portail) .ft-planche :is(h2, h3, p),
.ft-planche:where(.manuel-outils, .manuel-portail) :is(h2, h3, p) { color: inherit; }

:where(.manuel-outils, .manuel-portail) .ft-planche :is(button, input):focus-visible,
.ft-planche:where(.manuel-outils, .manuel-portail) :is(button, input):focus-visible { outline: 3px solid #423879; outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .ft-planche .texte-arabe,
.ft-planche:where(.manuel-outils, .manuel-portail) .texte-arabe { font-size: 1.1em; }

:where(.manuel-outils, .manuel-portail) .ft-planche .nombre-lien,
.ft-planche:where(.manuel-outils, .manuel-portail) .nombre-lien { display: inline; padding: .12em; min-width: 0; min-height: 0; border: 0; border-radius: 3px; background: transparent; font-size: inherit; line-height: inherit; vertical-align: baseline; }

:where(.manuel-outils, .manuel-portail) .ft-planche .nombre-lien:hover,
.ft-planche:where(.manuel-outils, .manuel-portail) .nombre-lien:hover { background: #fff7; }

:where(.manuel-outils, .manuel-portail) .ft-entete,
.ft-entete:where(.manuel-outils, .manuel-portail) { background: var(--ft-accent); text-align: center; padding: 1.2rem clamp(.8rem, 2vw, 1.8rem); border-bottom: 2px solid #392b1b; }

:where(.manuel-outils, .manuel-portail) .ft-entete p,
.ft-entete:where(.manuel-outils, .manuel-portail) p { margin: .3rem 0; }

:where(.manuel-outils, .manuel-portail) .ft-entete .ft-ambiance,
.ft-entete:where(.manuel-outils, .manuel-portail) .ft-ambiance { font-family: var(--pile-titres, Georgia, serif); font-weight: 800; font-size: clamp(1.25rem, 2.3vw, 1.8rem); }

:where(.manuel-outils, .manuel-portail) .ft-entete .ft-titre-maison,
.ft-entete:where(.manuel-outils, .manuel-portail) .ft-titre-maison { margin: .4rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }

:where(.manuel-outils, .manuel-portail) .ft-signe,
.ft-signe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-signature,
.ft-signature:where(.manuel-outils, .manuel-portail) { font-size: 1.1rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-signature,
.ft-signature:where(.manuel-outils, .manuel-portail) { font-style: italic; }

:where(.manuel-outils, .manuel-portail) .ft-traits,
.ft-traits:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-nature,
.ft-nature:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-bilan,
.ft-bilan:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25rem 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-traits,
.ft-traits:where(.manuel-outils, .manuel-portail) { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-nature > span + span,
.ft-nature:where(.manuel-outils, .manuel-portail) > span + span { border-left: 1px solid #75411d; padding-left: 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-planete > [class^="planete-"],
.ft-planete:where(.manuel-outils, .manuel-portail) > [class^="planete-"] { font-size: 1.3em; font-weight: 800; }

:where(.manuel-outils, .manuel-portail) .ft-numero-atomique,
.ft-numero-atomique:where(.manuel-outils, .manuel-portail) { white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .ft-pastille-couleur,
.ft-pastille-couleur:where(.manuel-outils, .manuel-portail) { display: inline-block; width: .85em; height: .85em; margin-inline-end: .4em; border: 1px solid #642027; border-radius: 50%; vertical-align: -.02em; }

:where(.manuel-outils, .manuel-portail) .ft-rouge,
.ft-rouge:where(.manuel-outils, .manuel-portail) { background-color: #c51b2d; }

:where(.manuel-outils, .manuel-portail) .ft-vert,
.ft-vert:where(.manuel-outils, .manuel-portail) { background-color: #18813c; border-color: #12572a; }

:where(.manuel-outils, .manuel-portail) .ft-vermillon,
.ft-vermillon:where(.manuel-outils, .manuel-portail) { background-color: #e34234; border-color: #8f261d; }

:where(.manuel-outils, .manuel-portail) .ft-argente,
.ft-argente:where(.manuel-outils, .manuel-portail) { background-color: #c0c0c0; border-color: #737373; }

:where(.manuel-outils, .manuel-portail) .ft-dore,
.ft-dore:where(.manuel-outils, .manuel-portail) { background-color: #ffd700; border-color: #8d6800; }

:where(.manuel-outils, .manuel-portail) .ft-bleu,
.ft-bleu:where(.manuel-outils, .manuel-portail) { background-color: #1877e8; border-color: #1250a2; }

:where(.manuel-outils, .manuel-portail) .ft-brun-ou-marron,
.ft-brun-ou-marron:where(.manuel-outils, .manuel-portail) { background-color: #8b4f21; border-color: #613615; }

:where(.manuel-outils, .manuel-portail) .ft-bilan,
.ft-bilan:where(.manuel-outils, .manuel-portail) { margin-top: .8rem; font-size: .84rem; }

:where(.manuel-outils, .manuel-portail) .ft-planche .ft-regle-nombre-source,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-regle-nombre-source { margin: 0; padding: .7rem .9rem; border-bottom: 1px solid #897451; font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .ft-corps-planche,
.ft-corps-planche:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); }

:where(.manuel-outils, .manuel-portail) .ft-section,
.ft-section:where(.manuel-outils, .manuel-portail) { min-width: 0; margin: 0; scroll-margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-section > h2,
.ft-section:where(.manuel-outils, .manuel-portail) > h2 { margin: 0; font-size: 1.15rem; }

/* Les deux titres restent accessibles ; les groupes et inventaires portent les titres visibles. */

:where(.manuel-outils, .manuel-portail) .ft-corps-planche > .ft-section > h2,
.ft-corps-planche:where(.manuel-outils, .manuel-portail) > .ft-section > h2 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Répartir la hauteur entre les lectures, en gardant les marges des séparateurs constantes. */

:where(.manuel-outils, .manuel-portail) .ft-groupes,
.ft-groupes:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; height: 100%; }

:where(.manuel-outils, .manuel-portail) .ft-groupe,
.ft-groupe:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: .7rem .9rem; display: flex; flex-direction: column; flex: 3 0 auto; }

:where(.manuel-outils, .manuel-portail) .ft-groupe[data-lectures="2"],
.ft-groupe[data-lectures="2"]:where(.manuel-outils, .manuel-portail) { flex-grow: 1; }

:where(.manuel-outils, .manuel-portail) .ft-groupe + .ft-groupe,
.ft-groupe:where(.manuel-outils, .manuel-portail) + .ft-groupe { border-top: 2px solid #59472b; }

:where(.manuel-outils, .manuel-portail) .ft-cartes,
.ft-cartes:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: .45rem; }

:where(.manuel-outils, .manuel-portail) .ft-activation,
.ft-activation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; gap: .05rem .35rem; min-width: 0; margin: 0; font-size: .88rem; line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .ft-references,
.ft-references:where(.manuel-outils, .manuel-portail) { font-size: .82rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .ft-planche .ft-nombre-source,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-nombre-source { font-size: 1.4em; font-weight: 900; line-height: 1; }

:where(.manuel-outils, .manuel-portail) .ft-edition-nom,
.ft-edition-nom:where(.manuel-outils, .manuel-portail) { display: contents; }

:where(.manuel-outils, .manuel-portail) .ft-modifier-nom,
.ft-modifier-nom:where(.manuel-outils, .manuel-portail) { display: inline; border: 0; border-radius: 3px; background: transparent; padding: 0; color: inherit; text-align: start; cursor: pointer; font: inherit; max-width: 100%; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .ft-modifier-nom .pl-titre-fr,
.ft-modifier-nom:where(.manuel-outils, .manuel-portail) .pl-titre-fr { color: inherit; font-size: inherit; font-weight: 750; font-style: italic; }

:where(.manuel-outils, .manuel-portail) .ft-crayon,
.ft-crayon:where(.manuel-outils, .manuel-portail) { font-style: normal; color: #665530; font-size: .8em; }

:where(.manuel-outils, .manuel-portail) .ft-modifier-nom:hover,
.ft-modifier-nom:hover:where(.manuel-outils, .manuel-portail) { background: #fff9; text-decoration: underline; text-underline-offset: .2em; }

:where(.manuel-outils, .manuel-portail) .ft-activation .pl-arabe,
.ft-activation:where(.manuel-outils, .manuel-portail) .pl-arabe { color: inherit; font-size: 1.05rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .ft-activation .pl-translit,
.ft-activation:where(.manuel-outils, .manuel-portail) .pl-translit { color: #564834; font-size: .86rem; font-style: italic; }

:where(.manuel-outils, .manuel-portail) .ft-versets,
.ft-versets:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-lettre,
.ft-lettre:where(.manuel-outils, .manuel-portail) { white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .ft-lettre,
.ft-lettre:where(.manuel-outils, .manuel-portail) { font-size: 1.05em; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-lettre .texte-arabe,
.ft-lettre:where(.manuel-outils, .manuel-portail) .texte-arabe { font-size: 1.25em; }

:where(.manuel-outils, .manuel-portail) .ft-correspondances,
.ft-correspondances:where(.manuel-outils, .manuel-portail) { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }

:where(.manuel-outils, .manuel-portail) .ft-correspondances > [class^="planete-"],
.ft-correspondances:where(.manuel-outils, .manuel-portail) > [class^="planete-"] { font-size: 1.4em; font-weight: 800; line-height: 1.1; }

:where(.manuel-outils, .manuel-portail) .ft-correspondances > [class^="planete-"]:not(.planete-soleil),
.ft-correspondances:where(.manuel-outils, .manuel-portail) > [class^="planete-"]:not(.planete-soleil),
:where(.manuel-outils, .manuel-portail) .ft-planete > [class^="planete-"]:not(.planete-soleil),
.ft-planete:where(.manuel-outils, .manuel-portail) > [class^="planete-"]:not(.planete-soleil) { -webkit-text-stroke: .2px currentColor; }

:where(.manuel-outils, .manuel-portail) .ft-activation .ft-ouvrir-sourate,
.ft-activation:where(.manuel-outils, .manuel-portail) .ft-ouvrir-sourate { padding: .1rem .4rem; min-width: 28px; color: #49396d; font: inherit; border-radius: 3px; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) { order: 1; flex: 1 1 100%; background: #fff9e5; border: 1px solid #8e7856; border-radius: 6px; padding: .9rem; margin-block: .4rem; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom label,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom input,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) input { width: 100%; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom .barre-actions,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) .barre-actions { flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom .bouton,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) .bouton { font-size: .8rem; white-space: normal; background: #fffdf4; color: #201a12; border-color: #9b8564; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom .bouton-principal,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) .bouton-principal { background: #423879; color: #fff; border-color: #423879; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom .bouton:disabled,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) .bouton:disabled { opacity: .5; }

:where(.manuel-outils, .manuel-portail) .ft-aide,
.ft-aide:where(.manuel-outils, .manuel-portail) { font-size: .76rem; color: var(--encre-2); line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom .ft-erreur-nom,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) .ft-erreur-nom { color: var(--danger); font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) #ft-lettres,
#ft-lettres:where(.manuel-outils, .manuel-portail) { border-left: 2px solid #392b1b; display: flex; flex-direction: column; }

:where(.manuel-outils, .manuel-portail) .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) { padding: 1.1rem 1rem; min-width: 0; text-align: center; flex: 1 1 auto; display: flex; flex-direction: column; }

:where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) + .ft-inventaire { border-top: 2px solid #59472b; }

:where(.manuel-outils, .manuel-portail) .ft-inventaire h3,
.ft-inventaire:where(.manuel-outils, .manuel-portail) h3 { font-size: 1.1rem; font-style: italic; margin: 0 0 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-ouvertures,
.ft-ouvertures:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3rem .65rem; }

:where(.manuel-outils, .manuel-portail) .ft-ouvertures > span,
.ft-ouvertures:where(.manuel-outils, .manuel-portail) > span { display: inline-flex; gap: .3rem; align-items: center; }

:where(.manuel-outils, .manuel-portail) .ft-total-lettres,
.ft-total-lettres:where(.manuel-outils, .manuel-portail) { font-size: 1.12rem; font-weight: 750; font-style: italic; margin: 1.1rem 0 .25rem; }

:where(.manuel-outils, .manuel-portail) .ft-totaux-elements,
.ft-totaux-elements:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-liste-lettres,
.ft-liste-lettres:where(.manuel-outils, .manuel-portail) { list-style: none; padding: 0; margin: .25rem 0 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-totaux-elements,
.ft-totaux-elements:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; font-size: .84rem; }

:where(.manuel-outils, .manuel-portail) .ft-listes-lettres,
.ft-listes-lettres:where(.manuel-outils, .manuel-portail) { margin-top: 1rem; display: flex; flex-direction: column; justify-content: space-between; gap: .85rem; flex: 1; font-size: 1.02rem; }

:where(.manuel-outils, .manuel-portail) .ft-listes-lettres .ft-liste-lettres,
.ft-listes-lettres:where(.manuel-outils, .manuel-portail) .ft-liste-lettres { line-height: 1.75; margin: 0; }

:where(.manuel-outils, .manuel-portail) .ft-liste-lettres li,
.ft-liste-lettres:where(.manuel-outils, .manuel-portail) li { padding-block: .12rem; font-weight: 650; }

:where(.manuel-outils, .manuel-portail) .ft-liste-lettres .texte-arabe,
.ft-liste-lettres:where(.manuel-outils, .manuel-portail) .texte-arabe,
:where(.manuel-outils, .manuel-portail) .ft-ouvertures .texte-arabe,
.ft-ouvertures:where(.manuel-outils, .manuel-portail) .texte-arabe { font-size: 1.25em; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ft-pied-planche,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); background: var(--ft-accent); border-top: 2px solid #392b1b; }

:where(.manuel-outils, .manuel-portail) .ft-pied-planche > section,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) > section { padding: 1.4rem 1.2rem; text-align: center; }

:where(.manuel-outils, .manuel-portail) .ft-pied-planche > section + section,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) > section + section { border-left: 2px solid #392b1b; }

:where(.manuel-outils, .manuel-portail) .ft-pied-planche h2,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) h2 { font-size: 1.2rem; }

:where(.manuel-outils, .manuel-portail) .ft-pied-planche p,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) p { font-size: .92rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .ft-signatures,
.ft-signatures:where(.manuel-outils, .manuel-portail) { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }

:where(.manuel-outils, .manuel-portail) #ft-progression,
#ft-progression:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; }

:where(.manuel-outils, .manuel-portail) .ft-progression,
.ft-progression:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(3.2rem, 1fr)); align-items: center; flex: 1; gap: .45rem .35rem; margin-top: 1.4rem; font-weight: 700; font-size: 1rem; }

:where(.manuel-outils, .manuel-portail) .ft-progression .nombre-lien,
.ft-progression:where(.manuel-outils, .manuel-portail) .nombre-lien { min-height: 32px; }

:where(.manuel-outils, .manuel-portail) .ft-progression-annotee,
.ft-progression-annotee:where(.manuel-outils, .manuel-portail) { display: block; flex: 0 1 auto; line-height: 2.2; }

:where(.manuel-outils, .manuel-portail) .ft-progression-annotation,
.ft-progression-annotation:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-progression-reference,
.ft-progression-reference:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-progression-profils,
.ft-progression-profils:where(.manuel-outils, .manuel-portail) { display: inline; }

:where(.manuel-outils, .manuel-portail) .ft-progression-annotation,
.ft-progression-annotation:where(.manuel-outils, .manuel-portail) { font-style: italic; }

:where(.manuel-outils, .manuel-portail) .ft-progression-annotation::before,
.ft-progression-annotation:where(.manuel-outils, .manuel-portail)::before { content: "{ "; }

:where(.manuel-outils, .manuel-portail) .ft-progression-annotation::after,
.ft-progression-annotation:where(.manuel-outils, .manuel-portail)::after { content: " }"; }

:where(.manuel-outils, .manuel-portail) .ft-progression-profil,
.ft-progression-profil:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: baseline; gap: .25rem; white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .ft-progression-profil [class^="planete-"],
.ft-progression-profil:where(.manuel-outils, .manuel-portail) [class^="planete-"] { font-size: 1.35em; font-weight: 800; }

:where(.manuel-outils, .manuel-portail) .ft-progression .ft-progression-sourate,
.ft-progression:where(.manuel-outils, .manuel-portail) .ft-progression-sourate { display: inline; padding: .1rem .2rem; min-width: 0; min-height: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .ft-progression .ft-progression-sourate:hover,
.ft-progression:where(.manuel-outils, .manuel-portail) .ft-progression-sourate:hover { background: #fff7; text-decoration: underline; }

:where(.manuel-outils, .manuel-portail) .ft-progression-intervalle,
.ft-progression-intervalle:where(.manuel-outils, .manuel-portail) { white-space: pre-wrap; }

/* Une recherche raccourcie ne doit pas remplir la hauteur des deux inventaires. */

:where(.manuel-outils, .manuel-portail) .ft-corps-planche:has(.ft-groupes-filtres),
.ft-corps-planche:has(.ft-groupes-filtres):where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }

:where(.manuel-outils, .manuel-portail) .ft-groupes-filtres,
.ft-groupes-filtres:where(.manuel-outils, .manuel-portail) { height: auto; }

:where(.manuel-outils, .manuel-portail) .ft-corps-planche:has(.ft-groupes-filtres) #ft-lettres,
.ft-corps-planche:has(.ft-groupes-filtres):where(.manuel-outils, .manuel-portail) #ft-lettres { border-left: 0; border-top: 2px solid #392b1b; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

:where(.manuel-outils, .manuel-portail) .ft-corps-planche:has(.ft-groupes-filtres) .ft-inventaire + .ft-inventaire,
.ft-corps-planche:has(.ft-groupes-filtres):where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire { border-top: 0; border-left: 2px solid #59472b; }

@media (max-width: 950px) {
  :where(.manuel-outils, .manuel-portail) .ft-corps-planche,
.ft-corps-planche:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .ft-groupes,
.ft-groupes:where(.manuel-outils, .manuel-portail) { height: auto; }
  :where(.manuel-outils, .manuel-portail) #ft-lettres,
#ft-lettres:where(.manuel-outils, .manuel-portail) { border-left: 0; border-top: 2px solid #392b1b; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) + .ft-inventaire { border-top: 0; border-left: 2px solid #59472b; }
}

@media (max-width: 760px) {
  :where(.manuel-outils, .manuel-portail) .ft-pied-planche,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .ft-pied-planche > section + section,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) > section + section { border-left: 0; border-top: 2px solid #392b1b; }
}

@media (max-width: 580px) {
  :where(.manuel-outils, .manuel-portail) .ft-entete,
.ft-entete:where(.manuel-outils, .manuel-portail) { padding: 1rem .7rem; }
  :where(.manuel-outils, .manuel-portail) .ft-nature > span + span,
.ft-nature:where(.manuel-outils, .manuel-portail) > span + span { border: 0; padding-left: 0; }
  :where(.manuel-outils, .manuel-portail) .ft-nature,
.ft-nature:where(.manuel-outils, .manuel-portail) { flex-direction: column; align-items: center; }
  :where(.manuel-outils, .manuel-portail) .ft-bilan,
.ft-bilan:where(.manuel-outils, .manuel-portail) { flex-direction: column; align-items: center; gap: .6rem; }
  :where(.manuel-outils, .manuel-portail) .ft-groupe,
.ft-groupe:where(.manuel-outils, .manuel-portail) { padding: .8rem .65rem; }
  :where(.manuel-outils, .manuel-portail) .ft-cartes,
.ft-cartes:where(.manuel-outils, .manuel-portail) { gap: .65rem; }
  :where(.manuel-outils, .manuel-portail) .ft-activation,
.ft-activation:where(.manuel-outils, .manuel-portail) { font-size: .9rem; }
  :where(.manuel-outils, .manuel-portail) .ft-activation + .ft-activation,
.ft-activation:where(.manuel-outils, .manuel-portail) + .ft-activation { border-top: 1px solid #bdae82; padding-top: .6rem; }
  :where(.manuel-outils, .manuel-portail) .ft-references,
.ft-references:where(.manuel-outils, .manuel-portail) { flex-basis: 100%; }
  :where(.manuel-outils, .manuel-portail) .ft-modifier-nom,
.ft-modifier-nom:where(.manuel-outils, .manuel-portail) { padding-block: .2rem; }
  :where(.manuel-outils, .manuel-portail) #ft-lettres,
#ft-lettres:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-pied-planche,
.ft-pied-planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-corps-planche:has(.ft-groupes-filtres) #ft-lettres,
.ft-corps-planche:has(.ft-groupes-filtres):where(.manuel-outils, .manuel-portail) #ft-lettres { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) + .ft-inventaire,
:where(.manuel-outils, .manuel-portail) .ft-pied-planche > section + section,
.ft-pied-planche:where(.manuel-outils, .manuel-portail) > section + section,
:where(.manuel-outils, .manuel-portail) .ft-corps-planche:has(.ft-groupes-filtres) .ft-inventaire + .ft-inventaire,
.ft-corps-planche:has(.ft-groupes-filtres):where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire { border-left: 0; border-top: 2px solid #59472b; }
  :where(.manuel-outils, .manuel-portail) .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) { padding: 1.2rem .8rem; }
  :where(.manuel-outils, .manuel-portail) .ft-recherche > .bouton,
.ft-recherche:where(.manuel-outils, .manuel-portail) > .bouton { width: 100%; }
  :where(.manuel-outils, .manuel-portail) .ft-formulaire-nom,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail) { padding: .7rem; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .ft-catalogue,
.ft-catalogue:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-choix-maison,
.ft-choix-maison:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-recherche,
.ft-recherche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-compteur,
.ft-compteur:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-statut,
.ft-statut:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-formulaire-nom,
.ft-formulaire-nom:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-crayon,
.ft-crayon:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-ouvrir-sourate,
.ft-ouvrir-sourate:where(.manuel-outils, .manuel-portail) { display: none !important; }
  :where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  :where(.manuel-outils, .manuel-portail) .ft-groupe,
.ft-groupe:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-inventaire,
.ft-inventaire:where(.manuel-outils, .manuel-portail) { break-inside: avoid; }
}

/* Source Manuel : styles-carres-magiques.css
 */

/* Une planche crème fidèle au document, avec la palette commune des nombres. */

:where(.manuel-outils, .manuel-portail) .cam-contenu,
.cam-contenu:where(.manuel-outils, .manuel-portail) { max-width: 960px; min-width: 0; margin-inline: auto; }

:where(.manuel-outils, .manuel-portail) .cam-disponibilite,
.cam-disponibilite:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-source,
.cam-source:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .85rem; line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .cam-disponibilite,
.cam-disponibilite:where(.manuel-outils, .manuel-portail) { margin-block: 0 1rem; }

:where(.manuel-outils, .manuel-portail) .cam-source,
.cam-source:where(.manuel-outils, .manuel-portail) { margin-block: .85rem 0; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cam-choix,
.cam-choix:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1.25rem; }

:where(.manuel-outils, .manuel-portail) .cam-choix label,
.cam-choix:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .cam-choix select,
.cam-choix:where(.manuel-outils, .manuel-portail) select { min-width: 0; max-width: 100%; min-height: 44px; padding: .7rem .9rem; color: var(--encre); background: var(--carte); border: 1px solid var(--ligne); border-radius: 7px; font: inherit; }

:where(.manuel-outils, .manuel-portail) .cam-navigation,
.cam-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .cam-navigation-bouton,
.cam-navigation-bouton:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; white-space: normal; }

:where(.manuel-outils, .manuel-portail) .cam-navigation-bouton:disabled,
.cam-navigation-bouton:disabled:where(.manuel-outils, .manuel-portail) { opacity: .45; cursor: default; }

:where(.manuel-outils, .manuel-portail) .cam-catalogue,
.cam-catalogue:where(.manuel-outils, .manuel-portail) { margin-block: .5rem 1rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cam-catalogue summary,
.cam-catalogue:where(.manuel-outils, .manuel-portail) summary { padding-block: .6rem; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .cam-documents,
.cam-documents:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .55rem 1rem; margin: 0; padding: .5rem 0; list-style: none; }

:where(.manuel-outils, .manuel-portail) .cam-ouvrir-document,
.cam-ouvrir-document:where(.manuel-outils, .manuel-portail) { width: 100%; height: 100%; min-height: 44px; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--lapis); font: inherit; font-weight: 700; text-align: start; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .cam-ouvrir-document:hover,
.cam-ouvrir-document:hover:where(.manuel-outils, .manuel-portail) { background: var(--carte); text-decoration: underline; text-underline-offset: .2em; }

:where(.manuel-outils, .manuel-portail) .cam-ouvrir-document[aria-current="page"],
.cam-ouvrir-document[aria-current="page"]:where(.manuel-outils, .manuel-portail) { border-color: currentColor; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cam-ouvrir-document:focus-visible,
.cam-ouvrir-document:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-navigation-bouton:focus-visible,
.cam-navigation-bouton:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-catalogue summary:focus-visible,
.cam-catalogue:where(.manuel-outils, .manuel-portail) summary:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .cam-statut,
.cam-statut:where(.manuel-outils, .manuel-portail) { margin-block: .75rem 1rem; color: var(--encre-2); font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .planche.cam-planche,
.planche.cam-planche:where(.manuel-outils, .manuel-portail) {
  --encre: #201c12; --encre-2: #5c513c; --lapis: #423879;
  --lapis-teinte: #fff8; --creux: #fff8;
  width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0;
  background: #f4ebc6; color: var(--encre); border: 2px solid #332b1b; border-radius: 12px;
  box-shadow: 0 4px 16px rgb(42 33 14 / 6%); line-height: 1.55;
}

:where(.manuel-outils, .manuel-portail) .cam-entete,
.cam-entete:where(.manuel-outils, .manuel-portail) { padding: 1.4rem clamp(.9rem, 3vw, 2rem); border-bottom: 2px solid #332b1b; text-align: center; }

:where(.manuel-outils, .manuel-portail) .cam-contexte,
.cam-contexte:where(.manuel-outils, .manuel-portail) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 .55rem; font-size: .9rem; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .cam-planete,
.cam-planete:where(.manuel-outils, .manuel-portail) { font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .cam-jour,
.cam-jour:where(.manuel-outils, .manuel-portail) { padding-inline-start: 1.25rem; border-inline-start: 1px solid #a2926b; }

:where(.manuel-outils, .manuel-portail) .cam-entete h2,
.cam-entete:where(.manuel-outils, .manuel-portail) h2 { margin: 0; color: inherit; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }

:where(.manuel-outils, .manuel-portail) .cam-correspondances,
.cam-correspondances:where(.manuel-outils, .manuel-portail) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: .9rem; }

:where(.manuel-outils, .manuel-portail) .cam-ordre,
.cam-ordre:where(.manuel-outils, .manuel-portail) { padding: .1rem .65rem; border: 1px solid #a2926b; border-radius: 5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .cam-signes,
.cam-signes:where(.manuel-outils, .manuel-portail) { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; }

:where(.manuel-outils, .manuel-portail) .cam-signes li,
.cam-signes:where(.manuel-outils, .manuel-portail) li { white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .cam-grilles,
.cam-grilles:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 4vw, 2.5rem); padding: 1.4rem clamp(.9rem, 3vw, 2rem) 1.8rem; }

:where(.manuel-outils, .manuel-portail) .cam-grille,
.cam-grille:where(.manuel-outils, .manuel-portail) { width: 100%; table-layout: fixed; border-spacing: 0; border: 2px solid #332b1b; border-radius: 9px; text-align: center; direction: ltr; }

:where(.manuel-outils, .manuel-portail) .cam-grille caption,
.cam-grille:where(.manuel-outils, .manuel-portail) caption { padding-bottom: .8rem; color: var(--encre-2); font-size: .95rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .cam-grille td,
.cam-grille:where(.manuel-outils, .manuel-portail) td { height: clamp(90px, 12vw, 125px); padding: .4rem; vertical-align: middle; }

:where(.manuel-outils, .manuel-portail) .cam-grille td + td,
.cam-grille:where(.manuel-outils, .manuel-portail) td + td { border-inline-start: 2px solid #332b1b; }

:where(.manuel-outils, .manuel-portail) .cam-grille tr + tr td,
.cam-grille:where(.manuel-outils, .manuel-portail) tr + tr td { border-top: 2px solid #332b1b; }

:where(.manuel-outils, .manuel-portail) .cam-grille-nombres,
.cam-grille-nombres:where(.manuel-outils, .manuel-portail) { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.1; }

:where(.manuel-outils, .manuel-portail) .cam-planche .nombre-lien,
.cam-planche:where(.manuel-outils, .manuel-portail) .nombre-lien { min-width: 44px; min-height: 44px; margin: 0; padding: .1em .15em; border: 0; border-radius: 5px; background: transparent; font-size: inherit; font-weight: 750; line-height: inherit; }

:where(.manuel-outils, .manuel-portail) .cam-grille-nombres .nombre-lien,
.cam-grille-nombres:where(.manuel-outils, .manuel-portail) .nombre-lien { width: 100%; height: 100%; }

:where(.manuel-outils, .manuel-portail) .cam-planche .nombre-lien:hover,
.cam-planche:where(.manuel-outils, .manuel-portail) .nombre-lien:hover,
:where(.manuel-outils, .manuel-portail) .cam-planche .nombre-lien:focus-visible,
.cam-planche:where(.manuel-outils, .manuel-portail) .nombre-lien:focus-visible { background: #fff8; }

:where(.manuel-outils, .manuel-portail) .cam-planche .nombre-lien:focus-visible,
.cam-planche:where(.manuel-outils, .manuel-portail) .nombre-lien:focus-visible { outline: 3px solid #423879; outline-offset: 1px; }

:where(.manuel-outils, .manuel-portail) .cam-planche .pl-multi-polygonal,
.cam-planche:where(.manuel-outils, .manuel-portail) .pl-multi-polygonal { text-decoration-thickness: .04em; text-underline-offset: .14em; }

:where(.manuel-outils, .manuel-portail) .cam-lettre-arabe,
.cam-lettre-arabe:where(.manuel-outils, .manuel-portail) { display: block; font-family: var(--pile-arabe); font-size: clamp(2.4rem, 5.5vw, 3.7rem); line-height: 1.25; }

:where(.manuel-outils, .manuel-portail) .cam-lettre-nom,
.cam-lettre-nom:where(.manuel-outils, .manuel-portail) { display: block; margin-top: .15rem; font-size: .9rem; font-weight: 650; }

:where(.manuel-outils, .manuel-portail) .cam-grille-nombres[data-ordre="4"],
.cam-grille-nombres[data-ordre="4"]:where(.manuel-outils, .manuel-portail) { font-size: clamp(1.8rem, 5vw, 3rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille[data-ordre="4"] .cam-lettre-arabe,
.cam-grille[data-ordre="4"]:where(.manuel-outils, .manuel-portail) .cam-lettre-arabe { font-size: clamp(2rem, 5vw, 3rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille[data-ordre="5"] td,
.cam-grille[data-ordre="5"]:where(.manuel-outils, .manuel-portail) td { height: clamp(68px, 9vw, 95px); padding: .15rem; }

:where(.manuel-outils, .manuel-portail) .cam-grille-nombres[data-ordre="5"],
.cam-grille-nombres[data-ordre="5"]:where(.manuel-outils, .manuel-portail) { font-size: clamp(1.25rem, 3.6vw, 2.3rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille-nombres[data-ordre="5"] .nombre-lien,
.cam-grille-nombres[data-ordre="5"]:where(.manuel-outils, .manuel-portail) .nombre-lien { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .cam-grille[data-ordre="5"] .cam-lettre-arabe,
.cam-grille[data-ordre="5"]:where(.manuel-outils, .manuel-portail) .cam-lettre-arabe { font-size: clamp(1.6rem, 4vw, 2.65rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille[data-ordre="5"] .cam-lettre-nom,
.cam-grille[data-ordre="5"]:where(.manuel-outils, .manuel-portail) .cam-lettre-nom { font-size: clamp(.65rem, 1.4vw, .78rem); line-height: 1.3; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cam-grilles-grandes,
.cam-grilles-grandes:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) { min-width: 0; max-width: 100%; overflow-x: auto; padding: 3px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre:focus-visible,
.cam-grille-cadre:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid var(--lapis); outline-offset: 2px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-grille { max-width: none; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre [data-ordre="6"],
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) [data-ordre="6"] { min-width: 336px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre [data-ordre="7"],
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) [data-ordre="7"] { min-width: 392px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre [data-ordre="8"],
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) [data-ordre="8"] { min-width: 448px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre [data-ordre="9"],
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) [data-ordre="9"] { min-width: 504px; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille td,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-grille td { height: clamp(68px, 9vw, 84px); padding: .15rem; }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille-nombres,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-grille-nombres { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-lettre-arabe,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-lettre-arabe { font-size: clamp(1.8rem, 4vw, 2.5rem); }

:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-lettre-nom,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-lettre-nom { font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cam-aide-defilement,
.cam-aide-defilement:where(.manuel-outils, .manuel-portail) { display: none; margin: 0; color: var(--encre-2); font-size: .8rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cam-valeur-exacte,
.cam-valeur-exacte:where(.manuel-outils, .manuel-portail) { display: inline-block; max-width: 100%; font-size: clamp(1rem, 2vw, 1.35rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

:where(.manuel-outils, .manuel-portail) .cam-statistiques,
.cam-statistiques:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 2px solid #332b1b; }

:where(.manuel-outils, .manuel-portail) .cam-statistique,
.cam-statistique:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 1.3rem clamp(.75rem, 2vw, 1.4rem); text-align: center; }

:where(.manuel-outils, .manuel-portail) .cam-statistique + .cam-statistique,
.cam-statistique:where(.manuel-outils, .manuel-portail) + .cam-statistique { border-inline-start: 1px solid #a2926b; }

:where(.manuel-outils, .manuel-portail) .cam-statistique dt,
.cam-statistique:where(.manuel-outils, .manuel-portail) dt { margin-bottom: .45rem; font-size: .94rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .cam-statistique dd,
.cam-statistique:where(.manuel-outils, .manuel-portail) dd { margin: 0; font-size: 2rem; line-height: 1.25; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cam-statistique .nombre-lien,
.cam-statistique:where(.manuel-outils, .manuel-portail) .nombre-lien { max-width: 100%; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cam-statistique-precision,
.cam-statistique-precision:where(.manuel-outils, .manuel-portail) { display: block; margin-top: .6rem; color: var(--encre-2); font-size: .8rem; line-height: 1.6; }

@media (max-width: 820px) {
  :where(.manuel-outils, .manuel-portail) .cam-grilles[data-ordre="5"],
.cam-grilles[data-ordre="5"]:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .cam-grille[data-ordre="5"],
.cam-grille[data-ordre="5"]:where(.manuel-outils, .manuel-portail) { max-width: 440px; margin-inline: auto; }
}

@media (max-width: 600px) {
  :where(.manuel-outils, .manuel-portail) .cam-aide-defilement,
.cam-aide-defilement:where(.manuel-outils, .manuel-portail) { display: block; }
  :where(.manuel-outils, .manuel-portail) .cam-choix,
.cam-choix:where(.manuel-outils, .manuel-portail) { align-items: stretch; flex-direction: column; }
  :where(.manuel-outils, .manuel-portail) .cam-navigation > button,
.cam-navigation:where(.manuel-outils, .manuel-portail) > button { flex: 1 1 150px; }
  :where(.manuel-outils, .manuel-portail) .cam-grilles,
.cam-grilles:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  :where(.manuel-outils, .manuel-portail) .cam-grille,
.cam-grille:where(.manuel-outils, .manuel-portail) { max-width: 360px; margin-inline: auto; }
  :where(.manuel-outils, .manuel-portail) .cam-grille td,
.cam-grille:where(.manuel-outils, .manuel-portail) td { height: clamp(88px, 27vw, 112px); }
  :where(.manuel-outils, .manuel-portail) .cam-grille-nombres,
.cam-grille-nombres:where(.manuel-outils, .manuel-portail) { font-size: 3rem; }
  :where(.manuel-outils, .manuel-portail) .cam-lettre-arabe,
.cam-lettre-arabe:where(.manuel-outils, .manuel-portail) { font-size: 3.1rem; }
  :where(.manuel-outils, .manuel-portail) .cam-statistiques,
.cam-statistiques:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .cam-statistique,
.cam-statistique:where(.manuel-outils, .manuel-portail) { padding: 1rem; }
  :where(.manuel-outils, .manuel-portail) .cam-statistique + .cam-statistique,
.cam-statistique:where(.manuel-outils, .manuel-portail) + .cam-statistique { border-inline-start: 0; border-top: 1px solid #a2926b; }
  :where(.manuel-outils, .manuel-portail) .cam-statistique dd,
.cam-statistique:where(.manuel-outils, .manuel-portail) dd { font-size: 1.9rem; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .cam-choix,
.cam-choix:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-catalogue,
.cam-catalogue:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-statut,
.cam-statut:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-aide-defilement,
.cam-aide-defilement:where(.manuel-outils, .manuel-portail) { display: none; }
  :where(.manuel-outils, .manuel-portail) .planche.cam-planche,
.planche.cam-planche:where(.manuel-outils, .manuel-portail) { padding: 0; box-shadow: none; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .cam-grilles,
.cam-grilles:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cam-grilles[data-ordre="5"],
.cam-grilles[data-ordre="5"]:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .cam-grilles-grandes,
.cam-grilles-grandes:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .cam-grille-cadre,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) { overflow: visible; }
  :where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille,
.cam-grille-cadre:where(.manuel-outils, .manuel-portail) .cam-grille { min-width: 0; }
  :where(.manuel-outils, .manuel-portail) .cam-statistiques,
.cam-statistiques:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Source Manuel : styles-orbites-coraniques.css
 */

/* Le papier, les cartes et les couleurs numériques viennent de la planche
 * commune. Seuls le circuit et sa disposition sont propres aux orbites. */

:where(.manuel-outils, .manuel-portail) .rcp-planche-orbites,
.rcp-planche-orbites:where(.manuel-outils, .manuel-portail) { --rcpo-trait: #287b77; }

:where(.manuel-outils, .manuel-portail) .rcpo-orbite,
.rcpo-orbite:where(.manuel-outils, .manuel-portail) { min-width: 0; margin-top: 1.1rem; border: 1px solid var(--rcp-filet); background: #fffaf0; }

:where(.manuel-outils, .manuel-portail) .rcpo-disposition,
.rcpo-disposition:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcpo-cartes-panneau,
.rcpo-cartes-panneau:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-schema,
.rcpo-schema:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .rcpo-sous-titre,
.rcpo-sous-titre:where(.manuel-outils, .manuel-portail) { margin: 0; padding: 0.55rem 0.7rem; color: var(--rcp-encre); font: inherit; font-weight: 700; font-size: 0.9rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-instruction,
.rcpo-instruction:where(.manuel-outils, .manuel-portail) { margin: 0; padding: 0 0.7rem 0.55rem; color: #5f5748; font-size: 0.78rem; line-height: 1.4; }

:where(.manuel-outils, .manuel-portail) .rcpo-commandes,
.rcpo-commandes:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.7rem 0.5rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-zoom,
.rcpo-zoom:where(.manuel-outils, .manuel-portail) { min-width: 2.4rem; min-height: 2.4rem; border: 1px solid #7c8879; border-radius: 5px; padding: 0.3rem 0.6rem; background: #fffdf7; color: #245a69; font: inherit; font-size: 0.8rem; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rcpo-zoom:disabled,
.rcpo-zoom:disabled:where(.manuel-outils, .manuel-portail) { opacity: 0.45; cursor: default; }

:where(.manuel-outils, .manuel-portail) .rcpo-zoom-valeur,
.rcpo-zoom-valeur:where(.manuel-outils, .manuel-portail) { min-width: 3.3rem; color: #5f5748; font-size: 0.75rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-choisir-label,
.rcpo-choisir-label:where(.manuel-outils, .manuel-portail) { font-size: 0.77rem; color: #5f5748; }

:where(.manuel-outils, .manuel-portail) .rcpo-choisir,
.rcpo-choisir:where(.manuel-outils, .manuel-portail) { flex: 1 1 14rem; min-width: 0; max-width: 26rem; min-height: 2.4rem; padding: 0.3rem; border: 1px solid #7c8879; border-radius: 5px; background: #fffdf7; color: var(--rcp-encre); font: inherit; font-size: 0.8rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-selection,
.rcpo-selection:where(.manuel-outils, .manuel-portail) { margin: 0 0.7rem 0.5rem; min-height: 1.5em; color: #245a69; font-size: 0.8rem; line-height: 1.4; }

:where(.manuel-outils, .manuel-portail) .rcpo-cartes,
.rcpo-cartes:where(.manuel-outils, .manuel-portail) { max-height: 44rem; overflow: auto; min-width: 0; overscroll-behavior: contain; padding: 3px; }

:where(.manuel-outils, .manuel-portail) .rcpo-carte,
.rcpo-carte:where(.manuel-outils, .manuel-portail) { padding: 0.4rem 0.2rem; background: #f8f2e0; scroll-margin: 0.5rem; border-bottom: 1px solid rgba(32, 28, 18, 0.22); }

:where(.manuel-outils, .manuel-portail) .rcpo-carte > .ligne-planche,
.rcpo-carte:where(.manuel-outils, .manuel-portail) > .ligne-planche { padding: 0.3rem 0.45rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-etape,
.rcpo-etape:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.1rem; padding: 0 0.45rem; font-size: 0.72rem; color: #5f5748; }

:where(.manuel-outils, .manuel-portail) .rcpo-correspondance,
.rcpo-correspondance:where(.manuel-outils, .manuel-portail) { margin: 0.25rem 0.45rem; font-size: 0.8rem; font-weight: 700; color: #24418c; }

:where(.manuel-outils, .manuel-portail) .rcpo-retour,
.rcpo-retour:where(.manuel-outils, .manuel-portail) { display: block; border: 0; background: transparent; color: #245a69; font: inherit; font-size: 0.76rem; text-decoration: underline; text-underline-offset: 0.15em; padding: 0.4rem 0.45rem; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema,
.rcpo-schema:where(.manuel-outils, .manuel-portail) { border-bottom: 1px solid rgba(32, 28, 18, 0.22); }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement,
.rcpo-schema-defilement:where(.manuel-outils, .manuel-portail) { max-width: 100%; max-height: 46rem; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 3px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-support,
.rcpo-schema-support:where(.manuel-outils, .manuel-portail) { position: relative; margin-inline: auto; overflow: hidden; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-canevas,
.rcpo-schema-canevas:where(.manuel-outils, .manuel-portail) { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; isolation: isolate; background: radial-gradient(rgba(40, 123, 119, 0.12) 0.8px, transparent 0.8px); background-size: 10px 10px; }

:where(.manuel-outils, .manuel-portail) .rcpo-trait,
.rcpo-trait:where(.manuel-outils, .manuel-portail) { position: absolute; height: 3px; background: var(--rcpo-trait); transform-origin: 0 50%; z-index: 0; }

:where(.manuel-outils, .manuel-portail) .rcpo-trait-fleche::after,
.rcpo-trait-fleche:where(.manuel-outils, .manuel-portail)::after { content: ""; position: absolute; right: 42px; top: -4px; border-left: 9px solid var(--rcpo-trait); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud,
.rcpo-noeud:where(.manuel-outils, .manuel-portail) { position: absolute; transform: translate(-50%, -34px); width: 168px; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--rcp-encre); font: inherit; cursor: pointer; z-index: 1; }

:where(.manuel-outils, .manuel-portail) .rcpo-cercle,
.rcpo-cercle:where(.manuel-outils, .manuel-portail) { display: grid; place-items: center; box-sizing: border-box; width: 68px; height: 68px; border: 3px solid var(--rcpo-trait); border-radius: 50%; background: #fffdf7; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud .rcpo-valeur,
.rcpo-noeud:where(.manuel-outils, .manuel-portail) .rcpo-valeur { display: inline; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: 1.7rem; line-height: 1; font-weight: 750; white-space: nowrap; overflow-wrap: normal; word-break: normal; cursor: inherit; }

:where(.manuel-outils, .manuel-portail) .rcpo-depart .rcpo-cercle,
.rcpo-depart:where(.manuel-outils, .manuel-portail) .rcpo-cercle { box-shadow: 0 0 0 6px rgba(40, 123, 119, 0.23); }

:where(.manuel-outils, .manuel-portail) .rcpo-nom,
.rcpo-nom:where(.manuel-outils, .manuel-portail) { padding: 0.1rem 0.25rem; border-radius: 4px; max-width: 100%; background: #fffaf0; color: var(--rcp-encre); font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rcpo-marque-depart,
.rcpo-marque-depart:where(.manuel-outils, .manuel-portail) { color: #245a69; background: #fffaf0; font-size: 0.67rem; line-height: 1.2; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud:hover .rcpo-cercle,
.rcpo-noeud:hover:where(.manuel-outils, .manuel-portail) .rcpo-cercle { background: #e9f2e8; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud:hover .rcpo-nom,
.rcpo-noeud:hover:where(.manuel-outils, .manuel-portail) .rcpo-nom { text-decoration: underline; text-underline-offset: 0.2em; }

:where(.manuel-outils, .manuel-portail) .rcpo-centre,
.rcpo-centre:where(.manuel-outils, .manuel-portail) { position: absolute; left: 360px; top: 304px; transform: translate(-50%, -50%); text-align: center; color: var(--rcpo-trait); font-weight: 700; font-size: 1.7rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-centre small,
.rcpo-centre:where(.manuel-outils, .manuel-portail) small { display: block; margin-top: 0.35rem; font-size: 1rem; font-weight: 400; }

:where(.manuel-outils, .manuel-portail) .rcpo-centre-selection,
.rcpo-centre-selection:where(.manuel-outils, .manuel-portail) { display: block; max-width: 23rem; margin-top: 1.5rem; padding: 0.75rem; border-top: 1px solid rgba(40, 123, 119, 0.3); color: var(--rcp-encre); font-size: 1.3rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-centre,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-centre { width: 48%; font-size: 2.1rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-centre small,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-centre small { font-size: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-noeud,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-noeud { width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-cercle,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-cercle { width: 54px; height: 54px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-valeur,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-valeur { font-size: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-nom,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-nom { position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: 230px; max-width: none; padding: 2px 4px; font-size: 20px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: 0 0; transform: rotate(var(--rcpo-nom-angle)) translateX(var(--rcpo-nom-distance)) translate(var(--rcpo-nom-ancrage), -50%); }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-marque-depart,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-marque-depart { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-long .rcpo-trait-fleche::after,
.rcpo-schema-long:where(.manuel-outils, .manuel-portail) .rcpo-trait-fleche::after { right: 33px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-noeud,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-noeud,
:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-cercle,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-cercle { width: 38px; height: 38px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-cercle,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-cercle { border-width: 2px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-valeur,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-valeur { font-size: 1.06rem; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-trait,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-trait { height: 2px; }

:where(.manuel-outils, .manuel-portail) .rcpo-schema-dense .rcpo-trait-fleche::after,
.rcpo-schema-dense:where(.manuel-outils, .manuel-portail) .rcpo-trait-fleche::after { right: 21px; top: -2px; border-left-width: 4px; border-top-width: 3px; border-bottom-width: 3px; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud[data-orbite-actif="true"] .rcpo-cercle,
.rcpo-noeud[data-orbite-actif="true"]:where(.manuel-outils, .manuel-portail) .rcpo-cercle { background: #e0eddf; border-color: #24418c; }

:where(.manuel-outils, .manuel-portail) .rcpo-boucle-fixe,
.rcpo-boucle-fixe:where(.manuel-outils, .manuel-portail) { position: absolute; left: 112px; top: 30px; width: 156px; height: 156px; border: 3px solid var(--rcpo-trait); border-radius: 50%; color: var(--rcpo-trait); text-align: right; font-size: 2.7rem; line-height: 1; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud[data-parcours-selection="true"] .rcpo-cercle,
.rcpo-noeud[data-parcours-selection="true"]:where(.manuel-outils, .manuel-portail) .rcpo-cercle { outline: 3px solid #24418c; outline-offset: 4px; }

:where(.manuel-outils, .manuel-portail) .rcpo-noeud[data-parcours-selection="true"] .rcpo-nom,
.rcpo-noeud[data-parcours-selection="true"]:where(.manuel-outils, .manuel-portail) .rcpo-nom { background: #e0e8ff; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rcpo-carte[data-parcours-selection="true"],
.rcpo-carte[data-parcours-selection="true"]:where(.manuel-outils, .manuel-portail) { background: #e8edf9; box-shadow: inset 4px 0 #24418c; }

:where(.manuel-outils, .manuel-portail) .rcpo-carte:focus-visible,
.rcpo-carte:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-noeud:focus-visible,
.rcpo-noeud:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-cartes:focus-visible,
.rcpo-cartes:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement:focus-visible,
.rcpo-schema-defilement:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-retour:focus-visible,
.rcpo-retour:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-zoom:focus-visible,
.rcpo-zoom:focus-visible:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-choisir:focus-visible,
.rcpo-choisir:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 3px solid #24418c; outline-offset: -2px; }

:where(.manuel-outils, .manuel-portail) .rcpo-orbite-longue .rcpo-cartes,
.rcpo-orbite-longue:where(.manuel-outils, .manuel-portail) .rcpo-cartes { display: grid; grid-template-columns: minmax(0, 1fr); }

:where(.manuel-outils, .manuel-portail) .rcpo-orbite-longue .rcpo-carte,
.rcpo-orbite-longue:where(.manuel-outils, .manuel-portail) .rcpo-carte { border-inline-end: 1px solid rgba(32, 28, 18, 0.22); }

:where(.manuel-outils, .manuel-portail) .rcpo-orbite-fixe .rcpo-cartes,
.rcpo-orbite-fixe:where(.manuel-outils, .manuel-portail) .rcpo-cartes { max-height: none; }

@media (min-width: 760px) {
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite-longue .rcpo-cartes,
.rcpo-orbite-longue:where(.manuel-outils, .manuel-portail) .rcpo-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite-fixe .rcpo-disposition,
.rcpo-orbite-fixe:where(.manuel-outils, .manuel-portail) .rcpo-disposition { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); align-items: start; }
}

@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite-courte .rcpo-disposition,
.rcpo-orbite-courte:where(.manuel-outils, .manuel-portail) .rcpo-disposition { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.8fr); align-items: start; }
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite-courte .rcpo-cartes-panneau,
.rcpo-orbite-courte:where(.manuel-outils, .manuel-portail) .rcpo-cartes-panneau { border-inline-end: 1px solid rgba(32, 28, 18, 0.22); }
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite-longue .rcpo-cartes,
.rcpo-orbite-longue:where(.manuel-outils, .manuel-portail) .rcpo-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .rcpo-orbite,
.rcpo-orbite:where(.manuel-outils, .manuel-portail) { break-before: page; }
  :where(.manuel-outils, .manuel-portail) .rcpo-disposition,
.rcpo-disposition:where(.manuel-outils, .manuel-portail) { display: block !important; }
  :where(.manuel-outils, .manuel-portail) .rcpo-cartes,
.rcpo-cartes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement,
.rcpo-schema-defilement:where(.manuel-outils, .manuel-portail) { max-height: none; overflow: visible; }
  :where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement,
.rcpo-schema-defilement:where(.manuel-outils, .manuel-portail) { height: auto !important; }
  :where(.manuel-outils, .manuel-portail) .rcpo-schema-support,
.rcpo-schema-support:where(.manuel-outils, .manuel-portail) { width: auto !important; height: auto !important; }
  :where(.manuel-outils, .manuel-portail) .rcpo-schema-canevas,
.rcpo-schema-canevas:where(.manuel-outils, .manuel-portail) { position: relative; transform: none !important; zoom: 0.65; }
  :where(.manuel-outils, .manuel-portail) .rcpo-carte,
.rcpo-carte:where(.manuel-outils, .manuel-portail) { break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) .rcpo-retour,
.rcpo-retour:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-instruction,
.rcpo-instruction:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-commandes,
.rcpo-commandes:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .rcpo-selection,
.rcpo-selection:where(.manuel-outils, .manuel-portail) { display: none; }
}

/* Source Manuel : styles-planches-communes.css
 */

/* Présentation commune aux neuf référentiels. Ces règles restent dans les
 * planches : les fiches de nombres et les vues listes gardent leur mise en page. */

:where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) {
  --planche-papier: #f8f2e0;
  --planche-encre: #201c12;
  --planche-secondaire: #5f5748;
  --planche-filet: rgba(32, 28, 18, .38);
  --planche-titre: clamp(1.2rem, 1.6vw, 1.5rem);
  --planche-texte: .88rem;
  --planche-meta: .78rem;
  --planche-arabe: 1.2rem;
  --rcp-papier: var(--planche-papier);
  --rcp-encre: var(--planche-encre);
  --rcp-filet: var(--planche-filet);
  box-sizing: border-box;
  background: var(--planche-papier);
  color: var(--planche-encre);
  border: 1px solid var(--planche-filet);
  border-radius: 10px;
  min-width: 0;
  font-size: var(--planche-texte);
  line-height: 1.5;
}

:where(.manuel-outils, .manuel-portail) .planche:not(.cam-planche),
.planche:not(.cam-planche):where(.manuel-outils, .manuel-portail) { padding: clamp(.65rem, 1.1vw, 1rem); }

:where(.manuel-outils, .manuel-portail) .planche .planche-titre,
.planche:where(.manuel-outils, .manuel-portail) .planche-titre,
:where(.manuel-outils, .manuel-portail) .planche .rcp-titre,
.planche:where(.manuel-outils, .manuel-portail) .rcp-titre,
:where(.manuel-outils, .manuel-portail) .cam-planche .cam-entete h2,
.cam-planche:where(.manuel-outils, .manuel-portail) .cam-entete h2,
:where(.manuel-outils, .manuel-portail) .ft-planche .ft-titre-maison,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-titre-maison {
  margin: 0 0 .65rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--planche-filet);
  color: var(--planche-encre);
  font-family: var(--pile-titres, Georgia, serif);
  font-size: var(--planche-titre);
  line-height: 1.35;
  text-align: center;
}

:where(.manuel-outils, .manuel-portail) .planche .rcp-titre-section,
.planche:where(.manuel-outils, .manuel-portail) .rcp-titre-section { font-size: .95rem; line-height: 1.45; }

:where(.manuel-outils, .manuel-portail) .planche .planche-resume,
.planche:where(.manuel-outils, .manuel-portail) .planche-resume,
:where(.manuel-outils, .manuel-portail) .planche .rcp-aide,
.planche:where(.manuel-outils, .manuel-portail) .rcp-aide { font-size: .85rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche {
  box-sizing: border-box;
  padding: .55rem .6rem;
  font-size: var(--planche-texte);
  line-height: 1.5;
  color: var(--planche-encre);
}

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-entete,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-entete { gap: .25rem .4rem; align-items: center; margin-bottom: .25rem; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-rang,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-rang { flex: 1 0 100%; font-size: var(--planche-meta); color: var(--planche-secondaire); }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-prefixe,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-prefixe { font-size: .68rem; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-titre-fr,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-titre-fr { font-size: var(--planche-texte); line-height: 1.4; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-corps,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-corps { gap: .15rem .5rem; margin-bottom: .3rem; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-arabe,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-arabe,
:where(.manuel-outils, .manuel-portail) .ft-planche .ft-activation .pl-arabe,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-activation .pl-arabe {
  font-size: var(--planche-arabe); line-height: 1.6; unicode-bidi: isolate;
}

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-translit,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-translit,
:where(.manuel-outils, .manuel-portail) .ft-planche .ft-activation .pl-translit,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-activation .pl-translit {
  font-size: var(--planche-meta); color: var(--planche-secondaire);
}

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-meta,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-meta { gap: .2rem .45rem; font-size: var(--planche-meta); line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-lettre,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-lettre { font-size: 1.05rem; }

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .pl-numero-affiche,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .pl-numero-affiche {
  min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent;
}

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .rcp-modifier,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .rcp-modifier {
  flex: 0 0 auto; min-width: 30px; min-height: 30px; padding: .15rem .3rem;
  border: 1px solid var(--planche-filet); border-radius: 5px;
  color: var(--planche-encre); background: #fffaf0; cursor: pointer;
  font: inherit; line-height: 1;
}

:where(.manuel-outils, .manuel-portail) .planche .ligne-planche .rcp-modifier:hover,
.planche:where(.manuel-outils, .manuel-portail) .ligne-planche .rcp-modifier:hover { background: #eee2b9; }

:where(.manuel-outils, .manuel-portail) .planche .rcp-modifier:focus-visible,
.planche:where(.manuel-outils, .manuel-portail) .rcp-modifier:focus-visible { outline: 3px solid #24418c; outline-offset: 2px; }

:where(.manuel-outils, .manuel-portail) .planche .rcp-carte > .ligne-planche,
.planche:where(.manuel-outils, .manuel-portail) .rcp-carte > .ligne-planche {
  background: #fffaf0;
  background: color-mix(in srgb, var(--rc-accent-personnalise, #8f6a1e) 4%, #fffaf0);
}

:where(.manuel-outils, .manuel-portail) .planche .planche-grille,
.planche:where(.manuel-outils, .manuel-portail) .planche-grille { gap: .7rem; }

:where(.manuel-outils, .manuel-portail) .planche .planche-groupe,
.planche:where(.manuel-outils, .manuel-portail) .planche-groupe { gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .planche .rcp-navigation,
.planche:where(.manuel-outils, .manuel-portail) .rcp-navigation { gap: .4rem; margin-block: .75rem; }

:where(.manuel-outils, .manuel-portail) .planche .rcp-raccourci,
.planche:where(.manuel-outils, .manuel-portail) .rcp-raccourci { font-size: .85rem; border-radius: 6px; }

:where(.manuel-outils, .manuel-portail) .ft-planche .ft-activation,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-activation { font-size: var(--planche-texte); line-height: 1.65; }

:where(.manuel-outils, .manuel-portail) .ft-planche .ft-entete,
.ft-planche:where(.manuel-outils, .manuel-portail) .ft-entete { border-bottom: 1px solid var(--planche-filet); }

:where(.manuel-outils, .manuel-portail) .cam-contenu,
.cam-contenu:where(.manuel-outils, .manuel-portail) { max-width: none; }

:where(.manuel-outils, .manuel-portail) .planche.cam-planche,
.planche.cam-planche:where(.manuel-outils, .manuel-portail) { background: var(--planche-papier); box-shadow: none; }

:where(.manuel-outils, .manuel-portail) .cam-planche .cam-grilles,
.cam-planche:where(.manuel-outils, .manuel-portail) .cam-grilles { max-width: 1100px; margin-inline: auto; }

/* Même largeur et même axe de centrage pour les planches, y compris celles
 * des maisons et des carrés. Les éventuels défilements restent à l'intérieur. */

@media (min-width: 1440px) {
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .planche.cam-planche,
.planche.cam-planche:where(.manuel-outils, .manuel-portail) {
    width: min(96vw, 1900px); max-width: none;
    margin-left: calc((100% - min(96vw, 1900px)) / 2);
    margin-right: calc((100% - min(96vw, 1900px)) / 2);
  }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .planche.cam-planche,
.planche.cam-planche:where(.manuel-outils, .manuel-portail) {
    width: 100%; max-width: 100%; margin-inline: 0;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  :where(.manuel-outils, .manuel-portail) .planche .rcp-modifier,
.planche:where(.manuel-outils, .manuel-portail) .rcp-modifier { display: none; }
}

@media (forced-colors: active) {
  :where(.manuel-outils, .manuel-portail) .planche,
.planche:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .ft-planche,
.ft-planche:where(.manuel-outils, .manuel-portail) { background: Canvas; color: CanvasText; border-color: CanvasText; }
}

/* Source Manuel : styles-composition-mots.css
 */

/* Exploration des lettres d’une fiche : inventaire, formes attestées, lecture. */

:where(.manuel-outils, .manuel-portail) .cm-composition,
.cm-composition:where(.manuel-outils, .manuel-portail) { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .cm-surtitre,
.cm-surtitre:where(.manuel-outils, .manuel-portail) { color: var(--lapis); font-size: .85rem; font-weight: 700; margin: 1.4rem 0 .3rem; }

:where(.manuel-outils, .manuel-portail) .cm-composition h2,
.cm-composition:where(.manuel-outils, .manuel-portail) h2 { margin: .3rem 0 .65rem; }

:where(.manuel-outils, .manuel-portail) .cm-introduction,
.cm-introduction:where(.manuel-outils, .manuel-portail) { max-width: 75ch; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cm-portees,
.cm-portees:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

:where(.manuel-outils, .manuel-portail) .cm-portee,
.cm-portee:where(.manuel-outils, .manuel-portail) { min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-portee[aria-pressed="true"],
.cm-portee[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) { background: var(--lapis); color: var(--fond); border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .cm-maisons-mot,
.cm-maisons-mot:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }

:where(.manuel-outils, .manuel-portail) .cm-maisons-mot p,
.cm-maisons-mot:where(.manuel-outils, .manuel-portail) p { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cm-maison-mot,
.cm-maison-mot:where(.manuel-outils, .manuel-portail) { min-height: 44px; padding: .35rem .55rem; font-size: .78rem; white-space: normal; text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-source-traduction,
.cm-source-traduction:where(.manuel-outils, .manuel-portail) { font-size: .74rem; color: var(--encre-2); line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cm-modes,
.cm-modes:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }

:where(.manuel-outils, .manuel-portail) .cm-mode,
.cm-mode:where(.manuel-outils, .manuel-portail) { min-width: 7rem; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-mode[aria-pressed="true"],
.cm-mode[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) { background: var(--lapis); color: var(--fond); border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .cm-choix,
.cm-choix:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1.3rem 0 1rem; }

:where(.manuel-outils, .manuel-portail) .cm-inventaire,
.cm-inventaire:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1rem; text-align: start; white-space: normal; }

:where(.manuel-outils, .manuel-portail) .cm-inventaire span,
.cm-inventaire:where(.manuel-outils, .manuel-portail) span { font-size: .82rem; }

:where(.manuel-outils, .manuel-portail) .cm-inventaire[aria-pressed="true"],
.cm-inventaire[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) { background: var(--lapis); border-color: var(--lapis); color: var(--fond); }

:where(.manuel-outils, .manuel-portail) .cm-lettres,
.cm-lettres:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-lettre,
.cm-lettre:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.6rem; padding: .3rem .5rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--encre); font: inherit; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .cm-lettre:hover,
.cm-lettre:hover:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .cm-lettre[aria-pressed="true"],
.cm-lettre[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) { background: var(--lapis); border-color: var(--lapis); color: var(--fond); box-shadow: inset 0 0 0 2px var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-lettre[aria-pressed="true"] span,
.cm-lettre[aria-pressed="true"]:where(.manuel-outils, .manuel-portail) span { color: inherit; }

:where(.manuel-outils, .manuel-portail) .cm-lettre b,
.cm-lettre:where(.manuel-outils, .manuel-portail) b { font-family: var(--pile-arabe, serif); font-size: 2rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cm-lettre span,
.cm-lettre:where(.manuel-outils, .manuel-portail) span { font-size: .73rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cm-aide-lettres,
.cm-aide-lettres:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; color: var(--encre-2); font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .cm-aide-lettres p,
.cm-aide-lettres:where(.manuel-outils, .manuel-portail) p { flex: 1 1 25rem; max-width: 85ch; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cm-effacer-lettres,
.cm-effacer-lettres:where(.manuel-outils, .manuel-portail) { font-size: .78rem; min-height: 40px; }

:where(.manuel-outils, .manuel-portail) .cm-methode,
.cm-methode:where(.manuel-outils, .manuel-portail) { margin: 1rem 0 1.4rem; max-width: 90ch; color: var(--encre-2); font-size: .88rem; }

:where(.manuel-outils, .manuel-portail) .cm-composition summary,
.cm-composition:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding-block: .6rem; }

:where(.manuel-outils, .manuel-portail) .cm-methode p,
.cm-methode:where(.manuel-outils, .manuel-portail) p { line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-famille,
.cm-famille:where(.manuel-outils, .manuel-portail) { margin: 1.3rem 0; padding: 1rem 1.2rem; border: 1px solid var(--lapis); border-radius: 12px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-famille h3,
.cm-famille:where(.manuel-outils, .manuel-portail) h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: .9rem 0 .5rem; scroll-margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .cm-famille h3 bdi,
.cm-famille:where(.manuel-outils, .manuel-portail) h3 bdi { font-family: var(--pile-arabe, serif); font-size: 1.7rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-famille p,
.cm-famille:where(.manuel-outils, .manuel-portail) p { max-width: 85ch; color: var(--encre-2); font-size: .85rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-information-racines,
.cm-information-racines:where(.manuel-outils, .manuel-portail) { margin: .8rem 0 1rem; padding: .8rem 1rem; border-inline-start: 3px solid var(--lapis); border-radius: 4px; background: var(--carte); color: var(--encre-2); font-size: .84rem; }

:where(.manuel-outils, .manuel-portail) .cm-information-racines p,
.cm-information-racines:where(.manuel-outils, .manuel-portail) p { margin-top: 0; }

:where(.manuel-outils, .manuel-portail) .cm-outils,
.cm-outils:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }

:where(.manuel-outils, .manuel-portail) .cm-outils > div:first-child,
.cm-outils:where(.manuel-outils, .manuel-portail) > div:first-child { flex: 1 1 260px; }

:where(.manuel-outils, .manuel-portail) .cm-outils > div:last-child,
.cm-outils:where(.manuel-outils, .manuel-portail) > div:last-child { flex: 0 1 240px; }

:where(.manuel-outils, .manuel-portail) .cm-outils label,
.cm-outils:where(.manuel-outils, .manuel-portail) label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-outils input,
.cm-outils:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .cm-outils select,
.cm-outils:where(.manuel-outils, .manuel-portail) select { width: 100%; min-width: 0; min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--ligne); border-radius: 8px; color: var(--encre); background: var(--carte); font: inherit; }

:where(.manuel-outils, .manuel-portail) .cm-outils input.cm-saisie-arabe,
.cm-outils:where(.manuel-outils, .manuel-portail) input.cm-saisie-arabe { font-family: var(--pile-arabe, serif); font-size: 1.8rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cm-maisons > div:first-child,
.cm-maisons:where(.manuel-outils, .manuel-portail) > div:first-child { flex: 0 1 26rem; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .cm-outils.cm-maisons > .cm-navigation-maisons,
.cm-outils.cm-maisons:where(.manuel-outils, .manuel-portail) > .cm-navigation-maisons { flex: 1 1 22rem; display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-navigation-maisons button,
.cm-navigation-maisons:where(.manuel-outils, .manuel-portail) button { min-height: 44px; white-space: normal; }

:where(.manuel-outils, .manuel-portail) .cm-recherche-outils,
.cm-recherche-outils:where(.manuel-outils, .manuel-portail) { margin-block: 1rem; padding: 1rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-recherche-outils > div,
.cm-recherche-outils:where(.manuel-outils, .manuel-portail) > div { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .cm-statut,
.cm-statut:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .85rem; margin: 1.2rem 0; scroll-margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .cm-resultats,
.cm-resultats:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; align-items: start; }

:where(.manuel-outils, .manuel-portail) .cm-mot,
.cm-mot:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 1.2rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-mot h3,
.cm-mot:where(.manuel-outils, .manuel-portail) h3 { font-family: var(--pile-arabe, serif); font-size: 2.5rem; line-height: 1.8; margin: 0 0 .4rem; overflow-wrap: anywhere; text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-mot-entete,
.cm-mot-entete:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }

/* Le mot arabe forme un bloc indivisible. Si les deux langues manquent de
 * place, la traduction passe sur une ligne entière sous le mot. */

:where(.manuel-outils, .manuel-portail) .cm-mot-entete h3,
.cm-mot-entete:where(.manuel-outils, .manuel-portail) h3 { flex: 0 0 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow-wrap: normal; word-break: normal; overflow-x: auto; }

:where(.manuel-outils, .manuel-portail) .cm-traduction,
.cm-traduction:where(.manuel-outils, .manuel-portail) { flex: 1 1 10rem; min-width: min(100%, 10rem); margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }

:where(.manuel-outils, .manuel-portail) .cm-note-traduction,
.cm-note-traduction:where(.manuel-outils, .manuel-portail) { margin: .5rem 0; font-size: .85rem; font-weight: 650; }

:where(.manuel-outils, .manuel-portail) .cm-compte,
.cm-compte:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cm-calcul,
.cm-calcul:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .78rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-calcul [lang="ar"],
.cm-calcul:where(.manuel-outils, .manuel-portail) [lang="ar"] { display: inline-block; font-family: var(--pile-arabe, serif); color: var(--encre); font-size: 1.4rem; }

:where(.manuel-outils, .manuel-portail) .cm-analyse-racines,
.cm-analyse-racines:where(.manuel-outils, .manuel-portail) { margin: .75rem 0; padding-top: .65rem; border-top: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .cm-etiquette-racine,
.cm-etiquette-racine:where(.manuel-outils, .manuel-portail) { display: inline-block; color: var(--encre-2); font-size: .78rem; }

:where(.manuel-outils, .manuel-portail) .cm-racines-mot,
.cm-racines-mot:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .45rem; }

:where(.manuel-outils, .manuel-portail) .cm-racine-annotee,
.cm-racine-annotee:where(.manuel-outils, .manuel-portail) { display: flex; flex-direction: column; gap: .2rem; align-items: center; }

:where(.manuel-outils, .manuel-portail) .cm-racine-lien,
.cm-racine-lien:where(.manuel-outils, .manuel-portail) { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .5rem; min-height: 44px; padding: .35rem .75rem; white-space: normal; color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .cm-racine-lien bdi,
.cm-racine-lien:where(.manuel-outils, .manuel-portail) bdi,
:where(.manuel-outils, .manuel-portail) .cm-analyse-racines > bdi,
.cm-analyse-racines:where(.manuel-outils, .manuel-portail) > bdi,
:where(.manuel-outils, .manuel-portail) .cm-note-racine bdi,
.cm-note-racine:where(.manuel-outils, .manuel-portail) bdi { font-family: var(--pile-arabe, serif); font-size: 1.65rem; font-weight: 700; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-verification,
.cm-verification:where(.manuel-outils, .manuel-portail) { grid-column: 1 / -1; }

:where(.manuel-outils, .manuel-portail) .cm-verification h3,
.cm-verification:where(.manuel-outils, .manuel-portail) h3 { text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-lettres-manquantes,
.cm-lettres-manquantes:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .4rem 1rem; }

:where(.manuel-outils, .manuel-portail) .cm-lettres-manquantes p,
.cm-lettres-manquantes:where(.manuel-outils, .manuel-portail) p { font-size: .85rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cm-lettres-manquantes bdi,
.cm-lettres-manquantes:where(.manuel-outils, .manuel-portail) bdi { display: inline-block; font-family: var(--pile-arabe, serif); font-size: 1.5rem; color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .cm-note-racine,
.cm-note-racine:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .74rem; line-height: 1.6; }

:where(.manuel-outils, .manuel-portail) .cm-analyse-racines p,
.cm-analyse-racines:where(.manuel-outils, .manuel-portail) p { margin: .4rem 0 0; }

:where(.manuel-outils, .manuel-portail) .cm-carte-racine h3,
.cm-carte-racine:where(.manuel-outils, .manuel-portail) h3 { letter-spacing: .05em; }

:where(.manuel-outils, .manuel-portail) .cm-source-racines,
.cm-source-racines:where(.manuel-outils, .manuel-portail) { margin: 1.6rem 0 1rem; max-width: 90ch; color: var(--encre-2); font-size: .76rem; line-height: 1.7; }

:where(.manuel-outils, .manuel-portail) .cm-references,
.cm-references:where(.manuel-outils, .manuel-portail) { border-top: 1px solid var(--ligne); margin-top: .8rem; padding-top: .3rem; }

:where(.manuel-outils, .manuel-portail) .cm-references summary,
.cm-references:where(.manuel-outils, .manuel-portail) summary { color: var(--lapis); font-size: .87rem; font-weight: 650; }

:where(.manuel-outils, .manuel-portail) .cm-liste-references,
.cm-liste-references:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-reference,
.cm-reference:where(.manuel-outils, .manuel-portail) { font-size: .8rem; min-height: 40px; padding: .5rem .7rem; }

:where(.manuel-outils, .manuel-portail) .cm-suite,
.cm-suite:where(.manuel-outils, .manuel-portail) { font-size: .78rem; white-space: normal; text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-lecteur,
.cm-lecteur:where(.manuel-outils, .manuel-portail) { margin-top: 1rem; border-top: 1px solid var(--ligne); padding-top: 1rem; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cm-lecteur > strong,
.cm-lecteur:where(.manuel-outils, .manuel-portail) > strong { font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .cm-texte-verset,
.cm-texte-verset:where(.manuel-outils, .manuel-portail) { font-family: var(--pile-arabe, serif); font-size: 1.45rem; line-height: 2.2; }

:where(.manuel-outils, .manuel-portail) .cm-pagination,
.cm-pagination:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-block: 1.5rem; }

:where(.manuel-outils, .manuel-portail) .cm-pages-navigation,
.cm-pages-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-pages-numeros,
.cm-pages-numeros:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; list-style: none; padding: 0; margin: 0; }

:where(.manuel-outils, .manuel-portail) .cm-page-numero,
.cm-page-numero:where(.manuel-outils, .manuel-portail) { min-width: 44px; min-height: 44px; padding: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-page-numero[aria-current="page"],
.cm-page-numero[aria-current="page"]:where(.manuel-outils, .manuel-portail) { color: var(--fond); background: var(--lapis); border-color: var(--lapis); font-weight: 800; box-shadow: inset 0 0 0 2px var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-pages-ellipse,
.cm-pages-ellipse:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .cm-pagination-position,
.cm-pagination-position:where(.manuel-outils, .manuel-portail) { color: var(--encre-2); font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .cm-pages-ellipse,
.cm-pages-ellipse:where(.manuel-outils, .manuel-portail) { padding-inline: .2rem; }

:where(.manuel-outils, .manuel-portail) .cm-acces-page,
.cm-acces-page:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-acces-page label,
.cm-acces-page:where(.manuel-outils, .manuel-portail) label { font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .cm-acces-page input,
.cm-acces-page:where(.manuel-outils, .manuel-portail) input { width: 4.5rem; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid var(--ligne); border-radius: 8px; padding: .5rem; color: var(--encre); background: var(--carte); font: inherit; text-align: center; }

:where(.manuel-outils, .manuel-portail) .cm-acces-page button,
.cm-acces-page:where(.manuel-outils, .manuel-portail) button { min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-acces-page input[aria-invalid="true"],
.cm-acces-page:where(.manuel-outils, .manuel-portail) input[aria-invalid="true"] { border-color: var(--encre); outline: 1px solid var(--encre); }

:where(.manuel-outils, .manuel-portail) .cm-page-erreur,
.cm-page-erreur:where(.manuel-outils, .manuel-portail) { flex-basis: 100%; margin: 0; color: var(--encre); font-size: .85rem; text-align: center; }

:where(.manuel-outils, .manuel-portail) .cm-composition [hidden],
.cm-composition:where(.manuel-outils, .manuel-portail) [hidden] { display: none !important; }

:where(.manuel-outils, .manuel-portail) .cm-composition :is(button, input, select, summary, [tabindex]):focus-visible,
.cm-composition:where(.manuel-outils, .manuel-portail) :is(button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; }

@media (max-width: 600px) {
  :where(.manuel-outils, .manuel-portail) .rc-document-technique > .rc-onglets,
.rc-document-technique:where(.manuel-outils, .manuel-portail) > .rc-onglets { column-gap: .65rem; }
  :where(.manuel-outils, .manuel-portail) .cm-choix,
.cm-choix:where(.manuel-outils, .manuel-portail) { grid-template-columns: 1fr; }
  :where(.manuel-outils, .manuel-portail) .cm-inventaire,
.cm-inventaire:where(.manuel-outils, .manuel-portail) { flex-direction: row; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem; }
  :where(.manuel-outils, .manuel-portail) .cm-inventaire strong,
.cm-inventaire:where(.manuel-outils, .manuel-portail) strong { font-size: .85rem; }
  :where(.manuel-outils, .manuel-portail) .cm-inventaire span,
.cm-inventaire:where(.manuel-outils, .manuel-portail) span { font-size: .72rem; }
  :where(.manuel-outils, .manuel-portail) .cm-outils > div:last-child,
.cm-outils:where(.manuel-outils, .manuel-portail) > div:last-child { flex-grow: 1; }
  :where(.manuel-outils, .manuel-portail) .cm-lettres,
.cm-lettres:where(.manuel-outils, .manuel-portail) { gap: .1rem; padding: .5rem; }
  :where(.manuel-outils, .manuel-portail) .cm-famille,
.cm-famille:where(.manuel-outils, .manuel-portail) { padding: 1rem; }
}

/* Source Manuel : styles-recherche-coran.css
 */

/* Recherche des totaux coraniques : mêmes thèmes que le calculateur. */

:where(.manuel-outils, .manuel-portail) .navigation-recherche-coran,
.navigation-recherche-coran:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; }

:where(.manuel-outils, .manuel-portail) .navigation-recherche-coran [aria-selected="true"],
.navigation-recherche-coran:where(.manuel-outils, .manuel-portail) [aria-selected="true"] { background: var(--lapis); color: var(--papier); border-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .recherche-coran,
.recherche-coran:where(.manuel-outils, .manuel-portail) { max-width: 1100px; margin-inline: auto; }

:where(.manuel-outils, .manuel-portail) .recherche-coran h2,
.recherche-coran:where(.manuel-outils, .manuel-portail) h2 { margin-top: 0; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-intro,
.recherche-coran-intro:where(.manuel-outils, .manuel-portail) { font-weight: 700; color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) minmax(180px, 1.2fr) auto; align-items: end; gap: .8rem; margin: 1.5rem 0 .6rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-champ,
.recherche-coran-champ:where(.manuel-outils, .manuel-portail) { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire label,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire input,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire select,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) select { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--papier); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire input,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) input { font-size: 1.1rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire > .bouton,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) > .bouton { min-height: 48px; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire :is(input, select):focus-visible,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) :is(input, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire input[aria-invalid="true"],
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) input[aria-invalid="true"] { border-color: var(--encre); }

:where(.manuel-outils, .manuel-portail) .recherche-coran progress,
.recherche-coran:where(.manuel-outils, .manuel-portail) progress { width: 100%; accent-color: var(--lapis); }

:where(.manuel-outils, .manuel-portail) .recherche-coran-resultats,
.recherche-coran-resultats:where(.manuel-outils, .manuel-portail) { display: grid; gap: 1rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-carte,
.recherche-coran-carte:where(.manuel-outils, .manuel-portail) { min-width: 0; padding: 1.25rem; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .recherche-coran-carte h3,
.recherche-coran-carte:where(.manuel-outils, .manuel-portail) h3 { color: var(--encre); margin: 0; font-size: 1.18rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-titre,
.recherche-coran-titre:where(.manuel-outils, .manuel-portail) { margin: .3rem 0; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .recherche-coran .recherche-coran-arabe,
.recherche-coran:where(.manuel-outils, .manuel-portail) .recherche-coran-arabe { font-size: 2rem; line-height: 2; overflow-wrap: anywhere; margin: 1rem 0; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-systemes,
.recherche-coran-systemes:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-systemes li,
.recherche-coran-systemes:where(.manuel-outils, .manuel-portail) li { padding: .4rem .7rem; border: 1px solid var(--ligne); border-radius: 8px; color: var(--encre); font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-systemes li[data-systeme-filtre="true"],
.recherche-coran-systemes:where(.manuel-outils, .manuel-portail) li[data-systeme-filtre="true"] { border-left: 4px solid var(--lapis); }

:where(.manuel-outils, .manuel-portail) .recherche-coran-pagination,
.recherche-coran-pagination:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-pages-navigation,
.recherche-coran-pages-navigation:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem; width: 100%; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-pages-numeros,
.recherche-coran-pages-numeros:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-pages-numeros .bouton,
.recherche-coran-pages-numeros:where(.manuel-outils, .manuel-portail) .bouton { min-width: 2.75rem; min-height: 2.75rem; padding: .55rem .65rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-pages-numeros [aria-current="page"],
.recherche-coran-pages-numeros:where(.manuel-outils, .manuel-portail) [aria-current="page"] { background: var(--lapis); color: var(--papier); border-color: var(--lapis); outline: 2px solid var(--lapis); outline-offset: 2px; font-weight: 800; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-ellipse,
.recherche-coran-ellipse:where(.manuel-outils, .manuel-portail) { padding: .4rem; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-acces-page,
.recherche-coran-acces-page:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-acces-page input,
.recherche-coran-acces-page:where(.manuel-outils, .manuel-portail) input { width: 5rem; min-height: 44px; box-sizing: border-box; padding: .5rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--papier); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-acces-page input:focus-visible,
.recherche-coran-acces-page:where(.manuel-outils, .manuel-portail) input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-page-erreur,
.recherche-coran-page-erreur:where(.manuel-outils, .manuel-portail) { flex-basis: 100%; margin: 0; }

:where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire-simple,
.recherche-coran-formulaire-simple:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(180px, 1fr) auto; }

:where(.manuel-outils, .manuel-portail) #ga-retour-recherche-versets,
#ga-retour-recherche-versets:where(.manuel-outils, .manuel-portail) { margin-bottom: 1rem; }

:where(.manuel-outils, .manuel-portail) .titres-coran-outils,
.titres-coran-outils:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 1.25rem 0; }

:where(.manuel-outils, .manuel-portail) .titres-coran-outils label,
.titres-coran-outils:where(.manuel-outils, .manuel-portail) label { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .titres-coran-outils select,
.titres-coran-outils:where(.manuel-outils, .manuel-portail) select { min-width: 0; max-width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--papier); color: var(--encre); font: inherit; }

:where(.manuel-outils, .manuel-portail) .titres-coran-resultats,
.titres-coran-resultats:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

:where(.manuel-outils, .manuel-portail) .titre-coran-carte[data-selectionne="true"],
.titre-coran-carte[data-selectionne="true"]:where(.manuel-outils, .manuel-portail) { border-color: var(--lapis); box-shadow: 0 0 0 1px var(--lapis); }

:where(.manuel-outils, .manuel-portail) .titre-coran-carte:focus-visible,
.titre-coran-carte:focus-visible:where(.manuel-outils, .manuel-portail) { outline: 2px solid var(--focus); outline-offset: 3px; }

:where(.manuel-outils, .manuel-portail) .titre-coran-total,
.titre-coran-total:where(.manuel-outils, .manuel-portail) { font-size: 1.15rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .titre-coran-details,
.titre-coran-details:where(.manuel-outils, .manuel-portail) { margin-top: 1rem; }

:where(.manuel-outils, .manuel-portail) .titre-coran-details summary,
.titre-coran-details:where(.manuel-outils, .manuel-portail) summary { cursor: pointer; padding: .65rem 0; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) .titre-coran-calculs,
.titre-coran-calculs:where(.manuel-outils, .manuel-portail) { margin: .5rem 0 0; }

:where(.manuel-outils, .manuel-portail) .titre-coran-calculs > div,
.titre-coran-calculs:where(.manuel-outils, .manuel-portail) > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .65rem .4rem; border-bottom: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .titre-coran-calculs dd,
.titre-coran-calculs:where(.manuel-outils, .manuel-portail) dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .titre-coran-calculs [data-systeme-actif="true"],
.titre-coran-calculs:where(.manuel-outils, .manuel-portail) [data-systeme-actif="true"] { border-left: 3px solid var(--lapis); background: var(--carte); }

@media (max-width: 800px) {
  :where(.manuel-outils, .manuel-portail) .recherche-coran-formulaire,
.recherche-coran-formulaire:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .recherche-coran-carte,
.recherche-coran-carte:where(.manuel-outils, .manuel-portail) { padding: 1rem; }
  :where(.manuel-outils, .manuel-portail) .titres-coran-resultats,
.titres-coran-resultats:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr); }
  :where(.manuel-outils, .manuel-portail) .titres-coran-outils,
.titres-coran-outils:where(.manuel-outils, .manuel-portail) { align-items: stretch; flex-direction: column; }
  :where(.manuel-outils, .manuel-portail) .navigation-recherche-coran .bouton,
.navigation-recherche-coran:where(.manuel-outils, .manuel-portail) .bouton { flex: 1; }
  :where(.manuel-outils, .manuel-portail) .recherche-coran-pagination,
.recherche-coran-pagination:where(.manuel-outils, .manuel-portail) { justify-content: center; }
}

/* Source Manuel : styles-preferences-systemes.css
 */

/* Présentation des systèmes, indépendante des calculs. */

:where(.manuel-outils, .manuel-portail) .preferences-systemes,
.preferences-systemes:where(.manuel-outils, .manuel-portail) {
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--bordure, #3b3d4c);
  border-radius: 12px;
  background: var(--fond-carte, #fcfbf7);
  color: var(--texte, #e8e7e2);
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes > summary,
.preferences-systemes:where(.manuel-outils, .manuel-portail) > summary {
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes > summary:focus-visible,
.preferences-systemes:where(.manuel-outils, .manuel-portail) > summary:focus-visible,
:where(.manuel-outils, .manuel-portail) .preferences-systemes button:focus-visible,
.preferences-systemes:where(.manuel-outils, .manuel-portail) button:focus-visible,
:where(.manuel-outils, .manuel-portail) .preferences-systemes input:focus-visible,
.preferences-systemes:where(.manuel-outils, .manuel-portail) input:focus-visible,
:where(.manuel-outils, .manuel-portail) .preferences-systemes select:focus-visible,
.preferences-systemes:where(.manuel-outils, .manuel-portail) select:focus-visible {
  outline: 2px solid var(--focus, #24418c);
  outline-offset: 3px;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-contenu,
.preferences-systemes-contenu:where(.manuel-outils, .manuel-portail) { padding: 0 1.15rem 1rem; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-aide,
.preferences-systemes-aide:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .preferences-systemes-compteur,
.preferences-systemes-compteur:where(.manuel-outils, .manuel-portail),
:where(.manuel-outils, .manuel-portail) .preferences-systemes-statut,
.preferences-systemes-statut:where(.manuel-outils, .manuel-portail) { margin: 0 0 0.8rem; line-height: 1.55; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-aide,
.preferences-systemes-aide:where(.manuel-outils, .manuel-portail) { color: var(--texte-doux, #5b5f6e); }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-compteur,
.preferences-systemes-compteur:where(.manuel-outils, .manuel-portail) { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-liste,
.preferences-systemes-liste:where(.manuel-outils, .manuel-portail) {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-height: 28rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--bordure, #3b3d4c);
  border-radius: 8px;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-famille,
.preferences-systemes-famille:where(.manuel-outils, .manuel-portail) { position: relative; padding: 0.75rem 0.85rem; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-famille + .preferences-systemes-famille,
.preferences-systemes-famille:where(.manuel-outils, .manuel-portail) + .preferences-systemes-famille { border-top: 1px solid var(--bordure, #3b3d4c); }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-entete,
.preferences-systemes-entete:where(.manuel-outils, .manuel-portail) { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-entete strong,
.preferences-systemes-entete:where(.manuel-outils, .manuel-portail) strong { flex: 1; min-width: 0; font-size: 1rem; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-mouvements,
.preferences-systemes-mouvements:where(.manuel-outils, .manuel-portail) { display: flex; gap: 0.4rem; flex-shrink: 0; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-mouvements button,
.preferences-systemes-mouvements:where(.manuel-outils, .manuel-portail) button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--bordure, #3b3d4c);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-poignee,
.preferences-systemes-poignee:where(.manuel-outils, .manuel-portail) {
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  background: var(--fond-champ);
  color: var(--texte-doux);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-poignee:active,
.preferences-systemes-poignee:active:where(.manuel-outils, .manuel-portail) { cursor: grabbing; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-glissement,
.preferences-systemes-glissement:where(.manuel-outils, .manuel-portail) { user-select: none; -webkit-user-select: none; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-source,
.preferences-systemes-source:where(.manuel-outils, .manuel-portail) { opacity: 0.4; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-depot-avant::before,
.preferences-systemes-depot-avant:where(.manuel-outils, .manuel-portail)::before,
:where(.manuel-outils, .manuel-portail) .preferences-systemes-depot-fin .preferences-systemes-famille:last-child::after,
.preferences-systemes-depot-fin:where(.manuel-outils, .manuel-portail) .preferences-systemes-famille:last-child::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline: 0.25rem;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--fond-carte);
  pointer-events: none;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-depot-avant::before,
.preferences-systemes-depot-avant:where(.manuel-outils, .manuel-portail)::before { top: 0; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-depot-fin .preferences-systemes-famille:last-child::after,
.preferences-systemes-depot-fin:where(.manuel-outils, .manuel-portail) .preferences-systemes-famille:last-child::after { bottom: 0; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-apercu,
.preferences-systemes-apercu:where(.manuel-outils, .manuel-portail) {
  position: fixed;
  z-index: 1000;
  max-width: min(240px, calc(100vw - 32px));
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--fond-carte);
  color: var(--texte);
  font-weight: 700;
  box-shadow: 0 6px 20px #0003;
  pointer-events: none;
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-apercu[hidden],
.preferences-systemes-apercu[hidden]:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-placement,
.preferences-systemes-placement:where(.manuel-outils, .manuel-portail) {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--bordure);
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-placement label,
.preferences-systemes-placement:where(.manuel-outils, .manuel-portail) label { display: grid; gap: 0.4rem; flex: 1 1 12rem; min-width: 0; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-placement select,
.preferences-systemes-placement:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) .preferences-systemes-placement button,
.preferences-systemes-placement:where(.manuel-outils, .manuel-portail) button {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font: inherit;
  color: var(--texte);
  background: var(--fond-champ);
}

:where(.manuel-outils, .manuel-portail) .preferences-systemes-placement button,
.preferences-systemes-placement:where(.manuel-outils, .manuel-portail) button { cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes button:disabled,
.preferences-systemes:where(.manuel-outils, .manuel-portail) button:disabled { opacity: 0.4; cursor: default; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-cases,
.preferences-systemes-cases:where(.manuel-outils, .manuel-portail) { display: flex; flex-wrap: wrap; column-gap: 1.3rem; margin-top: 0.25rem; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-cases label,
.preferences-systemes-cases:where(.manuel-outils, .manuel-portail) label { display: flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-cases input,
.preferences-systemes-cases:where(.manuel-outils, .manuel-portail) input { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin: 0; accent-color: var(--accent, #24418c); }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-cases span,
.preferences-systemes-cases:where(.manuel-outils, .manuel-portail) span { font-size: 1rem; line-height: 1.45; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-retablir,
.preferences-systemes-retablir:where(.manuel-outils, .manuel-portail) { min-height: 2.75rem; padding: 0.6rem 0.85rem; font: inherit; border: 1px solid var(--bordure); border-radius: 8px; color: var(--texte); background: var(--fond-champ); cursor: pointer; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-statut,
.preferences-systemes-statut:where(.manuel-outils, .manuel-portail) { margin-top: 0.75rem; margin-bottom: 0; color: var(--texte); }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-statut:empty,
.preferences-systemes-statut:empty:where(.manuel-outils, .manuel-portail) { display: none; }

:where(.manuel-outils, .manuel-portail) .preferences-systemes-statut.preferences-systemes-erreur,
.preferences-systemes-statut.preferences-systemes-erreur:where(.manuel-outils, .manuel-portail) { color: var(--couleur-avertissement); }

@media (max-width: 500px) {
  :where(.manuel-outils, .manuel-portail) .preferences-systemes-contenu,
.preferences-systemes-contenu:where(.manuel-outils, .manuel-portail) { padding: 0 0.7rem 0.8rem; }
  :where(.manuel-outils, .manuel-portail) .preferences-systemes-famille,
.preferences-systemes-famille:where(.manuel-outils, .manuel-portail) { padding: 0.6rem; }
  :where(.manuel-outils, .manuel-portail) .preferences-systemes-entete,
.preferences-systemes-entete:where(.manuel-outils, .manuel-portail) { gap: 0.5rem; }
  :where(.manuel-outils, .manuel-portail) .preferences-systemes-cases,
.preferences-systemes-cases:where(.manuel-outils, .manuel-portail) { display: grid; }
}

/* Source Manuel : styles-impression-referentiels.css
 */

/* Le clone est invisible à l'écran, y compris dans les navigateurs dont
 * l'aperçu d'impression est asynchrone. Aucun style de la vue n'est changé. */

:where(.manuel-outils, .manuel-portail) #rc-impression,
#rc-impression:where(.manuel-outils, .manuel-portail) { display: none; }

@media print {
  @page manuel-referentiels { size: A4 portrait; margin: 12mm; }
  body.mode-impression-referentiels > :not(#rc-impression) { display: none !important; }
  body.mode-impression-referentiels { margin: 0; padding: 0; background: #fff; color: #201c12; }
  body.mode-impression-referentiels #rc-impression {
    display: block !important; width: 100%; max-width: none; margin: 0; padding: 0;
    --encre: #201c12; --encre-2: #5f5748; --carte: #fffaf0; --creux: #f8f2e0;
    --ligne: #9c9279; --lapis: #24418c; --lapis-fonce: #182f68; --lapis-teinte: #eef0f8;
    --nombre-premier: #1a5fb4; --nombre-polygonal: #6d31a8;
    --nombre-premier-polygonal: #b81414; --nombre-un: #157a3c;
    --fiche-mars: #d01820; --fiche-venus: #07812f; --fiche-mercure: #d84b16;
    --fiche-lune: #525965; --fiche-soleil: #ffcf00; --contour-soleil: #725500;
    --fiche-saturne: #855018; --fiche-jupiter: #075ccc;
    color: var(--encre); background: #fff; font-size: 10pt;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  :where(.manuel-outils, .manuel-portail) #rc-impression *,
#rc-impression:where(.manuel-outils, .manuel-portail) *,
:where(.manuel-outils, .manuel-portail) #rc-impression *::before,
#rc-impression:where(.manuel-outils, .manuel-portail) *::before,
:where(.manuel-outils, .manuel-portail) #rc-impression *::after,
#rc-impression:where(.manuel-outils, .manuel-portail) *::after { box-sizing: border-box; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-impression-titre,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-impression-titre { font-size: 17pt; margin: 0 0 5mm; break-after: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-impression-contexte,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-impression-contexte { font-size: 9pt; color: #5f5748; margin: 0 0 4mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression h2,
#rc-impression:where(.manuel-outils, .manuel-portail) h2,
:where(.manuel-outils, .manuel-portail) #rc-impression h3,
#rc-impression:where(.manuel-outils, .manuel-portail) h3,
:where(.manuel-outils, .manuel-portail) #rc-impression h4,
#rc-impression:where(.manuel-outils, .manuel-portail) h4 { break-after: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression p,
#rc-impression:where(.manuel-outils, .manuel-portail) p { orphans: 2; widows: 2; }
  :where(.manuel-outils, .manuel-portail) #rc-impression [hidden],
#rc-impression:where(.manuel-outils, .manuel-portail) [hidden],
:where(.manuel-outils, .manuel-portail) #rc-impression button,
#rc-impression:where(.manuel-outils, .manuel-portail) button,
:where(.manuel-outils, .manuel-portail) #rc-impression input,
#rc-impression:where(.manuel-outils, .manuel-portail) input,
:where(.manuel-outils, .manuel-portail) #rc-impression select,
#rc-impression:where(.manuel-outils, .manuel-portail) select,
:where(.manuel-outils, .manuel-portail) #rc-impression textarea,
#rc-impression:where(.manuel-outils, .manuel-portail) textarea { display: none !important; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .bloc,
#rc-impression:where(.manuel-outils, .manuel-portail) .bloc,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-impression-document,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-impression-document { margin: 0; padding: 0; max-width: none; border: 0; box-shadow: none; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .planche,
:where(.manuel-outils, .manuel-portail) #rc-impression .ft-planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-planche {
    width: 100% !important; max-width: 100%; margin: 0; border-radius: 0;
    break-inside: auto; box-shadow: none; font-size: 9pt;
  }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ligne-planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .ligne-planche,
:where(.manuel-outils, .manuel-portail) #rc-impression .ligne-sourate,
#rc-impression:where(.manuel-outils, .manuel-portail) .ligne-sourate,
:where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance {
    break-inside: avoid; box-shadow: none; min-height: 0; max-height: none; overflow: visible;
  }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ligne-planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .ligne-planche { padding: 2mm; font-size: 8pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance { padding: 3mm; font-size: 9pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance .pl-titre-fr,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-titre-fr { font-size: 11pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance .pl-arabe,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-arabe { font-size: 16pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance .pl-meta,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta { padding-top: 2mm; font-size: 8pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .fiche-sourate-correspondance .pl-meta > span,
#rc-impression:where(.manuel-outils, .manuel-portail) .fiche-sourate-correspondance .pl-meta > span { min-height: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .pl-corps,
#rc-impression:where(.manuel-outils, .manuel-portail) .pl-corps { min-height: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .pl-titre-fr,
#rc-impression:where(.manuel-outils, .manuel-portail) .pl-titre-fr,
:where(.manuel-outils, .manuel-portail) #rc-impression .pl-arabe,
#rc-impression:where(.manuel-outils, .manuel-portail) .pl-arabe,
:where(.manuel-outils, .manuel-portail) #rc-impression .pl-translit,
#rc-impression:where(.manuel-outils, .manuel-portail) .pl-translit {
    max-height: none; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset;
  }
  :where(.manuel-outils, .manuel-portail) #rc-impression .nombre-lien,
#rc-impression:where(.manuel-outils, .manuel-portail) .nombre-lien,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-lien-sourate,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-lien-sourate { cursor: default; min-height: 0; min-width: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-defilement,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-defilement,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-schema-defilement,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille-cadre,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille-cadre {
    max-width: 100%; max-height: none !important; overflow: visible !important; padding: 0;
  }
  /* Les grands ensembles se poursuivent sur la page suivante. Seules leurs
   * unités de lecture (carte, chaîne, ligne) restent indivisibles. */
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-canevas,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-canevas,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-colonnes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-colonnes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-gauche,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-gauche,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-droite,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-droite,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-colonne,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-colonne,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-correspondances-colonnes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonnes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-correspondances-colonne,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-correspondances-colonne,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-correspondances-supplements,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-correspondances-supplements,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-groupes-versets,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-groupes-versets,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-signatures-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-signatures-groupes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-signatures-liste,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-signatures-liste,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-parcours-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-parcours-groupes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-parcours-chaines-liste,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-parcours-chaines-liste,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-lettres-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-lettres-groupes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-elements-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-elements-groupes { display: block; min-width: 0; grid-template-rows: none; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-chaines-bloc,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-chaines-bloc,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-section,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-section,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-lettre-groupe,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-element-groupe,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-element-groupe,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-signature-carte,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-signature-carte,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-groupe-versets,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-groupe-versets,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-parcours-orbite,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-famille,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-famille,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-correspondance,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-correspondance,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-reciprocites,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-reciprocites { break-inside: auto; margin-bottom: 4mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-colonne,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-colonne { grid-row: auto; border-inline-start: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-signatures-isoles,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-signatures-isoles { width: 100%; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-chaine,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-chaine { break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-chaine-resume,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-chaine-resume { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-chaine-resume-etape,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-etape { padding: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-chaine-resume-etape:not(:last-child)::after,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-chaine-resume-etape:not(:last-child)::after { content: "→"; top: 50%; left: auto; bottom: auto; right: -4mm; transform: translateY(-50%); font-size: 10pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rc-parcours-orbite-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-parcours-orbite-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-lettres-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-lettres-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-elements-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-elements-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-groupe-sourates,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-groupe-sourates,
:where(.manuel-outils, .manuel-portail) #rc-impression .rc-signature-membres,
#rc-impression:where(.manuel-outils, .manuel-portail) .rc-signature-membres,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-lettre-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-lettre-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .rcp-element-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-element-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcp-lettre-groupe .rcp-titre-section,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcp-lettre-groupe .rcp-titre-section { min-height: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-orbite,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-orbite { break-before: auto; break-inside: auto; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-schema,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-schema { break-inside: avoid; margin-block: 4mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-schema-defilement,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-schema-defilement { height: auto !important; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-schema-support,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-schema-support { position: relative; overflow: visible; max-width: 100%; margin-inline: auto; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-schema-canevas,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-schema-canevas { position: absolute; transform-origin: top left; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-disposition,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-disposition { display: block; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-cartes { display: block; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .rcpo-carte,
#rc-impression:where(.manuel-outils, .manuel-portail) .rcpo-carte { break-inside: avoid; }
  /* Une maison peut occuper plusieurs pages ; chaque lecture et inventaire
   * reste lisible sans étirer les blocs à la hauteur de la planche entière. */
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-corps-planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-corps-planche,
:where(.manuel-outils, .manuel-portail) #rc-impression .ft-groupes,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-groupes,
:where(.manuel-outils, .manuel-portail) #rc-impression .ft-cartes,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-cartes,
:where(.manuel-outils, .manuel-portail) #rc-impression .ft-pied-planche,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-pied-planche { display: block; height: auto; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-groupe,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-groupe { display: block; break-inside: auto; padding: 3mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-activation,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-activation { break-inside: avoid; margin-bottom: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression [data-rc-impression-id="ft-lettres"],
#rc-impression:where(.manuel-outils, .manuel-portail) [data-rc-impression-id="ft-lettres"] { display: block; border-top: 1px solid #897451; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-inventaire,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-inventaire { break-inside: avoid; padding: 3mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-inventaire + .ft-inventaire,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-inventaire + .ft-inventaire { border-left: 0; border-top: 1px solid #897451; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-pied-planche > section,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-pied-planche > section { padding: 3mm; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-pied-planche > section + section,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-pied-planche > section + section { border-left: 0; border-top: 1px solid #897451; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-progression,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-progression { display: flex; flex-wrap: wrap; gap: 2mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-progression-annotee,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-progression-annotee { display: block; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .ft-listes-lettres,
#rc-impression:where(.manuel-outils, .manuel-portail) .ft-listes-lettres { display: block; }
  /* Les deux grilles d'un grand carré sont des unités séparées : chaque
   * grille 9 × 9 tient sur une page avec ses neuf colonnes intégrales. */
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-grilles,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grilles,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grilles[data-ordre="5"],
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grilles[data-ordre="5"] {
    display: block; padding: 4mm; max-width: 100%;
  }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille-cadre,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille-cadre { margin-bottom: 5mm; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille { min-width: 0 !important; max-width: 100%; width: 100%; margin: 0 0 5mm; break-inside: avoid; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille td,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille td,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille-cadre .cam-grille td,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille td { height: 15mm; padding: 1mm; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille-nombres,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille-nombres,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille-cadre .cam-grille-nombres,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille-cadre .cam-grille-nombres { font-size: 20pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-lettre-arabe,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-lettre-arabe,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille .cam-lettre-arabe,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille .cam-lettre-arabe { font-size: 21pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-lettre-nom,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-lettre-nom,
:where(.manuel-outils, .manuel-portail) #rc-impression .cam-grille .cam-lettre-nom,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-grille .cam-lettre-nom { font-size: 7pt; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-planche .nombre-lien,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-planche .nombre-lien { min-width: 0; min-height: 0; }
  :where(.manuel-outils, .manuel-portail) #rc-impression .cam-statistiques,
#rc-impression:where(.manuel-outils, .manuel-portail) .cam-statistiques { break-inside: avoid; }
}

/* Source Manuel : styles-navigation.css
 */

/* Navigation du site et accueil des calculateurs. */

:where(.manuel-outils, .manuel-portail) .entete,
.entete:where(.manuel-outils, .manuel-portail) { display: block; padding: .8rem clamp(1rem, 2.5vw, 2rem); }

:where(.manuel-outils, .manuel-portail) .entete-interieur,
.entete-interieur:where(.manuel-outils, .manuel-portail) {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 1rem 2rem; max-width: 1600px; margin-inline: auto;
}

:where(.manuel-outils, .manuel-portail) .entete .marque,
.entete:where(.manuel-outils, .manuel-portail) .marque { width: fit-content; padding: .25rem 0; text-decoration: none; }

:where(.manuel-outils, .manuel-portail) .entete .marque-titre,
.entete:where(.manuel-outils, .manuel-portail) .marque-titre { font-size: 1.45rem; white-space: nowrap; }

:where(.manuel-outils, .manuel-portail) .entete .marque-titre::after,
.entete:where(.manuel-outils, .manuel-portail) .marque-titre::after { width: 32px; margin-top: .35rem; }

:where(.manuel-outils, .manuel-portail) .entete .navigation,
.entete:where(.manuel-outils, .manuel-portail) .navigation { min-width: 0; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: .2rem; }

:where(.manuel-outils, .manuel-portail) .entete .lien-navigation,
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation {
  position: relative; min-height: 44px; padding: .7rem .65rem; border-radius: 8px;
  font-family: var(--pile-ui); font-size: .84rem; line-height: 1.3; text-align: center;
  border: 1px solid transparent; color: var(--encre); background: transparent;
}

:where(.manuel-outils, .manuel-portail) .entete .lien-navigation:hover,
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation:hover { border-color: var(--ligne); background: var(--creux); }

:where(.manuel-outils, .manuel-portail) .entete .lien-navigation[aria-current="page"],
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation[aria-current="page"] {
  color: var(--or); background: color-mix(in srgb, var(--or) 9%, transparent);
  border-color: transparent; box-shadow: inset 0 -2px var(--or); font-weight: 650;
}

:where(.manuel-outils, .manuel-portail) .entete .lien-navigation[data-page="historique"],
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation[data-page="historique"] { margin-inline-start: .65rem; }

:where(.manuel-outils, .manuel-portail) .entete .lien-navigation[data-page="historique"],
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation[data-page="historique"],
:where(.manuel-outils, .manuel-portail) .entete .lien-navigation[data-page="parametres"],
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation[data-page="parametres"] { font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .entete .marque:focus-visible,
.entete:where(.manuel-outils, .manuel-portail) .marque:focus-visible,
:where(.manuel-outils, .manuel-portail) .entete .lien-navigation:focus-visible,
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation:focus-visible,
:where(.manuel-outils, .manuel-portail) .entete .bouton-menu:focus-visible,
.entete:where(.manuel-outils, .manuel-portail) .bouton-menu:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) { padding: 1.35rem 1.5rem 1rem; margin-bottom: 1rem; border-top: 3px solid var(--or); }

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete h1,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) h1 { font-size: clamp(1.8rem, 1.45rem + 1vw, 2.25rem); margin: 0 0 .4rem; }

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete > .aide,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) > .aide { max-width: none; margin: 0; font-size: .92rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .gematrie-selecteur-langues,
.gematrie-selecteur-langues:where(.manuel-outils, .manuel-portail) {
  grid-template-columns: repeat(4, minmax(0, .8fr)) minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: .4rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--ligne);
}

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue {
  min-height: 46px; padding: .65rem .6rem; border-radius: 8px; font-size: .88rem;
  line-height: 1.3; white-space: normal; color: var(--encre); border-color: transparent;
  background: transparent; box-shadow: none;
}

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-vue-outil,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-vue-outil { border-color: var(--ligne); font-size: .84rem; }

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue:hover:not(:disabled),
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue:hover:not(:disabled) { background: var(--creux); border-color: var(--ligne); }

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue[aria-selected="true"],
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"],
:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue[aria-selected="true"]:hover:not(:disabled),
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue[aria-selected="true"]:hover:not(:disabled) {
  color: var(--or); background: color-mix(in srgb, var(--or) 9%, transparent);
  border-color: var(--or); box-shadow: inset 0 -2px var(--or); filter: none;
}

:where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue:focus-visible,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

@media (max-width: 1100px) {
  :where(.manuel-outils, .manuel-portail) .entete-interieur,
.entete-interieur:where(.manuel-outils, .manuel-portail) { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  :where(.manuel-outils, .manuel-portail) .entete .bouton-menu,
.entete:where(.manuel-outils, .manuel-portail) .bouton-menu { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; }
  :where(.manuel-outils, .manuel-portail) .entete .navigation,
.entete:where(.manuel-outils, .manuel-portail) .navigation { display: none; grid-column: 1 / -1; width: 100%; }
  :where(.manuel-outils, .manuel-portail) .entete .navigation.navigation-ouverte,
.entete:where(.manuel-outils, .manuel-portail) .navigation.navigation-ouverte {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
    gap: .35rem; padding-top: .75rem; border-top: 1px solid var(--ligne);
  }
  :where(.manuel-outils, .manuel-portail) .entete .navigation .lien-navigation,
.entete:where(.manuel-outils, .manuel-portail) .navigation .lien-navigation { padding: .8rem; text-align: start; font-size: .9rem; }
  :where(.manuel-outils, .manuel-portail) .entete .lien-navigation[data-page="historique"],
.entete:where(.manuel-outils, .manuel-portail) .lien-navigation[data-page="historique"] { margin-inline-start: 0; }
}

@media (max-width: 700px) {
  :where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) { padding: 1.15rem 1rem .9rem; }
  :where(.manuel-outils, .manuel-portail) .gematrie-selecteur-langues,
.gematrie-selecteur-langues:where(.manuel-outils, .manuel-portail) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  :where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-langue { padding-inline: .3rem; font-size: .84rem; }
  :where(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-vue-outil,
.gematrie-unifiee-entete:where(.manuel-outils, .manuel-portail) .gematrie-vue-outil { grid-column: span 2; margin-top: .3rem; }
}

@media (max-width: 380px) {
  :where(.manuel-outils, .manuel-portail) .entete .navigation.navigation-ouverte,
.entete:where(.manuel-outils, .manuel-portail) .navigation.navigation-ouverte { grid-template-columns: 1fr; }
}

@media print {
  :where(.manuel-outils, .manuel-portail) .entete,
.entete:where(.manuel-outils, .manuel-portail) { display: none; }
}

/* Présentation G-MATRICE, indépendante des sources du Manuel.
 */

/* Les codes des nombres, des systèmes et des familles chimiques restent ceux
   du Manuel. Seule la palette d'interface reprend celle de G-MATRICE. */

.manuel-outils .fiche-profil-intro { max-width: none; width: 100%; }

.manuel-outils .fiche-element-informations { flex: 1 1 200px; min-width: 0; }

.manuel-outils .perio-correspondances-coraniques { margin-block: .75rem 0; }

.manuel-outils .perio-correspondances-coraniques p { margin-block: .3rem; }

/* Le titre de consultation est directement dans la ligne. Il doit garder
   la largeur de son texte, comme le titre imbriqué du mode d'édition. */

.manuel-outils .ft-planche .ft-activation > .pl-titre-fr {
  flex: 0 1 auto;
  font-size: inherit;
  line-height: inherit;
  font-weight: 750;
  font-style: italic;
}

/* Harmonise le sélecteur et la saisie sans modifier la police des nombres. */

.manuel-outils .conversion-champ :is(input, select) {
  min-height: 3.2rem;
}

.manuel-outils .conversion-champ select {
  -webkit-appearance: none;
  appearance: none;
  font: 500 1.0625rem/1.4 var(--pile-ui);
  padding: .7rem 2.4rem .7rem .85rem;
  background-color: var(--carte);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - .75rem) 50%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

:root :is(.manuel-outils, .manuel-portail) {
  --papier: var(--couleur-fond);
  --carte: var(--couleur-surface);
  --creux: var(--couleur-surface-douce);
  --encre: var(--couleur-texte);
  --encre-2: var(--couleur-texte-secondaire);
  --ligne: var(--couleur-bordure);
  --lapis: var(--couleur-accent);
  --lapis-fonce: var(--couleur-accent-fonce);
  --lapis-teinte: var(--couleur-surface-douce);
  --or: var(--couleur-accent);
  --focus: var(--couleur-focus);
  --sur-lapis: var(--couleur-sur-accent);
  --texte-sur-accent: var(--couleur-sur-accent);
  --pile-ui: var(--police-texte);
  --pile-titres: var(--police-titres);
  /* Cette police locale conserve les formes et les métriques arabes du Manuel. */
  --pile-arabe: 'Grimoire Naskh', var(--police-arabe);
  --rayon: var(--rayon-moyen);
  font-family: var(--pile-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--encre);
  -webkit-text-size-adjust: 100%;
}

.manuel-outils {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  background: var(--papier);
}

/* Le conteneur Astro gère déjà la gouttière et la largeur de page. */

.manuel-outils .vue {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.manuel-outils .bloc {
  border-radius: var(--rayon-moyen);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-block: 1.25rem;
}

.manuel-outils .vue > .bloc:first-child {
  margin-top: 0;
}

/* Seule la prose explicative est justifiée : les résultats, légendes courtes,
   commandes et versets conservent leur alignement propre. */

:is(.manuel-outils, .manuel-portail) :is(
  p.accueil-intro,
  p.aide,
  p.carte-classement-texte,
  p.rc-guide-liens,
  p.rc-note-evolutive,
  p.rc-signatures-intro,
  p.rcp-aide,
  p.rcp-note,
  p.rcpo-instruction,
  p.cm-introduction,
  p.cm-note-traduction,
  p.atelier-introduction,
  p.atelier-explication,
  p.atelier-aide,
  p.atlas-conseil,
  p.texte-justifie,
  .rc-comprendre > p,
  .rci-explication p,
  .rc-premiers-pas > p,
  .cm-aide-lettres > p,
  .cm-methode > p,
  .atlas-methode > p,
  .atelier-methode > p,
  .atelier-notice > p,
  .anagrammes-regles > p,
  .atelier-atlas > p:not([class]),
  .atelier-maisons > p:not([class]),
  .atelier-anagrammes > p:not([class]),
  .fiche-conventions-rangs p,
  .fiche-conventions-ecritures p
):not(:lang(ar), :lang(he), [dir='rtl'], [role='status'], [role='alert']) {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
  hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
  overflow-wrap: break-word;
}

.manuel-outils .manuel-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0 1rem;
}

/* Les nombres hébreux et grecs gardent la typographie des totaux arabes
   et français, malgré la remise à zéro font: inherit des boutons génériques. */

.manuel-outils .ghg-carte .ghg-total {
  font-family: var(--pile-ui);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

:where(.manuel-outils, .manuel-portail) :is(h1, h2, h3) {
  text-wrap: pretty;
  text-align: center;
}

/* Les noms des référentiels gardent la même présentation dans le catalogue,
   le document ouvert, ses raccourcis et la copie imprimée. */

.manuel-outils .carte-classement-titre,
.manuel-outils .rc-nav-document,
.manuel-outils #page-referentiels-coraniques > .bloc > h1,
#rc-impression.manuel-portail h1 {
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Toutes les pages d'outils partagent le titre G-MATRICE. Le nombre d'une
   fiche conserve ses couleurs de classification numérique. */

.manuel-outils .vue h1:not(.fiche-nombre),
.manuel-outils .rc-accueil-v8 > h1,
.manuel-outils #gematrie-titre,
.manuel-outils #page-correspondances-numeriques > .bloc > h1 {
  color: var(--couleur-accent);
  font-family: var(--pile-titres);
  font-size: var(--taille-titre-page);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Le texte utilise toute la largeur et se replie naturellement sur téléphone. */

.manuel-outils .rc-accueil-v8 > .accueil-intro {
  max-width: none;
  white-space: normal;
  text-wrap: wrap;
}

/* Le rang fréquentiel reste l'ordre du document et du clavier. La première
   lettre commence à droite ; les translittérations françaises restent LTR. */

.manuel-outils .cm-lettres {
  direction: rtl;
}

.manuel-outils .cm-lettre span {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Comme dans les fiches techniques, le nom de la lettre (Ba, Lam…) et sa
   graphie partagent la même graisse, à l’écran et à l’impression. */

:is(.manuel-outils, .manuel-portail) :is(
  .planche .pl-meta-item:has(> .pl-lettre),
  .planche .pl-lettre,
  .rcp-lettre-symbole,
  .rcp-lettre-nom,
  .rcp-planche-lettres .rcp-raccourci .texte-arabe,
  .cam-lettre-arabe,
  .cam-lettre-nom
) {
  font-weight: 700;
}

/* Les parcours et les deux présentations partagent les commandes des fiches
   techniques, dans tous les référentiels, y compris les documents indépendants. */

.manuel-outils :is(.rc-onglets, .rc-commutateur, .rc-choix-presentation, .rci-presentations) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.6rem;
  padding: 0.6rem;
  margin-block: 1.25rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--creux);
}

.manuel-outils :is(.rc-onglets, .rc-commutateur, .rc-choix-presentation, .rci-presentations) > button {
  flex: 1 1 10rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ligne);
  border-radius: var(--rayon-petit);
  color: var(--encre);
  background: var(--carte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.manuel-outils :is(.rc-onglets, .rc-commutateur, .rc-choix-presentation, .rci-presentations) > button:hover {
  border-color: var(--lapis);
}

:root .manuel-outils :is(.rc-onglets, .rc-commutateur, .rc-choix-presentation, .rci-presentations) > button:is([aria-selected='true'], [aria-pressed='true']) {
  color: var(--sur-lapis);
  background: var(--lapis);
  border-color: var(--lapis);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}

.manuel-outils :is(.rc-onglets, .rc-commutateur, .rc-choix-presentation, .rci-presentations) > button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Seuls les contrôles à fond uni utilisent le texte sur accent. Les onglets
   soulignés, les cartes numériques et les familles chimiques sont exclus. */

:root :is(.manuel-outils, .manuel-portail) :is(
  .bouton-principal,
  .bouton-mode-verset[aria-pressed='true'],
  .bouton-filtre[aria-pressed='true'],
  .refgem-vue-bouton[aria-pressed='true'],
  .corres-vue-bouton[aria-current='true'],
  .rc-choix-presentation .bouton[aria-pressed='true'],
  .bibliotheque-onglets .bouton[aria-selected='true'],
  .ghg-langue[aria-pressed='true'],
  .comparaison-interlangues-filtres .bouton[aria-pressed='true'],
  .cm-portee[aria-pressed='true'],
  .cm-mode[aria-pressed='true'],
  .cm-inventaire[aria-pressed='true'],
  .cm-lettre[aria-pressed='true'],
  .cm-page-numero[aria-current='page'],
  .navigation-recherche-coran [aria-selected='true'],
  .recherche-coran-pages-numeros [aria-current='page']
) {
  background: var(--couleur-accent);
  border-color: var(--couleur-accent);
  color: var(--couleur-sur-accent);
}

/* Ces trois contrôles possèdent aussi des règles de survol spécifiques dans
   le thème sombre du Manuel ; conserver la même paire fond/texte au survol. */

:root :is(.manuel-outils, .manuel-portail) :is(
  .bouton-principal,
  .bouton.bouton-mode-verset[aria-pressed='true'],
  .ghg-langue[aria-pressed='true'],
  .comparaison-interlangues-filtres .bouton[aria-pressed='true']
):hover:not(:disabled) {
  color: var(--couleur-sur-accent);
}

/* Le sélecteur de langue du Manuel utilise au contraire un fond légèrement
   teinté : garder son texte doré, y compris dans le thème sombre. */

:root :is(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue[aria-selected='true'],
:root :is(.manuel-outils, .manuel-portail) .gematrie-unifiee-entete .gematrie-langue[aria-selected='true']:hover:not(:disabled) {
  background: color-mix(in srgb, var(--or) 9%, transparent);
  color: var(--or);
}

/* Les fenêtres doivent couvrir aussi le bandeau fixe du site. Aucun contexte
   d'empilement n'est créé sur le conteneur des outils. */

.manuel-outils .voile,
.manuel-portail.voile {
  z-index: 300;
}

/* Les tables conservent leurs 18 colonnes et leur défilement tactile natif. */

.manuel-outils .perio-defilement {
  overscroll-behavior-inline: contain;
}

@media (max-width: 560px) {
  .manuel-outils .bloc {
    padding: 0.85rem;
    margin-block: 1rem;
  }
}

@media print {
  #rc-impression.manuel-portail {
    page: manuel-referentiels;
  }
  body.mode-impression-referentiels,
  body.mode-impression-01a {
    display: block;
    min-height: 0;
  }
}

/* Les propriétés d’un élément restent lisibles sur téléphone. */

.manuel-outils .perio-detail { scroll-margin-block-start: 8rem; }

.manuel-outils .perio-detail-section {
  margin: 1.3rem 0 .65rem;
  padding-block-end: .4rem;
  border-bottom: 1px solid var(--bordure, #7c715a);
}

.manuel-outils .perio-detail-informations { min-width: 0; }

.manuel-outils .perio-detail-ligne { overflow-wrap: anywhere; }

.manuel-outils .perio-configuration { line-height: 1.8; }

.manuel-outils .perio-configuration > span { white-space: nowrap; }

.manuel-outils .perio-detail-sources { line-height: 1.8; }

.manuel-outils .perio-detail-precision { max-width: 75ch; }

/* Une référence se déplie dans la fiche : le texte arabe garde sa direction,
   tandis que les chemins numériques restent lisibles de gauche à droite. */

.manuel-outils .fiche-versets-nombre {
  min-width: 0;
}

.manuel-outils .fiche-versets-explication {
  margin-block: 0 1rem;
  color: var(--encre-2);
  overflow-wrap: break-word;
}

.manuel-outils .fiche-versets-details {
  padding: 0;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  background: var(--creux);
}

.manuel-outils .fiche-versets-details[open] {
  padding-bottom: 0;
}

.manuel-outils .fiche-versets-details > .aide {
  margin: 0 1rem 1rem;
  overflow-wrap: break-word;
}

.manuel-outils :is(.fiche-versets-details, .fiche-verset-reference) > summary {
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  color: var(--encre);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.manuel-outils :is(.fiche-versets-details, .fiche-verset-reference) > summary::marker {
  color: var(--or);
}

.manuel-outils :is(.fiche-versets-details, .fiche-verset-reference) > summary:hover {
  color: var(--or);
}

.manuel-outils :is(.fiche-versets-details, .fiche-verset-reference) > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--rayon-petit);
}

.manuel-outils .fiche-versets-groupe {
  min-width: 0;
  margin: 0 1rem 1rem;
}

.manuel-outils .fiche-versets-groupe > h3 {
  margin-block: 1.25rem 0.75rem;
  font-family: var(--pile-ui);
  font-size: 1.05rem;
  text-align: start;
  text-transform: none;
}

.manuel-outils .fiche-verset-reference {
  min-width: 0;
  margin-block: 0.65rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  background: var(--carte);
}

.manuel-outils .fiche-verset-chemin {
  margin: 0 1rem 0.75rem;
  color: var(--encre-2);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.manuel-outils .fiche-verset-texte {
  margin: 0.75rem 1rem 1.25rem;
  font-family: var(--pile-arabe);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  line-height: 2.1;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: start;
  overflow-wrap: break-word;
}

@media (max-width: 560px) {
  .manuel-outils .fiche-versets-groupe {
    margin-inline: 0.65rem;
  }

  .manuel-outils :is(.fiche-versets-details, .fiche-verset-reference) > summary {
    padding-inline: 0.65rem;
  }

  .manuel-outils :is(.fiche-verset-chemin, .fiche-verset-texte) {
    margin-inline: 0.65rem;
  }
}

/* La planche garde trois groupes de 38 paires ; les colonnes se replient
   sans déplacer une ligne hors de sa paire. Écran et copie imprimée. */

:where(.manuel-outils, .manuel-portail) .rc-combinaison-planche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-colonne {
  min-width: 0;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-colonne-titre {
  margin: 0 0 .8rem;
  padding: .7rem;
  font-size: 1.05rem;
  color: var(--planche-encre);
  border-block-end: 2px solid var(--planche-filet);
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-paire {
  margin-block-end: .8rem;
  border: 1px solid var(--planche-filet);
  border-radius: .65rem;
  overflow: hidden;
  background: #fffaf0;
  break-inside: avoid;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-lecture {
  padding: .65rem .8rem;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-lecture + .rc-combinaison-lecture {
  border-block-start: 1px dashed var(--planche-filet);
  background: color-mix(in srgb, var(--planche-encre) 4%, #fffaf0);
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-role {
  margin: 0 0 .35rem;
  color: var(--planche-secondaire);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .ligne-planche {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--planche-encre);
  box-shadow: none;
  font-size: .85rem;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-entete,
:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-corps,
:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .45rem;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-rang {
  flex-basis: 100%;
  font-size: .78rem;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-titre-fr {
  min-width: 0;
  overflow-wrap: anywhere;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-contenu .pl-arabe {
  font-size: 1.15rem;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-resume {
  margin-block: 0 1rem;
  color: var(--encre-2);
  text-align: center;
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-liste .rc-combinaison-paire {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

:where(.manuel-outils, .manuel-portail) .rc-combinaison-paire-titre {
  grid-column: 1 / -1;
  margin: 0;
  padding: .6rem .8rem;
  border-block-end: 1px solid var(--planche-filet);
  color: var(--planche-encre);
  font-size: 1rem;
}

@media (min-width: 850px) {
  :where(.manuel-outils, .manuel-portail) .rc-combinaison-planche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(.manuel-outils, .manuel-portail) .rc-combinaison-liste .rc-combinaison-paire {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(.manuel-outils, .manuel-portail) .rc-combinaison-liste .rc-combinaison-lecture + .rc-combinaison-lecture {
    border-block-start: 0;
    border-inline-start: 1px dashed var(--planche-filet);
  }
}

@media (min-width: 1250px) {
  :where(.manuel-outils, .manuel-portail) .rc-combinaison-planche {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .manuel-portail .rc-combinaison-planche {
    display: block;
  }
  .manuel-portail .rc-combinaison-colonne {
    break-before: page;
  }
  .manuel-portail .rc-combinaison-colonne:first-child {
    break-before: auto;
  }
  .manuel-portail .rc-combinaison-paire {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block-end: .4rem;
  }
  .manuel-portail .rc-combinaison-lecture + .rc-combinaison-lecture {
    border-block-start: 0;
    border-inline-start: 1px dashed currentColor;
  }
}

.manuel-outils .ateliers-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block: 1rem 2rem;
  padding: .7rem;
  background: var(--creux);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.manuel-outils .ateliers-navigation[hidden] { display: none; }

.manuel-outils .ateliers-navigation .bouton { flex: 1 1 11rem; text-align: center; font-weight: 700; min-height: 3.25rem; display: grid; place-items: center; }

.manuel-outils .ateliers-navigation [aria-current="page"],
.manuel-outils .atelier .bouton[aria-pressed="true"],
.manuel-outils .atelier .atelier-principal {
  background: var(--lapis); color: var(--sur-lapis); border-color: var(--lapis);
}

.manuel-outils .atelier { max-width: 100%; min-width: 0; margin-block: 1.5rem; }

.manuel-outils .atelier [hidden] { display: none !important; }

.manuel-outils .atelier-surtitre { color: var(--or); font-weight: 700; letter-spacing: .08em; text-align: center; }

.manuel-outils .atelier-introduction { max-width: 65rem; margin: 1rem auto 2rem; text-align: center; }

.manuel-outils .atelier-formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: end; gap: 1.2rem; }

.manuel-outils form.atelier-formulaire { padding: clamp(1rem, 2vw, 1.5rem); background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); }

.manuel-outils .atelier-champ { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

.manuel-outils .atelier-champ label { font-weight: 700; }

.manuel-outils .atelier-champ :is(input, select, textarea) { width: 100%; min-width: 0; box-sizing: border-box; min-height: 3rem; padding: .55rem .7rem; color: var(--encre); background: var(--papier); border: 1px solid var(--ligne); border-radius: .5rem; }

.manuel-outils .atelier :is(input, select, textarea, button, a, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.manuel-outils .atelier .atelier-champ :disabled { opacity: .55; }

.manuel-outils .atelier :is(.atelier-aide, .atelier-filtres, .atelier-actions) { grid-column: 1 / -1; }

.manuel-outils .atelier-aide { margin: 0; color: var(--encre-2); }

.manuel-outils .atelier details > summary { cursor: pointer; font-weight: 700; padding-block: .75rem; }

.manuel-outils .atelier-filtres > div { margin-block: .5rem 1rem; }

.manuel-outils .atelier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.manuel-outils .atelier-statut { min-height: 1.6em; margin-block: 1rem; font-weight: 700; }

.manuel-outils .atelier-resultats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-block: 1.5rem; }

.manuel-outils .atelier-carte { padding: 1.2rem; min-width: 0; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--carte); overflow-wrap: anywhere; }

.manuel-outils .atelier-carte h3[lang="ar"] { font: 2rem/1.8 var(--pile-arabe); color: var(--or); margin: 0; }

.manuel-outils .atelier [lang="ar"] { font-family: var(--pile-arabe); }

.manuel-outils .atelier-verset { font-size: 1.4rem; line-height: 2; overflow-wrap: anywhere; }

.manuel-outils .atelier-reference { font-weight: 700; margin-block-end: .25rem; }

.manuel-outils .atelier-notice { margin-block: 2rem; border-top: 1px solid var(--ligne); padding-block: .75rem; color: var(--encre-2); }

.manuel-outils .atelier pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }

.manuel-outils .atelier .bouton { min-height: 2.75rem; max-width: 100%; white-space: normal; }

.manuel-outils .atelier-lettres { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }

.manuel-outils .atelier-lettres [lang="ar"] { font-size: 1.8rem; }

.manuel-outils .atelier-resume { margin-block: 1rem; }

@media (min-width: 900px) {
  .manuel-outils .atelier-recherche > .atelier-formulaire { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .manuel-outils .ateliers-navigation { padding: .5rem; gap: .5rem; }
  .manuel-outils .ateliers-navigation .bouton { flex-basis: 100%; }
  .manuel-outils .atelier-actions .bouton { flex: 1 1 100%; }
}

@media print {
  .manuel-outils .ateliers-navigation, .manuel-outils .atelier .atelier-actions { display: none; }
  .manuel-outils .atelier-carte { break-inside: avoid; }
}

.manuel-outils :is(#ga-titres-coran, #ga-recherche-coran, #ga-lettres-versets-coran, #ga-rang-verset-coran, #ga-distance-coran) > h2,
.manuel-outils #ga-mots-coran h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 850;
  color: var(--or, #d9b66f);
  line-height: 1.25;
  margin-block: .5rem 1.25rem;
}

.manuel-outils .coran-distance-formulaire,
.manuel-outils .coran-distance-resultats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.manuel-outils .coran-distance-formulaire fieldset {
  display: grid;
  grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--bordure, #837960);
  border-radius: .6rem;
  padding: 1rem;
}

.manuel-outils .coran-distance-formulaire :is(input, select) { min-width: 0; width: 100%; }

.manuel-outils .coran-distance-formulaire > button { justify-self: start; grid-column: 1 / -1; }

.manuel-outils .coran-distance-carte { padding: 1rem; border: 1px solid var(--bordure, #837960); border-radius: .6rem; }

.manuel-outils .coran-distance-total { font-size: 1.35rem; font-weight: 800; }

.manuel-outils .rc-fiche .fiche-ligne {
  display: grid;
  grid-template-columns: minmax(9rem, 10.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.manuel-outils .rc-fiche .fiche-ligne > :last-child { justify-self: start; text-align: start; }

/* Annuler la marge automatique du Manuel sur les valeurs codex et versets. */

#rc-voile .rc-fiche .fiche-ligne > .rc-nombre-lien {
  margin-left: 0;
  padding-inline: 0;
  text-align: start;
}

@media (max-width: 640px) {
  .manuel-outils .coran-distance-formulaire,
  .manuel-outils .coran-distance-resultats { grid-template-columns: 1fr; }
  .manuel-outils .rc-fiche .fiche-ligne { grid-template-columns: minmax(7rem, 8rem) minmax(0, 1fr); gap: .6rem; }
}

/* Le rappel reste près de l'onglet, dans la fenêtre visible, sans remonter
   au sommet du document ni masquer sa commande de fermeture. */

.manuel-outils .alphabet-panneau {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-height: min(42rem, calc(100vh - 2rem));
  max-height: min(42rem, calc(100dvh - 2rem));
  border-block: 1px solid var(--ligne);
  border-radius: .75rem 0 0 .75rem;
}

.manuel-outils .alphabet-entete { position: sticky; top: -12px; padding-block: .5rem; background: var(--carte); z-index: 1; }

.manuel-outils .alphabet-panneau[hidden] { display: none !important; }

.manuel-outils :is(.kazimirski-pilote, .kazimirski-comparaison) {
  margin-block: .85rem; padding: .75rem 1rem; min-width: 0;
  border: 1px solid var(--ligne); border-radius: .65rem; background: var(--carte);
  text-align: start;
}

.manuel-outils :is(.kazimirski-pilote, .kazimirski-comparaison) summary { cursor: pointer; font-weight: 700; color: var(--or); }

.manuel-outils :is(.kazimirski-pilote, .kazimirski-comparaison) :is(p, blockquote) { max-width: none; margin-block: .55rem; font-size: .95rem; line-height: 1.65; white-space: pre-line; }

.manuel-outils .kazimirski-lectures { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.manuel-outils .kazimirski-pilote .kazimirski-lectures { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.manuel-outils .kazimirski-lectures > section { min-width: 0; padding-inline-start: .8rem; border-inline-start: 2px solid var(--ligne); }

.manuel-outils .kazimirski-lectures h5 { font: 700 .95rem/1.45 var(--pile-ui); margin-block: .5rem; text-align: start; }

.manuel-outils :is(.kazimirski-pilote, .kazimirski-comparaison) h4 { font: 700 1rem/1.5 var(--pile-ui); text-align: start; margin-block: .9rem; }

.manuel-outils .kazimirski-lectures blockquote { margin-inline: 0; padding: 0; border: 0; font-style: normal; }

.manuel-outils .kazimirski-arabe { font: 1.5rem/1.8 var(--pile-arabe); }

.manuel-outils :is(.kazimirski-pilote, .kazimirski-comparaison) :is(.kazimirski-note, .kazimirski-source, .kazimirski-portee) { font-size: .82rem; color: var(--encre-2); }

.manuel-outils .kazimirski-portee { padding-block-start: .5rem; border-block-start: 1px solid var(--ligne); }

.manuel-outils .kazimirski-source a { overflow-wrap: anywhere; }

.manuel-outils .kazimirski-pilote label { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-block: .8rem; }

.manuel-outils .kazimirski-pilote select { max-width: 100%; font-family: var(--pile-arabe); font-size: 1.15rem; }

.manuel-outils .kazimirski-pilote input[type="search"] { min-width: 0; width: 100%; max-width: 30rem; font: inherit; }

@media (max-width: 850px) { .manuel-outils .kazimirski-pilote .kazimirski-lectures { grid-template-columns: 1fr; gap: .6rem; } }

.manuel-outils .atelier-anagrammes .anagrammes-introduction { max-width: none; margin-inline: 0; line-height: 1.7; text-align: start; }

.manuel-outils .atelier-anagrammes summary { cursor: pointer; font-weight: 700; }

.manuel-outils .atelier-anagrammes .atelier-formulaire { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }

.manuel-outils .atelier-anagrammes .atelier-formulaire > .atelier-champ:first-child { grid-column: 1 / -1; }

.manuel-outils .atelier-anagrammes .atelier-formulaire > .atelier-champ > label { min-height: 3em; line-height: 1.5; display: flex; align-items: end; }

.manuel-outils .atelier-anagrammes .atelier-formulaire > .atelier-champ:first-child > label { min-height: 0; }

.manuel-outils .atelier-anagrammes .atelier-formulaire > .recherche-lecture-aide { grid-column: 1 / -1; margin: 0; }

.manuel-outils .atelier-anagrammes .anagrammes-avec-classement > .anagrammes-filtre { grid-column: 1 / -1; }

.manuel-outils .atelier-anagrammes .atelier-champ :is(input, select) { font-family: var(--pile-ui); font-size: 1.2rem; }

.manuel-outils .atelier-anagrammes .atelier-champ select { height: 3.5rem; min-height: 3.5rem; max-width: 100%; }

.manuel-outils #anagrammes-filtre { font-family: var(--pile-arabe); font-size: 1.4rem; height: 3.5rem; min-height: 3.5rem; }

.manuel-outils #anagrammes-filtre::placeholder { font: inherit; }

.manuel-outils #anagrammes-saisie {
  font-family: var(--pile-arabe);
  font-size: clamp(2rem, 1.8rem + .8vw, 2.4rem);
  line-height: 1.8;
  min-height: 4.8rem;
}

.manuel-outils #anagrammes-saisie::placeholder { font: inherit; }

.manuel-outils .anagrammes-alphabet { margin-block: 1rem; padding: clamp(.85rem, 2vw, 1.2rem); border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--carte); }

.manuel-outils .anagrammes-alphabet h2 { margin: 0 0 .6rem; color: var(--or); font-size: 1.25rem; text-align: start; }

.manuel-outils .anagrammes-alphabet p { max-width: 80ch; line-height: 1.7; }

.manuel-outils .anagrammes-lettres { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.3rem, 1fr)); gap: .45rem; margin-block: .8rem; }

.manuel-outils .anagrammes-lettre { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-width: 0; min-height: 5.6rem; padding: .6rem .4rem .4rem; background: var(--creux); border: 1px solid var(--ligne); }

.manuel-outils .anagrammes-lettre b { font-family: var(--pile-arabe); font-size: 2rem; line-height: 1.4; }

.manuel-outils .anagrammes-lettre-nom { font-size: .75rem; direction: ltr; }

.manuel-outils .anagrammes-lettre-rang { position: absolute; top: .2rem; left: .35rem; font-size: .66rem; color: var(--encre-2); }

.manuel-outils .anagrammes-lettres-complement { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }

.manuel-outils .anagrammes-lettres-complement .anagrammes-lettre { flex: 0 0 4.3rem; }

.manuel-outils .anagrammes-lettres-complement p { flex: 1 1 18rem; min-width: 0; margin: 0; font-size: .9rem; color: var(--encre-2); }

.manuel-outils .anagrammes-inventaire { line-height: 1.8; overflow-wrap: anywhere; }

.manuel-outils .anagrammes-inventaire bdi { font-size: 1.5rem; }

.manuel-outils .anagrammes-mot { font-size: 2.2rem; text-align: center; margin-block: .3rem .7rem; }

.manuel-outils .anagrammes-lecture { white-space: pre-line; font-weight: 600; }

.manuel-outils .anagrammes-references { margin-block-start: 1rem; }

.manuel-outils .anagrammes-references > summary { min-height: 2.5rem; }

.manuel-outils .anagrammes-reference { margin-block: 1rem; border-top: 1px solid var(--ligne, #82785e); }

.manuel-outils .anagrammes-reference h4 { margin-block-end: .35rem; }

.manuel-outils .anagrammes-verset { font-size: 1.45rem; line-height: 2.2; overflow-wrap: anywhere; }

.manuel-outils .anagrammes-notice { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }

.manuel-outils .anagrammes-racines-mot { margin-block: 1.2rem; padding: 1rem; border: 1px solid var(--ligne, #82785e); border-radius: .8rem; }

.manuel-outils .anagrammes-racines-mot bdi { font-size: 1.6rem; }

.manuel-outils .anagrammes-racines-mot .bouton { margin-block: .3rem; }

.manuel-outils .anagrammes-famille > details { margin-block-start: 1rem; }

.manuel-outils .anagrammes-forme { padding-block: 1rem; border-bottom: 1px solid var(--ligne, #82785e); }

.manuel-outils .anagrammes-forme:last-child { border-bottom: 0; }

.manuel-outils .anagrammes-famille a { overflow-wrap: anywhere; }

.manuel-outils .anagrammes-famille summary { padding-block: .5rem; }

.manuel-outils .anagrammes-graphie { margin-block: 1rem; padding: .75rem; background: var(--surface, rgba(255, 255, 255, .035)); border-inline-start: 2px solid var(--ligne, #82785e); border-radius: .3rem; }

.manuel-outils .anagrammes-graphie .anagrammes-mot { font-size: 1.9rem; line-height: 1.9; }

.manuel-outils .anagrammes-legende { font-size: .9rem; }

.manuel-outils .atelier-anagrammes [hidden] { display: none !important; }

@media (max-width: 1100px) { .manuel-outils .atelier-anagrammes .atelier-formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) {
  .manuel-outils .atelier-anagrammes .atelier-formulaire { grid-template-columns: minmax(0, 1fr); }
  .manuel-outils .atelier-anagrammes .atelier-formulaire > .atelier-champ > label { min-height: 0; }
}

/* Les règles propres au comparateur complètent les composants des ateliers. */

.manuel-outils .atelier-maisons .am-comparaison-lettres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.25rem; }

.manuel-outils .atelier-maisons .am-inventaire { min-width: 0; }

.manuel-outils .atelier-maisons .am-lettres { display: flex; flex-wrap: wrap; gap: .65rem 1rem; justify-content: flex-start; }

.manuel-outils .atelier-maisons .am-lettre { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; }

.manuel-outils .atelier-maisons .am-lettre bdi { font-size: 2rem; line-height: 1.6; }

.manuel-outils .atelier-maisons .am-lettre > span { font-size: .8rem; }

.manuel-outils .atelier-maisons .am-groupes { margin-block: 1rem; }

.manuel-outils .atelier-maisons .am-groupes .bouton { flex: 1 1 12rem; }

.manuel-outils .atelier-maisons .am-mot { min-width: 0; overflow-wrap: anywhere; }

.manuel-outils .atelier-maisons .am-mot-arabe { font-size: 2rem; margin-top: 0; }

.manuel-outils .atelier-maisons .am-lecture { font-weight: 700; white-space: pre-line; }

.manuel-outils .atelier-maisons .am-source { font-size: .8rem; opacity: .8; }

.manuel-outils .atelier-maisons .am-calcul { font-size: .9rem; }

.manuel-outils .atelier-maisons .am-references { margin-top: 1rem; }

.manuel-outils .atelier-maisons .am-references-liste { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .75rem; }

.manuel-outils .atelier-maisons .am-references .bouton { min-height: 2.75rem; padding: .4rem .65rem; font-size: .9rem; }

.manuel-outils .atelier-maisons .am-verset { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--bordure, #80755b); }

.manuel-outils .atelier-maisons .am-texte-arabe { font-size: 1.35rem; line-height: 2; }

.manuel-outils .atelier-maisons .am-pagination { margin-block: 1rem; }

.manuel-outils .atelier-maisons .am-aucun-resultat { grid-column: 1 / -1; }

@media (max-width: 760px) { .manuel-outils .atelier-maisons .am-comparaison-lettres { grid-template-columns: 1fr; } }

.manuel-outils .atelier-atlas { min-width: 0; max-width: 100%; }

.manuel-outils .atelier-atlas [hidden] { display: none !important; }

.manuel-outils .atelier-atlas .atelier-champ select {
  font-family: var(--pile-ui);
  font-size: 1.25rem;
  line-height: 1.4;
  min-height: 3.25rem;
  padding: .65rem .8rem;
}

.manuel-outils .atelier-atlas .atlas-titre-frequences {
  color: var(--or);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: start;
  padding-block-end: .65rem;
  border-block-end: 2px solid var(--or);
}

.manuel-outils .atlas-defilement,
.manuel-outils .atlas-detail-defilement {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.manuel-outils .atlas-defilement { max-height: 36rem; }

.manuel-outils .atlas-detail-defilement { max-height: 30rem; }

.manuel-outils .atlas-defilement:focus-visible,
.manuel-outils .atlas-detail-defilement:focus-visible,
.manuel-outils .atlas-grille button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.manuel-outils .atlas-grille,
.manuel-outils .atlas-detail-table {
  border-collapse: separate;
  border-spacing: 2px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.manuel-outils .atlas-grille { width: max-content; min-width: 100%; }

.manuel-outils .atlas-grille caption,
.manuel-outils .atlas-detail-table caption {
  text-align: start;
  padding: .8rem;
  color: var(--encre-2);
  font-size: .95rem;
}

.manuel-outils .atlas-grille :is(th, td) {
  box-sizing: border-box;
  min-width: 3.1rem;
  padding: .35rem;
  text-align: center;
  border: 0;
}

.manuel-outils .atlas-grille td { font-size: .9rem; }

.manuel-outils .atlas-grille thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--carte);
}

.manuel-outils .atlas-grille .atlas-sourate {
  position: sticky;
  right: 0;
  z-index: 1;
  width: 12rem;
  min-width: 12rem;
  max-width: 12rem;
  text-align: start;
  background: var(--carte);
  border-inline-end: 1px solid var(--ligne);
}

.manuel-outils .atlas-grille thead .atlas-sourate { z-index: 3; }

.manuel-outils .atlas-grille button {
  color: var(--encre);
  border: 1px solid var(--ligne);
  border-radius: .3rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: .3rem;
  background: var(--carte);
  white-space: normal;
  cursor: pointer;
}

.manuel-outils .atlas-grille .atlas-sourate button { text-align: start; font-size: .9rem; }

.manuel-outils .atlas-lettre { font-family: var(--pile-arabe); font-size: 1.7rem; }

.manuel-outils .atlas-grille button:hover { border-color: var(--or); text-decoration: underline; }

.manuel-outils .atlas-intensite-0 { background: var(--papier); color: var(--encre-2); }

.manuel-outils .atlas-intensite-1 { background: #eee5d2; color: #292419; }

.manuel-outils .atlas-intensite-2 { background: #dfc99c; color: #292419; }

.manuel-outils .atlas-intensite-3 { background: #c4a161; color: #241f17; }

.manuel-outils .atlas-intensite-4 { background: #906c30; color: #fff; }

.manuel-outils .atlas-intensite-5 { background: #654716; color: #fff; }

.manuel-outils .atlas-legende { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-block: 1rem; }

.manuel-outils .atlas-gammes { display: inline-flex; gap: .2rem; flex-shrink: 0; }

.manuel-outils .atlas-gammes > span { width: 1.5rem; height: 1.5rem; border: 1px solid var(--ligne); border-radius: .2rem; }

.manuel-outils .atlas-conseil { color: var(--encre-2); }

.manuel-outils .atlas-detail { margin-block: 1.5rem; }

.manuel-outils .atelier-atlas .atlas-titre-detail {
  color: var(--or);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  padding: .75rem 1rem;
  border-inline-start: .3rem solid var(--or);
  background: var(--creux);
  text-align: start;
}

.manuel-outils .atlas-detail-lettres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .6rem 1rem;
  padding: 0;
  margin: 0;
}

.manuel-outils .atlas-detail-lettres > div { border-bottom: 1px solid var(--ligne); padding: .5rem; text-align: center; }

.manuel-outils .atlas-detail-lettres dt { display: flex; flex-direction: column; align-items: center; gap: .2rem; }

.manuel-outils .atlas-detail-lettres dd { margin: .25rem 0; color: var(--encre-2); font-variant-numeric: tabular-nums; }

.manuel-outils .atlas-detail-table { width: 100%; }

.manuel-outils .atlas-detail-table :is(th, td) { padding: .6rem; text-align: start; }

.manuel-outils .atlas-detail-table thead th { position: sticky; top: 0; background: var(--carte); }

.manuel-outils .atlas-detail-table tbody th { font-weight: 400; }

.manuel-outils .atlas-detail-table tbody tr:nth-child(even) { background: var(--creux); }

.manuel-outils .atlas-methode { margin-block: 1.5rem; }

.manuel-outils .atlas-methode summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }

.manuel-outils .atlas-notice { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--pile-ui); font-size: .9rem; }

.manuel-outils .atlas-synthese { margin-block: 1.5rem 2rem; }

.manuel-outils .atlas-explication {
  border-inline-start: .25rem solid var(--or);
  padding: .5rem 1.25rem;
  margin-block: 1.25rem;
  background: var(--creux);
}

.manuel-outils .atlas-explication h3 { margin-top: .25rem; }

.manuel-outils .atlas-frequences-defilement {
  max-width: 100%;
  max-height: 29rem;
  overflow: auto;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.manuel-outils .atlas-frequences-defilement:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.manuel-outils .atlas-frequences-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.manuel-outils .atlas-frequences-table caption { padding: .75rem; text-align: start; color: var(--encre-2); }

.manuel-outils .atlas-frequences-table :is(th, td) {
  text-align: start;
  padding: .45rem .85rem;
  border: 0;
  border-bottom: 1px solid var(--ligne);
}

.manuel-outils .atlas-frequences-table thead th { position: sticky; top: 0; background: var(--carte); z-index: 1; }

.manuel-outils .atlas-frequences-table tbody th { font-weight: 600; }

.manuel-outils .atlas-frequences-table :is(th, td):nth-last-child(-n+2) { text-align: end; white-space: nowrap; }

.manuel-outils .atlas-frequences-table .atlas-rang-repere { background: var(--creux); }

.manuel-outils .atlas-rang-repere > :first-child { color: var(--or); font-weight: 800; }

.manuel-outils .atlas-frequences-table .atlas-lettre { display: inline-block; min-width: 1.5em; text-align: center; line-height: 1.25; }

@media (max-width: 40rem) {
  .manuel-outils .atlas-grille .atlas-sourate { width: 8rem; min-width: 8rem; max-width: 8rem; }
  .manuel-outils .atlas-detail-table :is(th, td) { padding: .5rem .35rem; font-size: .85rem; }
  .manuel-outils .atlas-frequences-table :is(th, td) { padding: .5rem .3rem; font-size: .8rem; }
  .manuel-outils .atlas-frequences-table .atlas-lettre { font-size: 1.4rem; min-width: 1em; }
  .manuel-outils .atlas-explication { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .manuel-outils .atelier-atlas { scroll-behavior: auto; }
}

/* Sélections éditoriales des douze maisons et de la gématrie. */

.manuel-outils .remarquables { padding: clamp(1rem, 2.5vw, 2rem); }

.manuel-outils .rc-selections-publiques { margin-block: 1.5rem 2rem; }

.manuel-outils .remarquables-catalogue { margin-block: .75rem; border: 1px solid var(--ligne); border-radius: 12px; }

.manuel-outils .remarquables-catalogue > summary { padding: 1rem; cursor: pointer; font-weight: 650; }

.manuel-outils .remarquables-intro { max-width: 72ch; color: var(--encre-2); line-height: 1.65; }

.manuel-outils .remarquables-edition { margin-block: 1.25rem; border: 1px solid var(--ligne); border-radius: 12px; padding: 1rem; }

.manuel-outils .remarquables-edition summary { cursor: pointer; font-weight: 650; }

.manuel-outils .remarquables-filtres { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }

.manuel-outils .remarquables-filtres label { display: flex; flex-direction: column; gap: .5rem; font-weight: 650; min-width: 0; }

.manuel-outils .remarquables-filtres input,
.manuel-outils .remarquables-filtres select { width: 100%; min-width: 0; min-height: 46px; }

.manuel-outils .remarquables-convention, .manuel-outils .remarquables-source { color: var(--encre-2); font-size: .9rem; line-height: 1.6; }

.manuel-outils .remarquables-statut { font-weight: 700; margin-block: 1.5rem 1rem; }

.manuel-outils .remarquables-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }

.manuel-outils .remarquables-carte, .manuel-outils .remarquables-vide { min-width: 0; border: 1px solid var(--ligne); border-radius: 16px; padding: clamp(1.1rem, 2vw, 1.75rem); background: var(--carte); overflow-wrap: anywhere; }

.manuel-outils .remarquables-vide { border-style: dashed; padding-block: 2rem; }

.manuel-outils .remarquables-carte h3, .manuel-outils .remarquables-vide h3 { margin-top: 0; color: var(--or); }

.manuel-outils .remarquables-carte .remarquables-mot { font-size: 2.4rem; text-align: start; }

.manuel-outils .remarquables-themes { font-size: .85rem; color: var(--or); font-weight: 650; }

.manuel-outils .remarquables-note { white-space: pre-line; line-height: 1.65; }

.manuel-outils .remarquables-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }

.manuel-outils .remarquables-valeur { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }

.manuel-outils .remarquables-valeur .bouton { font-weight: 800; font-size: 1.25rem; }

.manuel-outils .remarquables-gestion { margin-block: .75rem 1.25rem; }

.manuel-outils .remarquables-gestion > .bouton { margin: .35rem .5rem .35rem 0; }

.manuel-outils .remarquables-formulaire { display: grid; gap: .85rem; max-width: 48rem; margin-block: 1rem; }

.manuel-outils .remarquables-formulaire label { display: grid; gap: .4rem; font-weight: 650; min-width: 0; }

.manuel-outils .remarquables-formulaire input,
.manuel-outils .remarquables-formulaire select,
.manuel-outils .remarquables-formulaire textarea { width: 100%; min-width: 0; min-height: 46px; }

.manuel-outils .remarquables-saisie-arabe { font-size: 1.8rem; }

.manuel-outils .remarquables-formulaire textarea { min-height: 6rem; }

.manuel-outils .remarquables-action-directe { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1rem; }

.manuel-outils .remarquables-message { font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }

.manuel-outils .remarquables-action-directe[hidden],
.manuel-outils .remarquables-formulaire[hidden] { display: none; }

@media (max-width: 700px) { .manuel-outils .remarquables-filtres { grid-template-columns: 1fr; } }

/* Saisie française légèrement renforcée sans changer sa taille. */

.manuel-outils #gf-saisie {
  font-weight: 600;
}

/* Une taille explicite évite les petits menus natifs de Safari. La même
   hauteur accompagne l'étude, les titres, les recherches et les distances. */

.manuel-outils :is(#ga-ordre-calcul, #ga-decomposition-systeme),
.manuel-outils :is(#ga-outils-verset, #ga-titres-coran, #ga-recherche-unifiee, #ga-distance-coran) select,
.manuel-outils :is(#ga-recherche-unifiee, #ga-distance-coran) input[type='number'] {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 3.2rem;
  padding: .7rem .85rem;
  border: 1px solid var(--ligne);
  border-radius: .6rem;
  background-color: var(--carte);
  color: var(--encre);
  font: 500 1.0625rem/1.4 var(--pile-ui);
}

.manuel-outils :is(#ga-ordre-calcul, #ga-decomposition-systeme),
.manuel-outils :is(#ga-outils-verset, #ga-titres-coran, #ga-recherche-unifiee, #ga-distance-coran) select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - .75rem) 50%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

html[data-gm-sans-reperes] .manuel-outils :is(.carte-premier, .mini-premier,
  .legende-premier, .legende-polygonal, .legende-couleurs, .detail-premier, .profils-nombre-resume, .compteurs-reperes) {
  display: none !important;
}

/* Titres des étapes du calcul, de la bibliothèque et de la comparaison inter-langues. */

:where(.manuel-outils, .manuel-portail) h2.gm-titre-etape-gematrie,
:where(.manuel-outils, .manuel-portail) h2.gm-titre-bibliotheque-gematrie,
:where(.manuel-outils, .manuel-portail) :is(#cil-filtres-titre, #cil-correspondances-titre, #cil-saisies-titre) {
  font-size: clamp(1.3rem, 1.08rem + .7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--couleur-accent, #d8b66d);
  margin-block: 0 1.1rem;
  padding-block-end: .55rem;
  border-bottom: 2px solid currentColor;
  letter-spacing: .015em;
}

/* Titres de travail : conserver la hiérarchie et les fontes arabes des résultats. */

.manuel-outils .cm-composition > h2,
.manuel-outils .rc-comprendre > h2:first-of-type,
.manuel-outils .atelier-anagrammes > h2,
.manuel-outils .anagrammes-racines-mot > h2,
.manuel-outils .remarquables > h2,
.manuel-outils .racines-detail > h2 {
  color: var(--or, #d9b66f);
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  padding-block-end: .6rem;
  border-bottom: 2px solid var(--or, #d9b66f);
  overflow-wrap: anywhere;
}

.manuel-outils .cm-composition > h2,
.manuel-outils .rc-comprendre > h2:first-of-type {
  font-family: var(--pile-ui);
  font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.4rem);
  font-weight: 850;
  margin-block: 1rem 1.3rem;
}

/* Bibliothèque : champs lisibles aussi avec les contrôles natifs de Safari. */

.manuel-outils #bibliotheque-panneau-recherches .bibliotheque-recherches-introduction > p.accueil-intro {
  max-width: 65ch;
  margin-inline: auto;
  text-align: center;
  text-align-last: auto;
  hyphens: none;
}

.manuel-outils .bibliotheque-catalogue {
  font-size: 1.0625rem;
}

.manuel-outils .bibliotheque-catalogue .bibliotheque-champ label,
.manuel-outils .bibliotheque-catalogue .refgem-compteur {
  font-size: 1rem;
}

.manuel-outils .bibliotheque-catalogue .bibliotheque-champ :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid var(--ligne);
  border-radius: .5rem;
  background-color: var(--carte);
  color: var(--encre);
  font: 500 1.0625rem/1.4 var(--pile-ui);
  -webkit-appearance: none;
  appearance: none;
}

.manuel-outils .bibliotheque-catalogue .bibliotheque-champ select {
  padding-inline-end: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - .75rem) 50%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
}

.manuel-outils .bibliotheque-nombre-ligne .bouton {
  min-height: 3rem;
  font-size: 1rem;
}

.manuel-outils .bibliotheque-catalogue :is(.bibliotheque-nombre-aide,
  .bibliotheque-nombre-erreur, .bibliotheque-recherche-meta,
  .bibliotheque-recherche-date, .bibliotheque-recherche-source) {
  font-size: .95rem;
}

.manuel-outils .bibliotheque-catalogue .bibliotheque-vide {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.manuel-outils .bibliotheque-catalogue :is(.bibliotheque-portee, .bibliotheque-entree-langue) {
  font-size: .8rem;
}

.manuel-outils .alphabet-liste .gm-alphabet-touche {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--ligne);
  border-radius: .35rem;
  background: var(--carte);
  color: var(--encre);
  cursor: pointer;
}

.manuel-outils .alphabet-liste .gm-alphabet-touche:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.manuel-outils .fiche-permutations-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-block: 1rem;
  font-weight: 650;
}

.manuel-outils .fiche-permutations-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--or); }

.manuel-outils .fiche-permutations-compte { font-weight: 700; margin-block: 1rem; }

.manuel-outils .fiche-permutations-sous-titre { color: var(--or); font-weight: 750; font-size: 1.1rem; margin-block: 1.1rem .6rem; }

.manuel-outils .fiche-permutations-liste { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }

.manuel-outils .fiche-permutation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  min-height: 2.75rem;
  border: 1px solid var(--bordure);
  border-radius: .6rem;
  font-size: 1.1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.manuel-outils .fiche-permutation-avec-versets {
  padding: .65rem;
  border: 1px solid var(--bordure);
  border-radius: .6rem;
  max-width: min(100%, 22rem);
  min-width: 0;
}

.manuel-outils .fiche-permutation-precision { margin: .55rem 0 .2rem; font-size: .9rem; color: var(--encre-2); }

.manuel-outils .fiche-permutation-sourates { list-style: none; padding: 0; margin: 0; font-size: .95rem; line-height: 1.5; }

.manuel-outils .fiche-permutation-sourates li { margin-block: .2rem; overflow-wrap: anywhere; }

.manuel-outils .fiche-permutation-lien-sourate { color: inherit; text-align: start; }

.manuel-outils .fiche-permutations-pagination,
.manuel-outils .fiche-permutations-aller { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem; margin-block: 1rem; }

.manuel-outils .fiche-permutations-pagination [aria-current="page"] { background: var(--or); color: var(--fond); font-weight: 800; }

.manuel-outils .fiche-permutations-aller label { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

.manuel-outils .fiche-permutations-aller input { width: 10rem; max-width: 100%; }

.manuel-outils .fiche-zodiaques-liste { display: grid; gap: .8rem; list-style: none; padding: 0; }

.manuel-outils .fiche-zodiaques-entree { min-width: 0; padding: 1rem; border: 1px solid var(--ligne); border-radius: .6rem; background: var(--carte); }

.manuel-outils .fiche-zodiaques-entree p { margin: .35rem 0; overflow-wrap: anywhere; }

.manuel-outils .fiche-zodiaques-signature { font-weight: 700; line-height: 1.8; }

.manuel-outils .fiche-zodiaques-ecriture { color: var(--encre-2); font-size: .88rem; }

.manuel-outils .fiche-zodiaques-lien-sourate { color: inherit; }

.manuel-outils .fiche-zodiaques-references { margin-top: .65rem; }

.manuel-outils .fiche-zodiaques-references summary { cursor: pointer; padding-block: .5rem; }

.manuel-outils .fiche-zodiaques-references summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Les explications partagent le papier des planches, dans les deux thèmes.
   Seules les couleurs d'interface changent : les classes des nombres gardent
   la palette claire et les distinctions déjà utilisées sur les planches. */

:where(.manuel-outils, .manuel-portail) .rc-comprendre {
  --papier: #f8f2e0;
  --carte: #fffaf0;
  --creux: #f0e7d0;
  --encre: #201c12;
  --encre-2: #5f5748;
  --ligne: rgba(32, 28, 18, .3);
  --lapis: #76551d;
  --lapis-fonce: #5a3d10;
  --lapis-teinte: #f0e7d0;
  --or: #76551d;
  --focus: #24418c;
  --nombre-premier: #1a5fb4;
  --nombre-polygonal: #6d31a8;
  --nombre-premier-polygonal: #b81414;
  --nombre-un: #157a3c;
  --fiche-mars: #d01820;
  --fiche-venus: #07812f;
  --fiche-mercure: #d84b16;
  --fiche-lune: #525965;
  --fiche-soleil: #ffcf00;
  --contour-soleil: #725500;
  --fiche-saturne: #855018;
  --fiche-jupiter: #075ccc;
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--ligne);
  border-radius: .75rem;
  background: var(--papier);
  color: var(--encre);
  color-scheme: light;
  line-height: 1.8;
}

/* Le Soleil conserve le jaune doré des planches et son contour de contraste.
   Le soulignement reste réservé à la catégorie des nombres multi-polygonaux. */

:where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende .planete-soleil {
  color: var(--fiche-soleil);
  -webkit-text-stroke: .75px var(--contour-soleil);
  text-decoration: none;
}

:where(.manuel-outils, .manuel-portail) .rc-comprendre .planche-legende .planete-mercure {
  color: color-mix(in srgb, var(--fiche-mercure) 90%, var(--encre));
}

/* Comprend les sous-titres imbriqués, dont « Quelques croisements à explorer ». */

:root :is(.manuel-outils, .manuel-portail) .rc-comprendre h2 {
  margin-block: 2rem .9rem;
  padding-block-end: .6rem;
  border-bottom: 1px solid var(--ligne);
  color: var(--encre);
  font-family: var(--pile-ui);
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.65rem);
  font-weight: 800;
  line-height: 1.4;
}

:root :is(.manuel-outils, .manuel-portail) .rc-comprendre h3 {
  margin-block: 1.6rem .75rem;
  color: var(--encre);
  font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem);
  font-weight: 750;
  line-height: 1.45;
}

:where(.manuel-outils, .manuel-portail) .rc-comprendre p { margin-block: .85rem 1.15rem; }

:root :is(.manuel-outils, .manuel-portail) .rc-comprendre > p.accueil-intro {
  margin-inline: auto;
  text-align: center;
  text-align-last: auto;
  hyphens: none;
}

:where(.manuel-outils, .manuel-portail) .rc-comprendre li + li { margin-block-start: .65rem; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre > :first-child { margin-block-start: 0; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre > :last-child { margin-block-end: 0; }

:where(.manuel-outils, .manuel-portail) .rc-comprendre a { color: var(--lapis-fonce); }

:where(.manuel-outils, .manuel-portail) .rc-comprendre .rc-croisement-signatures {
  margin-block: .75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: .5rem;
  background: var(--carte);
}

:where(.manuel-outils, .manuel-portail) .rc-comprendre .rci-explication + .rci-explication {
  margin-block-start: 2rem;
  padding-block-start: .6rem;
}

:where(.manuel-outils, .manuel-portail) .rc-explications-patterns {
  margin-block: 2rem;
  padding-block-start: .25rem;
  border-top: 1px solid var(--ligne);
}

:where(.manuel-outils, .manuel-portail) .rc-explications-patterns p { line-height: 1.75; text-align: justify; overflow-wrap: break-word; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau { max-width: 100%; overflow-x: auto; margin-block: 1rem; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau table { width: 100%; border-collapse: collapse; text-align: left; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau caption { text-align: left; font-size: .85em; margin-bottom: .5rem; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau :is(th, td) { padding: .45rem .7rem; text-align: left; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau tbody { border-top: 1px solid var(--bordure, #8b8065); }

:where(.manuel-outils, .manuel-portail) .rc-motifs-tableau bdi { font-size: 1.4em; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-lettres p bdi { unicode-bidi: isolate; }

:where(.manuel-outils, .manuel-portail) .rc-motifs-lettres summary { cursor: pointer; font-weight: 700; }

@media print {
  .manuel-portail .rc-explications-patterns { margin-block: 5mm; }
  .manuel-portail .rc-explications-patterns h2,
  .manuel-portail .rc-explications-patterns h3 { break-after: avoid; }
  .manuel-portail .rc-explications-patterns p { orphans: 2; widows: 2; }
  .manuel-portail .rc-notice-impression { margin-top: 5mm; padding-top: 3mm; border-top: 1px solid #999; break-inside: avoid; }
  .manuel-portail .rc-notice-impression h2 { font-size: 10pt; margin: 0 0 2mm; }
  .manuel-portail .rc-notice-impression p { font-size: 9pt; margin: 0; }
}

.manuel-outils .recherche-titres-sourates {
  margin-block: 1rem;
  padding: .85rem;
  border-inline-start: 3px solid var(--or, #d9b66f);
  border-radius: .45rem;
  background: var(--surface, rgba(217, 182, 111, .06));
}

.manuel-outils .recherche-titres-entete {
  color: var(--or, #d9b66f);
  font-size: 1.05rem;
  font-weight: 800;
  margin-block: 0 .65rem;
}

.manuel-outils .recherche-titre-sourate { text-align: start; line-height: 1.65; white-space: normal; max-width: 100%; }

.manuel-outils .recherche-titre-sourate bdi { font-size: 1.5rem; }

.manuel-outils .recherche-titres-precision { font-size: .9rem; line-height: 1.65; margin-block: .5rem 0; }

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention {
  margin-block: 0 1.4rem;
  padding: 1rem;
  border: 1px solid var(--couleur-bordure, #756c57);
  border-inline-start: 4px solid var(--couleur-accent, #d8b66d);
  border-radius: 0.75rem;
  background: var(--couleur-surface, #24211a);
}

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention[hidden] { display: none; }

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention .etiquette { display: block; margin-bottom: 0.65rem; }

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention select { width: 100%; max-width: 100%; font: inherit; }

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention .aide {
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.5;
  text-align: start;
  hyphens: none;
}

:where(.manuel-outils, .manuel-portail) .gm-hebreu-convention-badge { display: block; margin-block: 0.35rem; font-size: 0.82rem; }

/* Une synthèse de l'élément, puis ses propriétés : mêmes couleurs de nombres
   et familles que le tableau, sans modifier les données scientifiques. */

.manuel-outils .perio-detail {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 3px solid var(--or);
}

.manuel-outils .perio-detail-titre {
  margin: 0 0 1.25rem;
  color: var(--or);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: start;
}

.manuel-outils .perio-detail-contenu {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.manuel-outils .perio-detail-entete {
  display: grid;
  grid-template-columns: 9.25rem minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.manuel-outils .perio-detail-etiquette {
  min-width: 0;
}

.manuel-outils .perio-detail-etiquette .perio-case {
  min-height: 13rem;
}

.manuel-outils .perio-detail-identite {
  min-width: 0;
}

.manuel-outils .perio-detail-surtitre {
  margin: 0 0 .4rem;
  color: var(--encre-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.manuel-outils .perio-detail-famille {
  margin: 0 0 1rem;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.manuel-outils .perio-detail-reperes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}

.manuel-outils .perio-detail-reperes > .perio-propriete {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .4rem;
  border: 1px solid var(--ligne);
  border-radius: .55rem;
  padding: .7rem .85rem;
  background: var(--creux);
}

.manuel-outils .perio-detail-indication {
  margin: .75rem 0 0;
  color: var(--encre-2);
  font-size: .85rem;
  line-height: 1.5;
  text-align: start;
}

.manuel-outils .perio-detail-cartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.manuel-outils .perio-detail-carte {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ligne);
  border-radius: .7rem;
  background: var(--carte);
}

.manuel-outils .perio-detail-structure {
  grid-column: 1 / -1;
}

.manuel-outils .perio-detail-section {
  margin: 0 0 .5rem;
  padding: 0 0 .65rem;
  border-bottom: 1px solid var(--ligne);
  color: var(--or);
  font-size: 1.08rem;
  line-height: 1.4;
  text-align: start;
}

.manuel-outils .perio-detail-proprietes {
  margin: 0;
}

.manuel-outils .perio-detail-proprietes > .perio-propriete {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .4rem 1rem;
  padding-block: .75rem;
}

.manuel-outils .perio-detail-proprietes > .perio-propriete + .perio-propriete {
  border-top: 1px solid color-mix(in srgb, var(--ligne) 50%, transparent);
}

.manuel-outils .perio-detail-proprietes > .perio-propriete:last-child {
  padding-bottom: .1rem;
}

.manuel-outils .perio-propriete-nom {
  color: var(--encre-2);
  font-size: .88rem;
  line-height: 1.45;
}

.manuel-outils .perio-propriete-valeur {
  min-width: 0;
  margin: 0;
  color: var(--encre);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.manuel-outils .perio-propriete-absente {
  color: var(--encre-2);
  font-size: .88rem;
  font-weight: 400;
}

.manuel-outils .perio-detail-structure .perio-propriete {
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.5fr);
}

.manuel-outils .perio-electrons-couches {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.manuel-outils .perio-electrons-couches li {
  display: grid;
  gap: .15rem;
  min-width: 3.5rem;
  padding: .4rem .5rem;
  border: 1px solid var(--ligne);
  border-radius: .4rem;
  background: var(--creux);
  text-align: center;
}

.manuel-outils .perio-electrons-niveau {
  color: var(--encre-2);
  font-size: .7rem;
  font-weight: 400;
}

.manuel-outils .perio-electrons-couches strong {
  font-size: 1.05rem;
}

.manuel-outils .perio-detail-complements {
  border: 1px solid var(--ligne);
  border-radius: .55rem;
  background: var(--creux);
}

.manuel-outils .perio-detail-complements > summary {
  min-height: 44px;
  padding: .75rem 1rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
}

.manuel-outils .perio-detail-complements > summary::marker {
  color: var(--or);
}

.manuel-outils .perio-detail-complements > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: .55rem;
}

.manuel-outils .perio-detail-notes {
  padding: 0 1rem .75rem;
  color: var(--encre-2);
  font-size: .88rem;
  line-height: 1.6;
}

.manuel-outils .perio-detail-notes p {
  max-width: 85ch;
  margin: 0 0 .8rem;
  text-align: start;
}

.manuel-outils .perio-detail-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0 0 .8rem;
  padding: 0;
  list-style: none;
}

.manuel-outils .perio-detail-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .35rem;
}

.manuel-outils .perio-detail-fermer {
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .manuel-outils .perio-detail-entete {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: start;
  }

  .manuel-outils .perio-detail-reperes {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .manuel-outils .perio-detail-reperes > .perio-propriete {
    padding: .55rem .65rem;
    gap: .15rem;
  }

  .manuel-outils .perio-detail-cartes {
    grid-template-columns: 1fr;
  }

  .manuel-outils .perio-detail-structure .perio-propriete {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .manuel-outils .perio-detail-entete {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .manuel-outils .perio-detail-etiquette {
    width: 9.25rem;
    justify-self: center;
  }

  .manuel-outils .perio-detail-reperes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manuel-outils .perio-detail-reperes > .perio-propriete:last-child {
    grid-column: 1 / -1;
  }

  .manuel-outils .perio-detail-proprietes > .perio-propriete {
    grid-template-columns: 1fr;
  }
}

.manuel-outils .explorateur-racines { min-width: 0; }

.manuel-outils .explorateur-racines [hidden] { display: none !important; }

.manuel-outils .racines-entete p { max-width: 70ch; margin-inline: auto; color: var(--encre-2); text-align: center; }

.manuel-outils .racines-repere { margin-block: 1rem; padding: .75rem 1rem; border-inline-start: 3px solid var(--or); background: var(--carte); border-radius: .35rem; }

.manuel-outils .racines-repere p { max-width: 85ch; margin: 0 auto; color: var(--encre); line-height: 1.7; }

.manuel-outils .racines-repere p + p { margin-block-start: .5rem; }

.manuel-outils .racines-filtres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; padding: 1.2rem; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); }

.manuel-outils .racines-filtres > .atelier-champ { display: grid; grid-template-rows: 3em auto; align-items: end; line-height: 1.5; font-weight: 700; }

.manuel-outils .racines-filtres > .recherche-lecture-aide { grid-column: 1 / -1; margin: 0; }

.manuel-outils .racines-filtres > button { grid-column: 1 / -1; justify-self: start; }

.manuel-outils .racines-filtres :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; }

.manuel-outils .racines-filtres select,
.manuel-outils .racines-filtre-lettres select { font-family: var(--pile-ui); font-size: 1.2rem; min-height: 3.5rem; }

.manuel-outils .racines-filtres select { height: 3.5rem; max-width: 100%; }

.manuel-outils .racines-filtres > .atelier-champ:first-child { grid-column: 1 / -1; grid-template-rows: auto auto; }

.manuel-outils #racines-recherche { font-family: var(--pile-arabe); font-size: clamp(2rem, 1.8rem + .8vw, 2.4rem); line-height: 1.8; min-height: 4.8rem; }

.manuel-outils #racines-recherche::placeholder { font: inherit; }

.manuel-outils .racines-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-block: 1rem; }

.manuel-outils .racines-statut { color: var(--encre-2); }

.manuel-outils .racines-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; }

.manuel-outils .racines-carte { display: grid; gap: .4rem; text-align: start; padding: 1rem; min-width: 0; }

.manuel-outils .racines-carte[aria-current] { border-color: var(--or); box-shadow: inset 0 -3px var(--or); }

.manuel-outils .racines-arabe { font-family: 'Scheherazade New', 'Amiri', serif; font-size: 1.7em; line-height: 1.6; }

.manuel-outils .racines-buckwalter { font-family: monospace; font-size: .9rem; color: var(--encre-2); }

.manuel-outils .racines-detail { margin-block: 2rem; padding: clamp(1rem, 3vw, 2rem); background: var(--carte); border: 1px solid var(--ligne); border-top: 3px solid var(--or); border-radius: var(--rayon); min-width: 0; }

.manuel-outils .racines-detail h2 { margin-top: 0; }

.manuel-outils .racines-detail h3 { color: var(--or); }

.manuel-outils .explorateur-racines details { border: 1px solid var(--ligne); border-radius: .6rem; padding: 1rem; margin-block: .8rem; }

.manuel-outils .explorateur-racines summary { cursor: pointer; font-weight: 700; line-height: 1.5; }

.manuel-outils .racines-valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem; margin-top: 1rem; }

.manuel-outils .racines-valeurs > div { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .6rem; border: 1px solid var(--ligne); border-radius: .5rem; }

.manuel-outils .racines-valeurs .bouton { font-weight: 800; font-variant-numeric: tabular-nums; }

.manuel-outils .racines-formes { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-top: 1rem; }

.manuel-outils .racines-note { color: var(--encre-2); font-size: .9rem; line-height: 1.7; }

.manuel-outils .racines-forme-verset { color: var(--or); font-size: 1.5rem; }

.manuel-outils .racines-texte-verset { font-family: 'Scheherazade New', 'Amiri', serif; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 2; overflow-wrap: anywhere; }

.manuel-outils .racines-provenance { color: var(--encre-2); }

.manuel-outils .racines-filtre-lettres {
  margin-block: 1rem;
  padding: clamp(.85rem, 2vw, 1.2rem);
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.manuel-outils .racines-filtre-lettres h2 { margin: 0 0 .6rem; color: var(--or); font-size: 1.25rem; text-align: start; }

.manuel-outils .racines-filtre-lettres > p { max-width: 80ch; }

.manuel-outils .racines-filtre-lettres > .racines-alphabet-intro { margin-inline: auto; text-align: center; }

.manuel-outils .racines-filtre-lettres .atelier-champ { max-width: 28rem; }

.manuel-outils .racines-filtre-lettres select { width: 100%; min-width: 0; }

.manuel-outils .racines-lettres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.3rem, 1fr));
  gap: .45rem;
  margin-block: .8rem;
}

.manuel-outils .racines-lettre {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  min-width: 0;
  min-height: 5.6rem;
  padding: .6rem .4rem .4rem;
  background: var(--creux);
  border: 1px solid var(--ligne);
}

.manuel-outils .racines-lettre .racines-arabe { font-family: var(--pile-arabe); font-size: 2rem; line-height: 1.4; }

.manuel-outils .racines-lettre-nom { font-size: .75rem; direction: ltr; }

.manuel-outils .racines-lettre-rang { position: absolute; top: .2rem; left: .35rem; font-size: .66rem; color: var(--encre-2); }

.manuel-outils .racines-lettre[aria-pressed='true'] { background: var(--or); color: var(--sur-lapis); border-color: var(--or); box-shadow: inset 0 0 0 2px var(--carte); }

.manuel-outils .racines-lettre[aria-pressed='true'] .racines-lettre-rang { color: inherit; }

.manuel-outils .racines-lettres-complement { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

.manuel-outils .racines-lettres-complement .racines-lettre { flex: 0 0 4.3rem; }

.manuel-outils .racines-lettres-complement p { max-width: 75ch; margin: 0; }

.manuel-outils .racines-lettres-selection { color: var(--encre-2); }

.manuel-outils .racines-lettres-selection bdi { color: var(--encre); }

/* Les classes cc-pagination reprennent la navigation partagée des compositions. */

.manuel-outils :is(.racines-statut, .racines-versets-titre) { scroll-margin-block-start: 8rem; }

.manuel-outils :is(.racines-lettre, .racines-pagination input, .racines-pagination button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (max-width: 850px) {
  .manuel-outils .racines-filtres { grid-template-columns: minmax(0, 1fr); }
  .manuel-outils .racines-filtres > .atelier-champ { grid-template-rows: auto auto; }
}

@media (max-width: 600px) {
  .manuel-outils .racines-lettres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
}

.manuel-outils .carres-composition { margin-block: 1.5rem; }

.manuel-outils .carres-composition > .cc-titre { color: var(--or); font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 850; line-height: 1.3; padding-block-end: .8rem; border-block-end: 2px solid var(--or); overflow-wrap: anywhere; }

.manuel-outils :is(.cc-intro, .cm-introduction, .cm-resolution-recherche) { max-width: none; line-height: 1.7; }

.manuel-outils .cc-filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; }

.manuel-outils .cc-filtres label { display: flex; flex-direction: column; gap: .5rem; min-width: 0; font-weight: 650; }

.manuel-outils .cc-filtres :is(select, input) { width: 100%; min-width: 0; min-height: 46px; }

.manuel-outils .cc-regle { padding: 1rem; border-inline-start: 4px solid var(--or); background: var(--creux); border-radius: 8px; }

.manuel-outils .cc-lettres { display: flex; flex-wrap: wrap; gap: .5rem; direction: rtl; margin-block: 1rem; }

.manuel-outils .cc-lettre { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border: 1px solid var(--ligne); border-radius: 10px; direction: ltr; }

.manuel-outils .cc-lettre bdi { font-family: var(--pile-arabe); font-size: 1.9rem; }

.manuel-outils .cc-methode { border: 1px solid var(--ligne); border-radius: 12px; padding: 1rem; }

.manuel-outils .cc-methode summary { cursor: pointer; font-weight: 700; }

.manuel-outils .cc-methode p { max-width: 85ch; line-height: 1.65; }

.manuel-outils .cc-statut { margin-block: 1.5rem 1rem; font-weight: 700; scroll-margin-block-start: 7rem; }

.manuel-outils .cc-resolution { max-width: none; padding: .75rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; margin-block: 1rem; }

.manuel-outils .cc-resolution p { margin-block: .35rem; line-height: 1.65; }

.manuel-outils .cc-resolution bdi { font-family: var(--pile-arabe); font-size: 1.4rem; }

.manuel-outils .cc-type-resultat { margin-block: 0 .5rem; font-size: .85rem; font-weight: 700; color: var(--encre-2); }

.manuel-outils .cc-famille { margin-block: 1rem; padding-block: .6rem; border-block: 1px solid var(--ligne); }

.manuel-outils .cc-famille summary { cursor: pointer; font-weight: 700; }

.manuel-outils .cc-famille summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.manuel-outils .cc-forme { margin-block-start: 1rem; }

.manuel-outils .cc-forme h4 { margin-block: .5rem; font-family: var(--pile-arabe); font-size: 1.75rem; }

.manuel-outils .cc-forme .cc-versets { border-block: 0; padding-block: 0; }

/* Même navigation numérotée que Composer des mots dans les fiches. */

.manuel-outils .cc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-block: 1.5rem; }

.manuel-outils .cc-pagination-plage { flex-basis: 100%; margin: 0; text-align: center; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.manuel-outils .cc-pagination-commandes { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }

.manuel-outils .cc-pages-numeros { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; list-style: none; padding: 0; margin: 0; }

.manuel-outils .cc-pagination button { min-height: 44px; }

.manuel-outils .cc-page-numero { min-width: 44px; padding: .5rem; }

.manuel-outils .cc-page-numero[aria-current='page'] { color: var(--fond); background: var(--or); border-color: var(--or); font-weight: 800; box-shadow: inset 0 0 0 2px var(--carte); }

.manuel-outils .cc-pages-ellipse, .manuel-outils .cc-pagination-position { color: var(--encre-2); font-size: .85rem; }

.manuel-outils .cc-pages-ellipse { padding-inline: .2rem; }

.manuel-outils .cc-acces-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }

.manuel-outils .cc-acces-page label { font-size: .85rem; }

.manuel-outils .cc-acces-page input { width: 4.5rem; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid var(--ligne); border-radius: 8px; padding: .5rem; color: var(--encre); background: var(--carte); font: inherit; text-align: center; }

.manuel-outils .cc-acces-page input[aria-invalid='true'] { border-color: var(--encre); outline: 1px solid var(--encre); }

.manuel-outils .cc-page-erreur { flex-basis: 100%; margin: 0; color: var(--encre); font-size: .85rem; text-align: center; }

.manuel-outils .cc-correspondance-exacte { border-inline-start: 3px solid var(--or); padding-inline-start: .65rem; color: var(--or); font-weight: 750; font-size: .9rem; }

.manuel-outils .cc-resultats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 1rem; align-items: start; }

.manuel-outils .cc-carte { border: 1px solid var(--ligne); border-radius: 16px; background: var(--carte); padding: 1.25rem; min-width: 0; overflow-wrap: anywhere; }

.manuel-outils .cc-carte .cc-mot { margin-block: 0 .75rem; font-family: var(--pile-arabe); font-size: 2.2rem; color: var(--or); }

.manuel-outils .cc-note { color: var(--encre-2); font-size: .9rem; }

.manuel-outils .cc-consommation { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-block: 1rem; font-size: .95rem; line-height: 1.7; }

.manuel-outils .cc-consommation-label { flex-basis: 100%; }

.manuel-outils .cc-compte-lettre { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; direction: ltr; unicode-bidi: isolate; border: 1px solid var(--ligne); border-radius: 6px; padding: .1rem .5rem; }

.manuel-outils .cc-compte-lettre bdi[lang='ar'] { font-family: var(--pile-arabe); font-size: 1.3rem; }

.manuel-outils .cc-compte-lettre bdi { unicode-bidi: isolate; }

.manuel-outils .cc-actions, .manuel-outils .cc-maisons { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 1rem; }

.manuel-outils .cc-maisons h4 { width: 100%; margin-block: .5rem 0; }

.manuel-outils .cc-maisons button { font-size: .85rem; }

.manuel-outils .cc-versets { border-block: 1px solid var(--ligne); padding-block: .8rem; margin-block: 1rem; }

.manuel-outils .cc-versets summary { cursor: pointer; padding-block: .35rem; }

.manuel-outils .cc-verset-arabe { font-family: var(--pile-arabe); font-size: 1.8rem; line-height: 2.1; text-align: right; }

@media (max-width: 850px) { .manuel-outils .cc-filtres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 560px) {
  .manuel-outils .cc-filtres { grid-template-columns: 1fr; }
}

.manuel-outils .cc-portee { border-inline-start: 4px solid var(--or); padding: .75rem 1rem; line-height: 1.65; font-weight: 650; }

.manuel-outils .cc-modes { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }

.manuel-outils .cc-modes button { min-height: 46px; }

.manuel-outils .cc-modes button[aria-pressed='true'], .manuel-outils .cc-lettre[aria-pressed='true'] { background: var(--or); color: var(--fond); border-color: var(--or); }

.manuel-outils .cc-lettre { flex-direction: column; min-width: 70px; min-height: 100px; cursor: pointer; background: var(--carte); color: var(--encre); }

.manuel-outils .cc-lettre bdi { font-size: 2.25rem; }

.manuel-outils .cc-lettre-nom { color: inherit; font-size: .85rem; }

.manuel-outils #cc-recherche { font-family: var(--pile-arabe); font-size: 1.55rem; line-height: 1.8; min-height: 58px; }

.manuel-outils #cc-recherche::placeholder { font-size: 1.2rem; }

.manuel-outils .cc-enregistrer { align-self: flex-start; }

.manuel-outils .cc-bibliotheque h2, .manuel-outils .cc-bibliotheque h3 { font-weight: 800; color: var(--or); }

.manuel-outils .cc-bibliotheque > label { display: flex; flex-direction: column; gap: .5rem; margin-block: 1rem; }

.manuel-outils .cc-bibliotheque .cc-carte h3 { font-family: var(--pile-arabe); font-size: 1.6rem; }

.manuel-outils :is(.cc-pagination input, .cc-pagination button, .cc-modes button, .cc-lettre, .cc-statut):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.manuel-outils .cc-recherche { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: end; }

.manuel-outils .cc-recherche .cc-enregistrer { align-self: end; min-height: 58px; }

@media (max-width: 560px) { .manuel-outils .cc-recherche { grid-template-columns: minmax(0, 1fr); } }

.manuel-outils .cc-filtres label[hidden] { display: none; }

/* L'atelier partage les composants visuels cc avec les carrés, dont la
 * pagination des fiches techniques. Seuls ses identifiants sont distincts. */

.manuel-outils .orbites-composition .cc-lettre bdi { font-weight: 800; }

.manuel-outils #oc-recherche { font-family: var(--pile-arabe); font-size: 1.55rem; line-height: 1.8; min-height: 58px; }

.manuel-outils #oc-recherche::placeholder { font-size: 1.2rem; }

.manuel-outils .orbites-composition .cc-methode { margin-block-start: 1rem; }

.manuel-outils .orbites-composition .cc-methode bdi { font-family: var(--pile-arabe); font-size: 1.5rem; font-weight: 800; }

.manuel-outils .orbites-composition .oc-carres { padding-block-start: .5rem; border-block-start: 1px solid var(--ligne); }

.manuel-outils .oc-origine-lettres { margin-block: 1rem; }

.manuel-outils .oc-origines h3 { color: var(--or); font-size: 1.05rem; font-weight: 800; margin-block: 1.25rem .5rem; }

.manuel-outils .oc-origines .oc-sources { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.manuel-outils .oc-sources > span { white-space: nowrap; }

.manuel-outils .oc-inventaire-archive { color: var(--or); font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-resume {
  text-align: center;
  color: var(--encre-2);
  margin-block: 0 1rem;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .ligne-planche {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: 1rem;
  background: #fffaf0;
  color: var(--planche-encre);
  border: 1px solid var(--planche-filet);
  border-radius: .65rem;
  break-inside: avoid;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-entete,
:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-corps,
:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .55rem;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-rang {
  flex-basis: 100%;
  font-size: .8rem;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-titre-fr {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu .pl-arabe {
  font-size: 1.5rem;
  font-weight: 700;
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-contenu [data-premiere-selectionnee="true"] {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* La liste utilise le thème de lecture commun. La planche garde son papier
   clair et les nombres conservent leurs classes de classification. */

:where(.manuel-outils, .manuel-portail) .rc-premieres-liste .ligne-planche {
  background: var(--carte);
  color: var(--encre);
  border-color: var(--ligne);
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-liste .pl-rang,
:where(.manuel-outils, .manuel-portail) .rc-premieres-liste .pl-translit {
  color: var(--encre-2);
}

:where(.manuel-outils, .manuel-portail) .rc-premieres-liste .rcp-modifier {
  color: var(--lapis);
  border-color: var(--ligne);
  background: var(--carte);
}

@media (min-width: 800px) {
  :where(.manuel-outils, .manuel-portail) .rc-premieres-planche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  :where(.manuel-outils, .manuel-portail) .rc-premieres-planche {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .manuel-portail .rc-premieres-planche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manuel-portail .rc-premieres-contenu {
    gap: .45rem;
  }
  .manuel-portail .rc-premieres-contenu .ligne-planche {
    padding: .5rem;
  }
}

:where(.manuel-outils, .manuel-portail) .ov-introduction {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
}

:where(.manuel-outils, .manuel-portail) .ov-verification { min-width: 0; }

:where(.manuel-outils, .manuel-portail) .ov-statut { font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ov-totaux {
  display: grid;
  max-width: 36rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1rem;
  margin-block: 1rem;
}

:where(.manuel-outils, .manuel-portail) .ov-totaux dd { margin: 0; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .ov-references {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-block: .75rem;
  padding: 0;
  list-style: none;
}

:where(.manuel-outils, .manuel-portail) .ov-references a {
  display: inline-block;
  padding: .25rem;
  /* Le repère de lien ne remplace pas le soulignement propre aux nombres
     multi-polygonaux, appliqué par la légende commune sur leurs spans. */
  text-decoration: none;
  border-block-end: 1px dotted currentColor;
}

:where(.manuel-outils, .manuel-portail) .ov-references a:hover { border-block-end-style: solid; }

:where(.manuel-outils, .manuel-portail) .rci-planche .ov-verification a { color: #224e85; }

:where(.manuel-outils, .manuel-portail) .rci-planche .ov-verification a:hover { color: #17385f; }

:where(.manuel-outils, .manuel-portail) .ov-autre {
  margin-block: 1rem;
  padding-block-start: .75rem;
  border-block-start: 1px solid currentColor;
}

:where(.manuel-outils, .manuel-portail) .ov-autre h4 { margin: 0; }

:where(.manuel-outils, .manuel-portail) .ov-releve {
  margin-block-start: 1rem;
  padding-block-start: .75rem;
  border-block-start: 1px dashed currentColor;
}

:where(.manuel-outils, .manuel-portail) .ov-releve > summary { cursor: pointer; font-weight: 600; }

:where(.manuel-outils, .manuel-portail) :is(.ov-note, .ov-releve-note) { font-size: .92em; }

:where(.manuel-outils, .manuel-portail) .ov-sources a { overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) :is(.ov-references a, .ov-releve > summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media print {
  .ov-releve:not([open]) { display: none !important; }
  .ov-verification .ov-noms > .ov-references { display: flex !important; }
}

/* La mémoire reste personnelle, distincte des mots remarquables partagés. */

:where(.manuel-outils, .manuel-portail) .cm-memoire-enregistrer { margin-top: .65rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-aide { margin: .45rem 0 0; color: var(--encre-2); font-size: .8rem; line-height: 1.5; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-statut { margin: .6rem 0; color: var(--encre); font-size: .9rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-erreur { border-inline-start: 3px solid var(--accent); padding-inline-start: .7rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire { margin-block: 0 1.2rem; border: 1px solid var(--ligne); border-radius: 12px; padding: .85rem 1rem; background: var(--carte); }

:where(.manuel-outils, .manuel-portail) .cm-memoire > summary { cursor: pointer; color: var(--accent); font-size: 1rem; font-weight: 700; min-height: 2rem; line-height: 2; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-explication,
:where(.manuel-outils, .manuel-portail) .cm-memoire-vide { color: var(--encre-2); font-size: .85rem; line-height: 1.6; margin-block: .6rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-liste { list-style: none; margin: .7rem 0 0; padding: 0; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-entree { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .8rem; border-top: 1px solid var(--ligne); }

:where(.manuel-outils, .manuel-portail) .cm-memoire-contenu { min-width: 0; overflow-wrap: anywhere; flex: 1; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-saisie { display: block; font-size: 1.15rem; line-height: 1.6; text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-contexte { margin: .2rem 0; color: var(--accent); font-size: .8rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-resume { margin: .25rem 0; font-size: .85rem; line-height: 1.6; text-align: start; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-contenu time { display: block; color: var(--encre-2); font-size: .75rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-rouvrir { flex-shrink: 0; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-pagination { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; margin-top: .7rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-pagination > span { font-size: .85rem; }

:where(.manuel-outils, .manuel-portail) .cm-memoire-pagination .bouton { min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque h2,
:where(.manuel-outils, .manuel-portail) .cm-bibliotheque h3 { color: var(--accent); font-weight: 800; margin-block: 1.3rem .8rem; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque h3 { font-size: 1.25rem; border-bottom: 2px solid var(--ligne); padding-bottom: .6rem; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-filtres { display: flex; flex-wrap: wrap; gap: 1rem; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-filtres label { flex: 1 1 220px; display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-filtres input,
:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-filtres select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-actions .bouton { min-height: 44px; }

:where(.manuel-outils, .manuel-portail) .cm-bibliotheque-compteur { color: var(--encre-2); font-size: .85rem; }

@media (max-width: 480px) {
  :where(.manuel-outils, .manuel-portail) .cm-memoire-entree { align-items: flex-start; flex-direction: column; }
  :where(.manuel-outils, .manuel-portail) .cm-memoire-rouvrir,
  :where(.manuel-outils, .manuel-portail) .cm-memoire-enregistrer { width: 100%; }
}

/* Commandes partagées des fiches, carrés et orbites ; corpus et résultats inchangés. */

.manuel-outils .ateliers-recherche-unifies { min-width: 0; }

.manuel-outils .ateliers-recherche-unifies [hidden] { display: none !important; }

.manuel-outils .ateliers-recherche-unifies > :is(h2, .cc-titre) { color: var(--or); font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 850; line-height: 1.3; text-align: start; padding-block-end: .8rem; border-block-end: 2px solid var(--or); }

.manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-block: 1.5rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ligne);
  border-radius: .75rem;
  background: var(--carte);
}

.manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies > :is(div, label) { min-width: 0; }

.manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies label {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  font-size: 1rem;
  font-weight: 650;
}

.manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies :is(select, input) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  box-sizing: border-box;
  padding: .65rem .75rem;
  border: 1px solid var(--ligne);
  border-radius: .6rem;
  color: var(--encre);
  background: var(--carte);
  font: inherit;
  font-weight: 400;
}

.manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies > div > label { margin-block-end: .5rem; }

.manuel-outils .ateliers-recherche-unifies .recherche-lecture { grid-column: 1 / -1; }

.manuel-outils .recherche-lecture-aide { display: block; margin: .4rem 0 0; color: var(--encre-2); font-size: .88rem; font-weight: 400; line-height: 1.6; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .6rem .8rem;
  min-width: 0;
}

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > label { flex: 1 1 22rem; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > label[for='cm-recherche'] { flex-basis: 100%; margin: 0; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > input { flex: 1 1 22rem; width: auto; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee input[type='search'] {
  min-height: 4.25rem;
  font-family: var(--pile-arabe);
  font-size: 1.75rem;
  line-height: 1.8;
}

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee input::placeholder { font-size: 1.15rem; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > button { flex: 0 1 auto; min-height: 4.25rem; margin: 0; }

.manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > p { flex-basis: 100%; margin: 0; }

.manuel-outils .ateliers-recherche-unifies .atelier-modes-unifies { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }

.manuel-outils .ateliers-recherche-unifies .atelier-modes-unifies button { flex: 1 1 12rem; min-height: 3.2rem; padding: .75rem 1rem; }

.manuel-outils .ateliers-recherche-unifies .atelier-modes-unifies button[aria-pressed='true'] { background: var(--or); border-color: var(--or); color: var(--sur-lapis); }

.manuel-outils .ateliers-recherche-unifies :is(input, select, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.manuel-outils .cm-comparaisons-source { margin-block: 1rem; padding-block: .5rem; border-block: 1px solid var(--ligne); }

.manuel-outils .cm-comparaisons-source h4 { margin-block: .5rem; }

@media (max-width: 600px) {
  .manuel-outils .ateliers-recherche-unifies .atelier-filtres-unifies { grid-template-columns: minmax(0, 1fr); }
  .manuel-outils .ateliers-recherche-unifies .atelier-recherche-unifiee > :is(input, label, button) { flex-basis: 100%; width: 100%; }
  .manuel-outils .ateliers-recherche-unifies .atelier-modes-unifies button { flex-basis: 100%; }
}

/* La source de recherche reste distincte des correspondances ajoutées. */

.manuel-outils .atelier-sources-resultat { margin-block: 1rem; padding: .8rem; border: 1px solid var(--ligne); border-radius: .65rem; }

.manuel-outils .atelier-sources-resultat > :is(h4, p):first-child { flex-basis: 100%; margin-block: 0 .55rem; font-size: .95rem; font-weight: 650; }

.manuel-outils .atelier-source-repere { display: inline-block; margin: .2rem .35rem .2rem 0; padding: .55rem .8rem; border: 1px solid var(--ligne); border-radius: .5rem; color: var(--encre); background: var(--carte); font-weight: 650; line-height: 1.5; }

/* Les maisons gardent leurs éléments ; les carrés reprennent leurs planètes. */

.manuel-outils .maison-repere:is([data-maison-numero='1'], [data-maison-numero='5'], [data-maison-numero='9']) { --maison-fond: #ffd39b; --maison-encre: #552900; --maison-bord: #d47b20; }

.manuel-outils .maison-repere:is([data-maison-numero='2'], [data-maison-numero='6'], [data-maison-numero='10']) { --maison-fond: #ccb095; --maison-encre: #392311; --maison-bord: #90613f; }

.manuel-outils .maison-repere:is([data-maison-numero='3'], [data-maison-numero='7'], [data-maison-numero='11']) { --maison-fond: #d8dce2; --maison-encre: #303844; --maison-bord: #7a8492; }

.manuel-outils .maison-repere:is([data-maison-numero='4'], [data-maison-numero='8'], [data-maison-numero='12']) { --maison-fond: #b8dafa; --maison-encre: #173e69; --maison-bord: #4c86b7; }

.manuel-outils .maison-repere[data-maison-numero] { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--maison-bord); border-radius: .5rem; background: var(--maison-fond); color: var(--maison-encre); font-weight: 650; line-height: 1.5; }

.manuel-outils .maison-repere[data-maison-numero]:is(:hover, :focus-visible) { border-color: var(--maison-encre); background: var(--maison-fond); color: var(--maison-encre); }

/* Les variables sont celles des planètes des fiches, dans chaque thème. */

.manuel-outils .atelier-source-repere[data-carre-id='saturne'] { --carre-accent: var(--fiche-saturne); }

.manuel-outils .atelier-source-repere[data-carre-id='jupiter'] { --carre-accent: var(--fiche-jupiter); }

.manuel-outils .atelier-source-repere[data-carre-id='mars'] { --carre-accent: var(--fiche-mars); }

.manuel-outils .atelier-source-repere[data-carre-id='soleil'] { --carre-accent: var(--fiche-soleil); }

.manuel-outils .atelier-source-repere[data-carre-id='venus'] { --carre-accent: var(--fiche-venus); }

.manuel-outils .atelier-source-repere[data-carre-id='mercure'] { --carre-accent: var(--fiche-mercure); }

.manuel-outils .atelier-source-repere[data-carre-id='lune'] { --carre-accent: var(--fiche-lune); }

.manuel-outils .atelier-source-repere[data-carre-id] {
  border: 2px solid var(--carre-accent);
  background: color-mix(in srgb, var(--carre-accent) 24%, var(--carte));
  color: var(--encre);
}

.manuel-outils .atelier-source-repere[data-carre-id]:is(:hover, :focus-visible) {
  border-color: var(--carre-accent);
  background: color-mix(in srgb, var(--carre-accent) 32%, var(--carte));
  color: var(--encre);
}

/* Proposition pour les orbites : une seule famille turquoise/pétrole,
 * indépendante des planètes et éléments, avec le numéro dans un cercle. */

.manuel-outils .atelier-source-repere[data-orbite-id='1'] { --orbite-fond: #e3f7f3; --orbite-accent: #397d76; }

.manuel-outils .atelier-source-repere[data-orbite-id='2'] { --orbite-fond: #d2efe9; --orbite-accent: #2b776e; }

.manuel-outils .atelier-source-repere[data-orbite-id='3'] { --orbite-fond: #bfe5dd; --orbite-accent: #226e66; }

.manuel-outils .atelier-source-repere[data-orbite-id='4'] { --orbite-fond: #abd9d1; --orbite-accent: #1c625c; }

.manuel-outils .atelier-source-repere[data-orbite-id='5'] { --orbite-fond: #97cdc6; --orbite-accent: #1a5752; }

.manuel-outils .atelier-source-repere[data-orbite-id='6'] { --orbite-fond: #83c1bb; --orbite-accent: #164c49; }

.manuel-outils .atelier-source-repere[data-orbite-id='7'] { --orbite-fond: #72b5b0; --orbite-accent: #123f3e; }

.manuel-outils .atelier-source-repere[data-orbite-id='8'] { --orbite-fond: #62a9a6; --orbite-accent: #103735; }

.manuel-outils .atelier-source-repere[data-orbite-id] {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--orbite-accent);
  background: var(--orbite-fond);
  color: #122e2e;
}

.manuel-outils .atelier-source-repere[data-orbite-id]::before {
  content: attr(data-orbite-id);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .8em;
  font-weight: 750;
  line-height: 1;
}

.manuel-outils .atelier-source-repere[data-orbite-id]:is(:hover, :focus-visible) {
  background: var(--orbite-fond);
  border-color: #122e2e;
  color: #122e2e;
}

/* Le rang est celui des 28 lettres, même lorsque l'inventaire est partiel. */

.manuel-outils .ateliers-recherche-unifies :is(.cm-lettre, .cc-lettre) { position: relative; padding-block-start: 1rem; }

.manuel-outils .ateliers-recherche-unifies :is(.cm-lettre-rang, .cc-lettre-rang) {
  position: absolute;
  top: .25rem;
  left: .4rem;
  font-family: var(--pile-texte, sans-serif);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

/* Chaque rectangle explicite les inventaires qui suffisent pour ce résultat. */

.manuel-outils :is(.atelier-source-repere, .maison-repere)[data-inventaires-compatibles] {
  max-width: 100%;
  vertical-align: top;
  white-space: normal;
  text-align: start;
}

.manuel-outils .atelier-source-contenu { display: block; min-width: 0; }

.manuel-outils .atelier-source-titre { display: block; }

.manuel-outils .atelier-source-inventaires {
  display: block;
  max-width: 28rem;
  margin-top: .3rem;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  overflow-wrap: anywhere;
}

.rc-comparaison-personnages .cp-guide { margin-block: 1rem 1.5rem; }

.rc-comparaison-personnages .cp-filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }

.rc-comparaison-personnages .cp-filtres label { display: block; font-weight: 700; margin-bottom: .5rem; }

.rc-comparaison-personnages .cp-filtres input,
.rc-comparaison-personnages .cp-filtres select { width: 100%; min-width: 0; min-height: 3.5rem; padding: .7rem .85rem; box-sizing: border-box; font: inherit; font-size: 1.25rem; line-height: 1.6; }

.rc-comparaison-personnages #cp-recherche { font-size: 1.4rem; }

.rc-comparaison-personnages .cp-filtres select:disabled { opacity: .65; }

.rc-comparaison-personnages .cp-carte { border: 1px solid var(--bordure, #82775e); border-radius: .7rem; margin-block: 1.5rem; padding: 1.2rem; }

.rc-comparaison-personnages .cp-carte h2 { margin-top: 0; }

.rc-comparaison-personnages .cp-arabe { font-size: 2rem; line-height: 1.8; text-align: start; margin-block: .5rem; }

.rc-comparaison-personnages .cp-type,
.rc-comparaison-personnages .cp-resume { font-weight: 600; }

.rc-comparaison-personnages .cp-note { font-size: .95rem; }

.rc-comparaison-personnages .cp-tableau-defilement { overflow-x: auto; margin-block: 1rem; }

.rc-comparaison-personnages .cp-tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }

.rc-comparaison-personnages .cp-tableau td,
.rc-comparaison-personnages .cp-tableau th { padding: .75rem; border-bottom: 1px solid var(--bordure, #82775e); text-align: start; vertical-align: top; }

.rc-comparaison-personnages .cp-tableau th[scope="row"] { min-width: 11rem; font-weight: normal; }

.rc-comparaison-personnages .cp-tableau th[scope="col"] { min-width: 7rem; }

.rc-comparaison-personnages .cp-tableau summary { font-size: .95rem; }

.rc-comparaison-personnages .cp-oui { font-weight: 700; }

.rc-comparaison-personnages .cp-perimetre { font-size: .85rem; margin-top: .5rem; }

.rc-comparaison-personnages .cp-perimetre p { max-width: 16rem; }

.rc-comparaison-personnages .cp-graphie { font-size: 1.3rem; line-height: 1.8; }

.rc-comparaison-personnages .cp-pagination { align-items: center; }

.rc-comparaison-personnages .cp-avances { margin-block: 1rem; }

.rc-comparaison-personnages .cp-avances .cp-filtres { margin-top: 1rem; }

.rc-comparaison-personnages .cp-correspondances { list-style: none; padding: 0; margin: 0; }

.rc-comparaison-personnages .cp-correspondances li { margin-bottom: .6rem; }

@media (max-width: 640px) {
  .rc-comparaison-personnages .cp-filtres { grid-template-columns: 1fr; }
  .rc-comparaison-personnages .cp-carte { padding: .8rem; }
}

@media print {
  .rc-comparaison-personnages .cp-actions,
  .rc-comparaison-personnages .cp-pagination { display: none; }
  .rc-comparaison-personnages .cp-tableau-defilement { overflow: visible; }
}

.rc-gematrie-personnages {
  --gp-encre: var(--encre, #201c12);
  --gp-secondaire: var(--encre-2, #5f5748);
  --gp-filet: var(--ligne, #82775e);
  --gp-carte: var(--carte, #fffaf0);
}

.rc-gematrie-personnages .gp-support.planche {
  --gp-encre: var(--planche-encre);
  --gp-secondaire: var(--planche-secondaire);
  --gp-filet: var(--planche-filet);
  --gp-carte: #fffaf0;
}

.rc-gematrie-personnages .gp-filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-block: 1.5rem; }

.rc-gematrie-personnages .gp-filtres label,
.rc-gematrie-personnages .gp-choix-systeme label { display: block; font-weight: 700; margin-bottom: .35rem; }

.rc-gematrie-personnages .gp-filtres input,
.rc-gematrie-personnages .gp-filtres select,
.rc-gematrie-personnages .gp-systeme-personnage {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  font: inherit; font-size: 1rem; line-height: 1.4; min-height: 2.75rem; padding: .55rem .65rem;
  color: var(--gp-encre); background: var(--gp-carte); border: 1px solid var(--gp-filet); border-radius: .35rem;
}

.rc-gematrie-personnages .gp-support :is(select, summary):focus-visible { outline: 2px solid #24418c; outline-offset: 3px; }

.rc-gematrie-personnages .gp-titre-planche { color: var(--gp-encre); }

.rc-gematrie-personnages .gp-resume-planche { color: var(--gp-secondaire); }

.rc-gematrie-personnages .gp-planche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .7rem; align-items: start; }

.rc-gematrie-personnages .gp-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }

.rc-gematrie-personnages .gp-carte { min-width: 0; border: 1px solid var(--gp-filet); border-radius: .5rem; padding: .75rem; text-align: center; background: var(--gp-carte); color: var(--gp-encre); }

.rc-gematrie-personnages .gp-carte[data-tous-systemes="true"] { grid-column: 1 / -1; }

.rc-gematrie-personnages .gp-nom { color: var(--gp-encre); font-size: 1.05rem; line-height: 1.4; margin: 0; }

.rc-gematrie-personnages .gp-choix-systeme { min-width: 0; margin-block: .5rem .65rem; text-align: start; }

.rc-gematrie-personnages .gp-choix-systeme label { font-size: .8rem; }

.rc-gematrie-personnages .gp-systeme-personnage { font-size: .9rem; }

.rc-gematrie-personnages .gp-resultats { min-width: 0; }

.rc-gematrie-personnages .gp-tous { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; gap: .15rem 1rem; }

.rc-gematrie-personnages .gp-resultat-compact { min-width: 0; border-bottom: 1px solid var(--gp-filet); }

.rc-gematrie-personnages .gp-systeme-titre { min-width: 0; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.4; font-weight: 500; }

.rc-gematrie-personnages .gp-details-lettres { text-align: start; }

.rc-gematrie-personnages .gp-details-lettres summary { box-sizing: border-box; cursor: pointer; min-height: 2.75rem; padding: .65rem .2rem; font-size: .85rem; }

.rc-gematrie-personnages .gp-resultat-compact summary { display: grid; grid-template-columns: .65rem minmax(0, 1fr) auto; align-items: center; gap: .35rem; list-style: none; }

.rc-gematrie-personnages .gp-resultat-compact summary::-webkit-details-marker { display: none; }

.rc-gematrie-personnages .gp-resultat-compact summary::before { content: '›'; font-size: 1rem; line-height: 1; }

.rc-gematrie-personnages .gp-resultat-compact details[open] > summary::before { transform: rotate(90deg); }

.rc-gematrie-personnages .gp-details-lettres .gp-detail-calcul { text-align: center; }

.rc-gematrie-personnages .gp-liste .gp-carte { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); grid-template-rows: auto auto auto 1fr; gap: 0 1.25rem; align-items: start; }

.rc-gematrie-personnages .gp-liste .gp-carte > .gp-nom,
.rc-gematrie-personnages .gp-liste .gp-carte > .gp-arabe,
.rc-gematrie-personnages .gp-liste .gp-choix-systeme { grid-column: 1; }

.rc-gematrie-personnages .gp-liste .gp-resultats { grid-column: 2; grid-row: 1 / 5; }

.rc-gematrie-personnages .gp-arabe { color: var(--gp-encre); font-size: 1.65rem; line-height: 1.6; margin: .25rem 0; }

.rc-gematrie-personnages .gp-total { font-weight: 800; font-size: 1.5rem; line-height: 1.3; margin: .2rem 0; font-variant-numeric: tabular-nums; }

.rc-gematrie-personnages .gp-resultat-compact .gp-total { font-size: .95rem; margin: 0; overflow-wrap: anywhere; }

.rc-gematrie-personnages .gp-calcul-meta { color: var(--gp-secondaire); font-size: .8rem; margin: .3rem 0; }

.rc-gematrie-personnages .gp-lettres { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; margin-block: .65rem; }

.rc-gematrie-personnages .gp-lettre { display: inline-flex; flex-direction: column; min-width: 1.9rem; border: 1px solid var(--gp-filet); border-radius: .25rem; padding: .1rem .25rem; }

.rc-gematrie-personnages .gp-glyphe { font-size: 1.35rem; line-height: 1.5; }

.rc-gematrie-personnages .gp-valeur-lettre { font-weight: 700; font-size: .85rem; }

.rc-gematrie-personnages .gp-equation { font-size: .8rem; overflow-wrap: anywhere; }

.rc-gematrie-personnages .gp-autres { text-align: start; margin-top: .5rem; font-size: .85rem; }

.rc-gematrie-personnages .gp-autres > summary { min-height: 2.75rem; padding-block: .55rem; box-sizing: border-box; cursor: pointer; }

.rc-gematrie-personnages .gp-variante { border-top: 1px solid var(--gp-filet); padding-top: .6rem; margin-top: .6rem; }

.rc-gematrie-personnages .gp-variante h4 { color: var(--gp-encre); font-size: .95rem; margin: .25rem 0; }

.rc-gematrie-personnages .gp-methode { margin-block: 1.5rem; }

@media (max-width: 800px) { .rc-gematrie-personnages .gp-filtres { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .rc-gematrie-personnages .gp-liste .gp-carte { display: block; }
  .rc-gematrie-personnages .gp-tous { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .rc-gematrie-personnages .gp-actions, .rc-gematrie-personnages .gp-filtres, .rc-gematrie-personnages .gp-choix-systeme { display: none; }
  .rc-gematrie-personnages .gp-resultat { break-inside: avoid; }
  .rc-gematrie-personnages .gp-resultat-compact summary { min-height: 0; padding-block: .3rem; }
}

@media (forced-colors: active) {
  .rc-gematrie-personnages .gp-support,
  .rc-gematrie-personnages .gp-support.planche { --gp-encre: CanvasText; --gp-secondaire: CanvasText; --gp-filet: CanvasText; --gp-carte: Canvas; }
}

:where(.manuel-outils, .manuel-portail) .cn-correspondance-resume { margin-block: .45rem .8rem; }

:where(.manuel-outils, .manuel-portail) .cn-mesures {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: .5rem 1rem;
}

:where(.manuel-outils, .manuel-portail) .cn-mesure {
  flex: 1 1 10rem;
  min-width: 0;
  padding: .7rem .85rem;
  border: 1px solid var(--ligne);
  border-radius: .45rem;
}

:where(.manuel-outils, .manuel-portail) .cn-mesure-active { border-color: var(--lapis); background: var(--lapis-teinte); }

:where(.manuel-outils, .manuel-portail) .cn-mesure dt { font-size: .9rem; color: var(--encre-2); }

:where(.manuel-outils, .manuel-portail) .cn-mesure dd { margin: .35rem 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }

:where(.manuel-outils, .manuel-portail) .cn-note { max-width: 65ch; }

/* Titres de parcours et choix de planche, sans changer les données. */

:root :is(.manuel-outils, .manuel-portail) .rc-premiers-pas > h2 {
  font-size: clamp(1.35rem, 1.2rem + .5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.4;
}

:where(.manuel-outils, .manuel-portail) .rc-signatures-onglets {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 1rem 1.5rem;
}

:where(.manuel-outils, .manuel-portail) .rc-signatures-onglet {
  flex: 1 1 19rem;
  min-height: 3rem;
  padding: .7rem 1rem;
  font-size: 1rem;
  white-space: normal;
}

:where(.manuel-outils, .manuel-portail) .rc-signatures-onglet[aria-selected="true"] {
  border-color: var(--or);
  background: var(--lapis-teinte);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--or);
}

/* Les classes centrales de la légende colorent à la fois nom et symbole. */

:where(.manuel-outils, .manuel-portail) :is(.cam-planete, .rcp-repere-nom, .rcp-repere-symbole, .rci-planete).planete-soleil {
  text-decoration: none;
}

:where(.manuel-outils, .manuel-portail) .rci-lettre-frequentielle {
  font-weight: 800;
}

/* Les axes sont maintenant séparés : chaque planche occupe toute sa largeur.
   Sur petit écran, les trois colonnes restent lisibles dans leur défilement. */

@media screen {
  :where(.manuel-outils, .manuel-portail) .rcp-planche-signatures[data-signatures-axe] .rcp-canevas-signatures {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 60rem;
  }
  :where(.manuel-outils, .manuel-portail) .rcp-planche-signatures[data-signatures-axe] .rcp-signatures-isoles {
    width: 100%;
  }
}
