/* Youπ — graphisme du 1er décembre 2026 : un seul ornement, le pixel du logo.
   Police et palette en variables : pour basculer, ne changer que ce bloc. */
:root {
  /* ===== Charte (par défaut) : Jost et couleurs de la charte — version du 1er décembre, soir ===== */
  --fond: #FFFFFF; --menu: #F6F7F9;
  --encre: #0B1C3C; --encre-2: #3A4458; --encre-3: #5A6478;
  --filet: #DDE1E8; --filet-leger: #EEF0F4; --vide: #E6E9EE;
  --logo-bleu: #2C6795; --logo-rouge: #EA3C26;
  --jaune: #D5A53A;
  --tempi: #1F7BC1;    --tempi-fonce: #1A6AA6;    --tempi-clair: #E4EFF8;
  --pistache: #5E7F22; --pistache-fonce: #4F6B1C; --pistache-clair: #ECF0E4; --pistache-passe: #B5C79A;
  --kepi: #C9246A;     --pilote: #D93A1E;
  --alerte: #A8530F;
  --proj-2: #7DB0DE; --proj-4: #C3DBF0; --proj-5: #2C6795; --proj-6: #9AA3B2; --proj-7: #4A5568; --proj-8: #DCE3EC;
  --sans: 'Jost', system-ui, sans-serif;
  --date: 'EB Garamond', Georgia, serif;
  --gras: 500;
  --m: var(--tempi); --m-fonce: var(--tempi-fonce); --m-clair: var(--tempi-clair);
}
/* ===== Bascule : Geist et nouvelle palette (version du 1er décembre, matin) ===== */
html.theme-geist {
  --menu: #FFFFFF;
  --encre-2: #4A5468; --encre-3: #6B7486;
  --filet: #EDEFF3; --filet-leger: #F0F2F5;
  --tempi: #2D5BBA;    --tempi-fonce: #2A54AC;    --tempi-clair: #E3E9F6;
  --pistache: #6B8B2B; --pistache-fonce: #4F6A1C; --pistache-clair: #EDF2E3; --pistache-passe: #BCCB9C;
  --kepi: #B8336A;     --pilote: #C9482A;
  --proj-2: #8FA9DC; --proj-4: #C9D5EE;
  --sans: 'Geist', system-ui, sans-serif;
}
body.m-pistache, etc.) */
  --m: var(--tempi); --m-fonce: var(--tempi-fonce); --m-clair: var(--tempi-clair);
}
body.m-pistache { --m: var(--pistache); --m-fonce: var(--pistache-fonce); --m-clair: var(--pistache-clair); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { display: flex; min-height: 100vh; background: var(--fond); color: var(--encre);
  font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 22px;
  -webkit-font-smoothing: antialiased; }
a { color: var(--m-fonce); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffres { font-variant-numeric: tabular-nums; }
.muet { color: var(--encre-3); }
[hidden] { display: none !important; }

/* ---------- pixels ---------- */
.px { display: inline-block; width: 6px; height: 6px; background: var(--m); flex: none; vertical-align: middle; position: relative; top: -1px; margin-right: 10px; }
.px.tempi { background: var(--tempi); } .px.pistache { background: var(--pistache); }
.px.alerte { background: var(--alerte); } .px.gris { background: var(--encre-3); }
svg { display: block; }

/* ---------- point jaune ---------- */
.dt { display: inline-block; position: relative; }
.dt i { position: absolute; left: 50%; top: .04em; width: .19em; height: .19em; border-radius: 50%; background: var(--jaune); transform: translateX(-50%); }
.dt.j i { left: 60%; }
html.theme-geist .dt i { top: .10em; width: .17em; height: .17em; }
html.theme-geist .dt.j i { top: .085em; }

/* ---------- menu ---------- */
.menu { width: 240px; flex: 0 0 240px; padding: 30px 0 22px; background: var(--menu); border-right: 1px solid var(--filet);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.menu-tete { padding-left: 24px; }
.logo { display: block; width: 176px; line-height: 0; }
.og { display: flex; justify-content: space-between; font-size: 10px; line-height: 1; color: var(--encre-3); margin-top: 12px; font-weight: 400; }
.menu .filet-logo { margin-top: 13px; }
.mods { margin-top: 34px; display: flex; flex-direction: column; }
.mod { position: relative; display: flex; flex-direction: column; padding: 9px 24px; }
.mod-nom { font-weight: var(--gras); font-size: 23px; line-height: 26px; text-decoration: none; }
.mod-tempi .mod-nom { color: var(--tempi); } .mod-pistache .mod-nom { color: var(--pistache); }
.mod-kepi .mod-nom { color: var(--kepi); } .mod-pilote .mod-nom { color: var(--pilote); }
.mod-sous { font-weight: 300; font-size: 12px; line-height: 16px; color: var(--encre-3); margin-top: 2px; }
.mod.a-venir .mod-nom { opacity: .45; }
.lisere { position: absolute; left: 0; top: 9px; line-height: 0; }
.rubriques { list-style: none; margin: 2px 0 14px 24px; padding: 0; border-left: 1px solid var(--filet); }
.rubriques li { position: relative; }
.rubriques a { display: block; padding: 5px 0 5px 16px; font-size: 13.5px; line-height: 20px; color: var(--encre-2); margin-left: -1px; }
.rubriques a:hover { color: var(--tempi-fonce); }
.rubriques a[aria-current="page"] { color: var(--tempi); font-weight: var(--gras); }
.rubriques .trait { position: absolute; left: -1px; top: 4px; line-height: 0; }
.rubriques .sep { height: 1px; background: var(--filet); margin: 6px 24px 6px 16px; }
.menu-pied { margin-top: auto; padding: 24px 24px 0; font-size: 12px; line-height: 18px; color: var(--encre-2); }
.menu-pied a { color: var(--encre-3); }
.menu-pied a:hover { color: var(--encre); }

/* ---------- contenu ---------- */
.contenu { flex: 1; min-width: 0; padding: 30px 64px 48px; max-width: 1420px; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hd { position: relative; display: inline-block; margin-top: -7px; }
.hd .bande { position: absolute; left: -64px; top: 10px; line-height: 0; z-index: 2; }
.hd h1 { position: relative; z-index: 3; margin: 0; font-weight: var(--gras); font-size: 65px; line-height: 1; letter-spacing: -0.01em; color: var(--encre); }
.sous-titre { font-family: var(--date); font-size: 26px; line-height: 32px; color: var(--encre-2); margin-top: 8px; }
.entete-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding-bottom: 4px; }

/* ---------- blocs ---------- */
.bloc-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 16px; font-weight: var(--gras); font-size: 20px; line-height: 26px; color: var(--m); }
.bloc-titre small { font-weight: 300; font-size: 12px; color: var(--encre-3); }
.bloc-titre small a { color: var(--encre-3); }
.bloc-titre.pistache { color: var(--pistache); }
.section { margin-top: 44px; }
.aide { font-size: 13.5px; line-height: 21px; color: var(--encre-2); max-width: 780px; padding: 10px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); margin-top: 32px; }
.erreur { color: var(--alerte); padding: 8px 0; font-size: 13.5px; display: flex; align-items: center; }

/* ---------- accueil ---------- */
.afaire { margin: 36px 0 44px; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.afaire > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; }
.afaire > div + div { border-top: 1px solid var(--filet-leger); }
.afaire .txt { display: flex; align-items: baseline; }
.afaire .txt .px { position: relative; top: -2px; }
.lien-action { color: var(--tempi-fonce); font-size: 13px; border-bottom: 1px solid var(--tempi-clair); padding-bottom: 1px; white-space: nowrap; line-height: 18px; }
html:not(.theme-geist) .lien-action { border-bottom-color: #BFD6EA; }
.lien-action:hover { border-bottom-color: var(--tempi-fonce); }
.grille-accueil { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: 56px; }
.gros { font-weight: var(--gras); font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.gros small { font-size: 14px; font-weight: 400; color: var(--encre-3); margin-left: 6px; }
.jours-col { display: flex; gap: 22px; align-items: flex-end; }
.jour-col { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; line-height: 1; color: var(--encre-3); white-space: nowrap; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; line-height: 20px; color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; white-space: nowrap; }
.legende i { width: 7px; height: 7px; margin-right: 6px; display: inline-block; }
.legende b { font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.ligne-cle { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet-leger); }
.liste-filet { border-top: 1px solid var(--filet-leger); }
.ligne-projet { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--filet-leger); }
.code { font-weight: var(--gras); font-size: 12px; letter-spacing: .08em; color: var(--pistache-fonce); white-space: nowrap; }
.code.encre { color: var(--encre); }
.nom-projet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.phase, .etiquette { display: inline-block; font-size: 11.5px; line-height: 20px; letter-spacing: .04em; padding: 0 8px; white-space: nowrap; background: var(--pistache-clair); color: var(--pistache-fonce); }
.etiquette.tempi { background: var(--tempi-clair); color: var(--tempi-fonce); }
.vide-texte { color: var(--encre-3); padding: 8px 0; }
.remarque { margin-top: 18px; font-size: 13.5px; line-height: 21px; color: var(--encre-2); display: flex; align-items: baseline; }
.remarque::before { content: ""; width: 6px; height: 6px; background: var(--alerte); margin-right: 10px; flex: none; position: relative; top: -2px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border: 1px solid var(--filet);
  background: var(--fond); color: var(--encre); font-size: 14px; letter-spacing: .02em; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; border-radius: 0; }
.btn:hover { border-color: var(--encre-3); }
.btn-plein { background: var(--m); border-color: var(--m); color: #fff; }
.btn-plein:hover { background: var(--m-fonce); border-color: var(--m-fonce); }
.btn-petit { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.lien { background: none; border: none; padding: 0; color: var(--m-fonce); cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; }
.lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.lien.discret { color: var(--encre-3); }
.action { display: inline-flex; align-items: center; color: var(--m-fonce); font-size: 13.5px; }
.action::before { content: ""; width: 6px; height: 6px; background: var(--m); margin-right: 10px; }
.action:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.fleches { display: flex; gap: 6px; }
.fleches a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--filet); font-size: 14px; color: var(--encre); background: var(--fond); }
.fleches a:hover { border-color: var(--encre-3); }

/* ---------- tableaux ---------- */
.defile { width: 100%; }
table.tab { width: 100%; border-collapse: collapse; }
table.tab th { text-align: left; font-weight: 400; font-size: 12px; line-height: 18px; color: var(--encre-3); padding: 0 10px 10px; border-bottom: 1px solid var(--encre); white-space: nowrap; vertical-align: bottom; }
table.tab td { padding: 0 10px; height: 47px; border-bottom: 1px solid var(--filet-leger); vertical-align: middle; white-space: nowrap; }
table.tab td.coupe { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.tab th:first-child, table.tab td:first-child { padding-left: 0; }
table.tab th:last-child, table.tab td:last-child { padding-right: 0; }
table.tab tfoot td { border-bottom: none; font-weight: var(--gras); height: 46px; }
table.tab th.num, table.tab td.num { text-align: right; }
table.tab tr.ligne-lien { cursor: pointer; }
table.tab tr.ligne-lien:hover td { color: var(--tempi-fonce); }
table.tab a { color: var(--tempi-fonce); }
.ecart-neg { color: var(--encre-2); }
.ecart-pos { color: var(--encre); }

/* ---------- statuts ---------- */
.statut { display: inline-block; font-size: 11.5px; line-height: 20px; letter-spacing: .04em; padding: 0 8px; white-space: nowrap; background: var(--filet-leger); color: var(--encre-3); }
.statut.soumise, .statut.demandee { color: var(--alerte); }
.statut.validee, .statut.remboursee { color: var(--tempi-fonce); background: var(--tempi-clair); }
.statut.refusee { color: var(--encre-2); }
.compteur-alerte { color: var(--alerte); font-variant-numeric: tabular-nums; }

/* ---------- navigation de semaine ---------- */
.nav-semaine { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- résumé de la semaine ---------- */
.resume-sem { margin: 36px 0 32px; }
.rs-ligne { display: flex; gap: 64px; align-items: flex-end; margin-top: 22px; flex-wrap: wrap; }
.rs-ligne #rs-jours { gap: 18px; }
.rs-ligne .jour-col { width: 42px; }
.rs-ligne .jour-col span { height: 12px; }
.par-projet { display: flex; gap: 40px; align-items: flex-start; font-size: 12.5px; color: var(--encre-2); }
.pp-col { display: grid; grid-template-columns: 7px minmax(34px, auto) auto 56px 40px; column-gap: 12px; align-items: center; }
.par-projet.deux .pp-col { grid-template-columns: 7px minmax(34px, auto) auto 48px 34px; column-gap: 10px; }
.pp-col > * { height: 22px; display: flex; align-items: center; }
.par-projet .k { width: 7px; height: 7px; }
.par-projet .c { font-weight: var(--gras); font-size: 12px; letter-spacing: .08em; color: var(--encre); white-space: nowrap; }
.par-projet .b { gap: 3px; }
.par-projet .b i { width: 7px; height: 7px; display: block; border-radius: 50%; background: var(--jaune); flex: none; }
.par-projet .b i.demi { opacity: .4; }
.par-projet .v, .par-projet .p { justify-content: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.par-projet .p { color: var(--encre-3); }

/* ---------- grille de la semaine ---------- */
.grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grille col.c-type { width: 104px; } .grille col.c-projet { width: auto; }
.grille col.c-phase { width: 104px; } .grille col.c-jour { width: 64px; } .grille col.c-total { width: 58px; } .grille col.c-suppr { width: 28px; }
.grille th { font-weight: 400; font-size: 12px; line-height: 18px; color: var(--encre-3); padding: 0 10px 10px; border-bottom: 1px solid var(--encre); text-align: left; white-space: nowrap; vertical-align: bottom; }
.grille th:first-child, .grille td:first-child { padding-left: 0; }
.grille th.jour { text-align: center; padding-left: 4px; padding-right: 4px; }
.grille th.tot { text-align: right; }
.grille td { padding: 0 10px; height: 48px; border-bottom: 1px solid var(--filet-leger); vertical-align: middle; }
.grille td.jour { padding: 0 4px; text-align: center; }
.grille select, .grille input.sujet { width: 100%; height: 32px; border: 1px solid transparent; background-color: transparent; padding: 0 22px 0 0; font-size: 14px; border-radius: 0; text-overflow: ellipsis; }
.grille input.sujet { padding-right: 6px; }
.grille select:hover, .grille input.sujet:hover { border-color: var(--filet); }
.grille select:focus, .grille input:focus { outline: none; border-color: var(--tempi); }
.grille select.projet.manque { border-color: var(--alerte); }
.grille select.phase-sel { width: auto; max-width: 100%; height: 22px; font-size: 11.5px; letter-spacing: .04em; padding: 0 24px 0 8px; background-color: var(--tempi-clair); color: var(--tempi-fonce); border: none; }
.grille input.h { width: 52px; height: 32px; display: inline-block; text-align: center; border: 1px solid var(--filet); padding: 0; font-variant-numeric: tabular-nums; background: var(--fond); border-radius: 0; font-size: 14px; }
.grille input.h.ferie { background: var(--vide); border-color: var(--vide); }
.grille input.h:disabled, .grille select:disabled, .grille input.sujet:disabled { color: var(--encre); -webkit-text-fill-color: var(--encre); opacity: 1; background-image: none; }
.grille select.phase-sel:disabled { color: var(--tempi-fonce); -webkit-text-fill-color: var(--tempi-fonce); padding-right: 8px; }
.grille td.total { text-align: right; font-weight: var(--gras); font-variant-numeric: tabular-nums; }
.grille tfoot td { border-bottom: none; height: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.grille tfoot td.lib { text-align: left; color: var(--encre-3); font-size: 13px; padding-left: 0; }
.grille tfoot td.total { text-align: right; font-size: 16px; font-weight: var(--gras); }
.grille .suppr { border: none; background: none; color: #A2A9B6; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 0 2px 4px; float: right; }
.grille .suppr:hover { color: var(--encre); }
.grille.sans-we .we { display: none; }
/* la grille garde toujours de la place pour le nom du projet : en dessous, elle défile au lieu de se superposer */
.defile { overflow-x: auto; }
.defile > table.grille { min-width: 790px; }
.defile > table.grille:not(.sans-we) { min-width: 918px; }
/* jours fériés et jours de congé : colonne teintée, case bloquée */
.grille th.jour.bloque { color: var(--encre-2); }
.grille th.jour .motif { display: block; font-size: 10.5px; line-height: 14px; letter-spacing: .04em; color: var(--jaune); }
.grille td.jour.bloque { background: #FBF4E4; }
.grille input.h.ferie { background: #FBF4E4; border-color: #EFDDB4; }
.grille input.h.ferie:disabled { cursor: not-allowed; }

/* bande des dernières semaines : une pastille par semaine */
.bande-sem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 28px 0 0; font-size: 12.5px; }
.pastille-sem { display: inline-flex; align-items: center; gap: 6px; color: var(--encre-2); font-variant-numeric: tabular-nums; padding: 2px 0; border-bottom: 1px solid transparent; }
.pastille-sem.courant { color: var(--encre); font-weight: var(--gras); border-bottom-color: var(--encre); }
.pastille-sem .etat-lib { font-weight: 400; color: var(--encre-2); margin-left: -6px; white-space: pre; }
.pastille-sem i, .legende-sem i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.pastille-sem.vide i, .legende-sem i.vide { background: transparent; box-shadow: inset 0 0 0 1.5px var(--alerte); }
.pastille-sem.brouillon i, .legende-sem i.brouillon { background: #A2A9B6; }
.pastille-sem.soumise i, .legende-sem i.soumise { background: var(--tempi); }
.pastille-sem.validee i, .legende-sem i.validee { background: var(--pistache); }
.legende-sem { margin-left: auto; color: var(--encre-3); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.legende-sem i { width: 7px; height: 7px; margin-left: 8px; }
.statut.vide { color: var(--alerte); background: transparent; box-shadow: inset 0 0 0 1px #E8CDB5; }
.pied-semaine { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--filet); flex-wrap: wrap; }
.pied-semaine .liens { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.pied-semaine .liens form { margin: 0; }
.pied-semaine .boutons { display: flex; gap: 10px; align-items: center; }
.etat-msg { font-size: 13px; color: var(--encre-3); }
.etat-msg.erreur { color: var(--alerte); padding: 0; }

/* ---------- fenêtre de confirmation ---------- */
dialog { border: 1px solid var(--filet); padding: 30px 34px; max-width: 560px; width: 92vw; border-radius: 0; }
dialog::backdrop { background: rgba(11, 28, 60, .18); }
dialog h2 { font-weight: var(--gras); font-size: 24px; line-height: 30px; margin-bottom: 8px; }
dialog p.intro { color: var(--encre-2); margin: 0 0 18px; font-size: 13.5px; line-height: 21px; }
.conf { display: grid; grid-template-columns: 70px 1fr 150px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--filet-leger); }

/* ---------- formulaires ---------- */
.form-ligne { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--encre-3); }
.champ input, .champ select, .champ textarea { height: 40px; border: 1px solid var(--filet); padding: 0 10px; font-weight: 400; font-size: 14px; color: var(--encre); background-color: var(--fond); border-radius: 0; min-width: 0; }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--m); }
.champ input::placeholder { color: var(--encre-3); }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%235A6478' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 26px !important; cursor: pointer; }
.case { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13.5px; color: var(--encre-2); height: 40px; cursor: pointer; }
.case input { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border: 1px solid var(--encre-3); margin: 0; display: grid; place-content: center; cursor: pointer; border-radius: 0; background: var(--fond); }
.case input::before { content: ""; width: 6px; height: 6px; background: var(--m); transform: scale(0); }
.case input:checked::before { transform: scale(1); }
.cases { display: flex; gap: 18px; }
.joindre { display: inline-flex; align-items: center; height: 40px; font-weight: 400; font-size: 13.5px; color: var(--m-fonce); cursor: pointer; white-space: nowrap; position: relative; }
.joindre::before { content: ""; width: 6px; height: 6px; background: var(--m); margin-right: 10px; }
.joindre input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.joindre .nom-fichier { color: var(--encre); margin-left: 8px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.champ-date { position: relative; }
.champ-date input.date-txt { width: 132px; font-variant-numeric: tabular-nums; }
.cal { position: absolute; z-index: 20; top: 100%; left: 0; margin-top: 4px; background: var(--fond); border: 1px solid var(--filet); padding: 12px 12px 10px; width: 240px; color: var(--encre); font-weight: 400; }
.cal-tete { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin-bottom: 8px; }
.cal-tete button { border: none; background: none; cursor: pointer; color: var(--encre-2); font-size: 15px; width: 24px; height: 24px; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; line-height: 28px; font-variant-numeric: tabular-nums; }
.cal-grille span { color: var(--encre-3); }
.cal-grille button { border: none; background: none; cursor: pointer; height: 28px; font-size: 12.5px; color: var(--encre); }
.cal-grille button:hover { outline: 1px solid var(--filet); }
.cal-grille button.auj { color: var(--m-fonce); font-weight: var(--gras); }
.cal-grille button.choisi { background: var(--m); color: #fff; }
.cal-grille button.autre { color: var(--encre-3); }

/* ---------- compteurs (congés) ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 40px; }
.carte .lib { font-weight: var(--gras); font-size: 20px; line-height: 26px; color: var(--tempi); margin-bottom: 14px; }
.carte .detail { font-size: 13px; line-height: 20px; color: var(--encre-3); margin-top: 10px; }
.carte p.regle { font-size: 13.5px; line-height: 21px; color: var(--encre-2); }

/* ---------- Pistache ---------- */
.avancement { display: flex; align-items: center; gap: 14px; }
.av-carres { display: flex; gap: 2px; }
.av-carres i { width: 10px; height: 10px; display: block; background: var(--vide); }
.av-carres i.passe { background: var(--pistache-passe); }
.av-carres i.encours { background: var(--pistache); }
.legende-phases { display: flex; gap: 18px; font-size: 12.5px; color: var(--encre-2); padding-bottom: 6px; }
.legende-phases span { display: inline-flex; align-items: center; }
.legende-phases i { width: 10px; height: 10px; margin-right: 6px; display: inline-block; }

/* ---------- connexion ---------- */
body.connexion { justify-content: center; align-items: flex-start; background: var(--fond); }
.boite-connexion { width: 320px; margin-top: 16vh; }
.boite-connexion .logo { width: 220px; }
.boite-connexion .og { font-size: 12.5px; margin-top: 15px; }
.boite-connexion .filet-logo { margin-top: 16px; }
.boite-connexion form { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.boite-connexion .champ input { width: 100%; }
.boite-connexion .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- téléphone ---------- */
@media (max-width: 899px) {
  body { flex-direction: column; }
  .menu { position: static; width: auto; flex: none; height: auto; padding: 14px 18px 10px; border-right: none; border-bottom: 1px solid var(--filet);
    display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center; overflow: visible; }
  .menu-tete { padding: 0; }
  .menu .logo { width: 96px; }
  .menu .og, .menu .filet-logo, .mod-sous, .menu-pied .qui, .lisere, .mods .rubriques { display: none; }
  .mods { margin: 0; flex-direction: row; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
  .mod { padding: 0; }
  .mod-nom { font-size: 18px; line-height: 22px; }
  .mod.a-venir { display: none; }
  .rubriques-tel { grid-column: 1 / -1; display: flex; gap: 16px; overflow-x: auto; margin-top: 12px; padding: 0; list-style: none; white-space: nowrap; }
  .rubriques-tel .sep, .rubriques-tel .trait { display: none; }
  .rubriques-tel a { font-size: 13px; color: var(--encre-2); display: inline-flex; align-items: center; padding: 2px 0; }
  .rubriques-tel a[aria-current="page"] { color: var(--tempi); font-weight: var(--gras); }
  .menu-pied { grid-column: 1 / -1; margin: 8px 0 0; padding: 0; font-size: 12px; }
  .contenu { padding: 24px 18px 48px; }
  .hd { margin-top: -4px; }
  .hd h1 { font-size: 40px; line-height: 1.05; }
  .hd .bande { left: -18px; top: 6px; }
  .hd .bande svg { width: 162px; height: 26.7px; }
  .sous-titre { font-size: 20px; line-height: 26px; }
  .entete-droite { align-items: flex-start; }
  .afaire { margin: 28px 0 32px; }
  .afaire > div { align-items: flex-start; }
  .grille-accueil, .cartes { grid-template-columns: 1fr; gap: 40px; }
  .rs-ligne { gap: 24px; }
  .par-projet { display: grid; grid-template-columns: 7px auto auto 48px 34px; grid-auto-rows: 22px; align-content: start; gap: 0 10px; align-items: center; }
  .par-projet .pp-col { display: contents; }
  .defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .defile > table { min-width: 640px; }
  .legende-sem { margin-left: 0; width: 100%; }
  .form-ligne { gap: 12px; }
  .form-ligne .champ { flex: 1 1 140px; }
  .form-ligne .champ input, .form-ligne .champ select { width: 100% !important; }
  .boite-connexion { margin-top: 10vh; width: 100%; padding: 0 28px; }
}
@media (min-width: 900px) { .rubriques-tel { display: none; } }

/* question posée sur l'accueil */
.question { margin-top: 40px; padding: 22px 0 4px; border-top: 1px solid var(--filet); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 780px; }
.question .bloc-titre { margin: 0; }
.question .choix { display: flex; flex-direction: column; gap: 2px; }
.question .case { height: auto; min-height: 30px; font-size: 14px; line-height: 20px; color: var(--encre); align-items: flex-start; padding: 5px 0; }
.question .case input { flex: none; margin-top: 4px; }
.remarque.merci { margin-top: 28px; }
.remarque.merci::before { background: var(--tempi); }

/* bulle au survol des carrés d'heures */
.bulle { position: fixed; z-index: 50; pointer-events: none; background: var(--encre); color: #fff; font-size: 12px; line-height: 16px; letter-spacing: .02em; padding: 4px 8px; white-space: nowrap; }
.bulle[hidden] { display: none; }

/* notes de frais : dépôt du justificatif et aperçu */
.depot { flex: 1 1 100%; display: flex; gap: 18px; align-items: stretch; }
.depot-zone { flex: 1; min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 16px;
  border: 1px dashed #B9C0CC; color: var(--encre-3); font-size: 13px; cursor: pointer; position: relative; }
.depot-zone strong { color: var(--m-fonce); font-weight: var(--gras); }
.depot-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.depot.survol .depot-zone { border-color: var(--m); background: var(--m-clair); }
.depot.rempli .depot-zone { flex: 0 0 220px; }
.depot-apercu { flex: 1; display: flex; gap: 16px; align-items: flex-start; }
.depot-vue { width: 180px; height: 240px; border: 1px solid var(--filet); background: var(--menu); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
.depot-vue img { max-width: 100%; max-height: 100%; object-fit: contain; }
.depot-vue iframe { width: 100%; height: 100%; border: 0; }
.depot-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; padding-top: 4px; min-width: 0; }
.depot-info .nom-fichier { color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
@media (max-width: 899px) { .depot { flex-direction: column; } .depot.rempli .depot-zone { flex: none; } .depot-vue { width: 100%; height: 300px; } }

/* congés : aperçu avant envoi */
.apercu-conge { margin-top: 18px; padding: 14px 18px; background: var(--m-clair); border-left: 3px solid var(--m); font-size: 13.5px; line-height: 20px; max-width: 780px; }
.apercu-conge p { margin: 0 0 4px; }
.apercu-conge .q { font-size: 18px; line-height: 24px; color: var(--encre); font-weight: var(--gras); margin-bottom: 6px; }
.apercu-conge strong { font-weight: var(--gras); font-variant-numeric: tabular-nums; }
.apercu-conge.neg { background: #FBF0E6; border-left-color: var(--alerte); }
.apercu-conge .alerte { color: var(--alerte); }

/* Accueil : logo, bande, point et titre masqués jusqu'au départ de l'animation (évite le flash du logo fixe). */
.anim-logo-attente svg[aria-label="Youπ"],
.anim-logo-attente .hd .bande svg,
.anim-logo-attente .hd .dt i { visibility: hidden; }
.anim-logo-attente .hd h1 { opacity: 0; }
