Calculateur des Gardes Hospitalières */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-text-size-adjust: 100%; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif; background: #f5f9fc; background: linear-gradient(180deg, #f5f9fc 0%, #eaf3f8 100%); color: #1a2a3a; line-height: 1.55; font-size: 15px; min-height: 100vh; } img { max-width: 100%; display: block; } button { font-family: inherit; cursor: pointer; } input, select, textarea { font-family: inherit; font-size: inherit; } table { border-collapse: collapse; width: 100%; } /* Layout */ .app-container { max-width: 1180px; margin: 0 auto; padding: 18px 14px 60px; } /* Header */ .app-header { background: linear-gradient(135deg, #0d6efd 0%, #17a2b8 100%); color: #fff; padding: 28px 22px; border-radius: 14px; box-shadow: 0 8px 22px rgba(13, 110, 253, 0.18); margin-bottom: 18px; } .app-header h1 { font-size: 26px; font-weight: 700; letter-spacing: 0.2px; } .app-header p { font-size: 15px; opacity: 0.92; margin-top: 6px; } .app-header .badge-row { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; } .app-header .badge { background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; } /* Steps indicator */ .steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; background: #fff; padding: 12px; border-radius: 10px; border: 1px solid #e3eef5; font-size: 12px; } .steps .step { display: flex; align-items: center; gap: 6px; color: #5a6c7d; } .steps .step .num { background: #0d6efd; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11px; } .steps .step .arrow { color: #b8c8d4; } /* Cards */ .card { background: #fff; border-radius: 12px; padding: 18px 18px 22px; margin-bottom: 16px; border: 1px solid #e3eef5; box-shadow: 0 2px 8px rgba(15, 52, 82, 0.04); } .card h2 { font-size: 18px; color: #0b5394; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; } .card h2 .ic { color: #17a2b8; } .card .subtitle { font-size: 13px; color: #6c7d8c; margin-bottom: 14px; } /* Buttons */ .btn { background: #0d6efd; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background 0.15s, transform 0.05s; display: inline-flex; align-items: center; gap: 6px; } .btn:hover { background: #0b5ed7; } .btn:active { transform: translateY(1px); } .btn:disabled { background: #b8c8d4; cursor: not-allowed; } .btn.secondary { background: #17a2b8; } .btn.secondary:hover { background: #13899b; } .btn.outline { background: transparent; color: #0d6efd; border: 1.5px solid #0d6efd; } .btn.outline:hover { background: #eaf3ff; } .btn.danger { background: #dc3545; } .btn.danger:hover { background: #bb2d3b; } .btn.small { padding: 6px 12px; font-size: 13px; } .btn.ghost { background: #f1f5f9; color: #1a2a3a; } .btn.ghost:hover { background: #e3eaf0; } .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } /* Forms */ label { display: block; font-weight: 500; color: #1a2a3a; margin-bottom: 4px; font-size: 14px; } input[type="text"], input[type="date"], input[type="number"], select, textarea { width: 100%; padding: 9px 12px; border: 1.5px solid #cdd9e3; border-radius: 8px; background: #fff; color: #1a2a3a; transition: border-color 0.15s, box-shadow 0.15s; } input:focus, select:focus, textarea:focus { outline: none; border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12); } input[type="file"] { padding: 8px; background: #f8fbfe; } .field { margin-bottom: 12px; } .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } /* Upload dropzone */ .dropzone { border: 2px dashed #b8d4ea; background: #f8fbfe; padding: 22px; border-radius: 10px; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; } .dropzone:hover, .dropzone.dragover { background: #eaf3ff; border-color: #0d6efd; } .dropzone .dz-icon { font-size: 32px; color: #17a2b8; margin-bottom: 8px; } .dropzone .dz-text { font-size: 14px; color: #1a2a3a; } .dropzone .dz-hint { font-size: 12px; color: #6c7d8c; margin-top: 4px; } /* File list */ .file-list { margin-top: 14px; display: grid; gap: 10px; } .file-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 10px; background: #f8fbfe; border: 1px solid #e3eef5; border-radius: 8px; align-items: center; } .file-item .preview { width: 70px; height: 70px; border-radius: 6px; overflow: hidden; background: #e3eef5; display: flex; align-items: center; justify-content: center; } .file-item .preview img { width: 100%; height: 100%; object-fit: cover; } .file-item .preview .pdf-tag { background: #dc3545; color: #fff; font-size: 11px; padding: 4px 6px; border-radius: 4px; font-weight: 600; } .file-item .info .name { font-weight: 600; color: #1a2a3a; font-size: 14px; word-break: break-all; } .file-item .info .meta { font-size: 12px; color: #6c7d8c; margin-top: 2px; } .file-item .info .status { font-size: 12px; margin-top: 4px; font-weight: 500; } .file-item .info .status.pending { color: #6c7d8c; } .file-item .info .status.processing { color: #0d6efd; } .file-item .info .status.done { color: #198754; } .file-item .info .status.error { color: #dc3545; } .file-item .actions { display: flex; flex-direction: column; gap: 4px; } /* Search results */ .search-results { margin-top: 10px; background: #f8fbfe; border: 1px solid #e3eef5; border-radius: 8px; padding: 8px; } .search-results .item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background 0.1s; } .search-results .item:hover { background: #eaf3ff; } .search-results .item .score { font-size: 11px; color: #6c7d8c; } .search-results .empty { padding: 10px; text-align: center; color: #6c7d8c; font-size: 13px; } /* Employee confirmed card */ .employee-confirmed { background: linear-gradient(135deg, #d1e7dd 0%, #cfe8ff 100%); padding: 10px 14px; border-radius: 8px; margin-top: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid #b3dccc; } .employee-confirmed .label { font-size: 12px; color: #5a6c7d; } .employee-confirmed .name { font-weight: 600; color: #0b5394; font-size: 16px; } .employee-confirmed button { margin-left: auto; } /* Tables */ .table-wrap { overflow-x: auto; border: 1px solid #e3eef5; border-radius: 8px; } table.data-table { font-size: 13px; min-width: 700px; } table.data-table th, table.data-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef4f9; vertical-align: middle; } table.data-table thead th { background: #eaf3ff; color: #0b5394; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; } table.data-table tbody tr:hover { background: #f8fbfe; } table.data-table input[type="text"], table.data-table input[type="date"], table.data-table select { padding: 5px 8px; font-size: 13px; } table.data-table .row-actions { display: flex; gap: 4px; flex-wrap: wrap; } table.data-table tr.uncertain { background: #fff4e6; } table.data-table tr.uncertain:hover { background: #ffefd9; } table.data-table tr.duplicate { background: #fde2e2; } table.data-table tr.duplicate:hover { background: #fbd5d5; } table.data-table tr.unverified { opacity: 0.7; } .btn-icon { border: none; background: transparent; padding: 4px; border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1; } .btn-icon:hover { background: #e3eef5; } .btn-icon.danger { color: #dc3545; } .btn-icon.ok { color: #198754; } /* Holidays */ .holiday-list { display: grid; gap: 6px; } .holiday-item { display: grid; grid-template-columns: 1fr 130px 100px auto; gap: 8px; padding: 8px 10px; background: #f8fbfe; border: 1px solid #e3eef5; border-radius: 6px; align-items: center; font-size: 13px; } .holiday-item.unconfirmed { border-color: #ffc107; background: #fff9e6; } .holiday-item .name { font-weight: 500; } .holiday-item .type-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; text-align: center; } .holiday-item .type-tag.fixe { background: #e3f2fd; color: #0d6efd; } .holiday-item .type-tag.religieuse { background: #fff4e6; color: #b76e00; } .holiday-item .warn { color: #b76e00; font-size: 11px; margin-top: 2px; } .holiday-item input, .holiday-item select { padding: 5px 8px; font-size: 13px; } .holiday-warning { background: #fff9e6; border: 1px solid #ffc107; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #b76e00; margin-top: 10px; } /* Results dashboard */ .result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; } .result-card { background: linear-gradient(135deg, #f8fbfe 0%, #eaf3ff 100%); border: 1px solid #cdd9e3; border-radius: 10px; padding: 14px; text-align: center; } .result-card .cat { font-size: 12px; color: #5a6c7d; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; } .result-card .val { font-size: 32px; font-weight: 700; color: #0b5394; margin-top: 4px; } .result-card.jo { border-left: 4px solid #0d6efd; } .result-card.ve { border-left: 4px solid #17a2b8; } .result-card.we { border-left: 4px solid #6f42c1; } .result-total { background: linear-gradient(135deg, #0d6efd 0%, #17a2b8 100%); color: #fff; border-radius: 10px; padding: 14px; text-align: center; margin-bottom: 14px; } .result-total .cat { font-size: 13px; opacity: 0.9; } .result-total .val { font-size: 36px; font-weight: 700; } .summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; } .stat { background: #f8fbfe; padding: 10px; border-radius: 8px; border: 1px solid #e3eef5; text-align: center; } .stat .label { font-size: 11px; color: #6c7d8c; text-transform: uppercase; letter-spacing: 0.3px; } .stat .value { font-size: 18px; font-weight: 600; color: #1a2a3a; margin-top: 2px; } /* Filter chips */ .filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .chip { background: #f1f5f9; color: #1a2a3a; padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; border: 1px solid transparent; font-weight: 500; } .chip:hover { background: #e3eaf0; } .chip.active { background: #0d6efd; color: #fff; } /* Alerts */ .alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; } .alert .ic { font-weight: 700; } .alert.info { background: #eaf3ff; color: #0b5394; border-left: 4px solid #0d6efd; } .alert.success { background: #d1e7dd; color: #0a5132; border-left: 4px solid #198754; } .alert.warning { background: #fff9e6; color: #b76e00; border-left: 4px solid #ffc107; } .alert.error { background: #fde2e2; color: #842029; border-left: 4px solid #dc3545; } /* History */ .history-list { display: grid; gap: 6px; } .history-item { background: #f8fbfe; border: 1px solid #e3eef5; padding: 10px 12px; border-radius: 6px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13px; } .history-item .meta { color: #6c7d8c; font-size: 11px; } .history-item .nums { display: flex; gap: 8px; font-size: 12px; } .history-item .nums span { background: #eaf3ff; padding: 2px 6px; border-radius: 4px; color: #0b5394; } /* Privacy notice */ .privacy-notice { background: #f1f5f9; border: 1px solid #cdd9e3; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #5a6c7d; margin-top: 14px; } .privacy-notice strong { color: #1a2a3a; } /* Modal */ .modal-overlay { position: fixed; inset: 0; background: rgba(15, 52, 82, 0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; } .modal-overlay.show { display: flex; } .modal { background: #fff; border-radius: 12px; padding: 22px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.25); } .modal h3 { color: #0b5394; margin-bottom: 10px; font-size: 18px; } /* Footer */ .app-footer { text-align: center; padding: 20px 10px; color: #6c7d8c; font-size: 12px; } /* Progress bar */ .progress-bar { background: #e3eef5; border-radius: 999px; height: 6px; overflow: hidden; margin-top: 6px; } .progress-bar .fill { background: linear-gradient(90deg, #0d6efd, #17a2b8); height: 100%; width: 0%; transition: width 0.3s; } /* Hidden */ .hidden { display: none !important; } /* Responsive */ @media (max-width: 760px) { .app-header h1 { font-size: 20px; } .app-header p { font-size: 13px; } .card { padding: 14px; } .field-row { grid-template-columns: 1fr; } .file-item { grid-template-columns: 60px 1fr; } .file-item .actions { grid-column: 1 / -1; flex-direction: row; } .result-grid { grid-template-columns: 1fr; } .holiday-item { grid-template-columns: 1fr; } .holiday-item .name { font-size: 14px; } .summary-stats { grid-template-columns: repeat(2, 1fr); } .steps { font-size: 11px; } .steps .step .arrow { display: none; } .modal { padding: 16px; } } @media (max-width: 480px) { .app-container { padding: 10px 8px 40px; } .app-header { padding: 18px 14px; } .app-header h1 { font-size: 18px; } .summary-stats { grid-template-columns: 1fr; } } /* Blogger required minimal post area (hidden, kept for theme validity) */ .blog-content-area { display: none; } ]]>

Calculateur des Gardes Hospitalières

Calcul automatique des gardes à partir des tableaux de service.

Maroc OCR local Confidentialité préservée
1 Téléverser
→
2 OCR
→
3 Rechercher
→
4 Confirmer
→
5 Vérifier
→
6 Jours fériés
→
7 Calculer
→
8 Exporter

① Téléversement des tableaux de service

Téléversez une ou plusieurs images (JPG, JPEG, PNG) ou fichiers PDF. Le traitement OCR se fait localement dans votre navigateur.

⬆
Cliquez ou glissez vos fichiers ici
Formats acceptés : JPG, JPEG, PNG, PDF — plusieurs fichiers autorisés

② Recherche du médecin

Saisissez le nom et prénom du médecin. La recherche ignore la casse, les espaces superflus et tolère les petites erreurs OCR.

③ Tableau de vérification des gardes détectées

Vérifiez et corrigez chaque ligne détectée par l'OCR. Lignes orange = incertaines, lignes rouges = doublons possibles. Cochez « Vérifié » pour confirmer.

Date Jour Nom détecté Type de garde Période Vérification Actions
Aucune garde détectée. Téléversez un tableau de service pour commencer.