/* style.css */
body { 
    font-family: Arial, sans-serif; 
    background-color: #f4f4f4; 
    padding: 20px; 
}

.form-container { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    max-width: 400px; 
    margin: auto; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}

/* Dans votre style.css */
.form-group {
    display: flex;
    flex-direction: column; /* FORCE LE LABEL AU-DESSUS DE L'INPUT */
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px; /* Espace entre le texte et la zone de saisie */
    color: #2c3e50;
}

.form-group input, .form-group select {
    width: 100%; /* Prend toute la largeur disponible */
    padding: 12px; /* Plus d'espace interne pour écrire confortablement */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* IMPORTANT : pour que le padding ne dépasse pas */
    font-size: 1rem;
}

button { 
    width: 100%; 
    padding: 10px; 
    background-color: #2c3e50;
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

button:hover { background-color: #3498db; }


.info { 
    font-size: 0.9em; 
    color: #666; 
    margin-top: 5px; 
}
/* --- Styles pour le bulletin de paie --- */
.bulletin { 
    border: 2px solid #333; 
    padding: 20px; 
    width: 500px; 
    margin: 40px auto; /* Ajout d'une marge en haut/bas */
    font-family: monospace; 
    background-color: #fff; /* Pour qu'il ressorte sur le fond gris */
}

.bulletin h2 {
    text-align: center;
    text-transform: uppercase;
}

.row { 
    display: flex; 
    justify-content: space-between; 
    margin: 10px 0; 
    border-bottom: 1px dashed #ccc; 
}

.total { 
    font-weight: bold; 
    font-size: 1.2em; 
    border-top: 2px solid #333; 
    margin-top: 20px; 
    padding-top: 10px; 
}
.global-row { 
            background-color: #2c3e50; 
            color: white; 
            padding: 15px; 
            border-radius: 5px; 
            font-size: 1.2rem; 
            margin-top: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .btn-save {
            padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    width: auto;
        }
        
        


/* Classe spécifique pour les valeurs négatives ou alertes */
.text-danger {
    color: red;
}
.btn-rapport, .btn-modifier {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-rapport {
    background-color: #2980b9; 
    color: white;
}

.btn-rapport:hover {
    background-color: #42abf1;
}

.btn-modifier {
    background-color: #1ba04e; 
    color: white;
}

.btn-modifier:hover {
    background-color: #70eca0;
}
/* menu*/
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0.8rem 2rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none; /* Supprime le soulignement */
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: #3498db; /* Change légèrement de couleur au survol pour montrer que c'est cliquable */
}
.nav-links {
    display: flex;
    gap: 15px;
}
.nav-item {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
}
.nav-item:hover {
    background: #34495e;
    color: #3498db;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}
/* Style du bouton de déconnexion */
.logout-btn {
    background-color: #e74c3c; /* Rouge professionnel */
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background-color: #c0392b;
    color: white;
}
/* Masquer le texte "Quitter" sur petit écran pour ne garder que l'icône */
@media (max-width: 600px) {
    .logout-btn span {
        display: none;
    }
}


/* Variables de couleurs professionnelles accueil */
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f8f9fa;
    --text: #333;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    margin: 0;
    color: var(--text);
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Grille de stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

/* Actions Rapides */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    text-decoration: none;
    color: inherit;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.action-card span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.action-card h4 {
    margin: 10px 0;
    color: var(--primary);
}

.action-card p {
    font-size: 0.9rem;
    color: #777;
}
/* Container de la carte */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Style du tableau  */
.rapport-table {
    width: 100%;
    border-collapse: collapse; /* Fusionne les bordures */
    margin-top: 10px;
}

.rapport-table th {
    background-color: #f8f9fa;
    color: #333;
    text-align: left;
    padding: 15px; /* ESPACE DANS LES ENTETES */
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

.rapport-table td {
    padding: 15px; /* ESPACE DANS LES CELLULES (AÉRÉ) */
    border-bottom: 1px solid #f1f1f1;
    color: #555;
    vertical-align: middle;
}

/* Effet au survol */
.rapport-table tr:hover {
    background-color: #f9f9f9;
}


/* Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* css rapport_mensuel */
.summary-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.actions-finales {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Style spécifique pour le champ Montant Sup */
.jours-sup-box {
    border: 1px dashed #3498db;
    background: #f7fbfe;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
}
.input-montant span {
    font-weight: bold;
    margin-left: 5px;
    color: #2980b9;
}