/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-info {
    background: #3b82f6;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification i {
    font-size: 20px;
}

/* Amélioration du champ mot de passe */
input[type="password"] {
    font-family: monospace;
    letter-spacing: 2px;
}

input[type="password"]::placeholder {
    font-family: var(--font-primary);
    letter-spacing: normal;
}

/* Info box pour le message de création de compte */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.info-box i {
    font-size: 20px;
    margin-top: 2px;
}

.info-box p {
    line-height: 1.6;
}

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

/* Indicateur de force du mot de passe */
.password-strength {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

/* Bouton dashboard dans le header */
.header .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loader sur le bouton de soumission */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Recap section styling */
.quote-recap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recap-section {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.recap-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary, #111827);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recap-section h3 i {
    color: var(--primary-color, #6366f1);
}

/* Recap info items with icons */
.recap-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.recap-info-item:last-child {
    margin-bottom: 0;
}

.recap-info-item i {
    font-size: 20px;
    color: var(--primary-color, #6366f1);
    margin-top: 2px;
}

.recap-info-item div {
    flex: 1;
}

.recap-info-item p:first-child {
    margin: 0 0 4px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
}

.recap-info-item p:last-child {
    margin: 0;
    color: var(--text-primary, #111827);
    font-size: 15px;
    font-weight: 500;
}

/* Items list */
.recap-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color, #6366f1);
}

.recap-item-desc {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.recap-item-desc i {
    color: #10b981;
    font-size: 16px;
}

.recap-item-desc span {
    color: var(--text-primary, #111827);
    font-size: 15px;
}

.recap-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recap-item-price small {
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
}

.recap-item-price strong {
    color: var(--text-primary, #111827);
    font-size: 16px;
}

/* Description */
.recap-description {
    margin-top: 20px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.recap-description p:first-child {
    margin: 0 0 8px 0;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recap-description .description-text {
    margin: 0;
    color: #92400e;
    line-height: 1.6;
}

/* Pricing breakdown */
.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    font-size: 15px;
}

.pricing-line span:first-child {
    color: var(--text-secondary, #6b7280);
}

.pricing-line.total-line {
    background: var(--bg-tertiary, #f3f4f6);
    border: 2px solid var(--border-color, #e5e7eb);
    padding: 16px;
    font-size: 18px;
}

.pricing-line.total-line span {
    color: var(--text-primary, #111827);
}

.pricing-line.deposit-line {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    color: white;
    font-size: 18px;
}

.pricing-line.deposit-line span {
    color: white;
}

.pricing-line.deposit-line i {
    margin-right: 8px;
}

.pricing-line .price {
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.pricing-line .price.highlight {
    color: white;
    font-size: 22px;
}

.payment-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.payment-info i {
    color: #f59e0b;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-info div {
    flex: 1;
}

.payment-info p:first-child {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #78350f;
    font-size: 14px;
}

.payment-info p:last-child {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

/* Recap actions */
.recap-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .recap-info-item {
        flex-direction: row;
    }

    .recap-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recap-item-price {
        text-align: left;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

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

/* ============================================
   MODAL VUE DÉTAILLÉE DU DEVIS
   ============================================ */

.quote-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quote-detail-modal.active .modal-content {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    color: white;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-logo {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-header i {
    font-size: 24px;
    color: #667eea;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #111827;
    font-weight: 700;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.detail-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-value {
    display: block;
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    font-size: 16px;
    color: #111827;
    font-weight: 600;
}

/* Features List */
.features-list {
    margin-top: 24px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 2px solid #86efac;
}

.features-list h4 {
    margin: 0 0 16px 0;
    color: #166534;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
}

.feature-badge i {
    color: #10b981;
}

/* Project Description */
.project-description {
    margin-top: 24px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.project-description h4 {
    margin: 0 0 12px 0;
    color: #78350f;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-description p {
    margin: 0;
    color: #92400e;
    line-height: 1.6;
    font-size: 14px;
}

/* Price Table */
.price-table {
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.price-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.price-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.price-table tbody tr:hover {
    background: #f9fafb;
}

.price-table td {
    padding: 14px 16px;
    color: #111827;
    font-size: 14px;
}

.item-description {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-description i {
    color: #10b981;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.price-table tfoot {
    background: #f9fafb;
}

.price-table tfoot tr {
    border-top: 2px solid #e5e7eb;
}

.price-table tfoot td {
    padding: 14px 16px;
    font-size: 15px;
}

.subtotal-row td {
    color: #6b7280;
}

.tax-row td {
    color: #6b7280;
}

.total-row {
    background: #f3f4f6 !important;
}

.total-row td {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 16px;
}

.deposit-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.deposit-row td {
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 16px;
}

.deposit-row i {
    margin-right: 8px;
}

/* Conditions Grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.condition-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.condition-card i {
    font-size: 28px;
    color: #667eea;
    margin-top: 4px;
}

.condition-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #111827;
    font-weight: 700;
}

.condition-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 32px;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

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

    .feature-cards {
        grid-template-columns: 1fr;
    }

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

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

    .price-table table {
        min-width: 600px;
    }
}


