* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #334155;
    line-height: 1.6;
}

header {
    background-color: #1e293b;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 { font-size: 1.4rem; font-weight: 600; }
#auth-status { display: flex; align-items: center; }
#user-email {
    background-color: #334155;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

main { max-width: 1200px; margin: 30px auto; padding: 0 15px; }

section {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

section h2, section h3 { color: #0f172a; margin-bottom: 15px; padding-bottom: 10px; }

/* Formulaires de connexion */
.login-container { display: flex; gap: 20px; flex-wrap: wrap; }
.login-card {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8fafc;
}
.employe-card { border-top: 4px solid #3b82f6; }
.admin-card { border-top: 4px solid #f59e0b; }

.login-card input, .login-card select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
}

.oubli-mdp {
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
}

button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
button:hover { background-color: #2563eb; }
button.btn-admin { background-color: #f59e0b; width: 100%; }
button.btn-admin:hover { background-color: #d97706; }
#btn-login-employe, #btn-register { width: 100%; }
button:active { transform: scale(0.97); }

/* =========================================
   VUE SEMAINE (CALENDRIER SANS SCROLL)
   ========================================= */
.vue-semaine {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    min-height: 65vh;
}

.colonne-jour {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.colonne-jour h4 {
    text-align: center;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #cbd5e1;
}

/* Jours fériés en rouge */
.jour-ferie { background-color: #fef2f2 !important; border-color: #fca5a5 !important; }
.jour-ferie h4 { color: #dc2626 !important; border-bottom-color: #fca5a5 !important; }

/* Absences & Postes (2 lignes) */
.carte-absence {
    background-color: white;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-left: 4px solid #3b82f6; /* Défaut */
}

/* Codes couleurs par poste */
.role-info { border-left-color: #64748b; } /* Gris */
.role-livraison { border-left-color: #eab308; } /* Jaune */
.role-vente { border-left-color: #3b82f6; } /* Bleu boutique */

.ligne-horaire {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e2e8f0;
    color: #64748b;
}