602 lines
13 KiB
CSS
602 lines
13 KiB
CSS
/* ==========================================================================
|
|
Thème clair (défaut)
|
|
========================================================================== */
|
|
:root {
|
|
--bg: #f4f5f7;
|
|
--bg-elevated: #ffffff;
|
|
--bg-muted: #f0f1f3;
|
|
--bg-hover: #f7f8fa;
|
|
--border: #e2e4e8;
|
|
--border-strong: #cfd3da;
|
|
--text: #1a1f2b;
|
|
--text-muted: #5b6573;
|
|
--text-faint: #8892a0;
|
|
--accent: #0f4f8b;
|
|
--accent-soft: #e1ecf7;
|
|
--danger: #b03030;
|
|
--danger-soft: #fbe6e6;
|
|
--warn: #b87a00;
|
|
--warn-soft: #fff2d6;
|
|
--ok: #2e7b4a;
|
|
--ok-soft: #dff0e4;
|
|
|
|
/* Palette par type d'intervention (clair & lisible) */
|
|
--c-livraison: #2563eb; /* bleu */
|
|
--c-livraison-soft: #dbeafe;
|
|
--c-recup: #16a34a; /* vert */
|
|
--c-recup-soft: #dcfce7;
|
|
--c-remplacement: #ea580c; /* orange */
|
|
--c-remplacement-soft: #fed7aa;
|
|
--c-autre: #6b7280; /* gris */
|
|
--c-autre-soft: #e5e7eb;
|
|
|
|
--shadow: 0 1px 3px rgba(20, 30, 50, 0.06), 0 1px 2px rgba(20, 30, 50, 0.04);
|
|
--shadow-hover: 0 2px 8px rgba(20, 30, 50, 0.08);
|
|
--radius: 8px;
|
|
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
--mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg: #16181d;
|
|
--bg-elevated: #21242b;
|
|
--bg-muted: #1c1f25;
|
|
--bg-hover: #2a2e36;
|
|
--border: #2e333c;
|
|
--border-strong: #414754;
|
|
--text: #e6e8ec;
|
|
--text-muted: #9ba2ad;
|
|
--text-faint: #6a727e;
|
|
--accent: #5ea8e8;
|
|
--accent-soft: #223348;
|
|
--danger: #e87878;
|
|
--danger-soft: #3b2626;
|
|
--warn: #d9a753;
|
|
--warn-soft: #3a2e1a;
|
|
--ok: #78c59a;
|
|
--ok-soft: #1f3a2b;
|
|
|
|
/* Palette sombre — tons plus doux mais toujours distincts */
|
|
--c-livraison: #60a5fa;
|
|
--c-livraison-soft: #1e3a5f;
|
|
--c-recup: #4ade80;
|
|
--c-recup-soft: #14432a;
|
|
--c-remplacement: #fb923c;
|
|
--c-remplacement-soft: #4a2512;
|
|
--c-autre: #9ca3af;
|
|
--c-autre-soft: #2a2e36;
|
|
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow-hover: 0 2px 10px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Base
|
|
========================================================================== */
|
|
* { box-sizing: border-box; }
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
/* ==========================================================================
|
|
Topbar
|
|
========================================================================== */
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
background: var(--bg-elevated);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 14px;
|
|
}
|
|
|
|
.topbar h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.capture-info {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
background: var(--bg-muted);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: background 0.1s, border-color 0.1s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 6px 10px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
État initial
|
|
========================================================================== */
|
|
.loading {
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.error-box {
|
|
margin: 20px;
|
|
padding: 14px 18px;
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border: 1px solid var(--danger);
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.stats {
|
|
padding: 10px 20px 0 20px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Grille de cartes
|
|
========================================================================== */
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 14px;
|
|
padding: 14px 20px 40px 20px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-muted);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-tech-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.card-tech-badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-pompier {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.badge-absent {
|
|
background: var(--bg-muted);
|
|
color: var(--text-faint);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.badge-count {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 8px 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.card-empty {
|
|
padding: 14px;
|
|
color: var(--text-faint);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Cartes pompier : liseré rouge discret */
|
|
.card.is-pompier {
|
|
border-left: 3px solid var(--danger);
|
|
}
|
|
|
|
/* Cartes absent : teinte neutre */
|
|
.card.is-absent {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.card.is-absent .card-header {
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Frise de temps
|
|
========================================================================== */
|
|
.timeline {
|
|
padding: 12px 14px 6px 14px;
|
|
background: var(--bg-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
|
|
/* Fond rouge discret quand la carte est "pompier" */
|
|
.timeline-pompier {
|
|
background: var(--danger-soft);
|
|
}
|
|
|
|
.timeline-pompier::before {
|
|
content: "En pompier toute la journée";
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 14px;
|
|
font-size: 10px;
|
|
color: var(--danger);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.timeline-bar {
|
|
position: relative;
|
|
height: 20px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Trous (zones libres) : fond diagonal discret + vert léger au survol */
|
|
.timeline-hole {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
transparent 0 4px,
|
|
rgba(0, 0, 0, 0.035) 4px 8px
|
|
);
|
|
cursor: help;
|
|
transition: background 0.1s;
|
|
}
|
|
[data-theme="dark"] .timeline-hole {
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
transparent 0 4px,
|
|
rgba(255, 255, 255, 0.04) 4px 8px
|
|
);
|
|
}
|
|
.timeline-hole:hover {
|
|
background: var(--ok-soft);
|
|
}
|
|
|
|
/* Blocs occupés : couleurs selon type */
|
|
.timeline-slot {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
cursor: help;
|
|
transition: filter 0.1s;
|
|
border-right: 1px solid var(--bg-elevated);
|
|
}
|
|
|
|
.timeline-slot.color-livraison { background: var(--c-livraison); }
|
|
.timeline-slot.color-recup { background: var(--c-recup); }
|
|
.timeline-slot.color-remplacement { background: var(--c-remplacement); }
|
|
.timeline-slot.color-autre { background: var(--c-autre); }
|
|
|
|
.timeline-slot.kind-absence {
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
var(--text-faint) 0 6px,
|
|
var(--bg-muted) 6px 12px
|
|
);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.timeline-slot:hover,
|
|
.timeline-slot.highlight {
|
|
filter: brightness(1.12);
|
|
outline: 2px solid var(--text);
|
|
outline-offset: -2px;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Ligne de midi : marqueur vertical discret */
|
|
.timeline-noon {
|
|
position: absolute;
|
|
top: -2px;
|
|
bottom: -2px;
|
|
width: 1px;
|
|
background: var(--border-strong);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.timeline-scale {
|
|
position: relative;
|
|
height: 14px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.timeline-tick {
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
font-size: 10px;
|
|
color: var(--text-faint);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
/* Stats matin / après-midi / total */
|
|
.card-stats {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 6px 14px 8px 14px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-muted);
|
|
}
|
|
.card-stats .stat-chunk b {
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
}
|
|
.card-stats .stat-chunk.total {
|
|
margin-left: auto;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Note de statut pompier/absent en haut de carte */
|
|
.card-status-note {
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
.card-status-note.pompier {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.card-status-note.absent {
|
|
background: var(--bg);
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
font-style: italic;
|
|
}
|
|
|
|
.card-empty.subtle {
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Highlight réciproque */
|
|
.intervention.highlight {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Interventions (lignes dans la carte)
|
|
========================================================================== */
|
|
.intervention {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 14px 8px 10px;
|
|
border-top: 1px solid var(--border);
|
|
cursor: default;
|
|
transition: background 0.08s;
|
|
}
|
|
|
|
.intervention:first-child {
|
|
border-top: none;
|
|
}
|
|
|
|
.intervention:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Pastille colorée à gauche, rappel visuel du type */
|
|
.intervention-dot {
|
|
flex-shrink: 0;
|
|
width: 4px;
|
|
align-self: stretch;
|
|
margin: 2px 4px 2px 0;
|
|
border-radius: 2px;
|
|
}
|
|
.intervention.color-livraison .intervention-dot { background: var(--c-livraison); }
|
|
.intervention.color-recup .intervention-dot { background: var(--c-recup); }
|
|
.intervention.color-remplacement .intervention-dot { background: var(--c-remplacement); }
|
|
.intervention.color-autre .intervention-dot { background: var(--c-autre); }
|
|
|
|
.intervention-time {
|
|
flex-shrink: 0;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
min-width: 86px;
|
|
}
|
|
|
|
.intervention-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.intervention-title {
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.intervention-meta {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.intervention-ref {
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.intervention-copy {
|
|
flex-shrink: 0;
|
|
padding: 4px 8px;
|
|
background: transparent;
|
|
color: var(--text-faint);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
opacity: 0;
|
|
transition: opacity 0.1s, background 0.1s, color 0.1s;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.intervention:hover .intervention-copy {
|
|
opacity: 1;
|
|
}
|
|
|
|
.intervention-copy:hover {
|
|
background: var(--bg-muted);
|
|
color: var(--text);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.intervention-copy.copied {
|
|
color: var(--ok);
|
|
background: var(--ok-soft);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Intervention de type pompier */
|
|
.intervention.is-pompier-line .intervention-time {
|
|
color: var(--danger);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Tooltip au survol
|
|
========================================================================== */
|
|
.tooltip {
|
|
position: fixed;
|
|
z-index: 100;
|
|
max-width: 420px;
|
|
padding: 12px 14px;
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-hover);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.1s;
|
|
}
|
|
|
|
.tooltip.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tooltip dl {
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
column-gap: 10px;
|
|
row-gap: 4px;
|
|
}
|
|
|
|
.tooltip dt {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tooltip dd {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.tooltip dd.description {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.tooltip hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 8px 0;
|
|
grid-column: 1 / -1;
|
|
}
|