/* Portail de l'ouvrier : pensé pour le téléphone. Identité du produit (par Talents Dirigeant) : encre noire pour les
   boutons, orange TD pour la rubrique active et ce qui est à traiter, vert discret pour ce qui est validé ; police Jost. */
@font-face { font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/static/polices/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/static/polices/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --fond: #f7f6f3; --surf: #fff; --surf2: #f1f0ec; --ligne: #e7e5df; --texte: #141414; --doux: #64625d;
  --prim: #141414; --prim-f: #b4561a; --prim-cl: #fdf0e4; --orange: #ee8a43;
  --vert: #3a7a4e; --vert-f: #3a7a4e; --vert-cl: #e7f0e9; --ambre-cl: #fdf0e4; --ambre-f: #b4561a;
  --rouge: #b3261e; --rouge-cl: #fbeceb; --bleu: #55606e; --bleu-cl: #eef0f2; --nuit-cl: #efeee9; --nuit-f: #4a4843;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #121211; --surf: #1b1b1a; --surf2: #242422; --ligne: #2f2e2b; --texte: #f1efe9; --doux: #aaa8a0;
          --prim: #f1efe9; --prim-f: #f39a55; --prim-cl: rgba(238,138,67,.16);
          --vert: #7cc196; --vert-f: #7cc196; --vert-cl: rgba(124,193,150,.15); --ambre-cl: rgba(238,138,67,.16); --ambre-f: #f39a55;
          --rouge: #ff8a80; --rouge-cl: rgba(255,138,128,.16); --bleu-cl: rgba(255,255,255,.06); --bleu: #c8c6bf; --nuit-cl: rgba(255,255,255,.06); --nuit-f: #d6d4cd; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.45 "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.page { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 0 14px calc(96px + env(safe-area-inset-bottom)); }
.entete { display: flex; align-items: center; gap: 10px; padding: 14px 4px 12px; }
.entete .marque { font-weight: 800; font-size: 16px; margin: 0; line-height: 1.3; }   /* titre de la page (h1), même apparence */
.entete .marque small { display: block; font-weight: 500; font-size: 12px; color: var(--doux); }
.avatar { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--prim-cl); color: var(--prim-f);
          display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 0; }
.compte { position: relative; margin-left: auto; }
.compte summary { list-style: none; }
.compte summary::-webkit-details-marker { display: none; }
.compte .menu { position: absolute; right: 0; top: 44px; background: var(--surf); border: 1px solid var(--ligne); border-radius: 12px;
                padding: 6px; min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 5; }
.compte .menu button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; }
.compte .menu .qui { padding: 8px 12px; font-size: 12px; color: var(--doux); border-bottom: 1px solid var(--ligne); margin-bottom: 4px; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: var(--surf); border-top: 1px solid var(--ligne);
       display: flex; padding-bottom: env(safe-area-inset-bottom); z-index: 4; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
         font-size: 11px; font-weight: 600; color: var(--doux); }
.nav a.on { color: var(--prim-f); }
.nav svg { width: 22px; height: 22px; }

.message { border-radius: 14px; padding: 12px 13px; margin-bottom: 10px; font-size: 13.5px; }
.message.succes { background: var(--vert-cl); color: var(--vert-f); }
.message.alerte { background: var(--rouge-cl); color: var(--rouge); }
.message.attention, .message.relance { background: var(--ambre-cl); color: var(--ambre-f); }

.jours { display: flex; gap: 5px; margin-bottom: 12px; }
.jours a { flex: 1; background: var(--surf); border: 1px solid var(--ligne); border-radius: 12px; padding: 7px 0 6px;
           text-align: center; font-size: 11px; font-weight: 600; color: var(--doux); min-width: 0; }
.jours a b { display: block; font-size: 16px; color: var(--texte); }
.jours a i { display: block; font-style: normal; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.jours a.on { background: var(--texte); border-color: var(--texte); color: var(--fond); }
.jours a.on b { color: var(--fond); }
.jours a.on i { color: var(--fond); opacity: .75; }
.jours a.ok i { color: var(--vert-f); }
.jours a.manque i { color: var(--rouge); }
.jours a.absent i { color: var(--ambre-f); }
.semaine-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; font-size: 12.5px; color: var(--doux); }
.semaine-nav a { padding: 13px 6px; margin: -7px -4px; font-weight: 600; }   /* zone à toucher de 44 px, même place */

.titre-j { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 10px; gap: 8px; }
.titre-j h1 { margin: 0; font-size: 20px; font-weight: 800; }
.titre-j span { font-size: 12px; color: var(--doux); text-align: right; }
.carte { background: var(--surf); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ligne { display: flex; gap: 10px; align-items: flex-start; }
.ligne + .ligne { border-top: 1px solid var(--ligne); margin-top: 12px; padding-top: 12px; }
.pastille { flex: 0 0 auto; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .03em; }
.p-ch { background: var(--prim-cl); color: var(--prim-f); }
.p-sav { background: var(--bleu-cl); color: var(--bleu); }
.ligne .nom, .choix .nom { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.ligne .lieu, .choix .lieu { font-size: 12px; color: var(--doux); margin-top: 2px; }
.tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--surf2); color: var(--doux); }
.tag.ins { background: var(--ambre-cl); color: var(--ambre-f); }
.tag.nuit { background: var(--nuit-cl); color: var(--nuit-f); }
.ligne .h { margin-left: auto; font-weight: 800; font-size: 17px; white-space: nowrap; text-align: right; }
.ligne .h form { margin-top: 4px; }
.lien-discret { background: none; border: 0; padding: 14px 6px; margin: -14px -6px; font-size: 12px; color: var(--doux); text-decoration: underline; }
.ajout { display: block; border: 1.5px dashed var(--orange); border-radius: 14px; padding: 14px; text-align: center; font-weight: 700;
         color: var(--prim-f); margin-bottom: 10px; }
.vide { text-align: center; color: var(--doux); font-size: 13.5px; padding: 10px 0; }

.bascule { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.bascule + .bascule { margin-top: 14px; }
.bascule small { display: block; font-weight: 500; font-size: 11.5px; color: var(--doux); margin-top: 1px; }
.bascule input { position: absolute; opacity: 0; pointer-events: none; }
.switch { margin-left: auto; width: 46px; height: 28px; border-radius: 14px; background: var(--ligne); position: relative; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
                 box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.bascule input:checked + .switch { background: var(--prim); }
.bascule input:checked + .switch::after { left: 21px; }
.bascule input:focus-visible + .switch { outline: 3px solid var(--prim-cl); }
textarea, input[type=text], input[type=search], input[type=date], select {
  width: 100%; background: var(--surf); color: var(--texte); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 13px; font: inherit; }
textarea { min-height: 64px; resize: vertical; margin-top: 12px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--prim); box-shadow: 0 0 0 3px var(--prim-cl); }
label.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--doux); margin: 0 0 6px; }
.info-auto { font-size: 11.5px; color: var(--doux); text-align: center; margin-top: 6px; }

.btn { display: block; width: 100%; border: 0; background: var(--prim); color: #fff; text-align: center; font-weight: 800;
       font-size: 15.5px; padding: 15px; border-radius: 14px; }
.btn.sec { background: var(--surf); color: var(--texte); border: 1.5px solid var(--ligne); }
.btn:disabled { background: var(--ligne); color: var(--doux); }
.btn-petit { display: inline-block; width: auto; padding: 8px 12px; font-size: 13px; border-radius: 10px; }

.feuille-t { display: flex; align-items: center; gap: 10px; margin: 14px 4px 12px; }
.feuille-t h1 { margin: 0; font-size: 19px; font-weight: 800; }
.feuille-t a { margin-left: auto; font-size: 13.5px; color: var(--doux); font-weight: 600; padding: 12px 8px; margin-right: -8px; }
.segment { display: flex; background: var(--surf2); border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.segment a { flex: 1; text-align: center; padding: 10px 0; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--doux); }
.segment a.on { background: var(--surf); color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.recherche { display: flex; gap: 8px; margin-bottom: 12px; }
.recherche button { flex: 0 0 auto; border: 1.5px solid var(--ligne); background: var(--surf); border-radius: 12px; padding: 0 14px; font-weight: 700; }
.rubrique { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); margin: 14px 4px 6px; }
.choix { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 13px; margin-bottom: 7px;
         display: flex; align-items: center; gap: 10px; }
.choix .fl { margin-left: auto; color: #a7b4c8; font-size: 20px; }
.plan { font-size: 10px; font-weight: 600; color: var(--prim-f); background: var(--prim-cl); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

.pas { background: var(--surf); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.pas .lbl { font-weight: 700; font-size: 14px; display: block; }
.pas .lbl small { display: block; font-weight: 500; font-size: 11.5px; color: var(--doux); margin-top: 1px; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 0; background: var(--surf2); font-weight: 700; font-size: 26px; }
.stepper output { font-weight: 800; font-size: 28px; }
.stepper.petit button { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.stepper.petit output { font-size: 22px; }
.stepper output.zero { color: #94a3b8; }
.rapides { display: flex; gap: 6px; margin-top: 10px; }
.rapides button { flex: 1; border: 0; padding: 9px 0; border-radius: 9px; background: var(--surf2); color: var(--doux); font-weight: 600; font-size: 12.5px; }
.rapides button.on { background: var(--prim-cl); color: var(--prim-f); }
.rappel { display: flex; gap: 10px; align-items: center; background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 13px; margin-bottom: 12px; }

.total { display: flex; justify-content: space-between; align-items: center; background: var(--texte); color: var(--fond); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; }
.total b { font-size: 24px; font-weight: 800; }
.total span { font-size: 12px; opacity: .75; }
.sem { display: flex; align-items: center; gap: 10px; padding: 11px 2px; }
.sem + .sem { border-top: 1px solid var(--ligne); }
.sem .j { width: 78px; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.sem .j small { display: block; font-weight: 500; font-size: 11px; color: var(--doux); }
.sem .det { flex: 1; font-size: 12px; color: var(--doux); line-height: 1.35; min-width: 0; }
.sem .h { font-weight: 800; font-size: 15px; white-space: nowrap; }
.recap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.recap div { background: var(--surf2); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--doux); }
.recap b { display: block; font-size: 16px; font-weight: 800; color: var(--texte); }
.etat { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.e-ok { background: var(--vert-cl); color: var(--vert-f); }
.e-att { background: var(--surf2); color: var(--doux); }
.e-ren { background: var(--ambre-cl); color: var(--ambre-f); }
.e-non { background: var(--rouge-cl); color: var(--rouge); }

.pl { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 11px 13px; margin-bottom: 7px; }
.pl .tj { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.pl .tj span { font-weight: 600; font-size: 11.5px; color: var(--doux); text-align: right; }
.pl .dj { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; padding: 3px 0; }
.pl .dj small { font-weight: 500; font-size: 11.5px; color: var(--doux); }
.pl .dj .mo { width: 34px; font-size: 10.5px; font-weight: 700; color: var(--doux); flex: 0 0 auto; }
.pl.abs { background: var(--ambre-cl); border-color: transparent; }
.pl.auj { border-color: var(--prim); box-shadow: 0 0 0 2px var(--prim-cl); }
.pl .rien { font-size: 12.5px; color: var(--doux); }

.connexion { padding-top: 48px; padding-bottom: 32px; }
.connexion h1 { margin: 0; font-size: 26px; font-weight: 800; }
.connexion > p { margin: 8px 0 24px; color: var(--doux); font-size: 14px; line-height: 1.5; }
.connexion .aide { text-align: center; margin-top: 18px; font-size: 13px; }
.logo-cl { width: 64px; height: 64px; border-radius: 18px; background: var(--texte); color: var(--fond); display: grid;
           place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 18px; object-fit: contain; }
img.logo-cl { background: var(--surf); padding: 6px; }
input[type=password] { width: 100%; background: var(--surf); color: var(--texte); border: 1.5px solid var(--ligne); border-radius: 12px;
                       padding: 12px 13px; font: inherit; }
input.code { font-size: 22px; letter-spacing: .35em; }
.compteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.compteurs div { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; font-size: 12px; font-weight: 600; color: var(--doux); }
.compteurs b { display: block; font-size: 23px; font-weight: 800; color: var(--texte); }
.compteurs small { display: block; font-weight: 500; font-size: 11px; margin-top: 2px; }
.dem { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 13px; margin-bottom: 7px; }
.dem .haut { display: flex; align-items: center; gap: 10px; }
.dem .nom { font-weight: 700; font-size: 14px; }
.dem .lieu { font-size: 12px; color: var(--doux); margin-top: 2px; }
.dem .etat { margin-left: auto; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.types label { background: var(--surf); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 10px; font-weight: 700; font-size: 13.5px; text-align: center; cursor: pointer; }
.types input { position: absolute; opacity: 0; }
.types label:has(input:checked) { border-color: var(--prim); background: var(--prim-cl); color: var(--prim-f); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.demi { display: flex; gap: 6px; margin-bottom: 12px; }
.demi label { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; background: var(--surf2); font-size: 13px; font-weight: 600; color: var(--doux); cursor: pointer; }
.demi input { position: absolute; opacity: 0; }
.demi label:has(input:checked) { background: var(--prim-cl); color: var(--prim-f); }

/* --- ma semaine : une ligne par jour, pré-remplie par le planning ; un jour se change dans sa fenêtre --- */
/* mes heures : une question par écran, de gros boutons, presque rien à taper */
.sx-titre { font-size: 19px; font-weight: 800; margin: 6px 2px 14px; }
.sx-aide { font-size: 13px; color: var(--doux); margin: 4px 2px 12px; }
.sx-centre { text-align: center; }
.sx-lb { font-size: 13px; font-weight: 600; color: var(--doux); margin: 14px 2px 6px; }
.sx-bouton { display: block; width: 100%; border: 1.5px solid var(--ligne); background: var(--surf); border-radius: 14px; padding: 15px;
             font: inherit; font-size: 15.5px; font-weight: 700; color: var(--texte); text-align: center; margin-bottom: 8px; }
.sx-bouton small { font-weight: 600; font-size: 12px; color: var(--prim-f); }
.btn + .sx-bouton { margin-top: 8px; }
.sx-retour { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--prim); background: var(--prim-cl);
              color: var(--prim-f); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; padding: 11px 16px; margin: 4px 0 6px; }
.sx-retour:active { background: var(--orange); color: #fff; }
.sx-lien { border: 0; background: none; color: var(--prim-f); font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 4px; }
button.sx-centre { display: block; width: 100%; margin-top: 6px; color: var(--doux); }
.sx-liste { background: var(--surf); border: 1px solid var(--ligne); border-radius: 16px; padding: 0 14px; margin-bottom: 12px; }
.sx-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; width: 100%; border: 0; background: none; text-align: left;
          font: inherit; color: var(--texte); }
button.sx-row:active { background: var(--prim-cl); }
.sx-row.vide .sx-j small { color: var(--doux); }
.sx-fl { color: var(--doux); font-size: 20px; flex: 0 0 auto; }
.sx-dont { margin-top: 8px; }
.sx-autres { display: flex; justify-content: space-between; gap: 10px; margin: 18px 2px 0; font-size: 12.5px; color: var(--doux); }
.sx-autres a { padding: 6px 0; font-weight: 600; }
.sx-autres[hidden] { display: none; }
.sx-row + .sx-row { border-top: 1px solid var(--ligne); }
.sx-row.calme .sx-j { color: var(--doux); }
.sx-j { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.sx-j small { display: block; font-weight: 500; font-size: 12.5px; color: var(--doux); margin-top: 1px; }
.sx-renvoi { color: var(--ambre-f) !important; font-weight: 600 !important; }
.sx-yn { display: flex; gap: 6px; flex: 0 0 auto; }
.sx-yn button { border: 1.5px solid var(--ligne); background: var(--surf); border-radius: 11px; padding: 9px 13px; font: inherit;
                font-size: 14px; font-weight: 700; color: var(--texte); }
.sx-yn button:first-child { border-color: var(--prim); color: var(--prim-f); }
.sx-ok { font-style: normal; font-weight: 800; color: var(--vert-f); font-size: 18px; }
.sx-badge { font-size: 12px; font-weight: 600; color: var(--doux); background: var(--surf2); border-radius: 999px; padding: 3px 9px; }
.sx-tot { font-size: 15px; }
.sx-hl { display: flex; align-items: center; gap: 8px; background: var(--surf); border: 1px solid var(--ligne); border-radius: 12px;
         padding: 8px 8px 8px 12px; margin-bottom: 6px; }
.sx-hl span { flex: 1; min-width: 0; font-weight: 600; }
.sx-h { width: 88px; height: 44px; border: 1.5px solid var(--ligne); border-radius: 10px; text-align: center; font: inherit;
        font-size: 17px; font-weight: 800; background: var(--surf); color: var(--texte); }
.sx-h:focus { outline: none; border-color: var(--prim); box-shadow: 0 0 0 3px var(--prim-cl); }
.sx-h.err { border-color: var(--rouge); background: var(--rouge-cl); }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sx-confirmer h2 { font-size: 20px; font-weight: 700; margin: 4px 4px 6px; }
.sx-confirmer-chiffres { font-size: 17px; font-weight: 700; margin: 0 4px 4px; }
.sx-confirmer-texte { font-size: 14.5px; color: var(--doux); margin: 0 4px 16px; }
.sx-confirmer .btn + .btn { margin-top: 8px; }
.sx-confirmer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.sx-err { display: block; color: var(--rouge); font-size: 13.5px; font-weight: 600; margin: -2px 4px 10px; }
.sx-x { border: 0; background: none; color: var(--doux); width: 32px; height: 40px; font-size: 15px; }
.sx-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sx-puce { border: 1.5px dashed var(--ligne); background: var(--surf); border-radius: 999px; padding: 8px 13px; font: inherit;
           font-size: 13.5px; font-weight: 700; color: var(--texte); }
.sx-q { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 12px;
        background: var(--surf); margin-bottom: 6px; }
.sx-q span { color: var(--doux); font-size: 18px; }
.sx-q input { flex: 1; border: 0; background: none; height: 44px; font: inherit; font-size: 15px; color: var(--texte); outline: none; }
.sx-res { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--ligne); background: none;
          padding: 11px 4px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--texte); }
.sx-res small { display: block; font-weight: 500; font-size: 12px; color: var(--doux); }
.sx-seg { display: flex; gap: 6px; }
.sx-seg button { flex: 1; border: 1.5px solid var(--ligne); background: var(--surf); border-radius: 11px; padding: 11px 0; font: inherit;
                 font-size: 14.5px; font-weight: 700; color: var(--doux); }
.sx-seg button.on { border-color: var(--prim); background: var(--prim-cl); color: var(--prim-f); }
.sx-seg + .sx-hl { margin-top: 8px; }
.sx-valider { margin-top: 18px; }
.sx-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.sx-chiffres div { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 10px 9px; text-align: center; }
.sx-chiffres span { display: block; font-size: 12px; font-weight: 700; color: var(--doux); }
.sx-chiffres b { display: block; font-size: 21px; font-weight: 800; margin-top: 2px; }
.sx-chiffres small { display: block; font-size: 10.5px; color: var(--doux); }
.sx-chiffres .plus { border-color: var(--prim); background: var(--prim-cl); }
.sx-chiffres .plus b { color: var(--prim-f); }
.sw-aide { font-size: 12.5px; color: var(--doux); margin: 0 4px 12px; }
.sw-aide[hidden] { display: none; }
.sw-lien { display: block; width: 100%; border: 0; background: none; color: var(--doux); font: inherit; font-size: 13px; font-weight: 600;
           text-align: center; padding: 12px; text-decoration: underline; }
.sw-feuille { width: 100%; max-width: 520px; margin: auto auto 0; border: 0; border-radius: 20px 20px 0 0; padding: 16px 16px 20px; max-height: 90vh;
              background: var(--fond); color: var(--texte); }
.sw-feuille::backdrop { background: rgba(15, 23, 42, .45); }
.sw-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; }
.sw-fermer { border: 0; background: var(--surf2); border-radius: 10px; width: 36px; height: 36px; color: var(--texte); }
.sw-rapides { display: flex; gap: 6px; margin-bottom: 12px; }
.sw-rapides button { flex: 1; border: 1.5px solid var(--ligne); background: var(--surf); border-radius: 10px; padding: 10px 4px; font-weight: 700; font-size: 12.5px; color: var(--texte); }
.sw-rapides button:active { background: var(--prim-cl); border-color: var(--prim); }
.sw-ligne { display: flex; align-items: center; gap: 8px; background: var(--surf); border: 1px solid var(--ligne); border-left: 4px solid var(--c);
            border-radius: 10px; padding: 8px 6px 8px 10px; margin-bottom: 6px; }
.sw-ch { flex: 1; min-width: 0; }
.sw-ch b { display: block; font-size: 14px; line-height: 1.2; }
.sw-ch small { display: block; font-size: 11.5px; color: var(--doux); }
.sw-pas { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.sw-pas button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surf2); font-size: 20px; font-weight: 700; color: var(--texte); }
.sw-pas output { min-width: 58px; text-align: center; font-weight: 800; font-size: 14.5px; }
.sw-x { border: 0; background: none; color: var(--doux); width: 28px; height: 38px; font-size: 15px; }
.sw-rien { color: var(--doux); font-size: 13px; margin: 4px 2px 8px; }
.sw-ajout { margin: 8px 0 12px; }
.sw-prevus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sw-puce { border: 1.5px dashed var(--c); background: var(--surf); color: var(--texte); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; }
.sw-puce small { color: var(--prim-f); font-weight: 600; }
.sw-ajout input[type=search] { width: 100%; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 11px 12px; font: inherit; background: var(--surf); color: var(--texte); }
.sw-res { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c); background: var(--surf); border-radius: 8px;
          padding: 9px 11px; margin-top: 6px; font: inherit; color: var(--texte); }
.sw-res b { display: block; font-size: 14px; } .sw-res small { display: block; font-size: 11.5px; color: var(--doux); }
.sw-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surf); border: 1px solid var(--ligne);
             border-radius: 12px; padding: 9px 10px 9px 13px; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.sw-option small { display: block; font-weight: 500; font-size: 11.5px; color: var(--doux); }
.sw-option input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--prim); }
.sw-bilan { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 4px; font-size: 13.5px; color: var(--doux); }
.sw-bilan b { font-size: 20px; color: var(--texte); }

/* abonnement au planning dans le calendrier du téléphone */
.sw-cal { display: flex; align-items: center; gap: 12px; background: var(--prim-cl); color: var(--prim-f); border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; }
.sw-cal svg { width: 28px; height: 28px; flex: 0 0 auto; }
.sw-cal b { display: block; font-size: 15px; }
.sw-cal small { display: block; font-size: 12px; color: var(--texte); opacity: .75; margin-top: 2px; }
.sw-cal-aide { margin: 14px 4px; font-size: 13px; color: var(--doux); }
.sw-cal-aide summary { cursor: pointer; font-weight: 600; }
.sw-cal-aide input { width: 100%; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 9px; font-size: 12px; background: var(--surf); color: var(--texte); }

/* Congés : soldes (congés payés, acquisition, RTT) */
.soldes { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.solde { background: var(--surf); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 13px; border-top: 4px solid var(--prim); }
.solde.acq { border-top-color: var(--vert); }
.solde.rtt { border-top-color: var(--doux); }
.solde .eti { display: block; font-size: 12px; font-weight: 700; color: var(--doux); }
.solde b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; margin: 2px 0; }
.solde b i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--doux); }
.solde small { display: block; font-size: 11.5px; color: var(--doux); }
.duo { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 6px; }
.duo > div { font-size: 12.5px; font-weight: 600; color: var(--doux); }
.duo > div + div { border-left: 1px solid var(--ligne); padding-left: 14px; }
.reste { background: var(--prim-cl); color: var(--prim-f); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: -4px 0 12px; }

/* Tablette et grand écran : le menu passe en haut, la page s'élargit */
@media (min-width: 760px) {
  .soldes { grid-template-columns: 1fr 1fr; }
  .page { max-width: 860px; padding: 64px 24px 40px; }
  .nav { top: 0; bottom: auto; height: 56px; border-top: 0; border-bottom: 1px solid var(--ligne); justify-content: center; gap: 6px; padding: 0 16px; }
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 14.5px; padding: 0 18px; border-bottom: 3px solid transparent; }
  .nav a.on { border-bottom-color: var(--prim); }
  .nav svg { width: 20px; height: 20px; }
  .dems { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .types { grid-template-columns: repeat(4, 1fr); }
}

/* --- identité Talents Dirigeant : titres fins, boutons pilule noirs, orange pour l'actif et ce qui est à traiter --- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; color: var(--fond); }
.btn.sec { color: var(--texte); }
.entete .marque { font-weight: 600; }
.sx-titre { font-size: 23px; font-weight: 400; letter-spacing: -.01em; }
.titre-j h1, .feuille-t h1, .connexion h1 { font-weight: 400; letter-spacing: -.01em; }
.nav a.on { color: var(--prim-f); font-weight: 700; }
.nav a.on svg { color: var(--orange); }
.sx-liste, .sx-chiffres div, .solde, .dem, .sx-hl { border-radius: 8px; }
.sx-chiffres b { font-weight: 600; }
.sx-chiffres .plus { border-color: var(--orange); background: var(--prim-cl); }
.sx-chiffres .plus b { color: var(--prim-f); }
.sx-retour { border-color: var(--orange); background: var(--prim-cl); color: var(--prim-f); border-radius: 999px; font-weight: 600; }
.sx-seg button.on { border-color: var(--orange); background: var(--prim-cl); color: var(--prim-f); }
.sx-h:focus, .sx-q:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--prim-cl); }
.solde { border-top-color: var(--orange); }
.solde b { font-weight: 600; }
.avatar { background: var(--prim-cl); color: var(--prim-f); }
/* la marque du produit, sur la page de connexion */
.produit-pc { display: flex; align-items: center; gap: 8px; margin-top: 34px; justify-content: center; color: var(--texte); }
.produit-pc svg { width: 26px; height: 26px; }
.produit-pc b { font-weight: 400; font-size: 15px; } .produit-pc b strong { font-weight: 600; }
.produit-pc small { display: block; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }

/* mes heures : proposé (gris) / validé (encre, coche verte) / pour information (gris, sans action) */
.sx-row { padding: 0; }
.sx-row.info { padding: 13px 0; }
.sx-zone { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 0; border: 0; background: none;
           text-align: left; font: inherit; color: inherit; }
.sx-zone:active { background: var(--prim-cl); }
/* jour à valider : en clair comme les autres (gris = information) ; c'est l'encadré « Valider » qui dit « à traiter » */
.sx-row.propose .sx-j, .sx-row.propose .sx-tot { color: var(--texte); font-weight: 700; }
.sx-row.propose .sx-j small { color: var(--doux); }
.sx-prop { color: var(--prim-f) !important; font-size: 11.5px !important; margin-top: 2px; }
.sx-row.ok .sx-j { color: var(--texte); }
.sx-row.info .sx-j, .sx-row.info .sx-tot { color: var(--doux); font-weight: 500; }
.sx-etat { font-size: 11.5px; color: var(--doux); flex: 0 0 auto; }
.sx-vignette { flex: 0 0 auto; border: 1.5px solid var(--orange); background: var(--prim-cl); color: var(--prim-f); border-radius: 999px;
               padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; }
.sx-vignette:active { background: var(--orange); color: #fff; }
.sx-valide { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--vert-f); background: var(--vert-cl); border-radius: 999px; padding: 5px 10px; }

/* double authentification de la direction */
.mfa-qr { display: flex; justify-content: center; margin: 12px 0; }
.mfa-qr svg { background: #fff; border-radius: 6px; max-width: 100%; height: auto; }
.mfa-qr-cadre { position: relative; line-height: 0; }
.mfa-icone { position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%);
             background: #fff; border-radius: 22%; padding: 2%; box-sizing: border-box; }
.mfa-icone svg { width: 100%; height: 100%; background: none; display: block; }
.mfa-cle { word-break: break-all; }
.mfa .btn { margin-top: 18px; }
.mfa form[action^="/mfa"] { max-width: 360px; margin: 0 auto; }
.mfa > h1, .mfa > p, .mfa > .aide { text-align: center; }
.mfa .lbl { display: block; text-align: center; margin-bottom: 10px; }
.mfa details.aide { margin: 4px 0 18px; }
.mfa-cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mfa-cases input { width: 100%; min-width: 0; aspect-ratio: 5 / 6; padding: 0; box-sizing: border-box; text-align: center; font-size: 24px;
                   font-weight: 500; border-radius: 10px; }
.mfa-cases input:focus { outline: 2px solid var(--orange); outline-offset: 0; }

/* nom du logiciel au pinceau : Protest Revolution (licence libre, polices/OFL-protest-revolution.txt) */
@font-face { font-family: "Pinceau"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/static/polices/protest-revolution-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Pinceau"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/static/polices/protest-revolution-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
.produit-pc b, .produit-pc strong { font-family: "Pinceau", "Jost", sans-serif; font-weight: 400; }
.produit-pc strong { color: var(--orange); }
.produit-pc small { font-family: "Jost", sans-serif; font-weight: 700; font-size: 12px; text-transform: none; letter-spacing: 0; line-height: 1.2; }
.notif-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.notif-actions .btn { width: auto; margin: 0; padding: 10px 18px; }

/* Mon équipe (chef d'équipe) : la liste, puis les collègues un par un */
.eq-aide { font-size: 14px; color: var(--doux); margin: 0 2px 10px; }
.eq-liste { border-top: 2px solid var(--texte); }
.eq-l { display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--ligne); }
.eq-nom { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; }
.eq-nom small { display: block; font-size: 13px; font-weight: 500; color: var(--doux); }
.eq-et { font-size: 13.5px; font-weight: 700; white-space: nowrap; padding: 6px 12px; border-radius: 99px; }
.eq-et.ok { background: var(--vert-cl); color: var(--vert-f); }
.eq-et.ko { background: var(--prim-cl); color: var(--prim-f); }
.eq-et.env { background: var(--surf2); color: var(--doux); }
.eq-fl { color: var(--doux); font-size: 22px; }
.eq-bas { display: grid; gap: 8px; margin-top: 16px; }
.eq-bas form { margin: 0; }
.tour-t { display: flex; justify-content: space-between; font-size: 14px; color: var(--doux); margin: 0 2px 6px; }
.tour-t a { font-weight: 700; color: var(--texte); }
.tour-pr { display: flex; gap: 4px; margin: 0 2px 12px; }
.tour-pr i { flex: 1; height: 5px; border-radius: 3px; background: var(--ligne); }
.tour-pr i.f { background: var(--vert-f); }
.tour-t span { display: flex; align-items: center; gap: 8px; }
.tour-t .eq-et { padding: 3px 10px; font-size: 12.5px; }
.tour-pr i.c { background: var(--orange); }
.tour-barre { position: sticky; bottom: 76px; z-index: 2; display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 8px; margin-top: 14px;
  padding: 10px 0; background: var(--fond); }
.tour-barre[hidden] { display: none; }
.tour-b { display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 14px; font-size: 15px; font-weight: 700;
  background: var(--surf); border: 1.5px solid var(--ligne); color: var(--texte); }
.tour-b.go { background: var(--prim); color: var(--fond); border: 0; font-size: 18px; font-weight: 800; }
.eq-jours { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.eq-j { flex: 1 1 80px; background: var(--surf2); border-radius: 10px; padding: 6px 8px; font-size: 12px; min-width: 0; }
.eq-j b { display: block; font-size: 11px; color: var(--doux); }
.eq-j span { font-weight: 700; }
.eq-j small { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-j.vide span { color: var(--rouge); }
.eq-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.eq-actions form { margin: 0; }
.sx-pour { background: var(--prim-cl); color: var(--prim-f); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; }

/* Mon planning : la semaine en longueur, comme une ligne du planning du bureau ; une couleur par chantier, gros caractères */
.pw-defil { overflow-x: auto; margin: 4px -14px 0; padding: 0 14px 6px; scroll-snap-type: x proximity; scroll-padding-left: 14px; -webkit-overflow-scrolling: touch; }
.pw { display: grid; grid-template-columns: repeat(var(--n), 142px); grid-template-rows: auto 108px 108px auto; gap: 6px; width: max-content; }
.pw-j { grid-row: 1; scroll-snap-align: start; padding: 0 2px 4px; border-bottom: 2px solid var(--texte); }
.pw-j span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.pw-j b { font-size: 24px; font-weight: 600; }
.pw-j em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); }
.pw-j.auj { border-bottom-color: var(--orange); }
.pw-j.auj b, .pw-j.auj span { color: var(--orange); }
.pw-c { min-width: 0; overflow: hidden; border-radius: 10px; padding: 9px 10px; color: var(--texte);
  background: color-mix(in srgb, var(--c, #94a3b8) 14%, var(--surf)); border: 1px solid color-mix(in srgb, var(--c, #94a3b8) 40%, transparent);
  border-left: 5px solid var(--c, #94a3b8); }
.pw-c b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.pw-c span { display: block; font-size: 14px; color: var(--doux); margin-top: 3px; }
.pw-c small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); margin-bottom: 3px; }
.pw-c.absence { background: var(--surf2); border: 1px dashed var(--ligne); }
.pw-c.absence b { font-style: italic; font-weight: 600; color: var(--doux); }
.pw-c.vide { background: transparent; border: 1px dashed var(--ligne); }
.pw-c.vide b { font-size: 14px; font-weight: 500; color: var(--doux); }
.pw-info { grid-row: 4; font-size: 13px; color: var(--doux); line-height: 1.3; padding: 0 2px; }

/* Mes heures : chaque jour avec tout ce qui part en paie ; pastilles Fait / À faire */
.sx-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sx-tags i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surf2); color: var(--texte); }
.sx-afaire { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--prim-f); background: var(--prim-cl); border-radius: 999px; padding: 5px 10px; }

/* pages d'accès : le logo Heur'Chantier en tête, puis l'entreprise cliente */
.marque-hc { display: flex; align-items: center; gap: 12px; color: var(--texte); margin-bottom: 6px; }
.marque-hc svg { width: 52px; height: 52px; flex: 0 0 auto; }
.marque-hc-nom b { display: block; font-family: "Pinceau", "Jost", sans-serif; font-weight: 400; font-size: 34px; line-height: 1; }
.marque-hc-nom b strong { font-weight: 400; color: var(--orange); }
.marque-hc-nom small { display: block; font-size: 13px; font-weight: 700; color: var(--doux); margin-top: 3px; }
.marque-client { display: flex; align-items: center; gap: 10px; margin: 14px 0 26px; padding-top: 14px; border-top: 1px solid var(--ligne);
  font-size: 15px; font-weight: 600; }
.marque-client img { height: 36px; width: auto; border-radius: 8px; }

