/**
 * Styles pour les pages de comptabilité.
 */

/* En-tête de la comptabilité */
.account-heading {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.account-heading h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.account-heading p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* En-tête avec icône */
.account-heading-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.heading-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem; /* Taille adaptée à l'en-tête */
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading-text {
    flex: 1;
}

.heading-text h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.heading-text p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

/* Carte de comptabilité */
.account-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Style pour le message "module en construction" */
.module-coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin: 2rem 0;
}

.module-coming-soon i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.module-coming-soon h2 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.module-coming-soon p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* Tableaux financiers */
.finance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.finance-table th {
    background-color: #f9fafb;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.finance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.finance-table tr:hover {
    background-color: #f9fafb;
}

.finance-table .amount {
    text-align: right;
    font-family: monospace;
    font-size: 1.05rem;
}

.finance-table .amount.positive {
    color: #059669;
}

.finance-table .amount.negative {
    color: #dc2626;
}

/* Cartes de résumé financier */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #6b7280;
}

.summary-card.income {
    border-left-color: #059669;
}

.summary-card.expense {
    border-left-color: #dc2626;
}

.summary-card.balance {
    border-left-color: #2563eb;
}

.summary-card .card-title {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.summary-card .card-value {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-card.income .card-value {
    color: #059669;
}

.summary-card.expense .card-value {
    color: #dc2626;
}

.summary-card.balance .card-value {
    color: #2563eb;
}

.summary-card .card-change {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.summary-card .card-change i {
    margin-right: 5px;
}

.summary-card .card-change.positive {
    color: #059669;
}

.summary-card .card-change.negative {
    color: #dc2626;
}

/* Formulaires de comptabilité */
.compta-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.compta-form .form-group {
    flex: 1;
}

.compta-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.compta-form input,
.compta-form select,
.compta-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.compta-form .amount-input {
    font-family: monospace;
    text-align: right;
}

/* Filtres financiers */
.finance-filters {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.finance-filters .filters-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.finance-filters .filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.finance-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

.finance-filters .filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* Grille de tarifs */
.tarif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tarif-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tarif-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.tarif-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tarif-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tarif-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.tarif-content {
    padding: 1.5rem;
}

.tarif-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tarif-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tarif-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tarif-actions {
    text-align: center;
    padding-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .account-heading h1 {
        font-size: 1.75rem;
    }
    
    .account-card {
        padding: 1.5rem;
    }
    
    .module-coming-soon {
        padding: 2rem 1rem;
    }
    
    .module-coming-soon h2 {
        font-size: 1.3rem;
    }
    
    .module-coming-soon p {
        font-size: 1rem;
    }
    
    .compta-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .finance-table {
        display: block;
        overflow-x: auto;
    }
    
    .finance-filters .filters-form {
        flex-direction: column;
    }
    
    .finance-summary {
        grid-template-columns: 1fr;
    }
    
    .account-heading-with-icon {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .heading-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .heading-text {
        width: 100%;
    }
}