*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;transition:background .2s,color .2s}#root{min-height:100vh}:root{--bg:#f8fafc;--bg-card:#fff;--bg-card-hover:#f1f5f9;--bg-chip:#fff;--bg-input:#fff;--border:#e2e8f0;--border-focus:#2563eb;--text:#0f172a;--text-secondary:#475569;--text-muted:#64748b;--text-faint:#94a3b8;--accent:#2563eb;--accent-light:#eff6ff;--shadow:#0000000f;--tab-bg:#f1f5f9;--tab-active:#fff}[data-theme=dark]{--bg:#0b1120;--bg-card:#131c31;--bg-card-hover:#1a2640;--bg-chip:#131c31;--bg-input:#1a2640;--border:#1e2d4a;--border-focus:#3b82f6;--text:#e2e8f0;--text-secondary:#94a3b8;--text-muted:#64748b;--text-faint:#475569;--accent:#3b82f6;--accent-light:#1e293b;--shadow:#0003;--tab-bg:#1a2640;--tab-active:#131c31}.app{max-width:1000px;margin:0 auto;padding:1.5rem 1.25rem 3rem}.header{margin-bottom:1.25rem}.header-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.header h1{letter-spacing:-.02em;color:var(--text);font-size:1.65rem;font-weight:800}.subtitle{color:var(--text-muted);margin-top:.2rem;font-size:.9rem}.theme-toggle{border:1.5px solid var(--border);cursor:pointer;background:0 0;border-radius:8px;padding:.3rem .6rem;font-size:1.2rem;line-height:1}.theme-toggle:hover{border-color:var(--accent)}.tabs{background:var(--tab-bg);border-radius:10px;gap:.25rem;margin-top:1rem;padding:.25rem;display:flex;overflow-x:auto}.tab{color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:8px;padding:.5rem 1rem;font-size:.85rem;font-weight:600;transition:all .15s}.tab:hover{color:var(--text)}.tab.active{background:var(--tab-active);color:var(--text);box-shadow:0 1px 3px #00000014}.tab-count{background:var(--accent);color:#fff;vertical-align:middle;border-radius:4px;margin-left:.25rem;padding:.1rem .4rem;font-size:.65rem}.controls{flex-direction:column;gap:.6rem;margin-bottom:1rem;display:flex}.search-row{gap:.4rem;display:flex}.search-row input{border:1.5px solid var(--border);background:var(--bg-input);color:var(--text);border-radius:8px;outline:none;flex:1;padding:.6rem 1rem;font-size:.9rem;transition:border-color .2s}.search-row input:focus{border-color:var(--border-focus)}.search-row select{border:1.5px solid var(--border);background:var(--bg-input);color:var(--text);cursor:pointer;border-radius:8px;outline:none;padding:.6rem .8rem;font-size:.85rem}.filter-row{flex-direction:column;gap:.5rem;display:flex}.filter-group{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.filter-group label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;min-width:3.5rem;font-size:.75rem;font-weight:600}.chips{flex-wrap:wrap;gap:.25rem;display:flex}.chip{border:1.5px solid var(--border);background:var(--bg-chip);color:var(--text-muted);cursor:pointer;white-space:nowrap;border-radius:5px;padding:.25rem .6rem;font-size:.78rem;font-weight:500;transition:all .15s}.chip:hover{border-color:var(--accent);color:var(--accent)}.chip.active{background:var(--accent);color:#fff;border-color:var(--accent)}.result-count{color:var(--text-muted);font-size:.8rem;font-weight:500}.btn{cursor:pointer;white-space:nowrap;border:none;border-radius:8px;padding:.6rem 1rem;font-size:.85rem;font-weight:600;transition:all .15s}.btn-pdf{color:#fff;background:#dc2626}.btn-pdf:hover{background:#b91c1c}.btn-check{background:var(--accent);color:#fff}.btn-check:hover{filter:brightness(1.1)}.leaks-list{flex-direction:column;gap:.6rem;display:flex}.empty{text-align:center;color:var(--text-faint);padding:3rem 0}.leak-card{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;padding:1rem 1.25rem;transition:box-shadow .15s,border-color .15s}.leak-card:hover{box-shadow:0 2px 10px var(--shadow);border-color:var(--text-faint)}.leak-card.critique{border-left:4px solid #dc2626}.leak-card.élevée{border-left:4px solid #ea580c}.leak-card.moyenne{border-left:4px solid #ca8a04}.leak-card.faible{border-left:4px solid #9ca3af}.card-top{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.4rem;display:flex}.card-head{align-items:center;gap:.4rem;display:flex}.card-head h2{color:var(--text);font-size:1rem;font-weight:700}.severity-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.severity-critique{background:#dc2626}.severity-élevée{background:#ea580c}.severity-moyenne{background:#ca8a04}.severity-faible{background:#9ca3af}.card-tags{flex-wrap:wrap;flex-shrink:0;gap:.25rem;display:flex}.tag{border-radius:4px;padding:.15rem .45rem;font-size:.7rem;font-weight:600}.t-year{background:var(--tab-bg);color:var(--text-muted)}.t-sector{background:var(--accent-light);color:var(--accent)}.t-sev{border:1px solid}.desc{color:var(--text-secondary);margin-bottom:.5rem;font-size:.85rem;line-height:1.45}.card-meta{margin-bottom:.5rem}.badge{color:var(--accent);background:var(--accent-light);border-radius:5px;align-items:center;gap:.25rem;padding:.2rem .55rem;font-size:.8rem;font-weight:600;display:inline-flex}.data-section{flex-direction:column;gap:.35rem;display:flex}.data-label{color:var(--text-faint);text-transform:uppercase;letter-spacing:.06em;font-size:.65rem;font-weight:700}.data-tags{flex-wrap:wrap;gap:.25rem;display:flex}.td{background:var(--tab-bg);border:1px solid var(--border);color:var(--text-secondary);border-radius:4px;padding:.15rem .45rem;font-size:.72rem;font-weight:500}.chart-grid{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem;display:grid}@media (width<=700px){.chart-grid{grid-template-columns:1fr}}.chart-card{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;padding:1rem}.chart-card h3{color:var(--text);margin-bottom:.75rem;font-size:.9rem;font-weight:700}.chart-card.full{grid-column:1/-1}.heat-wrap{overflow-x:auto}.heat{border-collapse:collapse;width:100%;font-size:.75rem}.heat th,.heat td{text-align:center;border:1px solid var(--border);padding:.4rem .6rem}.heat th{background:var(--tab-bg);color:var(--text-muted);font-weight:600}.heat-label{color:var(--text);white-space:nowrap;font-weight:600;text-align:left!important}.heat-cell{min-width:3rem;font-weight:600}.heat-note{color:var(--text-faint);margin-top:.5rem;font-size:.7rem}.fines-timeline{padding-left:1.5rem;position:relative}.fines-timeline:before{content:"";background:var(--border);width:2px;position:absolute;top:0;bottom:0;left:7px}.fine-item{padding-bottom:1rem;position:relative}.fine-dot{background:var(--accent);border:3px solid var(--bg-card);border-radius:50%;width:14px;height:14px;position:absolute;top:.35rem;left:-1.5rem}.fine-content{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:.6rem .8rem}.fine-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.fine-entity{color:var(--text);font-size:.85rem;font-weight:700}.fine-amount{color:#dc2626;font-size:.9rem;font-weight:800}.fine-date{color:var(--text-faint);font-size:.75rem}.fine-reason{color:var(--text-secondary);margin-top:.15rem;font-size:.75rem}.fine-ref{color:var(--text-faint);font-style:italic}.checker-card{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;max-width:700px;padding:1.5rem}.checker-card h3{color:var(--text);margin-bottom:.4rem;font-size:1.1rem;font-weight:700}.checker-card>p{color:var(--text-muted);margin-bottom:1rem;font-size:.85rem}.checker-form{gap:.5rem;margin-bottom:1rem;display:flex}.checker-form input{border:1.5px solid var(--border);background:var(--bg-input);color:var(--text);border-radius:8px;outline:none;flex:1;padding:.6rem 1rem;font-size:.9rem}.checker-form input:focus{border-color:var(--border-focus)}.checker-result{margin-top:.5rem}.alert{border-radius:8px;margin-bottom:.75rem;padding:.75rem 1rem;font-size:.85rem}.alert-danger{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}[data-theme=dark] .alert-danger{color:#fca5a5;background:#2d1517;border-color:#5c1f22}.alert-safe{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}[data-theme=dark] .alert-safe{color:#86efac;background:#132b1a;border-color:#1f4a2b}.alert-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a}[data-theme=dark] .alert-warning{color:#fcd34d;background:#2a2414;border-color:#4d401e}.alert a{color:inherit}.checker-domain{color:var(--text-muted);margin-bottom:.5rem;font-size:.8rem}.checker-breaches{flex-direction:column;gap:.5rem;margin-bottom:.75rem;display:flex}.checker-breach{border:1px solid var(--border);border-radius:8px;padding:.75rem}.checker-breach.critique{border-left:3px solid #dc2626}.checker-breach.élevée{border-left:3px solid #ea580c}.checker-breach.moyenne{border-left:3px solid #ca8a04}.cb-head{flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.2rem;display:flex}.cb-head strong{font-size:.85rem}.cb-year{color:var(--text-faint);background:var(--tab-bg);border-radius:3px;padding:.1rem .35rem;font-size:.7rem}.cb-sev{border-radius:3px;padding:.1rem .35rem;font-size:.65rem;font-weight:600}.sev-critique{color:#dc2626;background:#dc262618}.sev-élevée{color:#ea580c;background:#ea580c18}.sev-moyenne{color:#ca8a04;background:#ca8a0418}.cb-desc{color:var(--text-secondary);font-size:.78rem}.cb-data{flex-wrap:wrap;gap:.2rem;margin-top:.3rem;display:flex}.cb-data .td{font-size:.7rem}.checker-tip{color:var(--text-muted);font-size:.8rem}.checker-tip a{color:var(--accent)}.risk-search input{border:1.5px solid var(--border);background:var(--bg-input);width:100%;color:var(--text);border-radius:8px;outline:none;margin-bottom:.75rem;padding:.6rem 1rem;font-size:.85rem}.risk-search input:focus{border-color:var(--border-focus)}.risk-sites{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.35rem;max-height:320px;padding-right:.25rem;display:grid;overflow-y:auto}.risk-site{border:1.5px solid var(--border);cursor:pointer;border-radius:6px;align-items:center;gap:.35rem;padding:.35rem .5rem;font-size:.8rem;transition:all .15s;display:flex}.risk-site:hover{border-color:var(--accent)}.risk-site.checked{background:var(--accent-light);border-color:var(--accent)}.risk-site input{accent-color:var(--accent);flex-shrink:0}.rs-name{color:var(--text);flex:1;font-weight:600}.rs-sector{color:var(--text-faint);background:var(--tab-bg);border-radius:3px;padding:.1rem .35rem;font-size:.65rem}.risk-result{margin-top:1rem}.risk-score-card{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;align-items:center;gap:1.5rem;margin-bottom:1rem;padding:1.25rem;display:flex}.risk-score-gauge{text-align:center}.risk-score-value{font-size:2.5rem;font-weight:800;line-height:1}.risk-score-label{text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);font-size:.75rem}.risk-score-detail{color:var(--text-secondary);font-size:.85rem}.risk-score-detail p{margin-bottom:.15rem}.risk-score-detail strong{color:var(--text)}.risk-data-section{margin-bottom:1rem}.risk-data-section h4{color:var(--text);margin-bottom:.5rem;font-size:.9rem;font-weight:700}.td-risk{color:#991b1b;background:#fef2f2;border-color:#fecaca}[data-theme=dark] .td-risk{color:#fca5a5;background:#2d1517;border-color:#5c1f22}.risk-advice{background:var(--bg-card);border:1.5px solid var(--border);border-radius:10px;padding:1.25rem}.risk-advice h4{color:var(--text);margin-bottom:.5rem;font-size:.9rem;font-weight:700}.risk-advice ul{list-style:none}.risk-advice li{color:var(--text-secondary);border-bottom:1px solid var(--border);padding:.3rem 0;font-size:.82rem}.risk-advice li:last-child{border:none}.risk-advice a{color:var(--accent)}.footer{border-top:1.5px solid var(--border);margin-top:2rem;padding-top:1.25rem}.footer h3{color:var(--text-muted);margin-bottom:.4rem;font-size:.8rem;font-weight:700}.footer ul{columns:2 200px;column-gap:1rem;list-style:none}.footer li{break-inside:avoid;margin-bottom:.15rem}.footer a{color:var(--accent);font-size:.78rem;text-decoration:none}.footer a:hover{text-decoration:underline}.fn{color:var(--text-faint);margin-top:.75rem;font-size:.72rem;line-height:1.5}
