.audit-tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(1.3rem, 4vw, 3rem); background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 8px; }
.audit-tool h2 { margin: 0 0 1.2rem; font-size: clamp(1.9rem, 2.8vw, 2.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.audit-tool-copy > p { color: #343434; font-size: 1.05rem; line-height: 1.65; }
.audit-tool-copy > p a { color: var(--accent-dark); font-weight: 600; text-underline-offset: .25em; }
.audit-form { display: grid; align-content: start; gap: 1.2rem; min-width: 0; }
.audit-form label { display: grid; gap: .5rem; font-weight: 600; }
.audit-form input:not([type=checkbox]) { width: 100%; min-height: 3.1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--text); }
.audit-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.audit-field-hint { font-size: .88rem; font-weight: 400; color: var(--muted); line-height: 1.55; }
.audit-form .audit-consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .85rem; font-weight: 400; line-height: 1.55; }
.audit-consent input { flex: none; margin: .3rem 0 0; accent-color: var(--accent); }
.audit-consent a { color: inherit; text-underline-offset: .2em; }
.audit-form .btn { justify-self: start; gap: 1.5rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s; }
.audit-form .btn:enabled:hover { transform: translateY(-2px); }
.audit-form .btn:disabled { opacity: .5; cursor: not-allowed; }
.audit-form[aria-busy=true] .btn { opacity: .8; }
.audit-form[aria-busy=true] .form-status { font-weight: 700; }
.audit-results { margin-top: 3rem; padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.audit-results[hidden] { display: none; }
.audit-results h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.audit-status-blocks { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.audit-status-block { width: 48px; height: 14px; border-radius: 4px; background: #b8b8b8; }
.audit-status-block[data-result=pass] { background: #2eb16d; }
.audit-status-block[data-result=warning] { background: #f3a139; }
.audit-status-block[data-result=fail] { background: #e55353; }
.audit-result-target { color: var(--muted); overflow-wrap: anywhere; }
.audit-factor { border-bottom: 1px solid var(--line); }
.audit-factor summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 600; }
.audit-factor summary::after { content: '+'; font-size: 1.3rem; }
.audit-factor[open] summary::after { content: '−'; }
.audit-factor .audit-badge { margin-left: auto; flex: none; border-radius: 4px; padding: .25rem .55rem; font-size: .78rem; background: #eeeae3; }
.audit-badge[data-result=pass] { background: #e4eee6; color: #2eb16d; }
.audit-badge[data-result=fail] { background: #ffe8e1; color: #97371d; }
.audit-factor-body { max-width: 900px; padding-bottom: 1.2rem; color: #343434; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.audit-factor-body h3 { margin-top: 1.5rem; font-size: 1rem; }
.audit-factor-body ul { padding-left: 1.4rem; }
.audit-factor-reference { font-size: .9rem; color: var(--muted); }
.audit-factor-reference a { color: var(--accent-dark); text-underline-offset: .2em; }
.audit-results:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 780px) { .audit-tool { grid-template-columns: 1fr; } .audit-factor summary { flex-wrap: wrap; } }
@media (prefers-reduced-motion: no-preference) { .audit-tool { animation: tool-enter .5s ease-out; } .audit-results { animation: tool-enter .25s ease-out; } @keyframes tool-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }

html[lang="fr"] #audit-result-overview {
  white-space: pre-line;
}
