/* Accueil Phoenix, inspiré de la première version. */
.ux-start { max-width:940px; padding:24px 0; }
#view-container .ux-start h1 { margin:0 0 8px; font-size:clamp(25px,3vw,34px); color:var(--ph-ink); }
.ux-start > p { margin:0 0 25px; color:var(--ph-muted); }
.ux-start-actions { display:grid; gap:10px; }
.ux-start-actions section { display:grid; grid-template-columns:200px minmax(0,1fr) auto; align-items:center; gap:18px; padding:18px 20px; border:1px solid var(--ph-edge); border-left:3px solid var(--ph-accent); border-radius:9px; background:#fff; }
#view-container .ux-start-actions h2 { margin:0; font-size:16px; color:var(--ph-ink); }
.ux-start-actions p { margin:0; color:var(--ph-muted); font-size:13px; }
.ux-start-actions section > div { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.ux-start-actions button { border:1px solid var(--ph-accent); border-radius:7px; background:var(--ph-accent); color:#fff; padding:8px 12px; font-size:13px; font-weight:600; }
.ux-start-actions button + button { background:#fff; color:var(--ph-ink); }
.ux-start-actions button:focus-visible { outline:3px solid var(--ph-accent); outline-offset:2px; }
@media (max-width:760px) { .ux-start-actions section { grid-template-columns:1fr; gap:9px; } .ux-start-actions section > div { justify-content:flex-start; } }
.ux-assistance { max-width:1240px; }
.ux-assistance > header { margin:8px 0 24px; }
#view-container .ux-assistance h1 { margin:0 0 6px; font-size:30px; color:var(--ph-ink); }
.ux-assistance > header p { margin:0; max-width:720px; color:var(--ph-muted); }
.ux-assistance-grid { display:grid; grid-template-columns:minmax(320px,1fr) minmax(320px,1fr); gap:16px; align-items:start; }
.ux-assistance-card { padding:24px; border:1px solid var(--ph-edge); border-top:3px solid var(--ph-accent); border-radius:10px; background:#fff; }
#view-container .ux-assistance-card h2 { margin:0 0 20px; font-size:19px; color:var(--ph-ink); }
.ux-assistance-card form { display:grid; gap:15px; }
.ux-assistance-card label { display:grid; gap:6px; font-size:13px; font-weight:600; color:var(--ph-ink); }
.ux-assistance-card input,.ux-assistance-card select,.ux-assistance-card textarea { width:100%; padding:9px 11px; border:1px solid var(--ph-edge); border-radius:7px; background:#fff; color:var(--ph-ink); font:inherit; font-weight:400; }
.ux-assistance-card textarea { resize:vertical; }
.ux-assistance-card :is(input,select,textarea):focus-visible { outline:3px solid var(--ph-accent); outline-offset:1px; }
.ux-assistance-hint { margin:0; color:var(--ph-muted); font-size:12px; }
.ux-assistance-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.ux-assistance-actions button { border:1px solid var(--ph-accent); border-radius:7px; padding:9px 15px; background:var(--ph-accent); color:#fff; font-weight:600; }
.ux-assistance-actions button:disabled { opacity:.55; cursor:wait; }
.ux-assistance-actions span { color:var(--ph-ink); font-size:13px; }
.ux-assistance-empty { color:var(--ph-muted); }
.ux-assistance-item { padding:15px 0; border-top:1px solid var(--ph-edge); }
.ux-assistance-item:first-child { padding-top:0; border-top:0; }
.ux-assistance-item > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.ux-assistance-item strong { color:var(--ph-ink); }
.ux-assistance-item span,.ux-assistance-item p { color:var(--ph-muted); font-size:13px; }
.ux-assistance-item p { margin:5px 0 0; }
.ux-assistance-item details { margin-top:8px; color:var(--ph-muted); font-size:13px; }
.ux-assistance-item summary { width:max-content; cursor:pointer; color:var(--ph-ink); font-weight:600; }
.ux-assistance-item details p { white-space:pre-wrap; }
.ux-assistance-item .ux-assistance-note { margin-top:10px; padding:10px; border-left:3px solid var(--ph-accent); background:var(--ph-paper); color:var(--ph-ink); }
.ux-assistance-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; border-top:1px solid var(--ph-edge); color:var(--ph-muted); font-size:13px; }
.ux-assistance-pager[hidden] { display:none; }
.ux-assistance-pager button { padding:6px 10px; border:1px solid var(--ph-edge); border-radius:6px; background:#fff; color:var(--ph-ink); }
.ux-assistance-pager button:disabled { opacity:.5; }
@media (max-width:800px) { .ux-assistance-grid { grid-template-columns:1fr; } }
.ux-restitution { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:15px; margin:0 0 18px; padding:16px 20px; border:1px solid var(--ph-edge); border-radius:9px; background:#fff; }
.ux-restitution strong { color:var(--ph-ink); }
.ux-restitution p { margin:4px 0 0; color:var(--ph-muted); font-size:13px; }
.ux-restitution a { color:var(--ph-accent); font-size:13px; font-weight:600; }
.ux-home { --home-ink:var(--ph-ink); --home-line:var(--ph-edge); color:var(--home-ink); }
.ux-home .ux-panel { border-color:var(--home-line); border-radius:8px; padding:20px; }
.ux-home-top { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:18px; }
.ux-home-welcome {
 display:flex; justify-content:space-between; align-items:center; gap:24px;
 min-height:190px; padding:28px; color:#fff; background:var(--ph-ink); border-radius:8px;
}
#view-container .ux-home-welcome h1 { margin:0 0 22px; color:#fff!important; font-size:clamp(28px,3vw,43px); letter-spacing:-.035em; }
.ux-home-greeting { min-width:0; }
.ux-home-greeting>p { margin:0 0 7px; color:var(--ph-paper); font-size:13px; }
.ux-home-greeting>p::first-letter { text-transform:uppercase; }
#wrapper .ux-home-primary { background:#fff; border:1px solid #fff; color:var(--ph-ink)!important; font-weight:650; }
#wrapper .ux-home-secondary { background:transparent; border:1px solid #ffffff85; color:white!important; }
#wrapper .ux-home-primary:hover { background:var(--ph-paper); }
#wrapper .ux-home-secondary:hover { background:#ffffff24; }
.ux-home-done { align-self:stretch; display:flex; flex:0 0 122px; flex-direction:column; justify-content:center; padding:14px; gap:3px; background:rgba(255,255,255,.07); border-left:2px solid var(--ph-accent); border-radius:0; }
.ux-home-done i { color:var(--ph-paper); margin-bottom:5px; }
.ux-home-done strong { font-size:42px; line-height:1.05; font-variant-numeric:tabular-nums; }
.ux-home-done span { color:var(--ph-paper); font-size:12px; line-height:1.4; }
.ux-home-counters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.ux-home-counter {
 --tile-text:var(--ph-ink); background:var(--ph-surface); color:var(--tile-text);
 display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:93px; padding:11px;
 border:1px solid var(--ph-edge); border-radius:7px; text-align:left;
}
.ux-home-counter:hover { border-color:currentColor; }
.ux-home-counter i { font-size:13px; }
.ux-home-counter strong { font-size:26px; line-height:1.1; font-variant-numeric:tabular-nums; }
.ux-home-counter span { font-size:11px; font-weight:600; }
.ux-home-counter-retard { --tile-text:var(--ph-danger); }
.ux-home-counter-verif { --tile-text:var(--ph-success); }
.ux-home-counter-tva { --tile-text:var(--ph-ink); }
.ux-home-tasks .ux-priority-list { margin-top:10px; max-height:159px; overflow:auto; }
.ux-home-tasks .ux-priority-list li { padding:8px 0; align-items:center; }
.ux-home-tasks .ux-priority-list li:last-child { padding-bottom:0; }
.ux-home-tasks .ux-priority-list .btn { line-height:1.3; color:var(--ph-accent); }
.ux-home-middle { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.4fr) minmax(0,1fr); gap:18px; margin-top:18px; }
.ux-home-progress-row {
 width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:baseline; text-align:left;
 column-gap:12px; row-gap:6px; padding:9px 11px; margin-bottom:8px; border:1px solid var(--ph-edge);
 border-radius:7px; background:var(--ph-paper); color:var(--ph-ink); font-size:13px;
}
.ux-home-progress-row:hover { border-color:var(--ph-muted); }
.ux-home-progress-row small { color:var(--ph-muted); white-space:nowrap; }
.ux-home-progress-row progress { grid-column:1/-1; width:100%; height:6px; accent-color:var(--ph-accent); }
.ux-home-notes textarea { background:var(--ph-paper)!important; min-height:144px; }
.ux-home-empty { color:var(--ph-muted); font-size:13px; margin:14px 0 3px; }
.ux-home-life { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:18px; gap:18px; }
.ux-home-life .ux-section-heading { gap:6px; margin-bottom:10px; }
#view-container .ux-home-life h2 { font-size:14px; }
.ux-home-life i,.ux-home-life .ux-section-heading>span { color:var(--ph-accent); }
.ux-home-life ul { list-style:none; margin:0; padding:0; }
.ux-home-life li { font-size:13px; padding:7px 0; border-bottom:1px solid var(--ph-edge); }
.ux-home-life li:last-child { border-bottom:0; }
.ux-home-life li small { display:block; color:var(--ph-muted); }
.ux-source-dates { display:grid; gap:4px; margin-top:3px; }
.ux-source-date { color:var(--ph-ink); background:var(--ph-paper); padding:4px 6px; border-radius:5px; border:0; text-align:left; font-size:11px; white-space:normal!important; }
.ux-source-date:hover { text-decoration:underline; }
.ux-source-done { color:var(--ph-success); background:var(--ph-surface); }
@media(max-width:1100px) {
 .ux-home-top,.ux-home-middle { grid-template-columns:1fr 1fr; }
 .ux-home-progress { grid-column:1/-1; grid-row:2; }
 .ux-home-welcome { padding:21px; }
 .ux-home-done { flex-basis:100px; }
 .ux-home-counters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ux-home-life { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 .ux-home-top,.ux-home-middle { grid-template-columns:minmax(0,1fr); gap:12px; }
 .ux-home-welcome { min-height:174px; padding:17px; gap:12px; }
 .ux-home-done { flex-basis:88px; padding:9px; }
 .ux-home-done strong { font-size:30px; }
 .ux-home-done span { font-size:10px; }
 #view-container .ux-home-welcome h1 { font-size:26px; margin-bottom:13px; }
 .ux-home .ux-panel { padding:14px; }
 .ux-home-middle,.ux-home-life { margin-top:12px; }
 .ux-home-life { gap:12px; }
 .ux-home-progress { grid-row:auto; }
 .ux-home-counter { min-height:74px; }
}
