:root {
    --port-blue: #1B365D; 
    --port-orange: #FF8C00; 
    --port-dark: #102027; 
    --btn-blue: #82b1ff; 
    --surface: rgba(30, 43, 50, 0.95);
    
    --color-matin: #4CAF50; 
    --color-apres_midi: #FFC107;
    --color-nuit: #1B365D;
    --color-repos: #9E9E9E; 
    --color-conge: #E91E63; 
    --color-recup: #00BCD4;
    --color-ferie_pose: #FF5722;
    --color-greve: #FF9800;
    --color-formation: #2196F3;
    --color-visite_medicale: #9C27B0;
    --color-divers: #607D8B;
    --color-anciennete: #795548;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, sans-serif; background: url('/uploads/splashscreen_gmp.png') no-repeat center center fixed; background-size: cover; color: white; overflow-x: hidden; }
.overlay-bg { position: fixed; inset: 0; background: rgba(16, 32, 39, 0.85); z-index: -1; }

header { height: 70px; display: flex; align-items: center; padding: 0 20px; position: sticky; top: 0; background: var(--port-blue); z-index: 1000; }
.header-right { margin-left: auto; display: flex; gap: 20px; }
.back-btn { cursor: pointer; font-size: 30px; display: none; }

.app-main-title { text-align: center; font-size: 22px; font-weight: bold; margin: 20px 0; }
.home-menu { display: flex; flex-direction: column; gap: 12px; padding: 0 25px; }

.menu-btn-large { background: var(--btn-blue); color: black; width: 100%; height: 75px; border-radius: 18px; display: flex; align-items: center; padding: 0 25px; border: none; font-weight: bold; font-size: 17px; box-shadow: 0 4px 8px rgba(0,0,0,0.3); margin-bottom: 12px; }
.menu-btn-large i { font-size: 32px; margin-right: 20px; }

.page { display: none; padding: 15px; width: 100%; }
.page.active { display: block; }

.calendar-card { background: var(--surface); border-radius: 24px; padding: 15px; margin-bottom: 15px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
/* Version optimisée de la case du jour */
.day { 
    aspect-ratio: 0.75; 
    background: rgba(255,255,255,0.05); 
    border-radius: 8px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    font-size: 9px; 
    padding: 3px 1px; 
    border: 0.5px solid rgba(255,255,255,0.1); 
    overflow: hidden; 
}
.day.today { border: 2px solid #F44336; }

.day-job { 
    font-size: 6.5px; 
    font-weight: 600; /* Moins gras que 900 */
    line-height: 8px; 
    text-align: center; 
    width: 100%; 
    white-space: nowrap; 
}
.day-vaca { 
    font-size: 6px; 
    font-weight: 700; 
    color: rgba(255,255,255,0.9); 
    margin-top: 1px; 
    text-transform: uppercase; 
}

.day-vaca { 
    font-size: 6px; 
    font-weight: 900; 
    color: rgba(255,255,255,0.9); 
    margin-top: 1px; 
    text-transform: uppercase; 
}


.day-range { 
    font-size: 6px; 
    background: rgba(0,0,0,0.25); 
    border-radius: 3px; 
    padding: 0 3px; 
    margin-top: 1px; 
    font-weight: 500; 
}

.day b { font-weight: 600; font-size: 10px; margin-bottom: 2px; }
.card-box { background: var(--surface); border-radius: 22px; padding: 18px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); }
.leave-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.leave-card { border-radius: 12px; padding: 10px 2px; text-align: center; background: rgba(255,255,255,0.05); }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { background: #2b2b33; width: 92%; border-radius: 28px; padding: 25px; color: white; }

.outlined-input { width: 100%; padding: 14px; background: white !important; color: black !important; border-radius: 12px; border: 1px solid #555; margin-bottom: 12px; font-size: 16px; }
label { display: block; font-size: 13px; font-weight: bold; color: #82b1ff; margin-bottom: 5px; margin-top: 10px; }
.btn-save-android { background: #82b1ff; color: black; border: none; padding: 12px 25px; border-radius: 25px; font-weight: bold; font-size: 16px; }
.purple-badge { background: #512da8; color: white; padding: 6px 15px; border-radius: 20px; font-weight: bold; font-size: 14px; }
footer { position: fixed; bottom: 15px; width: 100%; display: flex; justify-content: space-between; padding: 0 30px; font-size: 12px; opacity: 0.7; }