/* Suite EVA · interface du gérant
   Direction : précis, calme, rapide. Surfaces neutres (rampe graphite claire), une seule couleur d'accent : celle de
   la salle (violet EVA par défaut). La couleur vit dans le contenu : les créneaux, colorés par salarié, et la ligne de
   couverture sous chaque jour (signature de la Suite). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("polices/inter-latin-wght-normal.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("polices/inter-latin-ext-wght-normal.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 {
  --bg: #fafafa;
  --surface: #ffffff;
  --raised: #f4f4f5;
  --sidebar: #f4f4f5;
  --line: rgba(23, 23, 23, .08);
  --line-2: rgba(23, 23, 23, .14);
  --t1: #171717;
  --t2: #525252;
  --t3: #737373;
  --accent: #4b11e2;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --accent-line: color-mix(in srgb, var(--accent) 35%, white);
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --err: #dc2626;
  --err-soft: #fee2e2;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --r-sm: 6px;
  --r-ctl: 8px;
  --r-card: 12px;
  --r-panel: 14px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .05);
  --ombre-flot: 0 8px 24px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 14px/20px var(--font); color: var(--t1); background: var(--bg); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ic { flex: none; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muet { color: var(--t3); }
.second { color: var(--t2); }
.cache { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Coque ----------------------------------------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.nav { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 12px 8px; min-height: 0; }
.salle-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; background: none;
  border-radius: var(--r-ctl); cursor: pointer; text-align: left; }
.salle-btn:hover { background: rgba(23, 23, 23, .05); }
.salle-logo { width: 28px; height: 28px; border-radius: 7px; background: var(--t1); color: #fff; display: grid;
  place-items: center; flex: none; overflow: hidden; }
.salle-logo svg { width: 20px; height: auto; }
.salle-nom { font-weight: 500; line-height: 18px; }
.salle-sous { font-size: 12px; line-height: 16px; color: var(--t3); }
.nav-groupe { margin-top: 20px; }
.nav-titre { font-size: 12px; line-height: 16px; color: var(--t3); padding: 0 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-ctl);
  text-decoration: none; color: var(--t2); margin-bottom: 2px; transition: background-color .12s var(--ease), color .12s; }
.nav a:hover { background: rgba(23, 23, 23, .05); color: var(--t1); }
.nav a.actif { background: var(--surface); color: var(--t1); box-shadow: var(--ombre), inset 0 0 0 1px var(--line); }
.nav a .compte { margin-left: auto; font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.nav a.actif .compte, .nav a .compte.fort { color: var(--accent); font-weight: 500; }
.nav-pied { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.moi { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--t2); flex: none; }
.moi .nom { font-size: 13px; line-height: 16px; }
.moi .role { font-size: 12px; color: var(--t3); line-height: 16px; }
.icone-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-ctl);
  color: var(--t3); cursor: pointer; margin-left: auto; }
.icone-btn:hover { background: rgba(23, 23, 23, .06); color: var(--t1); }

.principal { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.entete { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.entete h1 { font-size: 17px; line-height: 24px; font-weight: 500; margin: 0; white-space: nowrap; }
.entete .espace { flex: 1; }
.contenu { flex: 1; min-height: 0; overflow: auto; }
.page { padding: 24px 32px 48px; max-width: 1240px; }
.page-titre { font-size: 22px; line-height: 28px; font-weight: 500; margin: 0 0 4px; }
.page-sous { color: var(--t2); margin: 0 0 24px; max-width: 64ch; }
.bandeau { display: flex; align-items: center; gap: 10px; padding: 8px 24px; font-size: 13px; color: var(--t2);
  border-bottom: 1px solid var(--line); background: var(--surface); }
.bandeau.demo { background: var(--raised); }
.bandeau .ic { color: var(--t3); }

/* Contrôles ------------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-ctl);
  border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--ombre); cursor: pointer;
  font-weight: 500; font-size: 13px; color: var(--t1); white-space: nowrap; transition: background-color .12s, box-shadow .12s, transform .08s; }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(.98); }
.btn .ic { color: var(--t3); }
.btn.primaire { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .12); }
.btn.primaire .ic { color: rgba(255, 255, 255, .85); }
.btn.primaire:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.fonce { background: var(--t1); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.fonce:hover { background: #2a2a2a; }
.btn.fonce .ic { color: rgba(255, 255, 255, .8); }
.btn.danger { color: var(--err); }
.btn.danger .ic { color: var(--err); }
.btn.nu { box-shadow: none; background: none; }
.btn.nu:hover { background: rgba(23, 23, 23, .05); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.petit { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-icone { width: 32px; padding: 0; justify-content: center; }
.groupe-btn { display: inline-flex; }
.groupe-btn .btn { border-radius: 0; }
.groupe-btn .btn:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.groupe-btn .btn:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; margin-left: -1px; }
.segment { display: inline-flex; padding: 2px; background: var(--raised); border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line); }
.segment button { height: 28px; padding: 0 12px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 13px;
  color: var(--t2); font-weight: 500; }
.segment button.actif { background: var(--surface); color: var(--t1); box-shadow: var(--ombre), inset 0 0 0 1px var(--line); }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.champ label { font-size: 13px; color: var(--t2); font-weight: 500; }
.champ .aide { font-size: 12px; color: var(--t3); line-height: 16px; }
.saisie, select.saisie, textarea.saisie { height: 36px; border: 0; border-radius: var(--r-ctl); padding: 0 10px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); width: 100%; transition: box-shadow .12s; }
textarea.saisie { height: auto; min-height: 160px; padding: 10px; line-height: 20px; resize: vertical; font-family: var(--font); }
.saisie:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
.ligne-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.case input { margin: 3px 0 0; accent-color: var(--accent); }
.case .t { font-weight: 500; }
.case .d { font-size: 12.5px; color: var(--t3); }

/* Pastilles d'état ------------------------------------------------------------------------------------------------ */
.etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--t2); white-space: nowrap; }
.etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t3); opacity: .5; }
.etat.ok::before { background: var(--ok); opacity: 1; }
.etat.err::before { background: var(--err); opacity: 1; }
.etat.warn::before { background: #d97706; opacity: 1; }
.etat.ok { color: #15803d; }
.etat.err { color: var(--err); }
.etat.warn { color: var(--warn); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 12px;
  background: var(--raised); color: var(--t2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

/* Cartes et listes ------------------------------------------------------------------------------------------------ */
.carte { background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line), var(--ombre); }
.section { margin-bottom: 32px; }
.section-titre { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; color: var(--t2); margin: 0 0 8px; }
.section-titre .muet { font-weight: 400; }
.liste .rang { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.liste .rang:first-child { border-top: 0; }
.rang .principal-txt { flex: 1; min-width: 0; }
.rang .titre { font-weight: 500; }
.rang .sous { font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang .actions { display: flex; gap: 8px; flex: none; }
.vide { padding: 40px 16px; text-align: center; color: var(--t3); }
.vide .ic { margin: 0 auto 8px; color: var(--t3); }
table.tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tab th { text-align: left; font-weight: 500; color: var(--t3); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tab td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tab tr:last-child td { border-bottom: 0; }
.tab .d { text-align: right; font-variant-numeric: tabular-nums; }
.tuile { width: 36px; height: 36px; border-radius: 9px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--t2); letter-spacing: .02em; flex: none; }

/* Tiroir ---------------------------------------------------------------------------------------------------------- */
.voile { position: fixed; inset: 0; background: rgba(15, 15, 16, .18); z-index: 40; animation: fondu .15s var(--ease); }
.tiroir { position: fixed; top: 8px; right: 8px; bottom: 8px; width: 420px; background: var(--surface); border-radius: var(--r-panel);
  box-shadow: var(--ombre-flot), inset 0 0 0 1px var(--line); z-index: 41; display: flex; flex-direction: column;
  animation: entree .18s var(--ease); }
.tiroir header { display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px 20px; }
.tiroir header h2 { font-size: 16px; font-weight: 500; margin: 0; flex: 1; }
.tiroir .corps { padding: 4px 20px 20px; overflow: auto; flex: 1; }
.tiroir footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.tiroir footer .espace { flex: 1; }
@keyframes fondu { from { opacity: 0; } }
@keyframes entree { from { opacity: 0; transform: translateX(8px); } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--t1); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: var(--ombre-flot); max-width: 560px;
  animation: entree .18s var(--ease); }
.toast.err { background: #7f1d1d; }

/* Planning -------------------------------------------------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; height: 100%; }
.plan-barre { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-bottom: 1px solid var(--line);
  background: var(--surface); flex-wrap: wrap; }
.plan-barre .titre-periode { font-size: 15px; font-weight: 500; margin: 0 8px 0 4px; min-width: 210px; }
.plan-barre .espace { flex: 1; }
.brouillons { display: flex; align-items: center; gap: 10px; padding: 8px 24px; font-size: 13px; color: var(--t2);
  background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); }
.brouillons .ic { color: var(--accent); }
.brouillons button { margin-left: auto; }
.plan-corps { flex: 1; display: flex; min-height: 0; }
.plan-vue { flex: 1; min-width: 0; overflow: auto; position: relative; background: var(--surface); }
.ecarts { width: 272px; flex: none; border-left: 1px solid var(--line); background: var(--bg); overflow: auto; padding: 16px; }
.ecarts h3 { font-size: 13px; font-weight: 500; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ecart { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--t2); }
.ecart .ic { margin-top: 1px; }
.ecart.erreur .ic { color: var(--err); }
.ecart.alerte .ic { color: #d97706; }
.ecarts .rien { color: var(--t3); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.ecarts .rien .ic { color: var(--ok); }
.ecarts .heures { margin-top: 24px; }
.heures-rang { display: flex; align-items: center; gap: 8px; height: 28px; font-size: 13px; }
.heures-rang .barre { flex: 1; height: 4px; border-radius: 2px; background: var(--raised); position: relative; overflow: hidden; }
.heures-rang .barre i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--t3); }
.heures-rang .barre i.sup { background: #d97706; }
.heures-rang .barre i.trop { background: var(--err); }
.heures-rang .v { width: 52px; white-space: nowrap; text-align: right; color: var(--t2); font-variant-numeric: tabular-nums; }
.pastille { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Grille semaine / jour */
.grille { display: grid; position: relative; min-width: 760px; }
.g-tete { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; }
.g-jour-tete { padding: 8px 8px 6px; border-left: 1px solid var(--line); cursor: pointer; }
.g-jour-tete .jn { font-size: 12px; color: var(--t3); line-height: 16px; }
.g-jour-tete .jd { font-size: 20px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; display: inline-grid;
  place-items: center; min-width: 32px; height: 32px; border-radius: 16px; margin-left: -4px; padding: 0 4px; }
.g-jour-tete.aujourdhui .jn { color: var(--accent); }
.g-jour-tete.aujourdhui .jd { background: var(--accent); color: #fff; }
.couv { display: flex; height: 4px; border-radius: 2px; overflow: hidden; gap: 1px; margin-top: 6px; background: transparent; }
.couv i { display: block; height: 100%; background: #86c99c; }
.couv i.manque { background: var(--err); }
.couv i.ferme { background: transparent; }
.couv-leg { font-size: 11.5px; line-height: 14px; color: var(--t3); margin-top: 4px; height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.couv-leg.manque { color: var(--err); }
.g-journee { display: grid; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; z-index: 4; }
.g-journee > div { border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; min-height: 28px; }
.puce-jour { font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--raised); color: var(--t2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puce-jour.conge { background: repeating-linear-gradient(135deg, var(--raised) 0 6px, #ececee 6px 12px); }
.puce-jour.evt { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, black); }
.g-heures { position: relative; }
.g-heure { position: absolute; right: 8px; font-size: 11.5px; color: var(--t3); transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.g-col { position: relative; border-left: 1px solid var(--line); }
.g-col.ferme-fond { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(23, 23, 23, .025) 7px 14px); }
.g-ligne { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.g-ligne.demi { border-top-style: dashed; border-top-color: rgba(23, 23, 23, .04); }
.g-ouvert { position: absolute; left: 0; right: 0; background: var(--surface); pointer-events: none; }
.maintenant { position: absolute; left: -1px; right: 0; height: 2px; background: var(--accent); z-index: 3; pointer-events: none; }
.maintenant::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.resas { position: absolute; top: 0; bottom: 0; left: 3px; width: 5px; z-index: 1; }
.resa { position: absolute; left: 0; width: 5px; border-radius: 3px; background: var(--accent-line); cursor: pointer; }
.resa.b2b, .resa.privatisation { background: var(--accent); }
.resa:hover { outline: 2px solid var(--surface); }
.bloc { position: absolute; border-radius: 6px; padding: 4px 6px 4px 8px; font-size: 12px; line-height: 16px; cursor: grab;
  overflow: hidden; user-select: none; background: var(--bloc-fond); color: var(--t1);
  box-shadow: inset 3px 0 0 var(--bloc), inset 0 0 0 1px var(--bloc-bord); transition: box-shadow .12s; }
.bloc:hover { box-shadow: inset 3px 0 0 var(--bloc), inset 0 0 0 1px var(--bloc), 0 2px 6px rgba(0, 0, 0, .08); z-index: 2; }
.bloc .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc .h { color: var(--t2); font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.bloc .p { color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc.brouillon { background: repeating-linear-gradient(135deg, var(--bloc-fond) 0 6px, var(--surface) 6px 9px);
  box-shadow: inset 3px 0 0 var(--bloc), inset 0 0 0 1px var(--bloc-bord); }
.bloc.brouillon::after { content: ""; position: absolute; inset: 0; border: 1px dashed var(--bloc); border-radius: 6px; opacity: .55; pointer-events: none; }
.bloc.ouvert { --bloc: #a1a1aa; --bloc-fond: #f4f4f5; --bloc-bord: #d4d4d8; }
.bloc .marque { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bloc .poignee { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.bloc.glisse { opacity: .9; box-shadow: inset 3px 0 0 var(--bloc), inset 0 0 0 1px var(--bloc), var(--ombre-flot); z-index: 10; cursor: grabbing; transition: none; }
.fantome { position: absolute; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent);
  font-size: 12px; padding: 4px 8px; color: var(--accent); pointer-events: none; z-index: 9; font-variant-numeric: tabular-nums; }

/* Mois */
.mois { display: grid; grid-template-columns: repeat(7, 1fr); min-width: 760px; }
.mois .mt { padding: 8px 10px; font-size: 12px; color: var(--t3); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.mois .mj { min-height: 128px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 6px 8px; cursor: pointer; }
.mois .mj:hover { background: #fcfcfc; }
.mois .mj.hors { background: var(--bg); }
.mois .mj.hors .md { color: var(--t3); }
.mois .md { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; border-radius: 12px; margin-bottom: 4px; }
.mois .mj.aujourdhui .md { background: var(--accent); color: #fff; }
.mois .mcouv { height: 3px; border-radius: 2px; margin: 0 2px 6px; background: #86c99c; }
.mois .mcouv.manque { background: var(--err); }
.mois .mc { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; padding: 0 4px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; }
.mois .mc .h { color: var(--t3); font-variant-numeric: tabular-nums; }
.mois .mc.brouillon { box-shadow: inset 0 0 0 1px dashed; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.mois .plus { font-size: 12px; color: var(--t3); padding: 0 4px; }

/* Équipe (par salarié) */
.equipe { display: grid; min-width: 900px; }
.equipe .et { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 8px 10px; font-size: 12px; color: var(--t3); border-left: 1px solid var(--line); }
.equipe .et.aujourdhui { color: var(--accent); }
.equipe .et b { display: block; font-size: 15px; color: var(--t1); font-weight: 500; font-variant-numeric: tabular-nums; }
.equipe .et.aujourdhui b { color: var(--accent); }
.equipe .en { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: 64px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.equipe .en .h { font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.equipe .ec { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
.equipe .ec.cible { background: var(--accent-soft); }
.equipe .ec.absent { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(23, 23, 23, .035) 7px 14px); }
.equipe .ec .abs { font-size: 12px; color: var(--t3); padding: 2px 4px; }
.puce { position: relative; border-radius: 6px; padding: 4px 8px; font-size: 12px; line-height: 16px; cursor: grab; user-select: none;
  background: var(--bloc-fond); box-shadow: inset 3px 0 0 var(--bloc), inset 0 0 0 1px var(--bloc-bord); }
.puce .h { font-weight: 500; font-variant-numeric: tabular-nums; }
.puce .p { color: var(--t3); }
.puce.brouillon { background: repeating-linear-gradient(135deg, var(--bloc-fond) 0 6px, var(--surface) 6px 9px); }
.puce.brouillon::after { content: ""; position: absolute; inset: 0; border: 1px dashed var(--bloc); border-radius: 6px; opacity: .55; }
.equipe .etot { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 12px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.equipe .etot .sup { color: var(--warn); }
.equipe .etot .trop { color: var(--err); }

/* Connexion ------------------------------------------------------------------------------------------------------- */
.ecran-connexion { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.boite-connexion { width: 360px; }
.boite-connexion .marque { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-weight: 500; font-size: 15px; }
.boite-connexion h1 { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.boite-connexion p { color: var(--t2); margin: 0 0 24px; }
.boite-connexion .btn { width: 100%; justify-content: center; height: 40px; font-size: 14px; }
.erreur-txt { color: var(--err); font-size: 13px; margin: -4px 0 12px; min-height: 18px; }

/* Services ---------------------------------------------------------------------------------------------------------- */
.service { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service .info { flex: 1; min-width: 0; }
.service .nom { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.service .desc { font-size: 13px; color: var(--t3); }
.service .msg { font-size: 12.5px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.service .col-etat { width: 150px; flex: none; }
.service .actions { display: flex; gap: 8px; flex: none; width: 220px; justify-content: flex-end; }
.scope { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.scope .ic { color: var(--t3); margin-top: 2px; }
.note { font-size: 12.5px; color: var(--t3); line-height: 18px; display: flex; gap: 8px; margin-top: 12px; }
.note .ic { margin-top: 1px; }
.mail { font-size: 13px; line-height: 20px; white-space: pre-wrap; background: var(--bg); border-radius: var(--r-ctl); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.cles { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 13px; margin-bottom: 16px; }
.cles dt { color: var(--t3); }
.cles dd { margin: 0; }
.grille-reglages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.grille-reglages .jr { font-size: 12px; color: var(--t3); margin-bottom: 4px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.interrupteur:first-child { border-top: 0; }
.bascule { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: #d4d4d8; position: relative; cursor: pointer; transition: background-color .15s; margin: 0; }
.bascule::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s var(--ease); }
.bascule:checked { background: var(--accent); }
.bascule:checked::after { transform: translateX(14px); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .nav { display: none; }
  .ecarts { display: none; }
  .page { padding: 16px; }
  .tiroir { left: 8px; width: auto; }
}

.bloc { container-type: inline-size; }
.bloc .n .c { display: none; }
.bloc.etroit { padding: 4px 3px 4px 6px; }
/* Créneaux serrés (week-end chargé) : initiales seules, l'info complète reste au survol et dans l'éditeur. */
@container (max-width: 33px) {
  .bloc .n { text-overflow: clip; }
  .bloc .n .l, .bloc .h, .bloc .p { display: none; }
  .bloc .n .c { display: inline; }
}
.legende { display: flex; gap: 8px; font-size: 12px; line-height: 16px; color: var(--t3); margin-top: 20px; }
.legende .ic { margin-top: 1px; color: var(--accent); }

.moi-btn { min-width: 0; flex: 1; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.moi-btn:hover .nom { text-decoration: underline; text-underline-offset: 2px; }
.a-changer { color: #a16207; white-space: nowrap; }
.aide { color: var(--t2); font-size: 13px; line-height: 19px; margin: 0 0 4px; }
