/* Cielo Équipe — feuille de style */

:root {
  /* Image de marque Cielo Montréal (cielomontreal.ca) */
  --marine: #030E28;
  --marine-doux: #13264A;
  --ciel-marque: #7DA2BC;
  --soleil: #FFD350;
  --fond: #F3F7FA;
  --surface: #FFFFFF;
  --encre: #0E1C38;
  --encre-douce: #4A5A75;
  --encre-pale: #7F8BA0;
  --ligne: #DFE7EE;
  --ligne-forte: #C7D4DF;
  --basilic: #3F7652;
  --basilic-fonce: #2F5C3F;
  --basilic-pale: #E4F0E8;
  --ciel: #7DA2BC;
  --ciel-fonce: #4C7591;
  --ciel-pale: #E6EEF4;
  --mangue: #FFD350;
  --mangue-pale: #FFF6D6;
  --framboise: #C23B5E;
  --framboise-pale: #F9E3E9;
  --ombre: 0 1px 2px rgba(3, 14, 40, .06), 0 4px 16px rgba(3, 14, 40, .06);
  --rayon-s: 8px;
  --rayon: 12px;
  --rayon-l: 20px;
  --titre: "Unbounded", "Montserrat", system-ui, sans-serif;
  --texte: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0 0 12px; }
a { color: var(--ciel-fonce); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.doux { color: var(--encre-douce); }
.pale { color: var(--encre-pale); }
.petit { font-size: 13px; }
.cache { display: none !important; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; border-radius: 6px; }

/* Chargement ----------------------------------------------------------- */
.ecran-chargement { min-height: 100vh; display: grid; place-items: center; }
.marque { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--encre); }
.marque em { font-style: normal; font-weight: 500; color: var(--basilic); }

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--ligne-forte); border-radius: 999px;
  background: var(--surface); color: var(--encre);
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--ciel-pale); border-color: var(--ciel); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-principal { background: var(--marine); border-color: var(--marine); color: #fff; }
.btn-principal:hover { background: var(--marine-doux); border-color: var(--marine-doux); }
.btn-discret { border-color: transparent; background: transparent; }
.btn-discret:hover { background: var(--ciel-pale); border-color: transparent; }
.btn-danger { color: var(--framboise); border-color: #E8B8C5; }
.btn-danger:hover { background: var(--framboise-pale); border-color: var(--framboise); }
.btn-petit { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icone { width: 40px; padding: 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.lien-btn { background: none; border: 0; padding: 0; color: var(--ciel-fonce); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Champs ------------------------------------------------------------------ */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label { font-weight: 600; font-size: 13px; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea, .entree {
  min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-s);
  background: var(--surface);
}
.champ textarea { min-height: 90px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .entree:focus { outline: none; border-color: var(--ciel-fonce); box-shadow: 0 0 0 3px var(--ciel-pale); }
.champ .aide { font-size: 12px; color: var(--encre-pale); }
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.case { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-weight: 500; }
.case input { width: 18px; height: 18px; accent-color: var(--marine); }

/* Coquille de l'application ---------------------------------------------- */
.coquille { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; background: var(--marine); color: #DCE5EE;
}
.rail .marque { color: #fff; padding: 4px 10px 18px; }
.rail .marque em { color: var(--ciel); }
.rail a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #C9D6E3; text-decoration: none; font-weight: 500;
}
.rail a svg { width: 20px; height: 20px; opacity: .85; }
.rail a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail a.actif { background: var(--ciel); color: var(--marine); font-weight: 700; }
.rail a.actif svg { opacity: 1; }
.rail .pied-rail { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.rail .pied-rail button { color: #C9D6E3; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.barre {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 28px; border-bottom: 1px solid var(--ligne); background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.barre .marque { display: none; }
.barre .etab { font-weight: 700; }
.barre .etab select { border: 1px solid var(--ligne-forte); border-radius: 999px; padding: 6px 12px; background: var(--fond); font-weight: 600; }
.barre .espace { flex: 1; }
.contenu { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }
.entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.entete-page p { margin: 4px 0 0; color: var(--encre-douce); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.nav-bas { display: none; }

@media (max-width: 900px) {
  .coquille { grid-template-columns: 1fr; }
  .rail { display: none; }
  .barre { padding: 10px 16px; }
  .barre .marque { display: block; font-size: 18px; }
  .contenu { padding: 18px 16px 110px; }
  h1 { font-size: 24px; }
  .nav-bas {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--marine); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    overflow-x: auto;
  }
  .nav-bas a {
    flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 4px; border-radius: 10px;
    color: #C9D6E3; text-decoration: none; font-size: 11px; font-weight: 600;
  }
  .nav-bas a svg { width: 22px; height: 22px; }
  .nav-bas a.actif { color: var(--marine); background: var(--ciel); }
}

/* Panneaux et tableaux --------------------------------------------------- */
.panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 20px; }
.panneau + .panneau { margin-top: 16px; }
.panneau > h2 { margin-bottom: 12px; }
.panneau .entete-panneau { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 1200px) { .grille-2.large-gauche { grid-template-columns: 1.5fr 1fr; } }
.vide { padding: 28px 16px; text-align: center; color: var(--encre-douce); }
.vide strong { display: block; color: var(--encre); font-family: var(--titre); font-size: 17px; margin-bottom: 4px; }

.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tableau { width: 100%; border-collapse: collapse; }
.tableau th { text-align: left; font-size: 12px; font-weight: 600; color: var(--encre-pale); padding: 8px 10px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.tableau td { padding: 10px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .d { text-align: right; }
.tableau td.num, .tableau td.d { white-space: nowrap; }
.tableau tfoot td { font-weight: 700; border-top: 2px solid var(--ligne-forte); border-bottom: 0; }
.tableau tr.cliquable { cursor: pointer; }
.tableau tr.cliquable:hover td { background: var(--fond); }
.tableau .sous td { background: var(--fond); font-size: 13px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.chiffre { padding: 16px 18px; border-right: 1px solid var(--ligne); }
.chiffre:last-child { border-right: 0; }
.chiffre .valeur { font-family: var(--titre); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chiffre .libelle { font-size: 13px; color: var(--encre-douce); }
.chiffre .detail { font-size: 12px; color: var(--encre-pale); margin-top: 2px; }

/* Pastilles d'état */
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fond); color: var(--encre-douce); white-space: nowrap; }
.pastille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.poste { background: var(--basilic-pale); color: var(--basilic-fonce); }
.pastille.pause { background: var(--mangue-pale); color: #8A6400; }
.pastille.alerte { background: var(--framboise-pale); color: var(--framboise); }
.pastille.ciel { background: var(--ciel-pale); color: var(--ciel-fonce); }
.pastille.neutre::before { display: none; }

.pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.pct.bon { color: var(--basilic-fonce); }
.pct.moyen { color: #8A6400; }
.pct.haut { color: var(--framboise); }

.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--marine);
  background: var(--ciel-pale);
}
.personne { display: flex; align-items: center; gap: 10px; min-width: 0; }
.personne .nom { font-weight: 600; }
.personne .sous-titre { font-size: 12px; color: var(--encre-pale); }

/* Navigation de période */
.periode { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: 999px; padding: 3px; }
.periode span { padding: 0 10px; font-weight: 600; white-space: nowrap; }
.periode .btn { min-height: 32px; border: 0; }

/* Onglets */
.onglets { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: 999px; }
.onglets button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--encre-douce); }
.onglets button.actif { background: var(--marine); color: #fff; }

/* Horaire ---------------------------------------------------------------- */
.horaire { border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); overflow-x: auto; }
.horaire table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 920px; }
.horaire th, .horaire td { border-bottom: 1px solid var(--ligne); border-right: 1px solid var(--ligne); padding: 6px; vertical-align: top; }
.horaire th:last-child, .horaire td:last-child { border-right: 0; }
.horaire thead th { background: var(--fond); text-align: left; font-weight: 600; font-size: 13px; padding: 10px 8px; position: sticky; top: 0; }
.horaire thead th.auj { background: var(--ciel-pale); }
.horaire thead th .jour-num { font-family: var(--titre); font-size: 15px; display: block; color: var(--encre); }
.horaire .col-nom { width: 190px; min-width: 190px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.horaire thead .col-nom { z-index: 2; background: var(--fond); }
.horaire .groupe td { background: var(--marine); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; }
.horaire .groupe td.col-nom { background: var(--marine); }
.horaire .heures-emp { font-size: 12px; color: var(--encre-pale); }
.cellule { min-height: 56px; display: flex; flex-direction: column; gap: 4px; }
.cellule .ajout {
  flex: 1; min-height: 44px; border: 1px dashed transparent; border-radius: 8px; background: none;
  color: var(--encre-pale); cursor: pointer; font-size: 20px; line-height: 1;
}
td:hover .cellule .ajout { border-color: var(--ligne-forte); color: var(--ciel-fonce); }
.cellule .quart ~ .ajout { flex: none; min-height: 24px; opacity: 0; font-size: 16px; }
td:hover .cellule .quart ~ .ajout, .cellule .quart ~ .ajout:focus-visible { opacity: 1; }
@media (hover: none) { .cellule .quart ~ .ajout { opacity: .5; } }
.quart {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-left: 4px solid var(--ciel-fonce); border-radius: 6px;
  background: var(--ciel-pale); padding: 5px 8px; font-size: 13px; line-height: 1.3;
}
.quart strong { font-variant-numeric: tabular-nums; display: block; white-space: nowrap; font-size: 12.5px; }
.quart .q-poste { font-size: 11px; color: var(--encre-douce); }
.quart.brouillon { background: repeating-linear-gradient(-45deg, #fff, #fff 6px, var(--fond) 6px, var(--fond) 12px); border-left-color: var(--encre-pale); border: 1px dashed var(--ligne-forte); border-left: 4px solid var(--encre-pale); }
.quart.ouvert { background: var(--mangue-pale); border-left-color: var(--mangue); }
.horaire tfoot td { background: var(--fond); font-size: 12px; color: var(--encre-douce); }
.horaire tfoot .total-jour { font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums; }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--encre-douce); margin-top: 10px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

/* Graphique ventes vs main-d'œuvre */
.graphique { width: 100%; height: auto; display: block; }
.graphique text { font-family: var(--texte); font-size: 11px; fill: var(--encre-pale); }
.graphique .lbl-pct { font-weight: 700; font-size: 12px; }

/* Messagerie ------------------------------------------------------------- */
.fil { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 330px); min-height: 260px; overflow-y: auto; padding: 4px 2px 12px; }
.msg { display: flex; gap: 10px; max-width: 680px; }
.msg .bulle { background: var(--surface); border: 1px solid var(--ligne); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.msg.moi { margin-left: auto; flex-direction: row-reverse; }
.msg.moi .bulle { background: var(--ciel-pale); border-color: #CBDCE8; border-radius: 14px 4px 14px 14px; }
.msg .meta { font-size: 12px; color: var(--encre-pale); margin-bottom: 2px; }
.msg .meta strong { color: var(--encre); }
.msg .texte { white-space: pre-wrap; word-wrap: break-word; }
.annonce { border-left: 4px solid var(--mangue); background: var(--mangue-pale); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 12px 16px; }
.annonce .meta { font-size: 12px; color: #6E5300; margin-bottom: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; resize: vertical; padding: 10px 12px; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); }

/* Modale ------------------------------------------------------------------ */
.voile { position: fixed; inset: 0; background: rgba(3, 14, 40, .42); display: grid; place-items: center; padding: 16px; z-index: 50; animation: apparait .15s ease-out; }
.modale { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--rayon-l); padding: 22px 24px; box-shadow: 0 20px 60px rgba(3, 14, 40, .25); }
.modale .entete-modale { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modale .pied-modale { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.modale .pied-modale .gauche { margin-right: auto; }
.secret { font-family: var(--titre); font-size: 22px; font-weight: 700; letter-spacing: .04em; background: var(--ciel-pale); border-radius: var(--rayon); padding: 14px; text-align: center; user-select: all; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 10px 12px; overflow-x: auto; white-space: pre; }
@keyframes apparait { from { opacity: 0; } }

/* Notifications */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--marine); color: #fff; padding: 12px 16px; border-radius: var(--rayon); box-shadow: var(--ombre); font-weight: 500; animation: apparait .2s ease-out; }
.toast.erreur { background: var(--framboise); }
@media (max-width: 900px) { #toasts { bottom: 96px; } }

/* Connexion -------------------------------------------------------------- */
.page-connexion { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.page-connexion .visuel {
  background: var(--ciel-marque); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.page-connexion .visuel .marque { color: #fff; font-size: 26px; }
.page-connexion .visuel .marque em { color: var(--ciel); }
.page-connexion .visuel .horloge-deco { font-family: var(--titre); font-weight: 700; font-size: clamp(64px, 10vw, 150px); line-height: .9; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.page-connexion .visuel p { color: #EEF4F8; max-width: 380px; font-size: 16px; }
.page-connexion .formulaire { display: grid; place-items: center; padding: 32px 20px; }
.page-connexion form { width: min(380px, 100%); }
.page-connexion h1 { margin-bottom: 6px; }
.page-connexion .alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--encre-douce); }
.message-erreur { background: var(--framboise-pale); color: var(--framboise); border-radius: var(--rayon-s); padding: 10px 12px; font-weight: 500; margin-bottom: 14px; }
.message-ok { background: var(--basilic-pale); color: var(--basilic-fonce); border-radius: var(--rayon-s); padding: 10px 12px; font-weight: 500; margin-bottom: 14px; }
@media (max-width: 800px) {
  .page-connexion { grid-template-columns: 1fr; }
  .page-connexion .visuel { padding: 24px 20px; min-height: 0; }
  .page-connexion .visuel .horloge-deco { font-size: 72px; margin-top: 16px; }
  .page-connexion .visuel p { display: none; }
}

/* Borne de pointage ------------------------------------------------------ */
.borne { min-height: 100vh; background: var(--ciel-marque); color: #fff; display: flex; flex-direction: column; }
.borne-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 36px 20px; flex-wrap: wrap; }
.borne-entete .marque { color: #fff; font-size: 20px; }
.borne-entete .marque em { color: var(--ciel); }
.borne-entete .lieu { color: #F1F6FA; font-size: 15px; margin-top: 2px; }
.horloge { text-align: right; }
.horloge .heure { font-family: var(--titre); font-weight: 700; font-size: clamp(56px, 8vw, 104px); line-height: .85; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.horloge .date { color: #F1F6FA; font-size: 17px; margin-top: 8px; }
.borne-annonce { margin: 0 36px 16px; background: var(--marine); border-left: 4px solid var(--soleil); border-radius: 0 12px 12px 0; padding: 12px 16px; color: #E8EEF5; }
.borne-annonce strong { color: var(--soleil); }
.borne-corps { flex: 1; background: var(--fond); color: var(--encre); border-radius: 28px 28px 0 0; padding: 24px 36px 36px; }
.borne-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.borne-filtres .resume { margin-left: auto; color: var(--encre-douce); font-weight: 600; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.tuile {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px;
  padding: 18px 16px 16px 22px; min-height: 128px; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .1s;
}
.tuile:active { transform: scale(.98); }
.tuile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--ligne-forte); }
.tuile.en_poste::before { background: var(--basilic); }
.tuile.en_pause::before { background: var(--mangue); }
.tuile .t-nom { font-family: var(--titre); font-size: 18px; font-weight: 700; line-height: 1.1; }
.tuile .t-poste { color: var(--encre-pale); font-size: 13px; }
.tuile .t-etat { margin-top: auto; font-size: 13px; font-weight: 600; }
.tuile.en_poste .t-etat { color: var(--basilic-fonce); }
.tuile.en_pause .t-etat { color: #8A6400; }
.tuile.absent .t-etat { color: var(--encre-pale); }
.tuile .t-prevu { font-size: 12px; color: var(--encre-douce); }
.borne-pied { text-align: center; padding: 18px; }
.borne-pied button { background: none; border: 0; color: var(--encre-pale); font-size: 13px; text-decoration: underline; cursor: pointer; }

.pave-voile { position: fixed; inset: 0; background: rgba(3, 14, 40, .55); display: grid; place-items: center; padding: 16px; z-index: 40; }
.pave {
  width: min(440px, 100%); background: var(--surface); color: var(--encre);
  border-radius: 28px; padding: 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.pave h2 { font-size: 26px; }
.pave .p-etat { color: var(--encre-douce); margin: 4px 0 16px; }
.pave .choix-action { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pave .choix-action button {
  min-height: 64px; border-radius: 16px; border: 2px solid var(--ligne-forte); background: var(--surface);
  font-family: var(--titre); font-size: 16px; font-weight: 700; cursor: pointer; color: var(--encre);
}
.pave .choix-action button.choisi { border-color: var(--marine); background: var(--marine); color: #fff; }
.pave .choix-action button.entrer.choisi { background: var(--basilic); border-color: var(--basilic); }
.pave .choix-action button.sortir.choisi { background: var(--framboise); border-color: var(--framboise); }
.pave .choix-action button.pause.choisi { background: var(--mangue); border-color: var(--mangue); color: var(--encre); }
.points-nip { display: flex; justify-content: center; gap: 14px; margin: 6px 0 16px; min-height: 18px; }
.points-nip i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--encre-pale); }
.points-nip i.plein { background: var(--marine); border-color: var(--marine); }
.clavier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.clavier button {
  height: 64px; border-radius: 16px; border: 0; background: var(--fond); cursor: pointer;
  font-family: var(--titre); font-size: 22px; font-weight: 600; color: var(--encre);
}
.clavier button:active { background: var(--ciel); }
.clavier button.valider { background: var(--marine); color: #fff; font-size: 15px; }
.clavier button.valider:disabled { opacity: .35; }
.clavier button.effacer { font-size: 13px; }
.pave .annuler { width: 100%; margin-top: 12px; }
.pave .p-erreur { color: var(--framboise); font-weight: 600; text-align: center; min-height: 22px; margin-bottom: 6px; }
.confirmation { text-align: center; padding: 18px 6px 6px; }
.confirmation .grand { font-family: var(--titre); font-size: 24px; font-weight: 700; line-height: 1.15; margin: 10px 0 6px; }
.confirmation .heure-pointee { font-family: var(--titre); font-size: 52px; font-weight: 700; color: var(--marine); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .borne-entete { padding: 18px 18px 14px; }
  .borne-annonce { margin: 0 18px 12px; }
  .borne-corps { padding: 18px 14px 28px; border-radius: 20px 20px 0 0; }
  .tuiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tuile .t-nom { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .rail, .nav-bas, .barre, .actions, .btn { display: none !important; }
  .coquille { display: block; }
  .contenu { padding: 0; }
}

/* Logo Cielo */
.logo { display: block; height: auto; }
.rail .logo { width: 104px; margin: 0 auto 18px; }
.barre .logo { display: none; width: 44px; }
.page-connexion .logo { width: 150px; }
.borne-entete .logo { width: 104px; }
.borne-entete .bloc-lieu { display: flex; align-items: center; gap: 18px; }
.borne-entete .titre-borne { font-family: var(--titre); font-weight: 700; font-size: 20px; color: #fff; }
@media (max-width: 900px) { .barre .logo { display: block; } .barre .marque { display: none !important; } }
@media (max-width: 700px) { .borne-entete .logo { width: 72px; } }

@media (max-width: 600px) {
  .masquer-mobile { display: none; }
  .tableau th, .tableau td { padding: 9px 6px; }
  .chiffre .valeur { font-size: 20px; }
}
.tuile .t-etat { white-space: nowrap; }

/* Pointage avec photo et position ----------------------------------------- */
.borne-annonce.alerte { background: #FDECEC; color: #7A1426; border-left-color: var(--framboise); }
.borne-annonce.alerte strong { color: var(--framboise); }
.pave .p-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pave .p-tete .p-etat { margin: 2px 0 0; }
.pave .p-aide { font-size: 13px; color: var(--encre-pale); margin: 4px 0 0; line-height: 1.35; }
.p-camera { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--marine); box-shadow: 0 0 0 3px var(--soleil); display: grid; place-items: center; color: #fff; }
.p-camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.p-camera.bloquee { background: var(--fond); color: var(--framboise); box-shadow: 0 0 0 3px var(--framboise); }
.p-camera svg { width: 34px; height: 34px; }
.photo-pointee { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; transform: scaleX(-1); box-shadow: 0 0 0 4px var(--soleil); margin-bottom: 6px; }
.td-actions, td.nowrap { white-space: nowrap; }
.btn-alerte { border-color: var(--framboise); color: var(--framboise); }
.rouge { color: var(--framboise); font-weight: 600; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.galerie figure { margin: 0; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; background: var(--surface); }
.galerie figure.loin { border-color: var(--framboise); }
.galerie img, .galerie .sans-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1); background: var(--fond); }
.galerie .sans-photo { transform: none; display: grid; place-items: center; color: var(--encre-pale); font-size: 13px; }
.galerie figcaption { padding: 8px 10px; font-size: 13px; display: grid; gap: 2px; }
.galerie figcaption svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* Connexion avec Google */
.separateur { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--encre-pale); font-size: 13px; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.btn-google { background: #fff; border: 1px solid var(--ligne); color: var(--encre); justify-content: center; gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }
.btn-google:hover { background: var(--fond); }
