:root {
  --fond: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f0f3f2;
  --bord: #dde3e1;
  --bord-fort: #c3ccc9;
  --texte: #17211e;
  --texte-2: #5d6b67;
  --texte-3: #8a9793;
  --accent: #0d7a6c;
  --accent-fort: #075e53;
  --accent-doux: #dff2ee;
  --accent-texte: #ffffff;
  --alerte: #b45309;
  --alerte-doux: #fdf0dc;
  --erreur: #c2410c;
  --erreur-doux: #fde6dc;
  --rouge: #d1242f;
  --rouge-doux: #fde4e4;
  --absence: #d97706;
  --absence-doux: #fde9c8;
  --ferie: #6d5bd0;
  --ferie-doux: #ebe7fb;
  --futur: #eef1f0;
  --chaleur-1: #b9e3da;
  --chaleur-2: #52b8a5;
  --chaleur-3: #0d7a6c;
  --prevu: #e6f3f0;
  --courant: #fff4c2;
  --ombre: 0 1px 2px rgba(16, 32, 28, .06), 0 2px 8px rgba(16, 32, 28, .05);
  --ombre-haute: 0 10px 40px rgba(16, 32, 28, .18);
  --rayon: 10px;
  --rayon-petit: 7px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1514;
    --surface: #161e1c;
    --surface-2: #1c2624;
    --bord: #26322f;
    --bord-fort: #34443f;
    --texte: #e5eeeb;
    --texte-2: #9fb0ab;
    --texte-3: #6f817c;
    --accent: #2cc4ac;
    --accent-fort: #5ed9c4;
    --accent-doux: #133a34;
    --accent-texte: #06231f;
    --alerte: #f5b041;
    --alerte-doux: #3a2a10;
    --erreur: #ff8a5c;
    --erreur-doux: #3d1f14;
    --rouge: #ff6b6b;
    --rouge-doux: #3f1a1c;
    --absence: #f0a03c;
    --absence-doux: #3b2a12;
    --ferie: #a99bff;
    --ferie-doux: #29243f;
    --futur: #18211f;
    --chaleur-1: #1d4a42;
    --chaleur-2: #1f8a78;
    --chaleur-3: #2cc4ac;
    --prevu: #16302b;
    --courant: #3a3412;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4);
    --ombre-haute: 0 10px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fond);
  color: var(--texte);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cache { display: none !important; }

/* ---------------------------------------------------------------- barre du haut */
.barre {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 56px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.logo .pastille { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-texte); display: grid; place-items: center; }
.logo .pastille svg { width: 17px; height: 17px; stroke-width: 2.2; }
.logo small { color: var(--texte-3); font-weight: 500; }
.onglets { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  display: flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--texte-2);
  white-space: nowrap; font-weight: 550;
}
.onglet:hover { background: var(--surface-2); color: var(--texte); }
.onglet.actif { background: var(--accent-doux); color: var(--accent-fort); }
.onglet .sep { width: 1px; }
.separateur-onglets { width: 1px; background: var(--bord); margin: 8px 6px; flex: none; }
.telecharger-ods { box-shadow: none; flex: none; }
.etat-sauvegarde { display: flex; align-items: center; gap: 6px; color: var(--texte-3); font-size: 12.5px; white-space: nowrap; }
.etat-sauvegarde.attente { color: var(--texte-2); }
.etat-sauvegarde.erreur { color: var(--erreur); }
.etat-sauvegarde svg { width: 16px; height: 16px; }

main { max-width: 1320px; margin: 0 auto; padding: 18px 16px 90px; }

/* ---------------------------------------------------------------- éléments communs */
.outils { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.outils .titre { font-size: 19px; font-weight: 700; margin-right: 6px; min-width: 150px; text-transform: capitalize; }
.outils .espace { flex: 1; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: var(--rayon-petit);
  border: 1px solid var(--bord); background: var(--surface); cursor: pointer; font-weight: 550; white-space: nowrap;
  box-shadow: var(--ombre); text-decoration: none; color: var(--texte);
}
.bouton:hover { border-color: var(--bord-fort); background: var(--surface-2); }
.bouton:disabled { opacity: .5; cursor: default; }
.bouton.icone { width: 34px; padding: 0; }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.bouton.principal:hover { background: var(--accent-fort); border-color: var(--accent-fort); }
.bouton.discret { box-shadow: none; background: none; border-color: transparent; color: var(--texte-2); }
.bouton.discret:hover { background: var(--surface-2); color: var(--texte); }
.bouton.danger:hover { color: var(--erreur); border-color: var(--erreur); }
.bouton.petit { height: 28px; padding: 0 9px; font-size: 13px; }
.bouton.petit.icone { width: 28px; }
.bouton.ok { color: var(--accent); }

.puce {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--texte-2); border: 1px solid transparent; white-space: nowrap;
}
.puce svg { width: 15px; height: 15px; }
.puce.ok { background: var(--accent-doux); color: var(--accent-fort); }
.puce.alerte { background: var(--alerte-doux); color: var(--alerte); cursor: pointer; }
button.puce { cursor: pointer; }

.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.carte > h2, .section-titre {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 16px; font-size: 14.5px; font-weight: 700;
  border-bottom: 1px solid var(--bord);
}
.carte > h2 .espace { flex: 1; }
.carte .corps { padding: 14px 16px; }
.pile { display: grid; gap: 16px; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }

input.champ, select.champ, textarea.champ {
  height: 32px; padding: 0 9px; border: 1px solid var(--bord); border-radius: var(--rayon-petit);
  background: var(--surface); min-width: 0; width: 100%;
}
textarea.champ { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input.champ:focus, select.champ:focus, textarea.champ:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
input.champ::placeholder, textarea.champ::placeholder { color: var(--texte-3); }
input[type="date"].champ, input[type="month"].champ { width: auto; }
input[type="date"].champ.date-courte { width: 128px; padding: 0 5px; font-size: 13px; }
select.champ { padding-right: 4px; }

.libelle { display: grid; gap: 5px; font-size: 12.5px; color: var(--texte-2); font-weight: 600; }
.grille-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

.interrupteur { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-weight: 550; }
.interrupteur input { display: none; }
.interrupteur .rail { width: 34px; height: 20px; border-radius: 99px; background: var(--bord-fort); position: relative; transition: background .15s; flex: none; }
.interrupteur .rail::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.interrupteur input:checked + .rail { background: var(--accent); }
.interrupteur input:checked + .rail::after { transform: translateX(14px); }

.segments { display: inline-flex; background: var(--surface-2); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: 2px; gap: 2px; flex-wrap: wrap; }
.segments button { border: 0; background: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; color: var(--texte-2); font-weight: 550; font-size: 13px; white-space: nowrap; }
.segments button.actif { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }

.vide { color: var(--texte-3); text-align: center; padding: 26px 10px; display: grid; gap: 8px; justify-items: center; }
.vide svg { width: 26px; height: 26px; stroke-width: 1.5; }
.muet { color: var(--texte-3); }
.nombre { text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- tableaux */
.tableau-conteneur { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: separate; border-spacing: 0; }
.tableau th { font-size: 12px; font-weight: 650; color: var(--texte-2); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bord); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.tableau td { padding: 6px 10px; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--bord); }
.tableau td.nombre, .tableau th.nombre { text-align: right; }
.tableau td .champ { height: 30px; }
.tableau tr.total td { font-weight: 700; background: var(--surface-2); }
.tableau tr.sous td { color: var(--texte-2); }
.tableau .zero { color: var(--texte-3); }
.tableau tr.groupe td { background: var(--surface-2); color: var(--texte-2); font-weight: 700; font-size: 12.5px; padding: 8px 10px; }
.tableau tr.groupe svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; }
.tableau tr.fini td { opacity: .72; }
.tableau tr.groupe.repliable td { cursor: pointer; }
.tableau tr.groupe.repliable:hover td { color: var(--texte); }
.tableau tr.fini td:last-child, .tableau tr.fini td:nth-last-child(2) { opacity: 1; }

.barre-part { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.barre-part .jauge { width: 70px; height: 6px; background: var(--surface-2); border-radius: 9px; overflow: hidden; }
.barre-part .jauge i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.jauge.depasse i { background: var(--rouge); }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tuile { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 10px 12px; }
.tuile .v { font-size: 22px; font-weight: 750; }
.tuile .l { font-size: 12px; color: var(--texte-2); font-weight: 600; }
.tuile.alerte .v { color: var(--alerte); }

/* ---------------------------------------------------------------- Saisie */
.saisie > :first-child { border-radius: var(--rayon) var(--rayon) 0 0; }
.saisie > :last-child { border-bottom: 0; border-radius: 0 0 var(--rayon) var(--rayon); }
.ligne-s {
  display: grid; align-items: center; gap: 6px; padding: 5px 10px;
  grid-template-columns: 96px repeat(var(--slots), minmax(118px, 1.2fr) 54px) 78px minmax(140px, 2fr) minmax(110px, 1.3fr) 44px 28px 64px;
  border-bottom: 1px solid var(--bord);
}
.ligne-s.entete { font-size: 12px; font-weight: 650; color: var(--texte-2); background: var(--surface); position: sticky; top: 56px; z-index: 5; padding-top: 9px; padding-bottom: 9px; }
.ligne-s .date { font-weight: 650; white-space: nowrap; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
.ligne-s .date small { display: block; color: var(--texte-3); font-weight: 500; font-size: 11.5px; }
.ligne-s .date:hover { color: var(--accent); }
.ligne-s .champ { height: 30px; padding: 0 7px; }
.ligne-s input.jours { text-align: center; padding: 0 4px; }
.ligne-s .resume { color: var(--texte-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-s .total { text-align: center; font-weight: 700; font-size: 12.5px; border-radius: 6px; padding: 2px 0; }
.ligne-s .total.plein { color: var(--accent-fort); background: var(--accent-doux); }
.ligne-s .total.partiel { color: var(--alerte); background: var(--alerte-doux); }
.ligne-s .total.trop { color: var(--erreur); background: var(--erreur-doux); }
.ligne-s .controle { display: grid; place-items: center; color: var(--alerte); }
.ligne-s .actions { display: flex; gap: 2px; justify-content: flex-end; }
.ligne-s.aujourdhui { background: color-mix(in srgb, var(--courant) 70%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.ligne-s.ferie { background: var(--ferie-doux); }
.ligne-s.ferie .date { color: var(--ferie); }
.ligne-s.futur { background: color-mix(in srgb, var(--futur) 60%, transparent); }
.ligne-s.signal { box-shadow: inset 3px 0 0 var(--alerte); }
.ligne-s.eclair { animation: eclair 1.4s ease; }
@keyframes eclair { 0%, 40% { background: var(--alerte-doux); } }
.semaine-s { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--surface-2); border-bottom: 1px solid var(--bord); font-size: 12.5px; font-weight: 650; color: var(--texte-2); }
.semaine-s .n { color: var(--texte); }
.semaine-s .espace { flex: 1; }
select.inconnu { border-color: var(--erreur); color: var(--erreur); }
input.champ.manque { border-color: var(--alerte); background: var(--alerte-doux); }
input.champ.depasse { border-color: var(--rouge); background: var(--rouge-doux); color: var(--rouge); font-weight: 700; }
.ligne-s .controle.rouge { color: var(--rouge); }
.puce.rouge { background: var(--rouge-doux); color: var(--rouge); }
button.puce.rouge { cursor: pointer; }
.badge-fiche.rouge { color: var(--rouge); background: var(--rouge-doux); }
.tableau tr.depasse td { background: color-mix(in srgb, var(--rouge-doux) 55%, transparent); }
.tableau td.rouge { color: var(--rouge); font-weight: 700; }
input.champ.manque::placeholder { color: var(--alerte); }
.badge-fiche { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--alerte); background: var(--alerte-doux); border-radius: 99px; padding: 1px 6px 1px 4px; }
.badge-fiche svg { width: 12px; height: 12px; }
.saisie-pied { display: flex; gap: 8px; padding: 10px; }

/* fiche d'un jour (fenêtre) */
dialog.fenetre {
  border: 1px solid var(--bord); border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px));
  background: var(--surface); color: var(--texte); box-shadow: var(--ombre-haute);
}
dialog.fenetre::backdrop { background: rgba(10, 20, 18, .45); backdrop-filter: blur(2px); }
.fenetre .tete { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--bord); }
.fenetre .tete h3 { margin: 0; font-size: 16px; flex: 1; text-transform: capitalize; }
.fenetre .contenu { padding: 16px 18px; display: grid; gap: 14px; }
.fenetre .slots { display: grid; grid-template-columns: 1fr 76px; gap: 8px 8px; align-items: center; }
.fenetre .pied { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--bord); align-items: center; }
.fenetre .pied .espace { flex: 1; }
.calcule { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--texte-2); font-size: 13px; }

/* ---------------------------------------------------------------- Vue mois */
.mois-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 64px; gap: 8px; }
.mois-grille .jsem { font-size: 12px; font-weight: 650; color: var(--texte-2); padding: 0 4px; }
.case {
  min-height: 86px; border-radius: var(--rayon-petit); padding: 8px 9px; border: 1px solid var(--bord);
  background: var(--surface); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px;
  transition: transform .08s, box-shadow .08s;
}
.case:hover { box-shadow: var(--ombre); border-color: var(--bord-fort); }
.case .num { font-weight: 750; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.case .txt { font-size: 12px; color: var(--texte-2); line-height: 1.35; overflow-wrap: anywhere; }
.case.e0 { background: transparent; border-style: dashed; opacity: .45; cursor: default; }
.case.e0 .txt { display: none; }
.case.e1 { border-color: color-mix(in srgb, var(--accent) 45%, var(--bord)); background: color-mix(in srgb, var(--accent-doux) 55%, var(--surface)); }
.case.e2 { background: var(--erreur-doux); border-color: color-mix(in srgb, var(--erreur) 45%, var(--bord)); }
.case.e3 { background: var(--ferie-doux); border-color: color-mix(in srgb, var(--ferie) 40%, var(--bord)); }
.case.e4 { background: var(--futur); }
.case.e5 { background: var(--alerte-doux); border-color: color-mix(in srgb, var(--alerte) 45%, var(--bord)); }
.case.e6 { background: var(--absence-doux); border-color: color-mix(in srgb, var(--absence) 45%, var(--bord)); }
.case.auj { outline: 2px solid var(--accent); outline-offset: 1px; }
.tot-sem { display: grid; place-items: center; font-weight: 750; color: var(--texte-2); background: var(--surface-2); border-radius: var(--rayon-petit); }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--texte-2); margin-top: 14px; align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; border: 1px solid var(--bord-fort); }

/* ---------------------------------------------------------------- Calendrier */
.cal-conteneur { overflow: auto; max-height: calc(100vh - 170px); }
table.cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.cal th, .cal td { padding: 0; height: 30px; border-bottom: 1px solid var(--bord); }
.cal thead th { position: sticky; z-index: 3; background: var(--surface); font-weight: 650; color: var(--texte-2); }
.cal thead tr:first-child th { top: 0; height: 24px; text-transform: capitalize; text-align: left; padding-left: 4px; white-space: nowrap; overflow: visible; }
.cal thead tr:nth-child(2) th { top: 24px; font-size: 11px; }
.cal .fixe { position: sticky; background: var(--surface); z-index: 2; padding: 0 10px; white-space: nowrap; }
.cal thead .fixe { z-index: 4; }
.cal .c0 { left: 0; min-width: 170px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.cal .c1 { left: 170px; min-width: 76px; color: var(--texte-2); }
.cal .c2 { left: 246px; min-width: 76px; color: var(--texte-2); }
.cal .c3 { left: 322px; min-width: 56px; text-align: right; font-weight: 700; border-right: 1px solid var(--bord-fort); }
.cal td.s, .cal th.s { min-width: 31px; width: 31px; text-align: center; border-left: 1px solid color-mix(in srgb, var(--bord) 55%, transparent); }
.cal td.s { font-size: 11px; font-weight: 650; }
.cal td.f1 { background: var(--chaleur-1); color: var(--texte); }
.cal td.f2 { background: var(--chaleur-2); color: #fff; }
.cal td.f3 { background: var(--chaleur-3); color: var(--accent-texte); }
.cal td.p { background: var(--prevu); }
.cal td.a { background: var(--absence); color: #fff; }
.cal td.a1 { background: var(--absence-doux); color: var(--texte); }
.cal .cour { box-shadow: inset 0 0 0 2px var(--alerte); }
.cal th.cour { background: var(--courant); color: var(--texte); }
.cal tr.debut-absences td { border-top: 2px solid var(--bord-fort); }

/* ---------------------------------------------------------------- Mail */
.bloc-mail { margin: 0; padding: 14px 16px; font: 13.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; background: var(--surface-2); border-radius: var(--rayon-petit); max-height: 520px; overflow: auto; }
.objet { display: flex; gap: 8px; align-items: center; }
.objet .champ { font-weight: 600; }
.ia-barre { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ia-etat { font-size: 12.5px; color: var(--texte-3); display: inline-flex; gap: 6px; align-items: center; }
.ia-etat .point { width: 8px; height: 8px; border-radius: 50%; background: var(--texte-3); }
.ia-etat.pret .point { background: var(--accent); }
.ia-etat.travail .point { background: var(--alerte); animation: pulse 1s infinite; }
.ia-etat.hs .point { background: var(--erreur); }
@keyframes pulse { 50% { opacity: .3; } }
textarea.intro { min-height: 130px; font-size: 14px; }
textarea.intro.ecrit { border-color: var(--alerte); }
.apercu-mail { border: 1px dashed var(--bord-fort); border-radius: var(--rayon-petit); padding: 12px 14px; white-space: pre-wrap; font-size: 13.5px; max-height: 360px; overflow: auto; }
.envoi { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- divers */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--texte); color: var(--fond); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  box-shadow: var(--ombre-haute); transition: all .2s; z-index: 100; pointer-events: none; display: flex; gap: 8px; align-items: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%); }
.statut { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--texte-2); white-space: nowrap; }
.statut.en-cours { background: var(--accent-doux); color: var(--accent-fort); }
.statut.termine { background: var(--surface-2); color: var(--texte-3); }
.statut.a-venir { background: var(--ferie-doux); color: var(--ferie); }
.type-absence { color: var(--absence); font-weight: 650; }
details.repli summary { cursor: pointer; color: var(--texte-2); font-weight: 600; padding: 10px 16px; }
.note { min-height: 320px; font-size: 14px; }
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.connexion form { width: min(360px, 100%); display: grid; gap: 14px; padding: 28px; }
.connexion .logo { justify-content: center; font-size: 19px; }
.connexion .logo .pastille { width: 36px; height: 36px; border-radius: 10px; }
.connexion .erreur { color: var(--erreur); font-weight: 600; min-height: 20px; text-align: center; }
.connexion input.champ { height: 44px; font-size: 18px; text-align: center; letter-spacing: 2px; }
.connexion .bouton { height: 44px; }

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 1100px) {
  .deux-colonnes { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .ligne-s { grid-template-columns: 1fr 1fr; padding: 10px 12px; gap: 7px 8px; }
  .ligne-s.entete { display: none; }
  .ligne-s .date { grid-column: 1 / -1; }
  .ligne-s .resume, .ligne-s .total, .ligne-s .controle { display: none; }
  .ligne-s .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ligne-s .tache { grid-column: 1 / -1; }
  .ligne-s .slot-vide { display: none; }
}
@media (max-width: 760px) {
  .barre { height: 52px; padding: 0 12px; backdrop-filter: none; background: var(--surface); }
  .logo small, .etat-sauvegarde span, .telecharger-ods span { display: none; }
  .barre .logo { flex: 1; }
  .onglets {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--bord);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 40;
  }
  .onglet { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 5px 8px; min-width: 62px; }
  .separateur-onglets { display: none; }
  .ligne-s.entete { top: 52px; }
  main { padding: 14px 12px 110px; }
  .mois-grille { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .mois-grille .tot-sem, .mois-grille .jsem.tot { display: none; }
  .case { min-height: 64px; padding: 5px; }
  .case .txt { font-size: 10.5px; }
  .outils .titre { min-width: 0; font-size: 17px; }
  .cal .c1, .cal .c2 { display: none; }
  .cal .c3 { left: 140px; }
  .cal .c0 { min-width: 140px; max-width: 140px; }
}
