/* Refonte R7 (design/plan-refonte.md) : pointeuse plein écran sur la tablette (kiosque ?etab=).
   SEULEMENT sous body.rf-kiosque (boutique de test, nouveau menu, sans ?visuel=ancien ; js/pointeuse-refonte.js).
   Sans cette classe, aucune règle de ce fichier ne s'applique : l'ancien kiosque reste identique.
   Toutes les cibles font au moins 64 px (--ds-h-labo), à toutes les tailles : c'est l'écran de la tablette.
   Couleurs et polices par variables (--ds-*, --rf-*). Seules animations : appui sur une touche (150 ms), coupées
   avec le mouvement réduit. */

body.rf-kiosque #page-pointage{display:flex;flex-direction:column;}

/* ---------- En-tête : l'heure en grand ---------- */
body.rf-kiosque .pv-kq-entete{padding:var(--ds-e5) var(--ds-e4) var(--ds-e4);}
body.rf-kiosque .pv-kq-titre{font-size:var(--ds-t-section);}
body.rf-kiosque .pv-kq-heure{font-family:var(--rf-police-chiffre);font-weight:700;font-size:clamp(48px,9vw,88px);letter-spacing:-.02em;margin-top:var(--ds-e3);}
body.rf-kiosque .pv-kq-date{font-size:var(--ds-t-fort);}

/* ---------- Corps : tout l'écran restant ---------- */
body.rf-kiosque .pv-kq-corps{flex:1 0 auto;width:100%;max-width:1040px;padding-bottom:var(--ds-e7);}
body.rf-kiosque #ptStepSelect .pv-kq-question{font-size:var(--ds-t-titre);text-align:center;margin:0 0 var(--ds-e5);}
body.rf-kiosque #ptStepSelect [hidden]{display:none!important;}

/* ---------- 1. Initiales des salariés en gros boutons ---------- */
body.rf-kiosque #ptEmpGrid{grid-template-columns:repeat(auto-fit,minmax(168px,208px));justify-content:center;gap:var(--ds-e4);}
body.rf-kiosque .ptrf-tuile{appearance:none;-webkit-appearance:none;font:inherit;color:var(--ds-texte);cursor:pointer;
  justify-content:flex-start;gap:var(--ds-e3);min-height:var(--ds-h-labo);padding:var(--ds-e5) var(--ds-e3) var(--ds-e4);
  background:var(--ds-surface);border:1px solid var(--ds-bordure);border-radius:var(--ds-rayon-fenetre);}
body.rf-kiosque .ptrf-tuile:hover{background:var(--ds-surface-2);}
body.rf-kiosque .ptrf-tuile.pv-kq-carte--alerte{border:2px solid var(--ds-alerte-trait);}
body.rf-kiosque .ptrf-tuile .pv-kq-av{width:112px;height:112px;font:700 40px/1 var(--rf-police-chiffre);letter-spacing:.02em;
  box-shadow:inset 0 0 0 8px var(--pv-kq-couleur,var(--ds-accent))!important;}
body.rf-kiosque .ptrf-tuile .pv-kq-nom{font-size:var(--ds-t-fort);line-height:1.25;}
body.rf-kiosque .ptrf-tuile .pv-kq-etat{line-height:1.3;}
@media (max-width:480px){
  body.rf-kiosque #ptEmpGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-e3);}
  body.rf-kiosque .ptrf-tuile{padding:var(--ds-e4) var(--ds-e2);}
  body.rf-kiosque .ptrf-tuile .pv-kq-av{width:88px;height:88px;font-size:32px;box-shadow:inset 0 0 0 6px var(--pv-kq-couleur,var(--ds-accent))!important;}
  body.rf-kiosque .ptrf-tuile .pv-kq-etat{padding-inline:var(--ds-e2);}
}

/* ---------- 2. Arrivée, Pause, Départ ---------- */
body.rf-kiosque .ptrf-panneau{max-width:520px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:var(--ds-e5);text-align:center;
  background:var(--ds-surface);border:1px solid var(--ds-bordure);border-radius:var(--ds-rayon-fenetre);padding:var(--ds-e6) var(--ds-e5) var(--ds-e5);}
body.rf-kiosque .ptrf-panneau__qui{display:flex;flex-direction:column;align-items:center;gap:var(--ds-e3);}
body.rf-kiosque .ptrf-panneau .pv-kq-av{width:96px;height:96px;font:700 34px/1 var(--rf-police-chiffre);box-shadow:inset 0 0 0 7px var(--pv-kq-couleur,var(--ds-accent))!important;}
body.rf-kiosque .ptrf-panneau__nom{font-family:var(--ds-police-titre);font-weight:600;font-size:var(--ds-t-titre);line-height:1.15;color:var(--ds-texte);margin:0;overflow-wrap:anywhere;text-wrap:balance;}
body.rf-kiosque .ptrf-panneau__nom:focus{outline:none;}
body.rf-kiosque .ptrf-panneau__question{font-size:var(--ds-t-fort);color:var(--ds-texte-2);margin:0;}
body.rf-kiosque .ptrf-panneau__fini{font-size:var(--ds-t-fort);color:var(--ds-texte);margin:0;}
body.rf-kiosque .ptrf-panneau .pv-kq-actions{grid-template-columns:1fr;gap:var(--ds-e3);margin:0;}
body.rf-kiosque .ptrf-panneau .pv-kq-actions .pv-kq-btn{min-height:80px;font:700 24px/1.2 var(--rf-police-chiffre);border-radius:var(--ds-rayon-carte);}
body.rf-kiosque .ptrf-panneau .ptrf-retour{min-height:var(--ds-h-labo);border-radius:var(--ds-rayon-carte);}

/* ---------- 3. Code PIN : gros boutons ronds ---------- */
body.rf-kiosque .pv-kq-code{max-width:440px;padding:var(--ds-e5);}
body.rf-kiosque .pv-kq-code__qui .pv-kq-av{width:64px;height:64px;font:700 22px/1 var(--rf-police-chiffre);}
body.rf-kiosque .pv-kq-code__qui .pv-kq-nom{font-size:var(--ds-t-section);}
body.rf-kiosque #ptPinAction{font-size:var(--ds-t-fort);}
body.rf-kiosque #page-pointage .pv-kq-code__qui .pv-btn{min-height:var(--ds-h-labo);height:var(--ds-h-labo);padding-inline:var(--ds-e4);}
body.rf-kiosque .pv-kq-code__titre{font-size:var(--ds-t-section);}
body.rf-kiosque .pv-kq-points{gap:var(--ds-e5);}
body.rf-kiosque .pv-kq-points .ptdot{width:22px;height:22px;}
body.rf-kiosque .pv-kq-pave{grid-template-columns:repeat(3,80px);justify-content:center;gap:var(--ds-e4) var(--ds-e5);}
body.rf-kiosque .pv-kq-pave .pt-key{width:80px;height:80px;border-radius:50%;border:1px solid var(--ds-bordure-champ);background:var(--ds-surface-2);
  font:600 32px/1 var(--rf-police-chiffre);display:flex;align-items:center;justify-content:center;cursor:pointer;}
body.rf-kiosque .pv-kq-pave .pt-key--vide{border:none;}
/* Survol (souris) : contour doré, même fond. Appui : fond doré, texte foncé (jour 5,5:1, nuit 8,1:1). */
body.rf-kiosque .pv-kq-pave button.pt-key:hover{background:var(--ds-surface-2);color:var(--ds-texte);border-color:var(--ds-accent);}
body.rf-kiosque .pv-kq-pave button.pt-key:active{background:var(--ds-action);color:var(--ds-action-texte);border-color:var(--ds-action);}
@media (max-width:380px){
  body.rf-kiosque .pv-kq-code{padding:var(--ds-e4);}
  body.rf-kiosque .pv-kq-pave{grid-template-columns:repeat(3,72px);gap:var(--ds-e3);}
  body.rf-kiosque .pv-kq-pave .pt-key{width:72px;height:72px;font-size:28px;}
  body.rf-kiosque .pv-kq-code__qui{flex-wrap:wrap;}
}

/* Tablette en paysage (768 px de haut) : tout le pavé tient dans l'écran, sans défiler */
@media (min-width:481px) and (max-height:860px){
  body.rf-kiosque .pv-kq-entete{padding:var(--ds-e4) var(--ds-e4) var(--ds-e3);}
  body.rf-kiosque .pv-kq-titre::after{margin-top:var(--ds-e2);}
  body.rf-kiosque .pv-kq-heure{font-size:56px;margin-top:var(--ds-e2);}
  body.rf-kiosque .pv-kq-code{padding:var(--ds-e4) var(--ds-e5);}
  body.rf-kiosque .pv-kq-code__qui{margin-bottom:var(--ds-e3);}
  body.rf-kiosque .pv-kq-code__titre{margin-bottom:var(--ds-e3);}
  body.rf-kiosque .pv-kq-points{margin-bottom:var(--ds-e4);}
  body.rf-kiosque .pv-kq-pave{row-gap:var(--ds-e3);}
}

/* ---------- 4. Confirmation (même message) ---------- */
body.rf-kiosque .pv-kq-confirm__heure{font-family:var(--rf-police-chiffre);font-weight:700;font-size:56px;letter-spacing:-.02em;}
body.rf-kiosque .pv-kq-confirm__sous{font-size:var(--ds-t-fort);}

/* Appui : la touche s'enfonce un peu (seulement si le mouvement n'est pas réduit) */
@media (prefers-reduced-motion:no-preference){
  body.rf-kiosque .ptrf-tuile,body.rf-kiosque .pv-kq-pave .pt-key,body.rf-kiosque .ptrf-panneau .pv-kq-btn{transition:transform 150ms ease-out,background-color 150ms ease-out;}
  body.rf-kiosque .ptrf-tuile:active,body.rf-kiosque .pv-kq-pave .pt-key:active,body.rf-kiosque .ptrf-panneau .pv-kq-btn:active{transform:scale(.96);}
}
