/* Bureau mobile : palette de la PWA pilote, composants limités à cette vue. */
.technician-home {
  --home-accent: var(--accent, #a60c20);
  --home-text: #202735;
  --home-muted: #586271;
  --home-line: #d9dfe7;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: var(--home-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.technician-home *, .technician-home *::before, .technician-home *::after { box-sizing: border-box; }
.home-welcome { margin-bottom: 24px; }
.home-welcome h1 { margin: 4px 0 6px; font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; }
.home-welcome p, .home-day p, .home-tile p { margin: 0; }
.home-welcome > p:last-child { color: var(--home-muted); }
.home-eyebrow { color: var(--home-accent); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.home-day { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px; margin-bottom: 18px; border: 1px solid #e9d2d6; border-radius: 20px; background: #fff8f8; }
.home-day > div { min-width: 0; flex: 1 1 250px; }
.home-day h2 { margin: 4px 0 8px; font-size: 1.25rem; }
.home-day p:last-child { max-width: 55ch; color: var(--home-muted); font-size: .9rem; }
.home-day button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--home-accent); color: white; font: inherit; font-weight: 650; cursor: pointer; }
.home-day button:disabled { background: #d9dfe7; color: #45505e; cursor: default; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-tile { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--home-line); border-radius: 18px; background: white; color: inherit; text-decoration: none; box-shadow: 0 5px 18px #20273505; }
.home-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: var(--home-accent); background: #a60c200b; }
.home-icon svg { width: 24px; height: 24px; }
.home-tile h2 { margin: 0 0 10px; font-size: 1.05rem; }
.home-tile p { font-size: .86rem; color: var(--home-muted); }
.home-tile .home-metric { margin: 2px 0 6px; font-size: clamp(1.4rem, 5vw, 2rem); color: var(--home-text); font-weight: 750; line-height: 1.2; }
.home-metric span { font-size: .8rem; font-weight: 450; color: var(--home-muted); }
.home-time-breakdown { margin: 14px 0 4px; font-size: .78rem; }
.home-time-breakdown div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin: 3px 0; }
.home-time-breakdown dt { color: var(--home-muted); }
.home-time-breakdown dd { margin: 0; font-weight: 650; }
.home-tile-action { display: flex; align-items: flex-end; justify-content: space-between; flex: 1; min-height: 44px; padding-top: 16px; font-size: .8rem; color: var(--home-accent); font-weight: 650; }
.home-tile[aria-disabled] .home-tile-action { color: var(--home-muted); font-weight: 450; }
.home-period, .home-sync { margin: 16px 0 0; font-size: .78rem; color: var(--home-muted); }
.home-sync { padding-top: 14px; border-top: 1px solid var(--home-line); }
.technician-home :focus-visible { outline: 3px solid #245fa9; outline-offset: 4px; }
@media (hover: hover) { a.home-tile:hover { border-color: var(--home-accent); } }
@media (max-width: 359px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .home-day button { width: 100%; } .home-tile { padding: 16px; } }
@media (min-width: 850px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/**
 * Barre d'accès rapides du bureau.
 * Fixée au bas de l'écran comme les commandes de Memoric-Présence,
 * avec le copyright intégré et les marges de sécurité iPhone.
 */
.home-bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 26;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 8px;
  align-items: center;
  padding: 10px max(12px, env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  border-top: 1px solid #d9dfe7;
  background: #fff;
  box-shadow: 0 -3px 14px rgb(25 35 55 / 5%);
}

.home-bottom-link {
  display: flex;
  min-width: 0;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: #273346;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.home-bottom-link:active,
.home-bottom-link:focus-visible {
  background: #fff2f4;
  color: #a60c20;
}

.home-bottom-icon {
  color: #a60c20;
  font-size: 23px;
  line-height: 1;
}

.home-bottom-icon-hours { font-size: 30px; line-height: 23px; }\n\n.home-bottom-label {
  overflow-wrap: normal;
}

.home-bottom-copyright {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #4283a1;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 370px) {
  .home-bottom-nav { gap: 0 4px; }
  .home-bottom-link { font-size: 11px; }
}
