/* WAGEWINGS — interface Web, reconstruite d'après les maquettes approuvées (WW-GRAPHISME-002).
   Couleurs : tokens.css uniquement. Bleu marine, bleu royal, blanc, vert (positif), rouge (dépenses). Aucun doré, aucun violet. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #F3F6FC; color: var(--ww-ink); font-family: var(--ww-font); font-size: 16px; line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ww-white); color: var(--ww-navy); padding: 8px; z-index: 20; }
:focus-visible { outline: 3px solid var(--ww-royal); outline-offset: 2px; }
main:focus, .page:focus { outline: none; }
h1, h2, h3 { color: var(--ww-navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 12px; }
.muted { color: var(--ww-muted); }
.page-head { margin: 4px 0 12px; }
.page-head p { color: var(--ww-muted); margin: 0; }

/* --- coque : barre latérale, barre supérieure, contenu --- */
.app-frame { min-height: 100vh; }
.app-frame.has-nav { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: none; }
.app-frame.has-nav .sidebar {
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #002861 0%, #012450 62%, #0051F2 100%); color: var(--ww-white); padding: 16px 12px 20px;
}
.brand { display: block; background: var(--ww-white); border-radius: 16px; padding: 8px; margin-bottom: 14px; }
.brand img { display: block; width: 100%; height: auto; max-height: 120px; object-fit: contain; }
#nav { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
#nav a, #nav .item, #nav summary, #nav .soon, #nav .link {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 12px;
  color: #D6E0F5; text-decoration: none; font: inherit; font-size: 0.95rem; background: none; border: 0; text-align: left; width: 100%;
}
#nav a:hover, #nav summary:hover, #nav .link:hover { background: rgba(255, 255, 255, 0.08); color: var(--ww-white); }
#nav a[aria-current="page"] { background: var(--ww-royal); color: var(--ww-white); box-shadow: 0 4px 12px rgba(31, 79, 209, 0.45); }
#nav .soon { opacity: 0.55; cursor: not-allowed; }
#nav details.grp { display: flex; flex-direction: column; gap: 2px; }
#nav details.grp > summary { list-style: none; cursor: pointer; }
#nav details.grp > summary::-webkit-details-marker { display: none; }
#nav details.grp > a { padding-left: 42px; min-height: 36px; font-weight: 500; font-size: 0.9rem; }
#nav details.grp > .soon { padding-left: 42px; min-height: 36px; font-weight: 500; font-size: 0.9rem; }
#nav details.grp > summary::after { content: "›"; margin-left: auto; transition: transform 0.15s; }
#nav details.grp[open] > summary::after { transform: rotate(90deg); }
#nav .link { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; padding-top: 14px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 24px; background: linear-gradient(90deg, #002861 0%, #0084F5 50%, #1A254E 100%); color: var(--ww-white);
}
.topbar .search input { background: rgba(255, 255, 255, 0.95); border-color: transparent; }
.topbar .lang-btn { background: var(--ww-white); }
.topbar .lang-btn[aria-pressed="true"] { background: var(--ww-navy); }
.topbar .icon-btn { background: rgba(255, 255, 255, 0.14); border-color: transparent; color: var(--ww-white); }
.topbar .account { color: var(--ww-white); }
.topbar .avatar { background: var(--ww-white); color: var(--ww-navy); }
.menu-btn { display: none; }
.search { flex: 1 1 240px; max-width: 520px; margin: 0; }
.search input { margin: 0; min-height: 40px; border-radius: 999px; background: #F3F6FC; border: 1px solid var(--ww-line); }
.search input:disabled { opacity: 1; color: var(--ww-muted); cursor: not-allowed; }
.topbar .lang-switch { margin-left: auto; }
.icon-btn { min-height: 40px; width: 40px; padding: 0; border-radius: 999px; background: var(--ww-white); border: 1px solid var(--ww-line); color: var(--ww-navy); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.account { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--ww-navy); }
.app-frame.has-nav .account { display: inline-flex; }
.app-frame.has-nav .tb-user { display: inline-flex; }
.app-frame:not(.has-nav) .tb-user { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--ww-navy); color: var(--ww-white); display: inline-grid; place-items: center; font-weight: 800; }
.page { padding: 20px 24px 28px; max-width: 1200px; width: 100%; margin: 0 auto; }
#notice:empty { display: none; }
#notice .notice { margin-top: 0; }
.site-foot { border-top: 1px solid var(--ww-line); background: var(--ww-white); color: var(--ww-muted); font-size: 0.88rem; padding: 14px 24px; }
.site-foot p { margin: 0 0 4px; }

@media (max-width: 1023px) {
  .app-frame.has-nav { display: block; }
  .app-frame.has-nav .sidebar { display: none; }
  .app-frame.has-nav .sidebar.open {
    display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 30; height: 100vh; overflow-y: auto;
    flex-direction: column; background: linear-gradient(180deg, #002861 0%, #012450 62%, #0051F2 100%); color: var(--ww-white); padding: 16px 12px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }
  .menu-btn { display: inline-flex; min-height: 40px; padding: 6px 14px; background: var(--ww-navy); border-color: var(--ww-navy); }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .page { padding: 16px 14px 24px; }
  .search { flex-basis: 100%; order: 3; max-width: none; }
  .topbar .lang-switch { margin-left: 0; }
  .lang-btn { padding: 4px 8px; }
  .site-foot { padding: 14px 16px; }
}

/* --- cartes, grilles, boutons, formulaires --- */
.card {
  background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: 16px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(11, 31, 75, 0.07);
}
.card > h2.band, .band { margin: -20px -20px 16px; padding: 12px 20px; background: var(--ww-royal); color: var(--ww-white); border-radius: 16px 16px 0 0; font-size: 1.02rem; }
.card:has(> .band) { padding-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1fr; } }

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--ww-royal); background: var(--ww-royal); color: var(--ww-white);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover, button:hover:not(:disabled) { background: var(--ww-royal-deep); border-color: var(--ww-royal-deep); }
button.secondary { background: var(--ww-white); color: var(--ww-navy); border: 1px solid var(--ww-royal); }
button.danger { background: var(--ww-white); color: var(--ww-navy); border-color: var(--ww-navy); }
button.link { background: none; border: 0; color: #D6E0F5; padding: 10px 0; min-height: 40px; text-decoration: none; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.small { min-height: 36px; padding: 6px 12px; font-size: 0.95rem; }
button.wide { width: 100%; }
button.login-primary { background: #014DC1; }
.app-frame:not(.has-nav) .search { display: none; }
.app-frame:not(.has-nav) .topbar { background: linear-gradient(90deg, #002861 0%, #0084F5 50%, #1A254E 100%); }

form { margin: 0; }
label { display: block; font-weight: 600; margin-top: 12px; color: var(--ww-navy); }
label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 0; }
input:not([type="checkbox"]):not([type="radio"]), select {
  display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px;
  border: 1px solid #B9C6E0; border-radius: 12px; font: inherit; font-size: 16px; background: var(--ww-white); color: var(--ww-ink);
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ww-royal); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.hint { color: var(--ww-muted); font-size: 0.92rem; margin-top: 4px; }
.soon-tag { margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: var(--ww-navy); background: var(--ww-tint); border-radius: 999px; padding: 2px 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tabs .tab { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--ww-white); border: 1px solid var(--ww-line); color: var(--ww-navy); font-weight: 600; text-decoration: none; }
.tabs .tab.on, .tabs a.tab[aria-current="page"] { background: var(--ww-royal); color: var(--ww-white); border-color: var(--ww-royal); }
.tabs .tab.soon { opacity: 0.55; cursor: not-allowed; }

.notice { border-left: 4px solid var(--ww-navy); background: var(--ww-tint); padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.notice.err { border-left-color: var(--ww-down); font-weight: 600; }
.notice.ok::before { content: "Done. "; font-weight: 700; }
.notice.err::before { content: "Problem. "; font-weight: 700; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { background: var(--ww-tint); border-radius: 12px; padding: 12px; min-width: 0; }
.stat dt { font-size: 0.9rem; color: var(--ww-muted); }
.stat dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--ww-navy); overflow-wrap: anywhere; }
.stat small { display: block; color: var(--ww-muted); }

ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--ww-line); }
ul.rows li:last-child { border-bottom: 0; }
ul.rows li a { color: var(--ww-navy); font-weight: 600; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.over { font-weight: 700; color: var(--ww-navy); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.badge.todo { background: var(--ww-white); color: var(--ww-navy); border: 2px solid var(--ww-navy); }
.badge.done { background: var(--ww-navy); color: var(--ww-white); }
.badge.reached { background: var(--ww-green); color: var(--ww-white); }
.badge.best { background: var(--ww-royal); color: var(--ww-white); }
.badge.unreached { background: var(--ww-down); color: var(--ww-white); }
dl.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0; }
dl.values dt { color: var(--ww-muted); font-size: 0.9rem; }
dl.values dd { margin: 0; font-weight: 700; }
.empty { color: var(--ww-muted); padding: 8px 0; }
progress { display: block; width: 100%; height: 12px; margin: 8px 0 4px; accent-color: var(--ww-royal); }
.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--ww-navy); margin: 4px 0 12px; }

/* sélecteur de langue : FR, EN, ES toujours visibles */
.lang-switch { display: inline-flex; flex-wrap: nowrap; gap: 4px; align-items: center; }
.lang-btn { min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ww-royal); background: var(--ww-white); color: var(--ww-navy); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.lang-btn:hover { background: var(--ww-tint); }
.lang-btn[aria-pressed="true"] { background: var(--ww-navy); color: var(--ww-white); border-color: var(--ww-navy); }
.lang-btn:focus-visible { outline: 3px solid var(--ww-royal); outline-offset: 2px; }

/* --- connexion : deux colonnes, panneau d'accueil, carte --- */
.auth { display: grid; gap: 0; grid-template-columns: 1fr; align-items: stretch; margin: 0; }
@media (min-width: 900px) { .auth { grid-template-columns: 50.3fr 46.4fr; min-height: calc(100vh - 150px); } }
.auth-hero {
  position: relative; overflow: hidden; border-radius: 0; padding: 150px 64px 40px 110px; color: var(--ww-white); min-height: 420px;
  background: linear-gradient(160deg, #1F4FD1 0%, #0B1F4B 70%); display: flex; flex-direction: column; gap: 10px;
}
.auth-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 372px; height: 494px; max-width: 100%; background: url("/app/hero-login.png") no-repeat left bottom / 372px 494px; pointer-events: none; }
.auth-logo { width: 230px; height: auto; background: var(--ww-white); border-radius: 14px; padding: 6px; align-self: flex-start; position: relative; z-index: 1; }
.auth-hero h1 { color: var(--ww-white); font-size: 2.9rem; line-height: 1.05; margin: 14px 0 0; position: relative; z-index: 1; }
.auth-lead { color: #D6E0F5; position: relative; z-index: 1; max-width: 420px; }
.auth-features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; position: relative; z-index: 1; max-width: 360px; }
.auth-features li { background: rgba(255, 255, 255, 0.92); color: var(--ww-navy); border-radius: 12px; padding: 10px 14px 10px 64px; font-weight: 700; position: relative; box-shadow: 0 6px 16px rgba(0, 40, 97, 0.12); }
.auth-features li::before { content: ""; position: absolute; left: 10px; top: 8px; width: 40px; height: 40px; border-radius: 10px; background: #EAF2FF; }
.auth-card { background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: 22px; padding: 26px; box-shadow: 0 12px 30px rgba(11, 31, 75, 0.1); align-self: center; margin: 0 auto; width: min(776px, calc(100% - 48px)); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F3F6FC; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.auth-tabs .tab { min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ww-navy); }
.auth-tabs .tab.on { background: var(--ww-royal); color: var(--ww-white); }
.auth-tabs .tab:disabled { opacity: 0.6; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; min-height: 36px; width: 40px; padding: 0; background: transparent; color: var(--ww-navy); border: 0; }
.pw-toggle:hover { background: var(--ww-tint); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.auth-row .muted { font-weight: 600; }
.or { text-align: center; color: var(--ww-muted); margin: 18px 0 10px; position: relative; font-weight: 600; }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
button.social { background: var(--ww-white); color: var(--ww-navy); border: 1px solid #B9C6E0; font-size: 0.92rem; padding: 8px 6px; min-height: 44px; }
button.social:disabled { opacity: 0.5; }
@media (max-width: 480px) { .socials { grid-template-columns: 1fr; } .auth-hero { min-height: 0; } .auth-logo { width: 180px; } }

/* --- tableau de bord (WW-037, maquette) --- */
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi-card { border-radius: 16px; overflow: hidden; color: var(--ww-white); background: var(--ww-royal); padding: 14px; min-width: 0; box-shadow: 0 8px 20px rgba(11, 31, 75, 0.12); }
.kpi-card.tone-green { background: var(--ww-tile-green); }
.kpi-card.tone-red { background: var(--ww-tile-red); }
.kpi-card.tone-royal { background: var(--ww-sky); }
.kpi-card.tone-navy { background: var(--ww-navy); }
.kpi-head { padding: 0; }
.kpi-head h3 { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--ww-white); }
.kpi-body { display: grid; gap: 4px; padding: 6px 0 0; }
.kpi-value { font-size: clamp(0.95rem, 1.5vw, 1.12rem); color: var(--ww-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-body small { color: #E6ECFA; font-size: 0.8rem; }
.kpi-body .muted { color: #E6ECFA; }
.ov-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 16px; }
@media (min-width: 900px) { .ov-row { grid-template-columns: 1fr 1fr 1fr; } .ov-row-main { grid-template-columns: 2fr 1fr 1fr; } .ov-wide { grid-column: span 2; } .ov-row-main .ov-wide { grid-column: auto; } }
.hours-shortcut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-left: 6px solid var(--ww-royal); }
.hours-shortcut h2 { margin-bottom: 4px; }
.hours-shortcut p { margin: 0; }
.gauge-wrap { margin: 0; display: grid; justify-items: center; gap: 6px; }
.gauge { position: relative; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--ww-up) calc(var(--p, 0) * 1%), var(--ww-royal) 0); display: grid; place-items: center; }
.gauge::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--ww-white); }
.gauge-center { position: relative; z-index: 1; display: grid; justify-items: center; font-size: 1.25rem; color: var(--ww-navy); }
.gauge-center small { font-size: 0.75rem; font-weight: 500; }
.donut-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.donut-legend li { display: flex; align-items: center; gap: 4px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.swatch.up { background: var(--ww-up); }
.swatch.rest { background: var(--ww-royal); }
.swatch.income { background: var(--ww-up); border-radius: 3px; }
.swatch.down { background: var(--ww-down); border-radius: 3px; }
.chart { margin: 0 0 16px; }
.chart figcaption { font-weight: 700; margin-bottom: 8px; }
.chart > figcaption { display: none; }
.chart .band { margin-bottom: 8px; }
.chart-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chart-row { display: grid; gap: 4px; }
.chart-label { font-weight: 600; }
.chart-bars { display: grid; gap: 4px; }
.chart-bar { display: block; height: 10px; border-radius: 999px; min-width: 2px; }
.chart-bar.real { background: var(--ww-royal); }
.chart-bar.planned { background: repeating-linear-gradient(45deg, var(--ww-royal) 0 3px, var(--ww-tint) 3px 6px); }
.chart-values { color: var(--ww-muted); font-size: 0.9rem; }
.chart-legend { color: var(--ww-muted); font-size: 0.9rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chart-legend .chart-bar { display: inline-block; width: 24px; height: 10px; }
@media (min-width: 640px) { .chart-row { grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) minmax(140px, auto); align-items: center; gap: 12px; } }
.curve-svg { display: block; width: 100%; height: auto; max-height: 240px; }
.curve-area { fill: #E7F6EC; }
.curve-line { fill: none; stroke: var(--ww-green); stroke-width: 3; stroke-linejoin: round; }
.curve-dot { fill: var(--ww-green); stroke: var(--ww-white); stroke-width: 2; }
.curve-axis { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ww-muted); }
@media (max-width: 640px) { .gauge { width: 130px; height: 130px; } .gauge::after { inset: 19px; } }
.columns-wrap { position: relative; padding-left: 52px; }
.axis-max, .axis-zero { position: absolute; left: 0; font-size: 0.75rem; color: var(--ww-muted); }
.axis-max { top: 0; }
.axis-zero { bottom: 0; }
.columns { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 180px; border-bottom: 1px solid var(--ww-line); }
.column { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.col-pair { display: flex; align-items: flex-end; gap: 2px; height: 160px; }
.col { display: block; width: 50%; border-radius: 4px 4px 0 0; }
.col.up { background: var(--ww-up); }
.col.down { background: var(--ww-down); }
.col-label { font-size: 0.7rem; text-align: center; color: var(--ww-muted); }
.hint.warn { color: var(--ww-down); font-weight: 600; }
.import-review { display: grid; gap: 8px; margin-top: 12px; }

/* --- Smart Hours (maquette) --- */
.sim-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .sim-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); } }
.scn-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 1500px) { .scn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scn-grid > li { border: 1px solid var(--ww-line); border-radius: 14px; padding: 12px; background: #FBFCFE; border-bottom: 0; }
.scn-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.scn-head h3 { margin: 0; }
fieldset { border: 1px solid var(--ww-line); border-radius: 14px; padding: 12px 14px; margin: 14px 0 0; }
fieldset legend { font-weight: 700; color: var(--ww-navy); padding: 0 6px; }

/* --- tableau de bord, mise en page de la maquette (WW-GRAPHISME-002) --- */
.dash-head { margin: 0 0 12px; }
.dash-head h1 { font-size: 1.9rem; margin: 0; }
.dash-head p { margin: 2px 0 0; }
.dash-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; }
@media (min-width: 1100px) { .dash-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dash-tile { display: flex; gap: 10px; align-items: flex-start; color: var(--ww-white); border-radius: 16px; padding: 14px; min-width: 0; box-shadow: 0 8px 20px rgba(11, 31, 75, 0.12); }
.dash-tile.tone-green { background: var(--ww-tile-green); }
.dash-tile.tone-red { background: var(--ww-tile-red); }
.dash-tile.tone-blue { background: var(--ww-sky); }
.dash-tile.tone-violet { background: var(--ww-violet); }
.dash-tile.tone-navy { background: var(--ww-navy); }
.dash-tile > div { display: grid; gap: 2px; min-width: 0; }
.dash-tile strong { font-size: clamp(0.95rem, 1.5vw, 1.12rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tile span { font-size: 0.86rem; font-weight: 600; }
.dash-tile small { font-size: 0.78rem; color: #E6ECFA; }
.dash-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.dash-ico .ico { stroke: var(--ww-white); width: 22px; height: 22px; }
.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 16px; }
@media (min-width: 900px) {
  .dash-row-a { grid-template-columns: 2fr 1fr 1fr; }
  .dash-row-b { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .dash-row-c { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .dash-row-c { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.dash-grid > .card { margin-bottom: 0; }
.dash-goal .goal-amount { font-size: 1.2rem; margin: 0 0 6px; color: var(--ww-navy); }
.dash-goal .goal-pct { font-size: 1.1rem; font-weight: 800; color: var(--ww-navy); margin: 4px 0 12px; }
.dash-smart, .dash-proj { display: grid; gap: 10px; align-content: start; }
.dash-proj .empty { margin: 0; }
.pay-rows li { font-size: 0.95rem; }
.cat-donut { display: grid; justify-items: center; gap: 10px; }
.donut-ring { position: relative; width: 170px; height: 170px; border-radius: 50%; }
.donut-ring::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: var(--ww-white); }
.donut-center { position: absolute; }
.cat-donut { position: relative; }
.cat-donut > .donut-center { position: absolute; top: 72px; left: 0; right: 0; text-align: center; pointer-events: none; display: grid; }
.cat-donut > .donut-center small { color: var(--ww-muted); }
.cat-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.cat-legend li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 0.9rem; }
.ind-list, .tools-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ind-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ww-line); }
.ind-list li:last-child, .tools-list li:last-child { border-bottom: 0; }
.tools-list li a { color: var(--ww-royal); font-weight: 700; }
.tools-list .soon { color: var(--ww-muted); }
.quick-bar { margin-top: 16px; }
.quick-bar h2 { font-size: 1rem; margin-bottom: 10px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .quick-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.quick-list a, .quick-list .soon { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border-radius: 14px; background: #F3F6FC; color: var(--ww-navy); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.quick-list a:hover { background: var(--ww-tint); }
.quick-list .soon { color: var(--ww-muted); }

.smart-tiles { margin-top: 4px; }
.smart-tiles .dash-tile:nth-child(1) { background: var(--ww-tile-green); }
.smart-tiles .dash-tile:nth-child(2) { background: var(--ww-sky); }
.smart-tiles .dash-tile:nth-child(3) { background: var(--ww-violet); }
.smart-tiles .dash-tile:nth-child(4) { background: var(--ww-sky); }
.smart-tiles .dash-tile:nth-child(5) { background: var(--ww-tile-green); }
.smart-future { margin-top: 16px; }
.smart-future h2 { margin-bottom: 4px; }
.future-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .future-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.future-card { opacity: 0.85; margin-bottom: 0; }
.future-card h3 { margin-bottom: 8px; }
.future-card button { margin-top: 10px; }

/* --- SMART SCHEDULE : blocs de la maquette, module futur (désactivé) --- */
.fut-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 1000px) { .fut-row-a { grid-template-columns: 1fr 1fr 1fr; } .fut-row-b { grid-template-columns: 1fr 1fr; } }
.fut-card { margin-bottom: 0; display: grid; gap: 10px; align-content: start; }
.fut-card h3 { margin: 0; color: var(--ww-navy); }
.fut-drop { border: 2px dashed var(--ww-royal); border-radius: 14px; padding: 22px 12px; display: grid; justify-items: center; gap: 10px; text-align: center; background: #F7FAFF; }
.fut-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fut-frame { height: 150px; border: 2px dashed #B9C6E0; border-radius: 12px; background: #F7FAFF; }
.fut-thead { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--ww-navy); border-bottom: 1px solid var(--ww-line); padding-bottom: 6px; }
.fut-empty { color: var(--ww-muted); font-size: 0.85rem; margin: 0; font-style: italic; }
.fut-card button.wide { width: 100%; }

/* Tuiles du tableau de bord : hauteur et typographie proches de la maquette (≈ 65 px de haut à 1672 px) */
.dash-tile { padding: 10px 12px; align-items: center; min-height: 66px; }
.dash-tile strong { font-size: clamp(0.9rem, 1.25vw, 1.02rem); }
.dash-tile span { font-size: 0.78rem; line-height: 1.2; }
.dash-tile small { font-size: 0.72rem; line-height: 1.2; }
.dash-ico { width: 38px; height: 38px; }
.dash-head h1 { font-size: 1.7rem; }

/* Connexion pleine largeur, comme la maquette (panneau d'illustration à gauche, carte à droite) */
.app-frame:not(.has-nav) .page { max-width: none; padding: 0; }
.app-frame:not(.has-nav) .site-foot { margin-top: 0; }
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .auth { min-height: calc(100vh - 150px); }
  .app-frame:not(.has-nav) .auth-hero { min-height: calc(100vh - 150px); background: linear-gradient(170deg, #48BBF0 0%, #0169D3 38%, #002667 100%); }
  .app-frame:not(.has-nav) .auth-card { margin: auto; }
}

/* Positions mesurées sur la maquette de connexion (1672 px de large) : texte à partir de x≈372, logo en haut à gauche */
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .auth-hero { padding: 96px 48px 40px 372px; }
  .app-frame:not(.has-nav) .auth-logo { width: 360px; margin-left: -262px; }
  .app-frame:not(.has-nav) .auth-hero h1 { font-size: 3.2rem; }
  .app-frame:not(.has-nav) .auth-features { max-width: 430px; }
  .app-frame:not(.has-nav) .auth-features li { padding: 10px 14px 10px 62px; }
}
.auth-hero::after { -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }

/* Carte de connexion : dimensions de la maquette (titre, onglets, champs plus hauts) */
.auth-title { text-align: center; font-size: 2rem; margin: 6px 0 18px; }
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .auth-card { padding: 34px 40px; }
  .app-frame:not(.has-nav) .auth-tabs .tab { min-height: 50px; font-size: 1.05rem; }
  .app-frame:not(.has-nav) input:not([type="checkbox"]):not([type="radio"]) { min-height: 56px; }
  .app-frame:not(.has-nav) .auth-card button[type="submit"] { min-height: 56px; }
}

/* Hauteur des tuiles du tableau de bord : ≈ 90 px à 1672 px, comme la maquette ; le détail passe en petit texte */
.dash-tiles .dash-tile { height: 92px; overflow: hidden; }
.dash-tiles .dash-tile small { display: block; overflow: hidden; max-height: 3.6em; }

/* Illustration de connexion : reconstitution SVG (fond) + personnage recadré de la maquette (premier plan) */
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .auth-hero { background: url("/app/brand/login-illustration-reconstruction.svg") center / cover no-repeat, #0076E9; }
}

/* Accès rapide (maquette) : bandeau bleu, dix tuiles avec pictogrammes, texte et icônes réels */
.quick-bar { background: linear-gradient(90deg, #002861 0%, #0051F2 100%); border: 0; color: var(--ww-white); padding: 14px 16px 16px; }
.quick-bar .quick-title { color: var(--ww-white); font-size: 1.05rem; margin: 0 0 10px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .quick-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .quick-list { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.quick-list .quick-item { display: grid; justify-items: center; gap: 6px; min-height: 96px; padding: 10px 6px; border-radius: 14px; background: var(--ww-white); color: var(--ww-navy); font-weight: 700; font-size: 0.8rem; line-height: 1.2; text-align: center; text-decoration: none; }
.quick-list a.quick-item:hover { background: #E9F1FF; }
.quick-list .quick-item.soon { cursor: not-allowed; color: var(--ww-muted); }
.dash-ico.dark { background: var(--ww-navy); width: 40px; height: 40px; }
.dash-ico.dark .ico { stroke: var(--ww-white); }
/* Bande de bienvenue */
.band-welcome { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; background: linear-gradient(90deg, #002861 0%, #0084F5 60%, #1A254E 100%); color: var(--ww-white); border-radius: 16px; padding: 14px 20px; margin-bottom: 12px; }
.band-welcome h1 { color: var(--ww-white); font-size: 1.6rem; margin: 0; }
.band-welcome p { color: #E6ECFA; margin: 2px 0 0; }
.band-welcome .welcome-note { font-size: 0.85rem; max-width: 420px; }
/* Grands chiffres des tuiles (maquette) */
.dash-tile strong { font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 800; }

.tabs .tab { gap: 6px; }
.tabs .tab .ico { width: 18px; height: 18px; }
.smart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Accessibilité (WW-036 conservé) : texte blanc sous 3:1 sur le vert, le rouge et le bleu ciel de la maquette.
   Correction minimale : texte et pictogrammes en bleu marine sur ces trois tuiles (contrastes mesurés :
   vert 6,49:1 ; rouge 4,45:1 ; bleu ciel 4,59:1 ; blanc sur ces fonds : 2,19 / 3,20 / 3,10). Violet et bleu royal restent blancs. */
.dash-tile.tone-green, .dash-tile.tone-red, .dash-tile.tone-blue { color: var(--ww-navy); }
.dash-tile.tone-green .dash-ico, .dash-tile.tone-red .dash-ico, .dash-tile.tone-blue .dash-ico { background: rgba(0, 40, 97, 0.14); }
.dash-tile.tone-green .dash-ico .ico, .dash-tile.tone-red .dash-ico .ico, .dash-tile.tone-blue .dash-ico .ico { stroke: var(--ww-navy); }
.dash-tile.tone-green small, .dash-tile.tone-red small, .dash-tile.tone-blue small { color: var(--ww-navy); }

/* Correctif de lisibilité des tuiles : hauteur minimale 96 px, valeurs lisibles sans troncature */
.dash-tiles .dash-tile { height: auto; min-height: 96px; overflow: visible; }
.dash-tiles .dash-tile small { max-height: none; overflow: visible; }
.dash-tile strong { font-size: clamp(0.95rem, 1.45vw, 1.2rem); }

/* ===== Tableau de bord à 1672 × 941 : géométrie mesurée sur la maquette (WW-GRAPHISME-007) =====
   Bandeau 72 px ; colonne latérale 255 px ; rangées : bienvenue 10→56, tuiles 68→133, rangée A 150→318,
   rangée B 330→561, rangée C 576→733 (offsets depuis le bas du bandeau) ; accès rapide 761→869. */
@media (min-width: 1024px) {
  .app-frame.has-nav.route-overview { height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr) 108px; overflow: hidden; }
  .route-overview .topbar { grid-column: 1 / -1; grid-row: 1; height: 72px; padding: 0 16px; flex-wrap: nowrap; align-items: center; gap: 12px; background: linear-gradient(90deg, #002861 0%, #0084F5 50%, #1A254E 100%); }
  .route-overview .top-brand { display: block; background: var(--ww-white); border-radius: 0 0 0 0; padding: 4px 10px; height: 72px; flex: none; margin: -12px 0 -12px -16px; border-radius: 0 0 36px 0; }
  .route-overview .top-brand img { height: 64px; width: auto; max-width: none; }
  .route-overview .sidebar { grid-column: 1; grid-row: 2; height: auto; min-height: 0; overflow: hidden; padding: 35px 12px 0; background: linear-gradient(180deg, #002861 0%, #012450 62%, #0051F2 100%); }
  .route-overview .sidebar .brand { display: none; }
  .route-overview #nav a, .route-overview #nav summary, .route-overview #nav .soon, .route-overview #nav .link { min-height: 40px; padding: 8px 10px; font-size: 0.9rem; }
  .route-overview .content { display: contents; }
  .route-overview #view.page { grid-column: 2; grid-row: 2 / 4; }
  .route-overview #view.page { padding: 10px 17px 0 18px; max-width: none; overflow: visible; min-width: 0; }
  .route-overview .site-foot { position: absolute; left: -255px; bottom: 6px; width: 255px; padding: 6px 12px; background: transparent; border: 0; font-size: 0.66rem; line-height: 1.3; color: #D6E0F5; }
  .route-overview .site-foot p { margin: 0 0 2px; }
  .route-overview .site-foot a { color: var(--ww-white); }
  .route-overview #notice { position: absolute; top: 80px; right: 24px; width: 360px; z-index: 6; }
  .route-overview .site-foot { z-index: 1; }
  .route-overview .dash-head { margin: 0 0 0; height: 46px; }
  .route-overview .dash-head h1 { font-size: 1.7rem; margin: 0; }
  .route-overview .dash-head p { margin: 2px 0 0; font-size: 0.85rem; }
  .route-overview .verify-banner, .route-overview .card.verify { display: none; }
  .route-overview .dash-top { display: grid; grid-template-columns: 218px 210px 200px 199px minmax(0, 1fr); gap: 15px; height: 65px; margin-top: 12px; }
  .route-overview .dash-top .dash-tiles { display: contents; }
  .route-overview .dash-tile { height: 65px; min-height: 0; padding: 8px 12px; border-radius: 12px; overflow: hidden; }
  .route-overview .dash-tile strong { font-size: 1.15rem; line-height: 1.1; }
  .route-overview .dash-tile span { font-size: 0.72rem; }
  .route-overview .dash-tile small { display: none; }
  .route-overview .dash-ico { width: 34px; height: 34px; }
  .route-overview .dash-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .route-overview .dash-action { display: grid; justify-items: center; align-content: center; gap: 4px; background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: 12px; color: var(--ww-navy); text-decoration: none; font-size: 0.7rem; font-weight: 700; text-align: center; line-height: 1.15; padding: 4px; min-width: 0; }
  .route-overview .dash-action .dash-ico.action { background: var(--ww-royal); width: 30px; height: 30px; }
  .route-overview .dash-action .dash-ico.action .ico { stroke: var(--ww-white); width: 18px; height: 18px; }
  .route-overview .dash-grid { display: grid; gap: 13px; margin: 0; }
  .route-overview .dash-grid > .card { margin: 0; padding: 0 12px 10px; overflow: hidden; border-radius: 12px; }
  .route-overview .card > h2.band, .route-overview .band { margin: 0 -12px 8px; padding: 6px 12px; font-size: 0.9rem; }
  .route-overview .dash-row-a { margin-top: 17px; height: 168px; grid-template-columns: 393px 244px 234px minmax(0, 1fr); }
  .route-overview .dash-row-b { margin-top: 12px; height: 231px; grid-template-columns: 300px 710px minmax(0, 1fr); }
  .route-overview .dash-row-c { margin-top: 15px; height: 157px; grid-template-columns: 362px 325px 354px minmax(0, 1fr); }
  .route-overview .gauge { width: 104px; height: 104px; }
  .route-overview .gauge::after { inset: 16px; }
  .route-overview .gauge-center { font-size: 1rem; }
  .route-overview .donut-legend { font-size: 0.75rem; margin-top: 4px; gap: 2px; }
  .route-overview .gauge-wrap { gap: 2px; }
  .route-overview .curve-svg { max-height: 96px; }
  .route-overview .curve-axis { font-size: 0.66rem; }
  .route-overview .dash-balance .curve-svg { height: 96px; }
  .route-overview .dash-goal { display: grid; align-content: start; gap: 4px; background: linear-gradient(90deg, #0084F5 0%, #002861 100%); color: var(--ww-white); }
  .route-overview .dash-goal .band { background: transparent; }
  .route-overview .goal-label { font-size: 1.15rem; font-weight: 800; color: var(--ww-white); margin: 2px 0 0; }
  .route-overview .goal-sub { font-size: 0.78rem; color: #E6ECFA; margin: 0; }
  .route-overview .dash-goal progress { margin: 6px 0 0; height: 14px; }
  .route-overview .goal-pct { font-size: 1.2rem; font-weight: 800; color: var(--ww-white); margin: 0; }
  .route-overview .dash-pay .rows li { padding: 4px 0; font-size: 0.8rem; }
  .route-overview .dash-pay .btn { display: none; }
  .route-overview .dash-pay .empty { font-size: 0.85rem; }
  .route-overview .dash-smart { align-content: start; }
  .route-overview .dash-proj { align-content: start; }
  .route-overview .proj-frame { height: 84px; border: 2px dashed #B9C6E0; border-radius: 10px; background: #F7FAFF; }
  .route-overview .dash-compare .chart { margin: 0; }
  .route-overview .dash-compare .columns { height: 90px; }
  .route-overview .dash-compare .col-pair { height: 74px; }
  .route-overview .dash-compare .chart-legend, .route-overview .dash-compare .hint, .route-overview .dash-compare details { display: none; }
  .route-overview .dash-cats .cat-donut { gap: 2px; }
  .route-overview .donut-ring { width: 112px; height: 112px; }
  .route-overview .donut-ring::after { inset: 22px; }
  .route-overview .cat-donut > .donut-center { top: 40px; }
  .route-overview .cat-legend { display: none; }
  .route-overview .ind-list li { padding: 3px 0; font-size: 0.8rem; }
  .route-overview .ind-list strong { font-size: 0.85rem; }
  .route-overview .tools-list { gap: 4px; }
  .route-overview .tools-list li { font-size: 0.8rem; }
  .route-overview .quick-bar { margin: 28px 0 0 -247px; width: 1657px; height: 108px; display: grid; grid-template-columns: 247px minmax(0, 1fr); align-items: center; gap: 0; padding: 0; border-radius: 0; background: linear-gradient(90deg, #002861 0%, #0051F2 100%); }
  .route-overview .quick-title { color: var(--ww-white); font-size: 1rem; margin: 0; padding: 0 16px; }
  .route-overview .quick-list { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 0 10px 0 2px; height: 96px; align-items: center; }
  .route-overview .quick-list .quick-item { min-height: 88px; padding: 6px 4px; font-size: 0.72rem; gap: 4px; }
  .route-overview .quick-list .dash-ico.dark { width: 34px; height: 34px; }
  .route-overview .quick-list .dash-ico.dark .ico { width: 18px; height: 18px; }
}
.dash-tile.tone-violet { background: var(--ww-violet); color: var(--ww-white); }
.dash-tile.tone-violet .dash-ico { background: rgba(255, 255, 255, 0.16); }
.dash-tile.tone-violet .dash-ico .ico { stroke: var(--ww-white); }
.quick-bar .quick-list { list-style: none; }

.route-overview #nav { gap: 1px; }
.route-overview #nav details.grp > a { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }

.route-overview .site-foot { position: absolute; }

/* Réglages typographiques du tableau de bord (maquette) */
.route-overview .dash-tile strong { font-size: 1.5rem; }
.route-overview .dash-tile span { font-size: 0.78rem; }
.route-overview .dash-head h1 { font-size: 1.5rem; }
.route-overview #nav a, .route-overview #nav summary { font-size: 0.98rem; }
.route-overview .quick-title { display: flex; align-items: center; height: 100%; }

/* ===== SMART HOURS à 1672 × 941 : géométrie mesurée sur la maquette (WW-GRAPHISME-007) =====
   Bandeau 72 px ; colonne latérale 255 px pleine hauteur ; titre 88→148 ; onglets 162→210 ;
   tuiles 230→300 ; colonnes 316→905 (390 / 497 / 462 px). */
.dash-tile.tone-sky { background: var(--ww-sky); color: var(--ww-navy); }
.dash-tile.tone-sky .dash-ico { background: rgba(0, 40, 97, 0.14); }
.dash-tile.tone-sky .dash-ico .ico { stroke: var(--ww-navy); }
.dash-tile.tone-sky small { color: var(--ww-navy); }
.sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sh-title { display: flex; align-items: center; gap: 14px; }
.sh-logo { width: 65px; height: 65px; margin-left: 8px; border-radius: 50%; background: var(--ww-royal); display: grid; place-items: center; flex: none; }
.sh-logo .ico { stroke: var(--ww-white); width: 34px; height: 34px; }
.sh-title h1 { font-size: 2.4rem; margin: 0; }
.sh-title p { margin: 0; }
.sh-head { margin-top: 0; }
.sh-help { min-height: 47px; width: 180px; margin-top: 10px; justify-content: center; border-radius: 12px; }
.sh-tabs { flex-wrap: nowrap; overflow: hidden; gap: 8px; margin: 4px 0 20px; }
.sh-tabs .tab { min-height: 48px; font-size: 1rem; padding: 0 14px; white-space: nowrap; flex: 1 1 auto; justify-content: center; border-radius: 10px; }
.sh-tiles { display: grid; grid-template-columns: 283px 252px 276px 238px minmax(0, 1fr); column-gap: 23px; margin-bottom: 16px; }
.sh-tiles .dash-tile { min-height: 70px; height: 70px; padding: 8px 12px; border-radius: 14px; }
.sh-tiles .dash-tile strong { font-size: 1.6rem; }
.sh-cols { display: grid; grid-template-columns: 391px 499px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.sh-col { display: grid; gap: 12px; grid-template-rows: auto; min-width: 0; }
.sh-col > .card { margin: 0; }
.sh-col .fut-card { min-height: 0; }
.fut-checks { display: grid; gap: 6px; }
.fut-check { display: block; height: 10px; border-radius: 999px; background: #CFE7DA; }
@media (min-width: 1024px) {
  .app-frame.has-nav.route-smart { height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); overflow: hidden; }
  .route-smart .topbar { grid-column: 1 / -1; grid-row: 1; height: 72px; padding: 0 16px; flex-wrap: nowrap; align-items: center; gap: 12px; background: linear-gradient(90deg, #002861 0%, #0084F5 50%, #1A254E 100%); }
  .route-smart .top-brand { display: block; background: var(--ww-white); padding: 4px 10px; height: 72px; flex: none; margin: -12px 0 -12px -16px; border-radius: 0 0 36px 0; }
  .route-smart .top-brand img { height: 64px; width: auto; max-width: none; }
  .route-smart .sidebar { grid-column: 1; grid-row: 2; height: auto; min-height: 0; overflow: hidden; padding: 22px 12px 0; background: linear-gradient(180deg, #002861 0%, #012450 62%, #0051F2 100%); }
  .route-smart .sidebar .brand { display: none; }
  .route-smart .content { display: contents; }
  .route-smart #view.page { grid-column: 2; grid-row: 2; padding: 16px 15px 0 22px; max-width: none; overflow: hidden; min-width: 0; }
  .route-smart .site-foot { position: absolute; left: -255px; bottom: 6px; width: 255px; padding: 6px 12px; background: transparent; border: 0; font-size: 0.66rem; color: #D6E0F5; }
  .route-smart .site-foot a { color: var(--ww-white); }
  .route-smart #nav a, .route-smart #nav summary { font-size: 0.98rem; min-height: 42px; }
  .route-smart #nav details.grp > a { min-height: 32px; }
}

.sh-cols { height: 589px; }
.sh-col { height: 589px; grid-template-rows: auto minmax(0, 1fr); }
.sh-col > .card { height: 100%; }
.sh-col > .card + .card { height: auto; }
.sh-col:nth-child(1) > .card:only-child { height: 589px; }
.sh-col:nth-child(2) > .card:first-child { height: 354px; }
.sh-col:nth-child(2) > .card:last-child { height: auto; }
.sh-col:nth-child(3) > .card:first-child { height: 332px; }
.sh-col:nth-child(3) > .card:last-child { height: auto; }
.route-smart .sh-tabs .tab { font-size: 1rem; }
.route-smart .sh-tiles .dash-ico { width: 52px; height: 52px; background: none; border-radius: 0; overflow: visible; }
.route-smart .sh-tiles .dash-ico img { display: block; width: 60px; height: 60px; max-width: none; margin: -4px; }
.route-smart .fut-frame { width: 464px; height: 263px; margin: -9px 0 0 -5px; padding: 0; border: 0; background: #FFFFFF; overflow: hidden; }
.route-smart .fut-frame img { display: block; width: 464px; height: 263px; }
.route-smart .sh-tabs .tab { font-weight: 700; background: linear-gradient(180deg, #FFFFFF 0%, #EEF4FF 100%); border-color: #C9D8F0; }
.route-smart .sh-tabs .tab .ico { width: 22px; height: 22px; }
.route-smart .sh-tabs .tab.on { background: var(--ww-royal); }
.route-smart .sh-tiles .dash-ico { width: 52px; height: 52px; border-radius: 14px; }
.route-smart .sh-tiles .dash-ico .ico { width: 32px; height: 32px; }
.route-smart .sh-tiles .dash-tile strong { font-size: 1.6rem; font-weight: 800; }
.route-smart .sh-tiles .dash-tile span { font-size: 0.95rem; }
.route-smart .sh-col .card h2 { font-size: 1.25rem; font-weight: 800; }
.route-smart #nav a, .route-smart #nav summary { font-size: 1.05rem; font-weight: 600; min-height: 42px; }

.app-frame:not(.has-nav) .top-brand { display: none; }

/* ===== Connexion à 1672 × 941 : géométrie mesurée sur la maquette (WW-GRAPHISME-008) =====
   Pleine hauteur (le bandeau est superposé) ; bande gauche = recadrage original sans texte
   (montagnes + personnage, 365 × 691 px) ; pictogrammes = recadrages originaux (72 × 72 px) ;
   carte de connexion à droite (x 842, y 150). */
.app-frame:not(.has-nav) { min-height: 100vh; }
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .topbar { position: absolute; top: 0; left: 0; right: 0; height: 72px; background: transparent; border: 0; z-index: 10; }
  .app-frame:not(.has-nav) .lang-switch { margin-left: auto; }
  .app-frame:not(.has-nav) .page { position: relative; padding: 0; max-width: none; }
  .app-frame:not(.has-nav) .auth { position: relative; display: block; min-height: 100vh; max-width: none; }
  .app-frame:not(.has-nav) .auth-hero {
    position: relative; min-height: 100vh; padding: 0; border-radius: 0; overflow: hidden; color: var(--ww-navy);
    background: url("/app/brand/login-illustration-reconstruction.svg") 0 0 / 100% 100% no-repeat, linear-gradient(180deg, #0290EF 0%, #0169E5 60%, #01276C 100%);
  }
  .app-frame:not(.has-nav) .auth-hero::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 365px; height: 691px; opacity: 1;
    background: url("/app/brand/login-hero-left.png") no-repeat left bottom / 365px 691px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .app-frame:not(.has-nav) .auth-logo { position: absolute; left: 173px; top: 31px; width: 300px; height: 200px; margin: 0; padding: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0) 100%); border-radius: 0; max-width: none; }
  .app-frame:not(.has-nav) .auth-hero h1 { position: absolute; left: 372px; top: 246px; margin: 0; font-size: 2.6rem; line-height: 1.04; color: var(--ww-navy); font-weight: 800; z-index: 1; }
  .app-frame:not(.has-nav) .tt-royal { color: var(--ww-royal); }
  .app-frame:not(.has-nav) .tt-navy { color: var(--ww-navy); }
  .app-frame:not(.has-nav) .auth-lead { position: absolute; left: 372px; top: 378px; margin: 0; max-width: 440px; color: var(--ww-navy); font-size: 1.12rem; line-height: 1.35; font-weight: 600; z-index: 1; }
  .app-frame:not(.has-nav) .auth-features { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; max-width: none; list-style: none; display: block; z-index: 1; }
  .app-frame:not(.has-nav) .auth-features li { position: absolute; left: 388px; width: 440px; height: 72px; margin: 0; padding: 0 16px 0 88px; display: flex; flex-direction: column; justify-content: center; background: rgba(255, 255, 255, 0.94); border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 40, 97, 0.12); color: var(--ww-navy); }
  .app-frame:not(.has-nav) .auth-features li::before { content: ""; position: absolute; left: 8px; top: 0; width: 72px; height: 72px; background: no-repeat center / contain; }
  .app-frame:not(.has-nav) .auth-features li.f1 { top: 457px; }
  .app-frame:not(.has-nav) .auth-features li.f2 { top: 535px; }
  .app-frame:not(.has-nav) .auth-features li.f3 { top: 612px; }
  .app-frame:not(.has-nav) .auth-features li.f4 { top: 691px; }
  .app-frame:not(.has-nav) .auth-features li.f5 { top: 767px; }
  .app-frame:not(.has-nav) .auth-features li.f1::before { background-image: url("/app/brand/login-pictos/suivi.png"); }
  .app-frame:not(.has-nav) .auth-features li.f2::before { background-image: url("/app/brand/login-pictos/objectifs.png"); }
  .app-frame:not(.has-nav) .auth-features li.f3::before { background-image: url("/app/brand/login-pictos/smart-hours.png"); }
  .app-frame:not(.has-nav) .auth-features li.f4::before { background-image: url("/app/brand/login-pictos/budgets.png"); }
  .app-frame:not(.has-nav) .auth-features li.f5::before { background-image: url("/app/brand/login-pictos/simulations.png"); }
  .app-frame:not(.has-nav) .feat-title { font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
  .app-frame:not(.has-nav) .feat-sub { font-weight: 600; font-size: 0.92rem; color: var(--ww-navy); }
  .app-frame:not(.has-nav) .lang-switch { position: absolute; left: 1194px; top: 36px; width: 430px; height: 56px; justify-content: center; gap: 8px; z-index: 11; }
  .app-frame:not(.has-nav) .lang-switch > * { min-height: 44px; font-size: 1.05rem; padding: 0 14px; }
  .app-frame:not(.has-nav) .auth-card { position: absolute; left: 842px; top: 136px; width: 776px; height: 748px; margin: 0; padding: 48px 56px; border-radius: 26px; display: flex; flex-direction: column; justify-content: center; z-index: 2; }
  .app-frame:not(.has-nav) .auth-title { margin-top: 0; }
  .app-frame:not(.has-nav) .site-foot { position: relative; background: #E8F0FB; }
}

/* Logo v2 (candidat validé par contrôle, WW-GRAPHISME-015) : téléphone et correctifs de mise en page */
.app-frame:not(.has-nav) .auth-logo { width: min(300px, 100%); height: auto; margin: 0 auto 8px; padding: 0; border-radius: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0) 100%); }
.app-frame:not(.has-nav) .trust { display: flex; align-items: center; gap: 10px; }
.app-frame:not(.has-nav) .trust img { flex: none; }
.app-frame:not(.has-nav) .auth-features li::before { background: no-repeat center / contain; }
.app-frame:not(.has-nav) .auth-features li.f1::before { background-image: url("/app/brand/login-pictos/suivi.png"); }
.app-frame:not(.has-nav) .auth-features li.f2::before { background-image: url("/app/brand/login-pictos/objectifs.png"); }
.app-frame:not(.has-nav) .auth-features li.f3::before { background-image: url("/app/brand/login-pictos/smart-hours.png"); }
.app-frame:not(.has-nav) .auth-features li.f4::before { background-image: url("/app/brand/login-pictos/budgets.png"); }
.app-frame:not(.has-nav) .auth-features li.f5::before { background-image: url("/app/brand/login-pictos/simulations.png"); }
@media (max-width: 480px) { .app-frame:not(.has-nav) .auth-hero h1 { font-size: 1.9rem; } .app-frame:not(.has-nav) .feat-sub { display: block; } }

/* Champs de connexion : icônes et libellés dans le champ, sur tous les formats (WW-GRAPHISME-015) */
.app-frame:not(.has-nav) .field { position: relative; margin-top: 16px; }
.app-frame:not(.has-nav) .field input { min-height: 56px; padding-left: 60px; border-radius: 14px; }
.app-frame:not(.has-nav) .field.pw input { padding-right: 60px; }
.app-frame:not(.has-nav) .field-ico { position: absolute; left: 10px; top: 8px; width: 40px; height: 40px; pointer-events: none; z-index: 1; }
.app-frame:not(.has-nav) .field label { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); margin: 0; font-weight: 500; color: var(--ww-navy); pointer-events: none; z-index: 1; }
.app-frame:not(.has-nav) .field input:focus + label, .app-frame:not(.has-nav) .field input:not(:placeholder-shown) + label { top: 9px; transform: none; font-size: 0.75rem; color: var(--ww-muted); }
.app-frame:not(.has-nav) .pw-toggle { position: absolute; top: 50%; transform: translateY(-50%); right: 8px; }

/* Carte de connexion à 1672 × 941 : champs avec icônes, libellés dans le champ, boutons et bandeau (WW-GRAPHISME-011) */
@media (min-width: 900px) {
  .app-frame:not(.has-nav) .auth-card { padding: 36px 50px 24px; justify-content: flex-start; }
  .app-frame:not(.has-nav) .auth-tabs { height: 64px; padding: 5px; margin: 31px 0 0; }
  .app-frame:not(.has-nav) form > .field:first-child { margin-top: 32px; }
  .app-frame:not(.has-nav) .auth-tabs .tab { min-height: 52px; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .app-frame:not(.has-nav) .auth-tabs .tab-ico { width: 26px; height: 26px; }
  .app-frame:not(.has-nav) .auth-title { font-size: 2rem; margin: 0; line-height: 1.2; text-align: center; }
  .app-frame:not(.has-nav) .field { position: relative; margin-top: 20px; }
  .app-frame:not(.has-nav) .field input { height: 62px; min-height: 62px; padding: 0 16px 0 64px; border-radius: 14px; font-size: 1.1rem; }
  .app-frame:not(.has-nav) .field.pw input { padding-right: 64px; }
  .app-frame:not(.has-nav) .field-ico { position: absolute; left: 12px; top: 11px; width: 40px; height: 40px; pointer-events: none; z-index: 1; }
  .app-frame:not(.has-nav) .field label { position: absolute; left: 64px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--ww-navy); pointer-events: none; z-index: 1; }
  .app-frame:not(.has-nav) .field input:focus + label, .app-frame:not(.has-nav) .field input:not(:placeholder-shown) + label { top: 13px; transform: none; font-size: 0.8rem; color: var(--ww-muted); }
  .app-frame:not(.has-nav) .pw-toggle { top: 50%; transform: translateY(-50%); right: 12px; width: 40px; min-height: 40px; }
  .app-frame:not(.has-nav) .pw-toggle img { width: 30px; height: 30px; }
  .app-frame:not(.has-nav) .auth-row { margin-top: 20px; }
  .app-frame:not(.has-nav) .actions { margin-top: 28px; }
  .app-frame:not(.has-nav) .login-note { position: absolute; left: 50px; right: 50px; top: 88px; margin: 0; text-align: center; font-size: 0.7rem; line-height: 1.2; z-index: 1; }
  .app-frame:not(.has-nav) button.wide { height: 68px; min-height: 68px; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 16px; }
  .app-frame:not(.has-nav) .btn-ico { width: 30px; height: 30px; }
  .app-frame:not(.has-nav) .or { margin: 28px 0 0; }
  .app-frame:not(.has-nav) .socials { gap: 18px; margin-top: 22px; }
  .app-frame:not(.has-nav) button.social { min-height: 62px; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 16px; border: 1px solid #C9D6EA; }
  .app-frame:not(.has-nav) button.social:disabled { opacity: 0.85; }
  .app-frame:not(.has-nav) .social-ico { width: 30px; height: 30px; }
  .app-frame:not(.has-nav) .trust { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin: 36px 0 0; padding: 6px 16px; border-radius: 16px; background: #E6EFFB; color: var(--ww-navy); font-weight: 600; }
  .app-frame:not(.has-nav) .trust img { width: 30px; height: 30px; }
  .app-frame:not(.has-nav) .hint { font-size: 0.7rem; line-height: 1.2; margin: 4px 0 0; }
  .app-frame:not(.has-nav) .login-note { margin: 0; }
}

/* Tableau de bord : objectif (illustration recadrée de la maquette), outils rapides, barre latérale (WW-GRAPHISME-011) */
@media (min-width: 1024px) {
  .route-overview .card.dash-goal { background: linear-gradient(90deg, rgba(0, 132, 245, 0.96) 0%, rgba(0, 40, 97, 0.82) 55%, rgba(0, 40, 97, 0.2) 100%), url("/app/brand/dash-goal-mountain-v2.svg") right top / cover no-repeat, #002861; }
  .route-overview .tools-list li { display: flex; align-items: center; gap: 10px; }
  .route-overview .tool-ico { width: 28px; height: 28px; flex: none; }
  .route-overview .sidebar { background: linear-gradient(180deg, #002861 0%, #012450 62%, #0051F2 100%); }
}

/* Objectif principal : icône cible, barre verte et pourcentage à droite, comme la maquette (WW-GRAPHISME-017) */
@media (min-width: 1024px) {
  .route-overview .goal-head { display: flex; align-items: center; gap: 10px; }
  .route-overview .goal-ico { width: 58px; height: 58px; flex: none; }
  .route-overview .goal-label { font-size: 1.12rem; }
  .route-overview .card.dash-goal progress { height: 18px; border-radius: 999px; margin: 6px 0 0; width: calc(100% - 100px); }
  .route-overview .dash-goal progress::-webkit-progress-value { background: var(--ww-tile-green); border-radius: 999px; }
  .route-overview .dash-goal progress::-webkit-progress-bar { background: #E6EFFB; border-radius: 999px; }
  .route-overview .card.dash-goal { position: relative; }
  .route-overview .dash-goal .goal-pct { position: absolute; right: 14px; bottom: 6px; text-shadow: 0 1px 3px rgba(0, 20, 60, 0.6); margin: 0; font-size: 1.6rem; text-align: right; }
}

/* Tuiles du tableau de bord : valeurs et pictogrammes plus proches de la maquette (WW-GRAPHISME-012) */
@media (min-width: 1024px) {
  .route-overview .dash-tiles .dash-tile { min-height: 72px; padding: 8px 10px; align-items: center; gap: 8px; }
  .route-overview .dash-tiles .dash-tile strong { font-size: 1.1rem; font-weight: 800; white-space: normal; overflow: visible; }
  .route-overview .dash-tiles .dash-tile small { font-size: 0.74rem; line-height: 1.15; }
  .route-overview .dash-tiles .dash-ico { width: 46px; height: 46px; border-radius: 12px; }
  .route-overview .dash-tiles .dash-ico .ico { width: 26px; height: 26px; }
}

/* Barre supérieure du tableau de bord : positions mesurées (logo 0–375, recherche 540–988, langues 1035–1318, cloche 1340, compte 1425) */
@media (min-width: 1024px) {
  .route-overview .topbar { position: relative; display: block; background: linear-gradient(90deg, #002861 0%, #0084F5 50%, #1A254E 100%); }
  .route-overview .topbar > * { position: absolute; top: 14px; margin: 0; }
  .route-overview .top-brand { left: 0; top: 0; width: 375px; height: 72px; margin: 0; padding: 4px 24px; border-radius: 0 0 36px 0; display: flex; align-items: center; justify-content: center; }
  .route-overview .top-brand img { height: 64px; width: auto; }
  .route-overview .search { left: 540px; width: 448px; max-width: none; }
  .route-overview .search input { min-height: 44px; }
  .route-overview .lang-switch { left: 1035px; top: 14px; }
  .route-overview .icon-btn { left: 1340px; top: 16px; }
  .route-overview .account { left: 1425px; top: 14px; }
  .route-overview .menu-btn { display: none; }
}
.route-overview .dash-tile strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.22rem; }
.route-overview .quick-title { color: var(--ww-white); }

/* Pictogrammes d'origine (maquette) */
img.pico { width: 22px; height: 22px; flex: none; object-fit: contain; display: block; }
#nav summary img.pico, #nav a img.pico, #nav .item img.pico { width: 24px; height: 24px; }
.quick-list .quick-item img.pico { width: 34px; height: 34px; background: transparent; }

/* --- SMART HOURS sous 1024 px : tablette et téléphone (WW-GRAPHISME-021) ---
   Les largeurs fixes du bureau restent réservées au bureau. Ici, grilles fluides sans débordement. */
@media (max-width: 1023px) {
  .sh-tabs { flex-wrap: wrap; overflow: visible; }
  .sh-tabs .tab { white-space: normal; flex: 1 1 180px; }
  .sh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 10px; }
  .sh-tiles .dash-tile { height: auto; min-height: 70px; }
  .sh-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; height: auto; }
  .sh-col { height: auto; grid-template-rows: auto; }
  .sh-col > .card, .sh-col:nth-child(n) > .card:first-child, .sh-col:nth-child(n) > .card:only-child { height: auto; }
  .route-smart .sh-col .fut-frame { width: 100%; height: auto; aspect-ratio: 464 / 263; margin: 0; }
  .route-smart .fut-frame img { width: 100%; height: 100%; object-fit: contain; }
  .route-smart #view.page { padding: 16px 12px 24px; }
}
@media (max-width: 480px) {
  .sh-tiles { grid-template-columns: minmax(0, 1fr); }
}
