.mois-label {
    font-size: 1.18em;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-size: 1.15em;
    font-weight: 600;
    color: #1565c0;
    gap: 10px;
}
.week-label {
    min-width: 120px;
}
/* Autres styles CSS */
/* Styles pour le calendrier */

.cal-num {
    font-size: 1.5em;
    font-weight: bold;
    display: inline-block;
    line-height: 1.1;
    margin-left: 2px;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}
header {
    background: #1565c0;
    color: #fff;
    padding: 24px 0 16px 0;
    text-align: center;
}
header h1 {
    margin: 0 0 8px 0;
    font-size: 2.2em;
    font-weight: 700;
}
header p {
    margin: 0 0 12px 0;
    font-size: 1.1em;
}
#btnBrowse {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    height: 42px;
    font-size: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}
#btnBrowse.locked {
    background: #78909c;
}
#btnBrowse:hover {
    background: #388e3c;
}
#btnBrowse.locked:hover {
    background: #78909c;
}
.actions-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.icon-button {
    width: 42px;
    height: 42px;
    border: 2px solid #111;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 1.2em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}
.icon-button:hover:not(:disabled) {
    background: #f5f5f5;
}
.icon-button:disabled {
    background: #eceff1;
    border-color: #90a4ae;
    cursor: not-allowed;
    box-shadow: none;
}
.download-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#fileName {
    margin-left: 10px;
    color: #333;
    font-size: 0.95em;
}
#dropZone {
    border: 2px dashed #1565c0;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 10px;
    padding: 36px 0;
    text-align: center;
    font-size: 1.2em;
    margin: 24px auto 16px auto;
    max-width: 420px;
    transition: background 0.2s, color 0.2s;
}
#dropZone.locked {
    border-color: #90a4ae;
    background: #eceff1;
    color: #546e7a;
}
#dropZone.dragover {
    background: #bbdefb;
    color: #0d47a1;
}
.pin-modal.hidden {
    display: none;
}
.pin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.pin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
}
.pin-modal__dialog {
    position: relative;
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    text-align: center;
}
.pin-display {
    min-height: 18px;
    margin: 0 auto 12px;
    letter-spacing: 10px;
    font-size: 1.4em;
    font-weight: 700;
    color: #123b69;
}
.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pin-pad__spacer {
    display: block;
}
.pin-key {
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #eef6ff 0%, #ddeeff 100%);
    color: #123b69;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(18, 59, 105, 0.1);
}
.pin-key:hover {
    background: linear-gradient(180deg, #e4f1ff 0%, #d3e8ff 100%);
}
.pin-key--action {
    font-size: 0.9em;
}
.pin-modal__actions {
    margin-top: 12px;
}
.pin-secondary {
    border: none;
    background: transparent;
    color: #607d8b;
    cursor: pointer;
    font-size: 0.95em;
}
#status {
    text-align: center;
    margin: 10px 0 18px 0;
    color: #c62828;
    font-weight: bold;
    min-height: 24px;
}
#calendar {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(21,101,192,0.08);
    padding: 24px 18px 32px 18px;
}
.week-block {
    margin-bottom: 38px;
}
.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-size: 1.15em;
    font-weight: 600;
    color: #1565c0;
}
.week-total {
    color: #2e7d32;
    font-weight: bold;
    font-size: 1em;
}
table.agenda {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background: #fff;
}
table.agenda th, table.agenda td {
    border: 1px solid #e0e7ff;
    padding: 12px 4px;
    text-align: center;
    min-width: 80px;
}
table.agenda th {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 1em;
    font-weight: 600;
}
table.agenda th.samedi {
    background: #ffe0b2;
    color: #e65100;
}
table.agenda th.dimanche {
    background: #ffcdd2;
    color: #c62828;
}
table.agenda th.today {
    background: #b2dfdb;
    color: #00897b;
}
table.agenda td.today {
    background: #e0f2f1;
    outline: 2px solid #00897b;
}
table.agenda td.repos {
    background: #fafafa;
    color: #9e9e9e;
    font-style: italic;
}
table.agenda td.travail {
    background: #e8f5e9;
    color: #1565c0;
}
table.agenda td.travail.travail-matin {
    background: #e7f6ea;
    color: #256029;
}
table.agenda td.travail.travail-jour {
    background: #e8f1ff;
    color: #1559c0;
}
table.agenda td.travail.travail-soir {
    background: #fff0e1;
    color: #c25a00;
}
table.agenda td.travail.travail-standard {
    background: #eef3ff;
    color: #3155a6;
}
table.agenda td.travail.shift-7 {
    background: #f1e8ff;
    color: #6a1b9a;
}
table.agenda td.travail.shift-9 {
    background: #e8f1ff;
    color: #1559c0;
}
table.agenda td.travail.shift-10 {
    background: #e7f6ea;
    color: #256029;
}
table.agenda td.travail.shift-11 {
    background: #fff8d9;
    color: #8a6d00;
}
table.agenda td.travail.shift-15 {
    background: #ffe8e8;
    color: #b71c1c;
}
table.agenda td.travail.shift-standard {
    background: #eef3ff;
    color: #3155a6;
}
table.agenda td.conges {
    background: #fff8e1;
    color: #f57f17;
}
.badge {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.95em;
    font-weight: bold;
    margin: 2px 1px;
    white-space: nowrap;
}
.badge-work {
    background: #1565c0;
    color: #fff;
}
.badge-work.travail-matin {
    background: #2e7d32;
}
.badge-work.travail-jour {
    background: #1565c0;
}
.badge-work.travail-soir {
    background: #ef6c00;
}
.badge-work.travail-standard {
    background: #546e7a;
}
.badge-work.shift-7 {
    background: #8e24aa;
}
.badge-work.shift-9 {
    background: #1565c0;
}
.badge-work.shift-10 {
    background: #2e7d32;
}
.badge-work.shift-11 {
    background: #f9a825;
    color: #1f1f1f;
}
.badge-work.shift-15 {
    background: #d32f2f;
}
.badge-work.shift-standard {
    background: #546e7a;
}
.badge-repos {
    background: #9e9e9e;
    color: #fff;
    font-style: italic;
    font-weight: normal;
}
.badge-conges {
    background: #f57f17;
    color: #fff;
}
.badge-total {
    background: transparent;
    color: #424242;
    border: 1px solid #cfd8dc;
    font-size: 0.95em;
    display: block;
    margin: 5px auto 0;
    width: 36px;
}
@media (max-width: 700px) {
    .actions-bar { gap: 8px; }
    #calendar { padding: 8px 2px 18px 2px; }
    table.agenda th, table.agenda td { padding: 7px 1px; min-width: 38px; font-size: 0.85em; }
    .week-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pin-modal__dialog {
        padding: 18px;
        border-radius: 18px;
    }
}
