/* Styles pour le modal */
       /* devis-flash.css - GLG Maison Tropic - Optimisé sans scroll */

/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Modal content - Optimisé pour la hauteur */
.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 650px;
    width: 95%;
    max-height: 95vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    overflow: hidden;
}

/* Header fixe */
.modal-header {
    background: linear-gradient(135deg, #1e40af, #059669);
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
    position: relative;
}

.modal-header h2 {
    color: var(--text-white);
    margin: 0;
    font-size: 1.5rem;
}

.modal-header p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Body scrollable si nécessaire */
.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Bouton fermer */
.close {
    color: black;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close:hover {
    background-color: rgba(18, 235, 217, 0.186);
    color: white;
}

/* Indicateur d'étapes - Compact */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    margin: 0 4px;
    transition: all 0.3s;
}

.step-dot.active {
    background: #3b82f6;
    width: 12px;
    height: 12px;
}

.step-dot.completed {
    background: #10b981;
}

/* Étapes */
.step {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.step.active {
    display: flex;
    flex-direction: column;
    animation: slideInStep 0.4s;
}

/* Titres des étapes - Plus compacts */
.step h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 1.3rem;
}

/* Modèles - Plus compacts */
.model-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.model-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.model-card h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.model-card p {
    margin: 3px 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.model-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #059669;
    text-align: right;
}

/* Options - Plus compactes */
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    background: #f9fafb;
}

.option-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
}

.option-item h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
}

.option-item p {
    margin: 2px 0 0 0;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Boutons - Plus compacts */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin: 3px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-success {
    background: #059669;
    color: white;
    font-size: 1rem;
    padding: 12px 25px;
}

.btn-success:hover {
    background: #047857;
}

/* Formulaire - Plus compact */
.form-group {
    margin: 10px 0;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Total box - Plus compact */
.total-box {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    flex-shrink: 0;
}

.total-box h3 {
    margin: 0;
    font-size: 1.1rem;
}

.total-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0;
}

.total-box p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.8rem;
}

/* Zone de boutons - Fixe en bas */
.button-zone {
    margin-top: auto;
    padding-top: 15px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
}

/* Contact info - Plus compact */
.contact-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #6b7280;
    flex-shrink: 0;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info strong {
    color: #059669;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInStep {
    from { 
        transform: translateX(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 98vh;
        min-height: auto;
        margin: 1%;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .model-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .model-price {
        margin-top: 8px;
        font-size: 1.5rem;
    }
    
    .option-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .total-amount {
        font-size: 1.8rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .model-card h4,
    .option-item h4 {
        font-size: 0.95rem;
    }
}