/* Styles pour la mise en page du profil */
.profil-container {
    padding: 2rem;
    background-color: #f9fafb; /* L'arrière-plan de la page */
}

.profil-content {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Espace entre les sections */
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête de page */
.profil-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profil-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.welcome-message {
    font-size: 1rem;
    color: #6b7280;
}

/* Section générale */
.profil-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.edit-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grilles pour les sections */
.info-grid,
.security-grid,
.stats-grid,
.quick-actions-grid {
    display: grid;
    gap: 1.5rem; /* 24px */
}

/* Configuration des grilles pour les différents tailles d'écran */

/* Pour les téléphones */
.info-grid {
    grid-template-columns: 1fr;
}

.security-grid {
    grid-template-columns: 1fr;
}

.stats-grid,
.quick-actions-grid {
    grid-template-columns: 1fr;
}

/* Pour les tablettes (min-width: 768px) */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid,
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pour les ordinateurs de bureau (min-width: 1024px) */
@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid,
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Styles pour les "cartes" d'informations */
.info-card, .security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.info-icon, .security-icon, .action-icon {
    font-size: 2rem;
    color: #4f46e5;
}

.info-content h3, .security-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.info-details p {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.text-muted {
    font-style: italic;
    color: #9ca3af;
}

/* Styles pour les statistiques */
.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Styles pour les actions rapides */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease-in-out;
}

.quick-action:hover {
    background-color: #f3f4f6;
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-action span {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}



/* Conteneur principal */
.gpp-mes-virements {
    width: 100%;
    overflow-x: auto; /* Pour le responsive */
}

/* Tableau */
.gpp-mes-virements table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    min-width: 600px; /* Évite le écrasement sur mobile */
}

/* En-têtes du tableau */
.gpp-mes-virements th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

/* Cellules du tableau */
.gpp-mes-virements td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

/* Badge de statut */
.statut-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.statut-en_attente { background-color: #fff3cd; color: #856404; }
.statut-approuve { background-color: #d4edda; color: #155724; }
.statut-annule { background-color: #f8d7da; color: #721c24; }
.statut-complete { background-color: #d1ecf1; color: #0c5460; }

/* Conteneur des boutons d'action */
.gpp-mes-virements td:last-child {
    white-space: nowrap; /* Empêche les boutons de passer à la ligne */
}

/* Boutons */
.gpp-mes-virements .button {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

/* Bouton principal (Voir, Preuve) */
.gpp-mes-virements .button-primary {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.gpp-mes-virements .button-primary:hover {
    background-color: #005a87;
}

/* Bouton secondaire (Annuler) */
.gpp-mes-virements .button-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.gpp-mes-virements .button-secondary:hover {
    background-color: #5a6268;
}

/* Bouton désactivé */
.gpp-mes-virements .button[disabled] {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive : empiler les boutons sur petits écrans */
@media (max-width: 768px) {
    .gpp-mes-virements td:last-child {
        white-space: normal; /* Permet le passage à la ligne */
    }

    .gpp-mes-virements .button {
        display: block;
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
}