/* --- STYLES COMMUNS DU TEMPLATE PESON --- */

/* Stats Block (Utilisé sur plusieurs pages) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid;
}

.stat-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #6b7280;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

/* --- MODAL STYLES (Utilisé par JS pour gérer l'affichage) --- */
.modal {
    display: none;
    /* Caché par défaut */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fond noir semi-transparent */
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #000000;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
}

/* Styles spécifiques au formulaire de contrôle (dans la modale) */
.peson-info-box {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.peson-info-details {
    flex-grow: 1;
}

.peson-info-details strong {
    font-weight: 700;
    font-size: 1.1rem;
}

.peson-info-details span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #6b7280;
}

.peson-info-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-left: 20px;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-top: 10px;
    resize: vertical;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
}
.btn-login-redirect{
    color: #203cad;
    text-decoration: none;
    font-size: x-large;
}