/* Footer commun : styles partagés, variantes mobile et desktop séparées. */
.site-footer { padding:24px 28px 20px; border-top:1px solid var(--border); color:var(--text); text-align:center; }
.site-footer-links { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 22px; }
.site-footer-top { display:flex; justify-content:center; margin-top:4px; }
.notice-to-top a,.site-footer-top > a { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 12px; border-radius:10px; color:var(--blue); font-size:.86rem; font-weight:700; text-decoration:none; }
.notice-to-top a:hover,.site-footer-top > a:hover { background:var(--surface-solid); }
html[data-theme="dark"] .site-footer-top > a { color:#60a5fa; }
@media (prefers-color-scheme:dark) {
    html:not([data-theme="light"]) .site-footer-top > a { color:#60a5fa; }
}
.site-footer-links > a { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-size:13px; font-weight:600; text-decoration:none; }
.site-footer-links .ui-icon { width:16px; height:16px; }
.site-footer-credit { margin-top:8px; color:var(--text-muted); font-size:12px; }
.site-footer-credit strong { color:var(--text-soft); font-weight:700; }

/* Signalements : formulaire commun au footer et aux paramètres. */
.problem-report-dialog,.problem-report-dialog * { box-sizing:border-box; }
.problem-report-dialog { width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; margin:auto; padding:24px; border:1px solid var(--border); border-radius:18px; background:var(--surface-solid); color:var(--text); box-shadow:0 24px 70px rgba(15,23,42,.25); }
.problem-report-dialog::backdrop { background:rgba(15,23,42,.55); backdrop-filter:blur(3px); }
.problem-report-dialog-heading,.problem-report-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.problem-report-dialog-heading h2 { margin:0; font-size:1.15rem; line-height:1.4; }
.problem-report-close { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:36px; height:36px; margin:-5px -5px 0 0; padding:6px; border:0; border-radius:8px; background:transparent; color:var(--text-muted); cursor:pointer; }
.problem-report-close .ui-icon { width:22px; height:22px; }
.problem-report-form { text-align:left; }
.problem-report-field { display:grid; gap:7px; margin-top:18px; }
.problem-report-field label { font-size:.9rem; font-weight:600; }
.problem-report-field input,.problem-report-field textarea,.problem-report-field select { box-sizing:border-box; width:100%; min-width:0; padding:11px 12px; border:1px solid var(--border-strong); border-radius:10px; background:var(--surface-soft); color:var(--text); font:inherit; font-size:16px; line-height:1.5; }
.problem-report-field textarea { resize:vertical; }
.problem-report-field input::placeholder,.problem-report-field textarea::placeholder { color:var(--text-muted); }
.problem-report-field input:focus,.problem-report-field textarea:focus,.problem-report-field select:focus { outline:2px solid var(--blue); outline-offset:2px; }
.problem-report-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.problem-report-primary,.problem-report-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface-solid); font:inherit; font-size:.9rem; font-weight:600; text-decoration:none; cursor:pointer; }
.problem-report-primary { border-color:transparent; background:var(--primary-button-bg); color:#fff; }
.problem-report-primary:disabled { opacity:.65; cursor:wait; }
.problem-report-primary:focus-visible,.problem-report-secondary:focus-visible,.problem-report-close:focus-visible,.problem-report-row:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.problem-reports { display:grid; gap:20px; max-width:900px; }
.problem-reports h2 { overflow-wrap:anywhere; }
.problem-report-list { display:grid; gap:16px; }
.problem-report-row { display:grid; gap:9px; padding:16px; border:1px solid var(--border); border-radius:12px; color:var(--text); background:var(--surface-soft); text-decoration:none; }
.problem-report-row[aria-current="true"] { border-color:var(--blue); }
.problem-report-row-head strong { min-width:0; overflow-wrap:anywhere; }
.problem-report-badge { flex-shrink:0; padding:4px 9px; border-radius:20px; background:color-mix(in srgb,var(--blue) 10%,var(--surface-solid)); color:var(--blue); font-size:.75rem; font-weight:600; white-space:nowrap; }
.problem-report-muted { color:var(--text-muted); font-size:.82rem; }
.problem-report-open { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--blue); font-size:.86rem; }
.problem-report-open .ui-icon { width:18px; height:18px; }
.problem-report-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.problem-report-response { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.problem-report-response h3 { font-size:1rem; }
.problem-report-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin-top:18px; font-size:.85rem; }
.problem-report-pagination a { display:inline-flex; align-items:center; min-height:44px; color:var(--blue); }
@media (max-width:899px) {
    .site-footer { padding:24px 20px calc(20px + env(safe-area-inset-bottom)); }
    .problem-report-dialog { width:calc(100% - 24px); padding:20px; }
    .problem-report-row-head { flex-wrap:wrap; }
}
@media (min-width:900px) {
    body:has(.sidebar) .site-footer { margin-left:var(--sidebar); }
}
@media print { .site-footer { display:none; } }
