/* Section de câble et chute de tension : styles propres à l'outil. */
.o-section-cable .sc-securite { margin: 0 0 4px; padding: 10px 14px; border-left: 4px solid var(--erreur-texte); border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-size: .92rem; }
.atelier .o-section-cable .prereglages .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-section-cable .sc-limites { border-top: 0; padding-top: 12px; }
.o-section-cable .sc-reinit { margin-left: auto; }
.o-section-cable .sc-champs { align-items: end; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.o-section-cable .sc-champs input { font: 600 1.05rem var(--mono); }
.o-section-cable .sc-champs input:disabled { opacity: .55; }
.o-section-cable .sc-saisie { display: flex; min-width: 0; }
.o-section-cable .sc-saisie input { flex: 1 1 auto; min-width: 0; width: 100%; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.o-section-cable .sc-saisie select { flex: 0 0 auto; width: auto; min-width: 4.4em; margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.o-section-cable [aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-section-cable input:focus-visible, .o-section-cable select:focus-visible, .o-section-cable .btn:focus-visible { outline: 3px solid var(--marque); outline-offset: 1px; position: relative; z-index: 1; }
.o-section-cable .sc-note { margin: 8px 0; color: var(--texte-2); font-size: .88rem; }
.o-section-cable .sc-alerte { margin: 12px 0 0; color: var(--erreur-texte); }
.o-section-cable .sc-alerte:empty, .o-section-cable .sc-message:empty, .o-section-cable .sc-resultat:empty { display: none; }
.o-section-cable .sc-resultat { display: block; margin-top: 14px; }
.o-section-cable .sc-table { width: 100%; border-collapse: collapse; border-radius: var(--rayon-petit); overflow: hidden; background: var(--ok-fond); color: var(--ok-texte); }
.o-section-cable .sc-table th, .o-section-cable .sc-table td { padding: 8px 12px; font-weight: 400; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.o-section-cable .sc-table th { text-align: left; }
.o-section-cable .sc-table td { text-align: right; font: 600 1rem var(--mono); overflow-wrap: anywhere; }
.o-section-cable .sc-table tr:last-child th, .o-section-cable .sc-table tr:last-child td { border-bottom: 0; }
.o-section-cable .sc-table tr.sc-fort th, .o-section-cable .sc-table tr.sc-fort td { font-weight: 700; font-size: 1.08rem; }
.o-section-cable .sc-message { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); font-size: .95rem; }
.o-section-cable .sc-message.sc-attention { background: var(--erreur-fond); color: var(--erreur-texte); }
.o-section-cable .sc-calcul { margin-top: 14px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-section-cable .sc-calcul strong { display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 600; color: var(--texte-2); }
.o-section-cable .sc-formules { font: 500 .92rem/1.7 var(--mono); overflow-wrap: anywhere; }
.o-section-cable .sc-formules span { display: block; }
.o-section-cable .sc-calcul .sc-note { margin-bottom: 0; }
.o-section-cable .sc-titre { margin: 20px 0 8px; font-size: 1.05rem; }
.o-section-cable .sc-defile { overflow-x: auto; }
.o-section-cable .sc-tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.o-section-cable .sc-tableau th, .o-section-cable .sc-tableau td { padding: 6px 10px; border-bottom: 1px solid var(--bord); text-align: right; white-space: nowrap; }
.o-section-cable .sc-tableau thead th { color: var(--texte-2); font-weight: 600; font-size: .85rem; }
.o-section-cable .sc-tableau th:first-child { text-align: left; }
.o-section-cable .sc-tableau td { font-family: var(--mono); }
.o-section-cable .sc-tableau tr.sc-hors { color: var(--texte-2); }
.o-section-cable .sc-tableau tr.sc-choisie { background: var(--ok-fond); color: var(--ok-texte); font-weight: 700; }

@media (max-width: 640px) {
  .o-section-cable .sc-champs { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .o-section-cable .sc-table th, .o-section-cable .sc-table td { padding: 7px 8px; }
  .o-section-cable .sc-table td { font-size: .92rem; }
  .o-section-cable .sc-tableau { font-size: .82rem; }
  .o-section-cable .sc-tableau th, .o-section-cable .sc-tableau td { padding: 5px 4px; }
  .o-section-cable .sc-reinit { margin-left: 0; }
}
