/* Calculatrice du cercle : styles propres à l'outil. */
.o-cercle-reglages { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 14px; }
.o-cercle-reglages label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--texte-2); min-width: 150px; }
.o-cercle-reglages select { min-height: 44px; }
.o-cercle-bloc { padding: 18px 0; border-top: 1px solid var(--bord); }
.o-cercle-bloc h2 { margin: 0 0 6px; font-size: 1.2rem; }
.o-cercle-bloc h3 { margin: 12px 0 4px; font-size: .95rem; }
.o-cercle .o-cercle-aide { display: block; margin: 0 0 12px; }
.o-cercle-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 16px 24px; align-items: start; }
.o-cercle-champs { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.o-cercle-champ { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--texte-2); }
.o-cercle-champ b { font-family: var(--mono); color: var(--texte); }
.o-cercle-champ em { font-style: normal; font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.o-cercle-champ em:empty { display: none; }
.o-cercle-entree { display: flex; align-items: center; gap: 8px; }
.o-cercle-entree input { flex: 1 1 auto; min-width: 0; min-height: 46px; font: 600 1.2rem var(--mono); text-align: right; }
.o-cercle-entree i { font-style: normal; font-family: var(--mono); min-width: 2.6em; color: var(--texte); }
.o-cercle input.o-cercle-calcule { border-style: dashed; border-color: var(--marque); background: var(--ok-fond); color: var(--ok-texte); }
.o-cercle input[aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-cercle input:focus-visible, .o-cercle select:focus-visible { outline: 3px solid var(--marque); outline-offset: 0; }
.o-cercle .o-cercle-erreur { margin: 0; color: var(--erreur-texte); font-size: .95rem; }
.o-cercle-erreur:empty { display: none; }
.o-cercle-champs .prereglages { padding: 0; border: 0; }
.atelier .o-cercle-champs .prereglages .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-cercle-figure { margin: 0; text-align: center; }
.o-cercle-figure figcaption { display: block; margin-top: 4px; }
.o-cercle-svg { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.o-cercle-svg [data-part], .o-cercle-fond { fill: none; stroke: var(--texte-2); stroke-width: 2.5; }
.o-cercle-fond { stroke: var(--bord); stroke-width: 1.5; }
.o-cercle-svg [data-part="a"], .o-cercle-svg [data-part="sa"], .o-cercle-svg [data-part="anneau"] { stroke: none; fill: var(--marque); fill-opacity: .16; }
.o-cercle-svg [data-part="anneau"] { fill-opacity: .28; stroke: var(--marque); stroke-width: 2; }
.o-cercle-svg .calculee { stroke: var(--marque); stroke-width: 4; }
.o-cercle-svg .connue { stroke: var(--texte); stroke-width: 2.5; stroke-dasharray: 7 5; }
.o-cercle-svg [data-part="a"].connue { fill: var(--texte-2); fill-opacity: .14; stroke: none; }
.o-cercle-svg [data-part="a"].calculee { stroke: none; }
.o-cercle-svg [data-part="arc"] { stroke: var(--marque); stroke-width: 5; stroke-linecap: round; }
.o-cercle-svg [data-part="corde"] { stroke: var(--texte); stroke-width: 2.5; stroke-dasharray: 7 5; }
.o-cercle-svg [data-part="R"], .o-cercle-svg [data-part="ri"] { stroke: var(--texte); stroke-width: 2; }
.o-cercle-centre { fill: var(--texte); }
.o-cercle-svg text { fill: var(--texte); font: 700 18px var(--mono); text-anchor: middle; }
.o-cercle-resultat { margin-top: 14px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); }
.o-cercle-resultat > span { font-size: .85rem; font-weight: 600; }
.o-cercle-resultat output { display: block; font: 700 1.15rem/1.45 var(--mono); overflow-wrap: anywhere; }
.o-cercle-liste { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 16px; }
.o-cercle-liste li { display: flex; flex-direction: column; }
.o-cercle-liste b { font: 600 .85rem var(--police); }
.o-cercle-liste span { font: 700 1.25rem var(--mono); }
.o-cercle-liste em { font: italic .8rem var(--police); opacity: .85; }
.o-cercle-detail { margin: 0; padding-left: 1.2em; font: .95rem/1.6 var(--mono); overflow-wrap: anywhere; }
.o-cercle-detail:empty { display: none; }
.o-cercle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.o-cercle-actions .tirage-message { color: var(--ok-texte); }
.o-cercle .o-cercle-prive { display: block; margin-top: 4px; }
@media (max-width: 700px) {
  .o-cercle-grille { grid-template-columns: minmax(0, 1fr); }
  .o-cercle-svg { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .o-cercle * { transition: none !important; } }
