/* ── Pilotage en tuiles — téléphone uniquement (Fred, 26/09/2026), voir pilotage-tuiles.js ── */
.pt-root { display: grid; gap: 12px; padding: 4px 2px 96px; }
.pt-prog { background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; color: #475569; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.pt-bar { flex: 1; height: 9px; border-radius: 9px; background: #e5e9f0; overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: #16a34a; border-radius: 9px; transition: width .4s; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-tile { position: relative; border: none; border-radius: 22px; padding: 14px; min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: #fff; font: inherit; cursor: pointer; transition: transform .12s, background .3s; -webkit-tap-highlight-color: transparent; }
.pt-tile:active { transform: scale(.97); }
.pt-tile:focus-visible, .pt-mine:focus-visible, .pt-av:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.pt-tile.pt-wide { grid-column: 1 / -1; min-height: 110px; }
.pt-ico { font-size: 22px; }
.pt-n { font-size: 46px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-l { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-top: 4px; }
.pt-s { font-size: 12px; font-weight: 600; opacity: .92; line-height: 1.3; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-new { position: absolute; top: 12px; right: 12px; background: #fff; color: #b91c1c; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 3px 8px; }
.pt-red { background: linear-gradient(160deg, #ef4444, #b91c1c); }
.pt-amber { background: linear-gradient(160deg, #f59e0b, #c2410c); }
.pt-green { background: linear-gradient(160deg, #22c55e, #15803d); }
.pt-violet { background: linear-gradient(160deg, #8b5cf6, #5b21b6); }
.pt-blue { background: linear-gradient(160deg, #3b82f6, #1e40af); }
.pt-calm { background: #e7ecf3; color: #334155; }
.pt-ring { animation: pt-ring 1.5s ease-in-out infinite; }
@keyframes pt-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 50% { box-shadow: 0 0 0 9px rgba(239,68,68,0); } }
@media (prefers-reduced-motion: reduce) { .pt-ring { animation: none; box-shadow: 0 0 0 5px rgba(239,68,68,.3); } .pt-tile, .pt-bar i { transition: none; } }
.pt-mine { border: 2px solid #e2e8f0; background: #fff; border-radius: 20px; padding: 14px; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: #111827; cursor: pointer; width: 100%; }
.pt-mine.on { border-color: #f59e0b; }
.pt-mine-n { font-size: 34px; font-weight: 900; color: #94a3b8; min-width: 28px; }
.pt-mine.on .pt-mine-n { color: #c2410c; }
.pt-mine b { display: block; font-size: 16px; }
.pt-mine small { display: block; font-size: 12.5px; color: #64748b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.pt-team { background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.pt-team-t { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pt-avs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 4px; }
.pt-av { border: none; background: none; font: inherit; display: grid; justify-items: center; gap: 4px; cursor: pointer; min-width: 52px; color: #475569; padding: 0; }
.pt-av-c { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14.5px; position: relative; border: 3px solid transparent; }
.pt-av.on .pt-av-c { border-color: #111827; }
.pt-av-c i { position: absolute; top: -5px; right: -7px; background: #f59e0b; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 1px 6px; border: 2px solid #fff; }
.pt-av b { font-size: 11px; font-weight: 700; white-space: nowrap; }
.pt-foot { text-align: center; }
.pt-link, .pt-back { border: none; background: none; color: #2563eb; font: inherit; font-weight: 700; font-size: 13.5px; padding: 10px; cursor: pointer; }
.pt-back { display: block; margin: 0 auto 8px; }
/* Bouton + à gauche du bouton 🏠 (même ligne, bas d'écran) : il ne recouvre plus le contenu (Fred, 26/09) */
.pt-fab { position: fixed; right: 82px; bottom: 18px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; border: none; background: #1e293b; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
/* Tour guidé : ordinateur uniquement (consigne du 19/09/2026) */
@media (max-width: 768px) { #header-tour-btn, #header-tour-btn-closed { display: none !important; } }
.pt-scrim { position: fixed; inset: 0; z-index: 7000; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.pt-scrim.open { opacity: 1; pointer-events: auto; }
.pt-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7001; max-height: 84vh; background: #f4f6fa; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .28s ease; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-sheet.open { transform: none; }
.pt-sh-head { padding: 8px 16px 10px; border-bottom: 1px solid #e2e8f0; display: grid; gap: 6px; }
.pt-grab { width: 44px; height: 5px; border-radius: 9px; background: #cbd5e1; justify-self: center; }
.pt-sh-title { display: flex; align-items: center; font-size: 18px; font-weight: 800; color: #0f172a; }
.pt-sh-x { margin-left: auto; border: none; background: #e2e8f0; border-radius: 99px; width: 36px; height: 36px; font-size: 16px; cursor: pointer; }
.pt-sh-list { overflow-y: auto; padding: 12px 14px 20px; display: grid; gap: 10px; }
.pt-card { background: #fff; border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; border-left: 6px solid #cbd5e1; }
.pt-k-alert { border-left-color: #dc2626; } .pt-k-action { border-left-color: #f59e0b; } .pt-k-dec { border-left-color: #7c3aed; } .pt-k-info { border-left-color: #2563eb; }
.pt-card.pt-late { border-left-color: #dc2626; box-shadow: 0 0 0 2px #fecaca; }
.pt-c-txt { font-size: 15px; font-weight: 600; line-height: 1.4; color: #0f172a; word-break: break-word; }
.pt-c-meta { font-size: 12px; color: #64748b; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-chip { background: #f1f5f9; border-radius: 99px; padding: 2px 8px; font-weight: 700; color: #334155; }
.pt-chip-red { background: #fee2e2; color: #b91c1c; }
.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-btns button { flex: 1 1 30%; min-height: 46px; border: none; border-radius: 12px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; background: #e2e8f0; color: #0f172a; }
.pt-btns .pt-go { background: #16a34a; color: #fff; } .pt-btns .pt-me { background: #1e293b; color: #fff; }
.pt-btns button:disabled { opacity: .5; }
.pt-empty { text-align: center; color: #16a34a; font-weight: 700; padding: 24px 8px; }
/* « Lu par moi » (Fred, 26/09/2026) : lu = pour moi seul ; pris en compte = pour toute la cellule */
.pt-card.pt-read { opacity: .72; }
.pt-chip-new { background: #dbeafe; color: #1d4ed8; }
.pt-allread { width: 100%; min-height: 46px; border: 2px dashed #94a3b8; background: #fff; color: #0f172a; border-radius: 14px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
/* Bandeau « Point d'étape » sur téléphone (Fred, 26/09/2026) : texte sur toute la largeur, boutons dessous */
@media (max-width: 768px) {
  .checkpoint-banner-inner { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .checkpoint-text { flex: 1 1 calc(100% - 52px); min-width: 0; }
  .checkpoint-text span { font-size: 14px; line-height: 1.4; }
  .checkpoint-actions { flex: 1 1 100%; }
  .checkpoint-actions button { flex: 1; min-height: 46px; font-size: 15px; }
}
/* Journal sur téléphone (audit du 26/09/2026) : boutons des entrées assez grands pour le doigt */
@media (max-width: 768px) {
  #journal-list button { min-height: 40px; min-width: 40px; }
}
/* Filtre par personne bien visible (Fred, 26/09/2026) : grand carré jaune fluo derrière la personne choisie,
   titre de l'équipe surligné ; « Vue détaillée » à gauche, hors des boutons ronds du bas */
.pt-av { border-radius: 16px; padding: 6px 4px 4px; transition: background .15s; }
.pt-av.on { background: #fde047; box-shadow: 0 0 0 3px #facc15, 0 4px 12px rgba(202,138,4,.35); color: #111827; }
.pt-av.on .pt-av-c { border-color: #fff; }
.pt-av.on b { font-weight: 900; }
.pt-team-t.on { background: #fde047; color: #111827; border-radius: 10px; padding: 6px 10px; display: inline-block; }
.pt-foot { text-align: left; padding-left: 6px; }
.pt-new.pt-filterbadge { background: #fde047; color: #111827; }
/* Vue filtrée sur une personne (Fred, 26/09/2026) : un seul grand bloc jaune avec ses actions */
.pt-alertstrip { width: 100%; border: none; border-radius: 14px; background: #dc2626; color: #fff; padding: 10px 14px; text-align: left; font: inherit; cursor: pointer; display: grid; gap: 2px; box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.pt-alertstrip span { font-weight: 900; font-size: 15px; }
.pt-alertstrip small { font-size: 12.5px; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-person { background: #fef9c3; border: 3px solid #facc15; border-radius: 22px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 4px 14px rgba(202,138,4,.25); }
.pt-person-head { display: flex; align-items: center; gap: 14px; }
.pt-person-n { font-size: 44px; font-weight: 900; color: #a16207; line-height: 1; min-width: 34px; }
.pt-person-head b { display: block; font-size: 18px; color: #111827; }
.pt-person-head small { display: block; font-size: 13px; color: #854d0e; font-weight: 600; }
.pt-person .pt-empty { color: #854d0e; }
.pt-person-all { min-height: 46px; border: 2px solid #facc15; background: #fff; color: #111827; border-radius: 12px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
/* Étape 5 (26/09/2026) : derniers petits liens agrandis pour le doigt */
@media (max-width: 768px) {
  .btn-back-startup { min-height: 44px; padding: 10px 16px !important; font-size: 15px !important; }
  #login-overlay a[data-on-click*="openPinForgotModal"] { display: inline-block; padding: 12px 0; font-size: 14px !important; }
  /* liens de l'accueil (Tableau de bord, Documentation, Admin…) en vraies pastilles à toucher */
  .admin-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 0; padding: 6px 12px; font-size: 13px !important; border: 1px solid #e2e8f0; border-radius: 10px; }
  /* liens légaux du bas d'écran (CGV, CGU, DPA…) */
  #rgpd-footer a { display: inline-block; padding: 5px 2px; }
}
