/* PLANNING CADB — styles communs (charte pwa.ca-db.fr : bleu #004289, DM Sans) */
:root {
    --primary: #004289; --primary-dark: #002855; --primary-light: #E0F2FE;
    --bg: #F1F5F9; --surface: #fff; --text: #1E293B; --text-muted: #64748B; --border: #E2E8F0;
    --ok: #16A34A; --ok-bg: #DCFCE7; --ko: #DC2626; --ko-bg: #FEE2E2; --warn: #D97706; --warn-bg: #FEF3C7;
    --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
    /* formes et ombres communes : cartes douces, ombres diffuses plutôt que traits durs */
    --r: 10px; --r-el: 8px; --r-s: 6px; --trait: #EDF1F7;   /* cartes · boutons et champs · petites etiquettes */
    --sh: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px -14px rgba(16,24,40,.22);
    --sh-fort: 0 2px 4px rgba(16,24,40,.05), 0 16px 40px -16px rgba(16,24,40,.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scrollbar-gutter: stable; }   /* la place de lascenseur est toujours reservee : la page ne se decale plus dune vue a lautre */
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { color: var(--primary); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* barre du haut (webapp et admin) */
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + var(--safe-top));
    background: linear-gradient(135deg, #004289 0%, #002855 100%); color: #fff; box-shadow: 0 4px 16px rgba(0,40,85,.25); position: sticky; top: 0; z-index: 50; }
.topbar:not(.gestion) { min-height: calc(54px + var(--safe-top)); }   /* meme hauteur sur toutes les pages, avec ou sans bouton (Gestion, legende) */
.topbar h1 { font-size: 1.05rem; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-size: .85rem; font-weight: 600;
    padding: 7px 12px; border-radius: var(--r-el); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); white-space: nowrap; cursor: pointer; }
.topbar .pill:active { transform: scale(.95); }
.topbar .pill.active { background: #fff; color: var(--primary); }
.topbar .icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* navigation basse de la webapp */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff; border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 7px; text-decoration: none; color: var(--text-muted); font-size: .68rem; font-weight: 700; }
.tabbar a.active { color: var(--primary); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .badge { position: absolute; margin-left: 22px; margin-top: -4px; background: var(--ko); color: #fff; font-size: .6rem; border-radius: 999px; padding: 1px 5px; }

/* conteneurs */
.page { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(90px + var(--safe-bottom)); }
.page.large { max-width: 1400px; padding-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); margin-bottom: 14px; }
.card h2 { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 12px; }

/* barre de période : flèches rondes et titre sur deux niveaux (planning, semaines, mois) */
/* carte en vedette : une teinte prise sur lhoraire ou le solde, deux bulles et une icone */
.vedette { position: relative; overflow: hidden; --tc: #64748B; --tf: color-mix(in srgb, var(--tc) 32%, #0F172A);
    border-color: color-mix(in srgb, var(--tc) 38%, var(--trait));
    background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 16%, #fff), #fff 58%); padding: 14px 15px; }
.vedette::before, .vedette::after { content: ""; position: absolute; border-radius: 50%; background: var(--tc); pointer-events: none; }
.vedette::before { width: 116px; height: 116px; top: -50px; right: -30px; opacity: .2; }
.vedette::after { width: 44px; height: 44px; top: 44px; right: 40px; opacity: .11; }
.vedette > * { position: relative; }
.vedette .tete { display: flex; align-items: center; gap: 9px; }
.vedette .tete h2, .vedette .tete .jt { margin: 0; color: var(--tf); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.vedette .ic { width: 32px; height: 32px; border-radius: var(--r-el); flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--tc) 42%, #fff); color: var(--tf); }
.vedette .ic svg { width: 18px; height: 18px; }
a.vedette { display: block; text-decoration: none; color: inherit; margin-top: 14px; }
/* un lien de bas de page, plus discret quune carte en vedette */
a.lienfin { --tc: var(--primary); display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--trait);
    border-radius: var(--r-el); box-shadow: var(--sh); text-decoration: none; color: var(--text); font-weight: 700; font-size: .86rem; }
a.lienfin svg { width: 17px; height: 17px; flex: none; color: var(--tc); }
a.lienfin .fl { margin-left: auto; color: var(--text-muted); font-weight: 800; font-size: 1.1rem; line-height: 1; }
a.lienfin:active { opacity: .86; }
a.vedette:active { opacity: .86; }
.vedette .tete .fl { margin-left: auto; font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--tf); }
.vedette .sous { margin: 9px 0 0; font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.per { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); padding: 5px; margin-bottom: 14px; box-shadow: var(--sh); }
.per .nav { width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; cursor: pointer; }
.per .nav svg { width: 19px; height: 19px; } .per .nav:active { background: #EFF6FF; color: var(--primary); }
.per .txt { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.per .txt b { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.per .txt i { font-style: normal; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.per .auj { flex: none; margin-right: 4px; border: none; background: #EFF6FF; color: var(--primary); font-weight: 800; font-size: .72rem; border-radius: var(--r-el); padding: 7px 12px; text-decoration: none; cursor: pointer; }

/* ligne de journée, commune à laccueil et au planning */
.jl { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 54px; font-size: .88rem; }
.jl + .jl { border-top: 1px solid var(--trait); }
.jl .dt { width: 56px; flex: none; line-height: 1.15; }
.jl .dt b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.jl .dt i { font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.jl .info { margin-left: auto; text-align: right; min-width: 0; }
.jl .info b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jl .info small { display: block; color: var(--text-muted); font-weight: 600; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl .repos { margin-left: auto; color: #94A3B8; font-weight: 600; }
.jl.we { background: #FAFBFD; } .jl.fer { background: #FFF8F8; }
.jl.auj { background: #FFFBEB; box-shadow: inset 3px 0 0 #F59E0B; }
.jl.tap { cursor: pointer; } .jl.tap:active { background: #EFF6FF; }
.liste { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
/* cadre : la meme bordure fine que les cartes en vedette, mais en gris (listes de journees) */
.cadre { border-color: color-mix(in srgb, #64748B 30%, var(--trait)); }
/* compteurs compacts : une tuile par droit (congés, RTT, habillage…) */
.cpts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cpt { --tc: #64748B; background: var(--surface); border: 1px solid color-mix(in srgb, var(--tc) 34%, var(--trait)); border-radius: var(--r-el); padding: 8px 9px 7px; box-shadow: var(--sh); min-width: 0; }
.cpt .c { display: flex; align-items: flex-start; gap: 6px; font-size: .64rem; font-weight: 800; line-height: 1.2; color: color-mix(in srgb, var(--tc) 32%, #0F172A); min-height: 2.4em; }
.cpt .c em { flex: none; width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--tc); }
.cpt .vl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 5px; min-width: 0; }
.cpt .v { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: color-mix(in srgb, var(--tc) 30%, #0F172A); }
.cpt .v.ko { color: var(--ko); }
.cpt .s { font-size: .62rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt .b { height: 4px; border-radius: var(--r-s); background: #EDF1F7; margin-top: 6px; overflow: hidden; display: flex; }
.cpt .b i { display: block; height: 100%; background: var(--tc); } .cpt .b i.att { background: color-mix(in srgb, var(--tc) 45%, #fff); } .cpt .b i.over { background: var(--ko); }
/* la meme chose en une bande de puces, quand la place manque */
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce { --tc: #64748B; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--tc) 34%, var(--trait));
    border-radius: var(--r-el); padding: 6px 12px; font-size: .78rem; font-weight: 700; color: var(--text-muted); box-shadow: var(--sh); }
.puce em { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.puce i { font-style: normal; font-weight: 800; color: color-mix(in srgb, var(--tc) 30%, #0F172A); white-space: nowrap; }
.puce.ko i { color: var(--ko); }
.muted { color: var(--text-muted); }
.empty { text-align: center; color: var(--text-muted); padding: 34px 0; font-weight: 500; }
.chip { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-s); background: #F1F5F9; color: #334155; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.ko { background: var(--ko-bg); color: var(--ko); } .chip.warn { background: var(--warn-bg); color: var(--warn); }

/* formulaires */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: 5px; }
.input, .select, textarea.input { width: 100%; padding: 11px 12px; border: 1px solid #CBD5E1; border-radius: var(--r-el); background: #fff; color: var(--text); font-size: .95rem; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,66,137,.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; text-decoration: none; border-radius: var(--r-el); padding: 10px 15px; font-weight: 700; font-size: .9rem; cursor: pointer; background: var(--primary); color: #fff; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; cursor: not-allowed; }
/* boutons secondaires : fond très pâle, trait de la couleur du texte */
.btn.ghost  { background: #EFF6FF;      color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.btn.danger { background: var(--ko-bg); color: var(--ko);      border-color: color-mix(in srgb, var(--ko) 40%, transparent); }
.btn.ok     { background: var(--ok-bg); color: var(--ok);      border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.btn.block { width: 100%; } .btn.sm { padding: 6px 10px; font-size: .78rem; border-radius: var(--r-el); }
.alert { padding: 10px 14px; border-radius: var(--r-el); font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.alert.ko { background: var(--ko-bg); color: #991B1B; } .alert.ok { background: var(--ok-bg); color: #166534; } .alert.warn { background: var(--warn-bg); color: #92400E; }

/* toast */
.toast { position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 300%); visibility: hidden; opacity: 0; background: #0F172A; color: #fff; padding: 11px 20px; border-radius: var(--r-el);
    font-weight: 700; font-size: .88rem; box-shadow: 0 -6px 24px rgba(0,0,0,.2); z-index: 300; transition: transform .35s cubic-bezier(.175,.885,.32,1.275), opacity .25s, visibility 0s linear .35s; text-align: center; max-width: min(92vw, 340px); }
.toast.visible { transform: translate(-50%, calc(-18px - var(--safe-bottom))); visibility: visible; opacity: 1; transition: transform .35s cubic-bezier(.175,.885,.32,1.275), opacity .2s, visibility 0s; }
body:has(.tabbar) .toast.visible { transform: translate(-50%, calc(-78px - var(--safe-bottom))); }   /* webapp : au-dessus de la navigation basse */
.toast.ok { background: #10B981; } .toast.ko { background: #EF4444; }
.toast small { display: block; font-weight: 500; opacity: .9; font-size: .76rem; margin-top: 2px; }

/* modales */
.voile { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.voile.ouvert { display: flex; }
.modal { background: #fff; border-radius: var(--r); width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.modal .sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal .actions .left { margin-right: auto; }

/* feuille basse (légende) */
.backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .28s; }
.backdrop.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; background: #fff; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -6px 40px rgba(0,0,0,.18);
    transform: translateY(calc(100% + 60px)); visibility: hidden; transition: transform .34s cubic-bezier(.32,.72,0,1), visibility 0s linear .34s; max-height: 80vh; display: flex; flex-direction: column; padding-bottom: calc(var(--safe-bottom) + 12px); }
.sheet.show { transform: translateY(0); visibility: visible; transition: transform .34s cubic-bezier(.32,.72,0,1); }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; transform: translate(-50%, calc(100% + 60px)); width: 420px; border-radius: var(--r); bottom: 24px; } .sheet.show { transform: translate(-50%, 0); } }
.sheet .grabber { width: 36px; height: 5px; border-radius: var(--r-s); background: var(--border); margin: 8px auto 4px; flex: none; }
.sheet .head { display: flex; align-items: flex-start; gap: 12px; padding: 8px 20px 12px; flex: none; }
.sheet .head .t { font-size: 1.15rem; font-weight: 700; } .sheet .head .s { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.sheet .close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none; background: #F1F5F9; color: var(--text-muted); cursor: pointer; }
.sheet .body { overflow-y: auto; padding: 0 20px 8px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.legend-item:last-child { border-bottom: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* cartes de quotas (solde, bilan) */
.quota-summary { display: grid; grid-template-columns: repeat(var(--nb, 3), minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }   /* cartes côte à côte, --nb posé par la page */
.quota-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-el); padding: 9px 8px; box-shadow: 0 4px 14px rgba(15,40,80,.06); min-width: 0; }
.quota-card .qt { font-size: .54rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; line-height: 1.15; min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quota-card .qn { font-size: 1.05rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.quota-card .qn .sep { color: var(--text-muted); font-weight: 400; margin: 0 3px; } .quota-card .qn .tot { color: var(--text-muted); font-size: .8rem; } .quota-card .qn .j { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.quota-card .qd { font-size: .58rem; color: var(--text-muted); margin-top: 3px; font-weight: 500; line-height: 1.25; }
.quota-bar { height: 5px; background: #F1F5F9; border-radius: var(--r-s); margin-top: 7px; overflow: hidden; display: flex; }
.quota-bar i { display: block; height: 100%; background: var(--qc, var(--primary)); } .quota-bar i.att { opacity: .35; } .quota-bar i.over { background: var(--ko); }
.quota-card .qr { font-size: .58rem; margin-top: 5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quota-card .qr.positive { color: var(--qc, var(--ok)); } .quota-card .qr.overflow { color: var(--ko); } .quota-card .qr.neutral { color: var(--text-muted); }

/* espace de gestion : barre du haut avec les rubriques, pastille orange = ce qui attend */
.topbar.gestion { position: static; flex-wrap: wrap; }
.topbar.gestion nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar .badge { background: #F97316; color: #fff; border-radius: 999px; padding: 0 6px; font-size: .68rem; margin-left: 2px; }
.wrap { max-width: 1500px; margin: 0 auto; padding: 16px 18px 30px; }
.tb { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: .86rem; }
.tb th, .tb td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tb thead th { background: #F8FAFC; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.tb tbody tr:last-child td { border-bottom: none; }
.tb tbody tr:hover td { background: #FFF1F2; }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--ok); font-weight: 800; } .neg { color: var(--ko); font-weight: 800; } .nil { color: var(--text-muted); }
.filtres { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filtres .select, .filtres .input { width: auto; padding: 8px 12px; font-size: .88rem; font-weight: 600; }
.nav-arrow { width: 36px; height: 36px; border-radius: var(--r-el); border: 1px solid #DBEAFE; background: #EFF6FF; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; font-weight: 700; cursor: pointer; }
.titre-p { font-size: 1.25rem; font-weight: 800; text-transform: capitalize; }
/* navigation de période : flèches et titre réunis dans une pastille */
.navper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-el); box-shadow: 0 1px 4px rgba(15,40,80,.06); }
.navper .nav-arrow { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--text-muted); font-size: 17px; line-height: 1; }
.navper .nav-arrow:hover { background: #EFF6FF; color: var(--primary); }
.navper .titre-p { display: inline-flex; align-items: baseline; gap: 9px; padding: 0 10px; font-size: 1.02rem; text-transform: none; white-space: nowrap; }
.navper .titre-p i { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* aller à une date : le titre ouvre le calendrier (un champ date transparent posé dessus) */
.titre-p.all, .per .txt.all { position: relative; cursor: pointer; padding-bottom: 3px; }
.titre-p.all::after, .per .txt.all::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 30px; height: 2px; border-radius: 2px; background: #CBD5E1; transform: translateX(-50%); }
.titre-p.all:hover::after, .per .txt.all:hover::after { background: var(--primary); }
.allerdate { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; background: none; cursor: pointer; }
/* sous Windows, seul le petit bouton calendrier du champ ouvre le sélecteur : on l etale sur tout le titre */
.allerdate::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

/* bulle maison (jamais l info-bulle grise du navigateur) */
.bulle-g { position: fixed; z-index: 400; display: none; background: #0F172A; color: #fff; padding: 7px 11px; border-radius: var(--r-el); font-size: .78rem; line-height: 1.4;
    white-space: pre-line; max-width: 300px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* menu contextuel (clic droit) et petites fenêtres flottantes */
.flottant { position: fixed; z-index: 350; display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--r-el); box-shadow: 0 12px 32px rgba(15,40,80,.18); padding: 12px 14px; min-width: 240px; }
.flottant .t { font-weight: 800; font-size: .88rem; margin-bottom: 2px; } .flottant .s { font-size: .76rem; color: var(--text-muted); margin-bottom: 10px; }
.flottant .w { font-size: .74rem; color: var(--ko); font-weight: 700; margin: -4px 0 10px; white-space: pre-line; }
.flottant .b { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }

/* liste des heures au quart d'heure (champs data-heures : planning, pointages) */
.heures-liste { position: fixed; z-index: 3000; max-height: 232px; overflow-y: auto; background: #fff; border: none; border-radius: var(--r); box-shadow: 0 12px 32px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.08); padding: 6px 0; font-variant-numeric: tabular-nums; scrollbar-width: none; }
.heures-liste::-webkit-scrollbar { display: none; }   /* pas de barre de défilement : on fait défiler à la molette ou au doigt */
.heures-liste div { padding: 11px 18px; font-size: .95rem; font-weight: 500; cursor: pointer; text-align: center; color: #0F172A; }
.heures-liste div:hover { background: #F8FAFC; } .heures-liste div.on { background: #F1F5F9; font-weight: 700; }
