/* Styles personnalisés pour l'application Paroisse Saint Matthieu */

body {
    font-family: 'Arial', sans-serif;
}

/* Indicateur de progression */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.validated {
    opacity: 1;
}

.step-indicator.validated .step-number {
    background-color: #10b981;
    color: white;
}

.step-indicator.validated .step-number::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d1d5db;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator.active .step-number {
    background-color: #3b82f6;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: #1f2937;
    font-weight: 600;
}

.step-indicator.validated .step-label {
    color: #10b981;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

/* Étapes du formulaire */
.form-step {
    display: none;
}

.form-step:not(.hidden) {
    display: block;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: bold;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.conditional-fields {
    margin-left: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.family-member {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    background-color: #ffffff;
}

.btn-add {
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-top: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-add:hover {
    background-color: #059669;
}

.btn-remove {
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-remove:hover {
    background-color: #dc2626;
}

.table-responsive {
    overflow-x: auto;
}

.stats-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .form-section {
        padding: 0.5rem;
    }

    .step-indicator {
        flex-direction: row;
        text-align: left;
    }

    .step-number {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }

    .step-label {
        font-size: 0.75rem;
    }
}

/* Boutons de validation par étape */
.validate-step-btn {
    transition: all 0.3s ease;
    position: relative;
}

.validate-step-btn.validated {
    background-color: #10b981;
}

.validate-step-btn.validated:hover {
    background-color: #059669;
}

.validate-step-btn.validated .validate-text {
    display: none;
}

.validate-step-btn.validated .validated-text {
    display: flex;
    align-items: center;
}

.validated-text {
    display: none;
    align-items: center;
}

.validated-text::before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: bold;
}