/**
 * Calculateur de Taxes d'Urbanisme - CSS
 * Version: 1.0.0
 */

/* Container principal */
.calculateur-taxes-wrapper {
    min-height: 80vh;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.calculateur-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculateur-header .page-title {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calculateur-header .page-description {
    font-size: 1.25rem;
    color: #64748b;
}

/* Container du calculateur */
.calculateur-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
}

/* Étapes */
.calc-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.calc-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Options grid (étape 1) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.option-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.option-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
}

.option-icon {
    font-size: 3rem;
}

.option-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Region info */
.region-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2563eb;
}

.region-info p {
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-size: 0.9375rem;
}

.region-info p:last-child {
    margin-bottom: 0;
}

.info-note {
    background: #fef3c7;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    font-size: 0.875rem;
    color: #92400e;
    margin-top: 0.75rem;
}

/* Boutons */
.btn-next,
.btn-calculate,
.btn-restart,
.btn-devis {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-next,
.btn-calculate {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-next:hover,
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Résultats */
.results-summary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.total-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-amount .label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.total-amount .amount {
    font-size: 3rem;
    font-weight: 700;
}

/* Détails des taxes */
.results-details {
    margin-bottom: 2rem;
}

.results-details h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
}

.tax-label {
    flex: 1;
}

.tax-label strong {
    display: block;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.tax-label small {
    color: #64748b;
    font-size: 0.875rem;
}

.tax-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Info box */
.results-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 2rem;
}

.results-info h3 {
    font-size: 1.125rem;
    color: #92400e;
    margin-bottom: 1rem;
}

.results-info ul {
    list-style: none;
    padding: 0;
}

.results-info li {
    color: #78350f;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.results-info li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

.results-info li:last-child {
    margin-bottom: 0;
}

/* Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-restart {
    background: #64748b;
    color: white;
    flex: 1;
}

.btn-restart:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-devis {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex: 1;
    text-align: center;
}

.btn-devis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Barre de progression */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width 0.4s ease;
    width: 25%;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .calculateur-header .page-title {
        font-size: 2rem;
    }

    .calculateur-header .page-description {
        font-size: 1rem;
    }

    .calculateur-container {
        padding: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 1.5rem 1rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .total-amount .amount {
        font-size: 2.25rem;
    }

    .tax-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tax-amount {
        margin-left: 0;
    }

    .results-actions {
        flex-direction: column;
    }
}

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation des transitions */
.calc-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
