
/* Plugin Devis Toiture - Styles Frontend */

.dtg-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dtg-header {
    text-align: center;
    margin-bottom: 30px;
}

.dtg-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
}

.dtg-subtitle {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.dtg-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

/* Barre de progression */
.dtg-progress-container {
    margin-bottom: 30px;
}

.dtg-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dtg-step-text,
.dtg-progress-percent {
    font-size: 14px;
    color: #dc2626;
    font-weight: bold;
}

.dtg-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #fecaca;
    border-radius: 4px;
    overflow: hidden;
}

.dtg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Étapes */
.dtg-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.dtg-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.dtg-step-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin: 0 0 8px 0;
}

.dtg-step-header p {
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

/* Options */
.dtg-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dtg-option {
    background: white;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-weight: bold;
}

.dtg-option:hover {
    background: #fef2f2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dtg-option.selected {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 8px 15px -3px rgba(220, 38, 38, 0.3);
}

.dtg-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    flex-shrink: 0;
}

.dtg-option.selected .dtg-radio {
    background: white;
    border-color: white;
}

/* Champs de saisie */
.dtg-input-container {
    margin-top: 20px;
}

.dtg-input-container label {
    display: block;
    color: #000;
    font-weight: bold;
    margin-bottom: 8px;
}

.dtg-input-container input,
.dtg-input-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #fecaca;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.dtg-input-container input:focus,
.dtg-input-container textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.dtg-input-container small {
    display: block;
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.dtg-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dtg-privacy-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: #7f1d1d;
}

/* Navigation */
.dtg-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.dtg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtg-btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.dtg-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-1px);
}

.dtg-btn-secondary {
    background: white;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.dtg-btn-secondary:hover {
    background: #fef2f2;
}

.dtg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* États de chargement et succès */
.dtg-loading {
    text-align: center;
    padding: 40px;
}

.dtg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fecaca;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.dtg-message {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.dtg-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.dtg-success h3 {
    color: #166534;
    margin: 0 0 10px 0;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .dtg-container {
        margin: 10px;
        padding: 10px;
    }
    
    .dtg-card {
        padding: 20px;
    }
    
    .dtg-title {
        font-size: 2rem;
    }
    
    .dtg-option {
        padding: 15px;
    }
    
    .dtg-navigation {
        flex-direction: column;
    }
    
    .dtg-btn {
        width: 100%;
        justify-content: center;
    }
}
