/* SPDX-FileCopyrightText: 2026 Open Business Foundation */
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* ==========================================================================
   EC1 — visuels : emblème, schémas, graphiques. Les couleurs viennent des
   jetons, pour rester lisibles dans les deux thèmes. Sous 560 px, les
   étiquettes internes des grands schémas s'effacent au profit des légendes
   HTML, qui restent lisibles à toutes les tailles.
   ========================================================================== */

/* Emblème */
.embleme { width: 100%; height: auto; }
.embleme-mini .embleme-symbole, .embleme-mini path { color: currentColor; }
.embleme-ruban { stroke: var(--encre); }
.embleme-symboles { color: var(--encre); }
.embleme-heros .embleme-symbole.embleme-copyleft { color: var(--contribution); }
.embleme-heros .embleme-symbole.embleme-copyright { color: var(--marche); }
.embleme-flux { stroke-dasharray: 46 954; opacity: 0.95; }
.embleme-flux-1 { stroke: var(--service-vif); animation: flux-infini 9s linear infinite; }
.embleme-flux-2 { stroke: var(--pollen); animation: flux-infini 9s linear infinite; animation-delay: -4.5s; }
@keyframes flux-infini { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .embleme-flux { display: none; } }
:root[data-mouvement="reduit"] .embleme-flux { display: none; }

.embleme-complet .embleme-ruban { stroke: var(--papier); }
.embleme-complet .embleme-symboles { color: var(--papier); }
.embleme-complet .zone { cursor: pointer; transition: opacity var(--duree) var(--courbe), filter var(--duree) var(--courbe); }
.zone-contribution { fill: var(--contribution-fond); }
.zone-marche { fill: var(--marche-fond); }
.zone-services { fill: var(--service-vif); }
.zone-biens { fill: var(--surface-3); }
.zone-patrimoines { fill: var(--trait); }
.zone-encoche { fill: var(--surface-3); pointer-events: none; }
.embleme-complet[data-actif] .zone { opacity: 0.38; }
.embleme-complet[data-actif="contribution"] .zone-contribution,
.embleme-complet[data-actif="marche"] .zone-marche,
.embleme-complet[data-actif="services"] .zone-services,
.embleme-complet[data-actif="biens"] .zone-biens,
.embleme-complet[data-actif="patrimoines"] .zone-patrimoines { opacity: 1; }
.svg-etiquette {
  font-family: var(--police-titre);
  font-size: 15px;
  font-weight: 760;
  font-stretch: 110%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  fill: var(--encre);
}
.svg-etiquette.sur-fonce { fill: var(--sur-fonce); }
.svg-etiquette-petite { font-size: 12.5px; fill: var(--encre); }
.svg-etiquette-socle { font-size: 15px; fill: var(--encre); }
.embleme-atelier { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--e-5); align-items: start; }
.embleme-cote { display: grid; gap: var(--e-3); }
.embleme-legende { display: grid; gap: var(--e-2); }
.embleme-legende .option { min-height: 2.75rem; }
@media (max-width: 760px) {
  .embleme-atelier { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .svg-etiquettes { display: none; }
}

/* Pastilles de légende (couleur + forme, jamais la couleur seule) */
.pastille { border: 0 !important; }
.pastille-contribution { background: var(--contribution-fond); }
.pastille-marche { background: var(--marche-fond); border-radius: 3px !important; }
.pastille-services { background: var(--service-vif); border-radius: 2px !important; width: 0.7rem !important; }
.pastille-biens { background: var(--surface-3); border-radius: 2px !important; height: 0.8rem !important; outline: 1px solid var(--trait-fort); }
.pastille-patrimoines { background: var(--trait); border-radius: 2px !important; height: 0.8rem !important; outline: 1px solid var(--trait-fort); }
.option[aria-pressed="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: var(--surface-2); }

.credit { margin-top: var(--e-3); font-size: var(--t-xs); color: var(--encre-3); }

/* Figure générique d'un schéma */
.schema { width: 100%; height: auto; }
.schema text { font-family: var(--police-texte); fill: var(--encre); }
.schema .trait { stroke: var(--trait-fort); }
.schema .trait-leger { stroke: var(--trait); }
.schema .encre { fill: var(--encre); }
.schema .encre-2 { fill: var(--encre-2); }
.schema .t-contribution { fill: var(--contribution); }
.schema .t-marche { fill: var(--marche); }
.schema .s-contribution { stroke: var(--contribution); }
.schema .s-marche { stroke: var(--marche); }
.schema .s-service { stroke: var(--service-vif); }
.schema .s-seve { stroke: var(--seve); }
.schema .s-alerte { stroke: var(--alerte); }
.schema .f-contribution { fill: var(--contribution); }
.schema .f-contribution-doux { fill: var(--contribution-doux); }
.schema .f-marche { fill: var(--marche); }
.schema .f-marche-doux { fill: var(--marche-doux); }
.schema .f-service { fill: var(--service-vif); }
.schema .f-surface { fill: var(--surface); }
.schema .f-surface-2 { fill: var(--surface-2); }
.schema .f-papier { fill: var(--papier); }
.schema .f-seve { fill: var(--seve); }
.schema .f-pollen { fill: var(--pollen); }
.schema .f-alerte { fill: var(--alerte); }
.schema .petit { font-size: 12px; }
.schema .moyen { font-size: 14px; }
.schema .grand { font-size: 17px; font-weight: 700; }
.schema .mono { font-family: var(--police-code); }
.schema .titre-svg { font-family: var(--police-titre); font-weight: 760; font-stretch: 110%; }

/* Symboles ↄ et © dessinés */
.marque-licence { width: 1.15rem; height: 1.15rem; color: currentColor; }
.option-lettre .marque-licence { width: 1.2rem; height: 1.2rem; }

/* Spectre des licences */
.spectre { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.spectre-case {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  min-height: 6.5rem;
  padding: var(--e-3);
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--encre);
  text-align: left;
}
.spectre-case:hover { border-color: var(--encre); }
.spectre-case[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--encre); }
.spectre-rang { font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.spectre-titre { font-family: var(--police-titre); font-weight: 760; font-stretch: 106%; line-height: 1.2; font-size: var(--t-s); }
.spectre-licences { font-family: var(--police-code); font-size: 0.72rem; color: var(--encre-2); line-height: 1.35; }
.spectre-public { background: var(--surface); }
.spectre-permissive { background: color-mix(in srgb, var(--contribution-doux) 35%, var(--surface)); }
.spectre-faible { background: color-mix(in srgb, var(--contribution-doux) 65%, var(--surface)); }
.spectre-fort { background: var(--contribution-doux); }
.spectre-reseau { background: color-mix(in srgb, var(--contribution) 22%, var(--contribution-doux)); }
.spectre-axe { display: flex; justify-content: space-between; gap: var(--e-3); margin-top: var(--e-2); font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.spectre-axe span:first-child::before { content: "← "; }
.spectre-axe span:last-child::after { content: " →"; }
.spectre-detail { margin-top: var(--e-4); }
.spectre-fiche { padding: var(--e-4); border-radius: var(--r-2); background: var(--surface-2); display: grid; gap: var(--e-2); }
@media (max-width: 640px) {
  .spectre { grid-template-columns: minmax(0, 1fr); }
  .spectre-case { min-height: 0; grid-template-columns: 1.4rem 1fr; }
  .spectre-case .spectre-licences { grid-column: 2; }
  .spectre-axe { display: none; }
}

/* Test de la réappropriation */
.reappropriation { display: grid; gap: var(--e-3); margin-top: var(--e-4); }
.reappro-ligne { display: grid; gap: var(--e-2); padding: var(--e-4); border-radius: var(--r-2); border: 1px solid var(--trait); background: var(--papier); }
.reappro-verdict { display: inline-flex; align-items: center; gap: var(--e-2); font-weight: 700; }
.reappro-verdict svg { width: 1.2rem; height: 1.2rem; }
.reappro-oui .reappro-verdict { color: var(--seve); }
.reappro-non .reappro-verdict { color: var(--alerte); }
.reappro-oui { border-color: color-mix(in srgb, var(--seve) 40%, transparent); }
.reappro-non { border-color: color-mix(in srgb, var(--alerte) 40%, transparent); }
.reappro-explication { color: var(--encre-2); font-size: var(--t-s); }

/* Sélecteur de licence */
.selecteur { display: grid; gap: var(--e-5); }
.fiche-licence { display: grid; gap: var(--e-2); padding: var(--e-5); border: 2px solid var(--contribution); border-radius: var(--r-2); background: var(--surface); }
.fiche-licence-tete { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.fiche-licence h4 { font-size: var(--t-l); font-family: var(--police-titre); font-stretch: 106%; }

/* Compatibilité */
.compat-liste { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.compat-puce { min-height: 2.5rem; padding-inline: 0.75rem; font-size: var(--t-xs); }
.compat-puce[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.compat-bilan { list-style: none; padding: 0; margin: var(--e-4) 0 var(--e-3); display: grid; gap: var(--e-2); }
.compat-bilan li { display: grid; grid-template-columns: 1.3rem 1fr; gap: var(--e-2); margin: 0; font-size: var(--t-s); line-height: 1.45; }
.compat-bilan svg { width: 1.15rem; height: 1.15rem; margin-top: 0.15em; }
.compat-oui svg { color: var(--seve); }
.compat-non svg { color: var(--alerte); }
.compat-attention svg { color: var(--service); }

/* Carte copyleft / copyright */
.carte-cc { border: 1px solid var(--trait-fort); border-radius: var(--r-2); background: var(--surface); overflow: hidden; }
.carte-cc-haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--e-4); padding: var(--e-5); }
.carte-cc-cote { display: grid; gap: 0.1rem; font-size: var(--t-s); color: var(--encre-2); }
.carte-cc-cote strong { font-family: var(--police-titre); font-stretch: 112%; font-weight: 820; text-transform: uppercase; letter-spacing: 0.04em; color: var(--encre); font-size: var(--t-m); }
.carte-cc-cote em { font-style: normal; font-family: var(--police-code); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--t-xs); color: var(--encre-3); margin-top: var(--e-1); }
.carte-cc-gauche { text-align: right; }
.carte-cc-gauche strong { color: var(--contribution); }
.carte-cc-droite strong { color: var(--marche); }
.carte-cc-embleme { width: 7rem; color: var(--encre); }
.carte-cc-bande { display: grid; gap: var(--e-3); padding: var(--e-4) var(--e-5); background: var(--encre); }
.carte-cc-bande .etiquette { color: var(--papier); opacity: 0.8; }
.carte-cc-ligne { display: grid; gap: var(--e-2); }
.carte-cc-bande .puce { min-height: 2.5rem; padding-inline: 0.8rem; font-family: var(--police-texte); font-size: var(--t-s); font-weight: 650; cursor: pointer; }
.carte-cc-bande .puce[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--pollen); }
.carte-cc-pied { padding: var(--e-3) var(--e-5); color: var(--encre-2); font-size: var(--t-s); }
@media (max-width: 560px) {
  .carte-cc-haut { grid-template-columns: 1fr 1fr; }
  .carte-cc-embleme { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 5.5rem; }
  .carte-cc-gauche { text-align: left; }
}

/* Voiture électrique */
.voiture-dessin { margin-bottom: var(--e-4); }
.voiture { color: var(--encre); }
.voiture .piece { cursor: pointer; stroke: var(--encre-2); fill: var(--surface-2); transition: stroke var(--duree) var(--courbe), fill var(--duree) var(--courbe), opacity var(--duree) var(--courbe); }
.voiture .piece-carrosserie path { fill: none; }
.voiture .vitres { fill: var(--service-doux); stroke: var(--trait-fort); }
.voiture[data-actif] .piece { opacity: 0.45; }
.voiture[data-actif="mecanique"] .piece-mecanique, .voiture[data-actif="electrique"] .piece-electrique, .voiture[data-actif="electronique"] .piece-electronique, .voiture[data-actif="logiciel"] .piece-logiciel, .voiture[data-actif="carrosserie"] .piece-carrosserie, .voiture[data-actif="marque"] .piece-marque { opacity: 1; stroke: var(--encre); }
.voiture .piece.est-libre { stroke: var(--contribution); fill: var(--contribution-doux); }
.voiture .piece.est-protegee { stroke: var(--marche); fill: var(--marche-doux); }
.voiture .piece-carrosserie.est-protegee path { fill: none; }
.voiture-cote { display: grid; gap: var(--e-3); }
.voiture-pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--e-2); }

/* Biens non rivaux */
.non-rival { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); margin-bottom: var(--e-3); }
.nr-cote { display: grid; gap: var(--e-3); align-content: start; padding: var(--e-4); border-radius: var(--r-2); background: var(--papier); border: 1px solid var(--trait); }
.nr-grille { display: flex; flex-wrap: wrap; gap: 6px; min-height: 5.5rem; align-content: flex-start; }
.nr-fichier svg { width: 1.8rem; height: 1.8rem; color: var(--contribution); }
.nr-part { display: inline-grid; place-items: center; }
.nr-part svg { width: calc(2.4rem * max(0.42, var(--part))); height: calc(2.4rem * max(0.42, var(--part))); color: var(--alerte); }
.nr-compte { font-size: var(--t-s); color: var(--encre-2); min-height: 3em; }
@media (max-width: 560px) { .non-rival { grid-template-columns: minmax(0, 1fr); } }

/* Recette d'un commun */
.recette-jauge { display: flex; gap: 4px; margin-top: var(--e-4); }
.recette-jauge span { flex: 1; height: 8px; border-radius: 4px; background: var(--trait); transition: background var(--duree) var(--courbe); }
.recette-jauge span.plein { background: var(--seve); }
.recette-verdict { margin-top: var(--e-3); font-weight: 650; min-height: 3em; }

/* Pile 1-5 % / 95-99 % */
.pile { display: grid; gap: 4px; margin-top: var(--e-4); }
.pile-part { font-family: var(--police-code); font-weight: 700; font-size: var(--t-s); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pile-haut { padding: var(--e-3) var(--e-4); border-radius: var(--r-2) var(--r-2) 4px 4px; background: var(--pollen-doux); border: 1px solid color-mix(in srgb, var(--pollen) 70%, transparent); }
.pile-specialite { display: grid; grid-template-columns: 6rem 1fr; gap: var(--e-3); align-items: baseline; font-size: var(--t-s); }
.pile-socle { padding: var(--e-4); border-radius: 4px 4px var(--r-2) var(--r-2); background: var(--marche-fond); color: var(--sur-fonce); min-height: 14rem; }
.pile-socle-tete { display: grid; grid-template-columns: 6rem auto 1fr; gap: var(--e-3); align-items: baseline; margin-bottom: var(--e-3); }
.pile-socle-tete .champ-aide { color: color-mix(in srgb, var(--sur-fonce) 75%, transparent); }
.pile-couches { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pile-couches li { margin: 0; padding: 0.45rem 0.7rem; border-radius: 4px; background: color-mix(in srgb, var(--sur-fonce) 12%, transparent); font-size: var(--t-s); }
@media (max-width: 560px) { .pile-specialite, .pile-socle-tete { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Forge fractale */
.forge-etape { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--e-5); align-items: center; }
.forge-etape h4 { font-family: var(--police-titre); font-stretch: 108%; font-size: var(--t-l); margin-bottom: var(--e-2); }
@media (max-width: 640px) { .forge-etape { grid-template-columns: minmax(0, 1fr); } }
.forge-lien { stroke: var(--trait-fort); stroke-width: 2; }
.forge-lien-fin { stroke-width: 1.4; stroke: var(--trait); }
.forge-remontee { stroke: var(--serie-1); stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; animation: remontee 1.6s linear infinite; }
@keyframes remontee { to { stroke-dashoffset: -20; } }
.forge-veille { fill: none; stroke: var(--pollen); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.forge-feuille { fill: var(--surface); stroke: var(--trait-fort); stroke-width: 2; }
.forge-branche { fill: var(--contribution-doux); stroke: var(--contribution); stroke-width: 2.5; }
.forge-noyau { fill: var(--encre); }
.forge-embleme { color: var(--papier); }

/* Courbes du leadership */
.courbes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); }
@media (max-width: 640px) { .courbes { grid-template-columns: minmax(0, 1fr); } }
.courbe-figure { margin: 0; padding: var(--e-3); border-radius: var(--r-2); background: var(--papier); border: 1px solid var(--trait); }
.courbe .axe { stroke: var(--trait-fort); stroke-width: 1; }
.courbe .grille { stroke: var(--trait); stroke-width: 1; }
.courbe .axe-titre { font-family: var(--police-titre); font-weight: 760; font-stretch: 106%; font-size: 12.5px; fill: var(--encre); }
.courbe .axe-legende { font-size: 11px; fill: var(--encre-3); }
.courbe .axe-tic { font-family: var(--police-code); font-size: 11px; fill: var(--encre-2); }
.courbe .serie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.courbe .serie-1 { stroke: var(--serie-1); }
.courbe .serie-2 { stroke: var(--serie-2); }
.courbe .point { stroke: var(--papier); stroke-width: 2; }
.courbe .serie-1-point { fill: var(--serie-1); }
.courbe .serie-2-point { fill: var(--serie-2); }
.courbe .aire-communautes { fill: var(--serie-1); opacity: 0.1; }
.courbe .delta { fill: var(--encre-2); font-weight: 650; transition: opacity var(--duree) var(--courbe); }
.legende { list-style: none; padding: 0; margin: var(--e-3) 0; display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); font-size: var(--t-s); color: var(--encre-2); }
.legende li { display: inline-flex; align-items: center; gap: var(--e-2); margin: 0; }
.cle { display: inline-block; width: 1.4rem; height: 3px; border-radius: 2px; }
.cle-1 { background: var(--serie-1); }
.cle-2 { background: var(--serie-2); }

/* Cycle de la permaculture */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-3); position: relative; }
.cycle li { margin: 0; }
.cycle-etape { position: relative; display: grid; justify-items: center; gap: var(--e-2); width: 100%; padding: var(--e-4) var(--e-2); border: 1px solid var(--trait-fort); border-radius: var(--r-3); background: var(--surface); color: var(--encre); }
.cycle-etape:hover { border-color: var(--encre); }
.cycle-etape[aria-pressed="true"] { background: var(--seve-doux); border-color: var(--seve); }
.cycle-icone { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--seve-doux); color: var(--seve); }
.cycle-icone svg { width: 1.8rem; height: 1.8rem; }
.cycle-nom { font-family: var(--police-titre); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--t-s); }
.cycle-rang { position: absolute; top: var(--e-2); left: var(--e-3); font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.cycle li:not(:last-child) .cycle-etape::after { content: ""; position: absolute; right: calc(-1 * var(--e-3) - 1px); top: 50%; width: var(--e-3); height: 2px; background: var(--seve); }
.cycle-texte { margin-top: var(--e-4); min-height: 4.5em; }
.cycle-texte > * + * { margin-top: var(--e-2); }
@media (max-width: 640px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cycle li:nth-child(2) .cycle-etape::after { display: none; } }

/* Forks et distributions */
.arbre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-4); }
@media (max-width: 760px) { .arbre { grid-template-columns: minmax(0, 1fr); } }
.arbre-lignee h4 { font-size: var(--t-s); font-family: var(--police-code); text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-3); margin-bottom: var(--e-2); font-weight: 650; }
.arbre-chaine { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.arbre-chaine li { margin: 0; display: grid; justify-items: start; }
.arbre-lien { display: block; margin: 2px 0 2px 1.1rem; padding: 0.15rem 0 0.15rem 0.9rem; border-left: 2px solid var(--trait-fort); font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.arbre-fork .arbre-lien { border-left: 2px dashed var(--serie-2); color: var(--serie-2); }
.arbre-noeud { display: inline-flex; align-items: baseline; gap: var(--e-2); min-height: 2.75rem; padding: 0.4rem 0.85rem; border: 1px solid var(--trait-fort); border-radius: var(--r-2); background: var(--surface); color: var(--encre); }
.arbre-noeud:hover { border-color: var(--encre); }
.arbre-noeud[aria-pressed="true"] { background: var(--contribution-doux); border-color: var(--contribution); }
.arbre-date { font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.arbre-nom { font-weight: 700; }
.arbre-histoire { margin-top: var(--e-4); }

/* Réseau des pairs */
.pairs-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--e-5); align-items: center; }
@media (max-width: 680px) { .pairs-grille { grid-template-columns: minmax(0, 1fr); } }
.pairs-lien { stroke: var(--trait-fort); stroke-width: 2; }
.pairs-lien-fin { stroke: var(--trait); stroke-width: 1.3; }
.pairs-bulle { fill: var(--surface); stroke: var(--trait-fort); stroke-width: 2; }
.pairs-centre { stroke: var(--contribution); stroke-width: 3; }
.pairs-tete { fill: var(--encre); }
.pairs[data-ressort="regard"] .pairs-lien { stroke: var(--serie-1); }
.pairs[data-ressort="reconnaissance"] .pairs-centre { fill: var(--pollen-doux); }
.pairs[data-ressort="faire"] .pairs-bulle:not(.pairs-centre) { fill: var(--seve-doux); }

/* Test de l'otage */
.otage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); margin-top: var(--e-4); }
@media (max-width: 560px) { .otage { grid-template-columns: minmax(0, 1fr); } }
.otage-col { display: grid; gap: var(--e-3); align-content: start; padding: var(--e-4); border-radius: var(--r-2); border: 1px solid var(--trait); background: var(--papier); }
.otage-col h4 { font-family: var(--police-titre); font-stretch: 108%; }
.otage-jauge { display: flex; gap: 4px; }
.otage-jauge span { flex: 1; height: 10px; border-radius: 5px; background: var(--trait); }
.otage-prive .otage-jauge span.plein { background: var(--serie-2); }
.otage-libre .otage-jauge span.plein { background: var(--serie-1); }
.otage-texte { font-size: var(--t-s); color: var(--encre-2); min-height: 4.5em; }

/* Mur des briques */
.mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--e-2); }
.brique { display: grid; gap: 0.2rem; align-content: start; min-height: 6rem; padding: var(--e-3); border: 1px solid var(--trait-fort); border-radius: 6px; background: var(--surface); color: var(--encre); text-align: left; font-size: var(--t-xs); line-height: 1.4; box-shadow: inset 0 -4px 0 var(--surface-3); }
.brique strong { font-size: var(--t-s); font-family: var(--police-titre); font-stretch: 106%; }
.brique span { color: var(--encre-2); }
.brique:hover { border-color: var(--encre); }
.brique[aria-pressed="true"] { background: var(--contribution-doux); border-color: var(--contribution); box-shadow: inset 0 -4px 0 var(--contribution); }

/* Roue du changement de paradigme */
.roue { position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin: 0 auto var(--e-4); max-width: 100%; }
.roue-cercle { position: absolute; inset: 12%; border-radius: 50%; border: 10px solid var(--surface-2); }
.roue-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42%; display: grid; justify-items: center; gap: 0.15rem; padding: var(--e-3); border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--trait); text-align: center; font-size: var(--t-s); }
.roue-centre .etiquette { color: var(--alerte); font-size: 0.68rem; }
.roue-avant { padding: 0.1rem 0.5rem; border: 1px solid var(--trait-fort); border-radius: 4px; font-size: var(--t-xs); color: var(--encre-2); }
.roue-centre svg { width: 1.2rem; height: 1.2rem; color: var(--encre-3); }
.roue-centre strong { display: block; padding: 0.3rem 0.6rem; border-radius: 4px; background: var(--encre); color: var(--papier); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.roue-liste { list-style: none; padding: 0; margin: 0; }
.roue-liste li { margin: 0; }
.roue-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(min(15.5rem, 40vw)) rotate(calc(-1 * var(--angle)));
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: 2.6rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--encre);
  font-weight: 650;
  font-size: var(--t-s);
  white-space: nowrap;
  transition: background var(--duree) var(--courbe), border-color var(--duree) var(--courbe);
}
.roue-item[aria-pressed="true"] { background: var(--pollen-doux); border-color: var(--encre); box-shadow: 0 0 0 2px var(--pollen); }
.roue-rang { font-family: var(--police-code); font-size: var(--t-xs); color: var(--encre-3); }
.roue-texte { margin-top: var(--e-3); min-height: 3.5em; }
@media (max-width: 640px) {
  .roue { aspect-ratio: auto; width: 100%; display: grid; gap: var(--e-3); }
  .roue-cercle { display: none; }
  .roue-centre { position: static; transform: none; width: auto; }
  .roue-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-2); }
  .roue-item { position: static; transform: none; width: 100%; white-space: normal; }
}
