/* Interface des outils : styles livrés, sans compilation requise au déploiement. */
[hidden] { display: none !important; }
#main-content { scroll-margin-top: 5rem; }
#tool-form :is(input,textarea,button):focus-visible,.tool-secondary:focus-visible,#result-title:focus-visible,#status-message:focus-visible { outline: 3px solid #fb923c; outline-offset: 4px; }
#tool-form input,#tool-form textarea { min-width: 0; max-width: 100%; }
#tool-form textarea { resize: vertical; }
#tool-form button:disabled { opacity: .6; cursor: wait; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.tool-secondary { border: 1px solid #64748b; border-radius: .65rem; padding: .65rem .85rem; color: #e2e8f0; background: #0f172a; font-size: .85rem; cursor: pointer; min-height: 44px; }
.tool-secondary:hover { border-color: #fb923c; color: #fdba74; }
.tool-status { margin: 1rem 0; color: #cbd5e1; line-height: 1.6; overflow-wrap: anywhere; }
.tool-status:empty { margin: 0; }
.tool-status[data-state="error"],.tool-noscript { padding: 1rem; border: 1px solid #f87171; border-radius: .75rem; color: #fecaca; background: #450a0a; }
.tool-status[data-state="busy"]::before { content: ''; display: inline-block; width: .8rem; height: .8rem; margin-right: .6rem; border: 2px solid #64748b; border-top-color: #fb923c; border-radius: 50%; animation: tool-spin 1s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-status[data-state="busy"]::before { animation: none; } }
.tool-panel { border: 1px solid #475569; border-radius: 1rem; background: #0f172a; padding: clamp(1rem,3vw,2rem); margin-top: 2rem; min-width: 0; }
.tool-result-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tool-result-heading .tool-actions { margin: 0; }
.tool-line { display: grid; grid-template-columns: minmax(8rem,1fr) minmax(0,2fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid #334155; }
.tool-label { color: #f8fafc; font-weight: 600; }
.tool-value { color: #cbd5e1; overflow-wrap: anywhere; white-space: pre-wrap; }
.tool-section { font-size: 1.15rem; font-weight: 700; color: #f8fafc; margin: 1.75rem 0 .75rem; }
.tool-finding { border: 1px solid #64748b; border-left-width: 4px; border-radius: .65rem; padding: 1rem; margin: .75rem 0; overflow-wrap: anywhere; }
.tool-finding strong { display: block; margin-bottom: .4rem; }
.tool-finding p { color: #cbd5e1; line-height: 1.65; }
.tool-finding[data-severity="error"] { border-color: #f87171; color: #fecaca; }
.tool-finding[data-severity="warning"] { border-color: #fbbf24; color: #fde68a; }
.tool-finding[data-severity="info"] { border-color: #38bdf8; color: #bae6fd; }
.tool-summary { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.tool-summary span { padding: .55rem .8rem; border-radius: .5rem; background: #1e293b; color: #f1f5f9; }
.tool-code { padding: 1rem; border: 1px solid #334155; border-radius: .65rem; background: #020617; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.7; max-height: 24rem; overflow: auto; }
.tool-note { color: #94a3b8; font-size: .85rem; line-height: 1.7; margin-top: 1.25rem; }
.tool-dns { border-bottom: 1px solid #334155; padding: 1rem 0; }
.tool-dns h4 { color: #fdba74; font-weight: 700; margin-bottom: .4rem; }
.tool-dns p { overflow-wrap: anywhere; line-height: 1.7; }
.tool-dns details { margin-top: .6rem; }
.tool-dns summary { cursor: pointer; color: #cbd5e1; padding: .4rem 0; }
.tool-steps { padding-left: 1.4rem; list-style: decimal; }
.tool-steps li { padding: .4rem 0; overflow-wrap: anywhere; }
@media (max-width: 580px) { .tool-line { grid-template-columns: 1fr; gap: .25rem; } .tool-result-heading .tool-actions { width: 100%; } }
