/* assets/css/public.css */

/* Variables et reset */
:root {
    --mt-primary: #2271b1;
    --mt-secondary: #f0ad4e;
    --mt-success: #5cb85c;
    --mt-danger: #d9534f;
    --mt-gray: #666;
    --mt-light: #f5f5f5;
    --mt-border: #ddd;
    --mt-radius: 8px;
    --mt-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Container principal */
.mt-devis-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow);
}

/* Barre de progression */
.mt-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.mt-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mt-light);
    z-index: 0;
}

.mt-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.mt-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mt-light);
    color: var(--mt-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.mt-progress-step.active .mt-step-number,
.mt-progress-step.completed .mt-step-number {
    background: var(--mt-primary);
    color: white;
}

.mt-progress-step.completed .mt-step-number::after {
    content: '✓';
}

.mt-step-label {
    font-size: 14px;
    color: var(--mt-gray);
    font-weight: 500;
}

.mt-progress-step.active .mt-step-label {
    color: var(--mt-primary);
    font-weight: bold;
}

/* Étapes du formulaire */
.mt-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mt-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mt-form-step h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

/* Grille des travaux */
.mt-travaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mt-travail-card {
    border: 2px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.mt-travail-card:hover {
    border-color: var(--mt-primary);
    transform: translateY(-2px);
    box-shadow: var(--mt-shadow);
}

.mt-travail-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mt-travail-card input[type="radio"]:checked + .mt-travail-icon,
.mt-travail-card input[type="radio"]:checked ~ .mt-travail-name,
.mt-travail-card:has(input:checked) {
    border-color: var(--mt-primary);
    background: #f0f7ff;
}

.mt-travail-card input[type="radio"]:checked ~ .mt-travail-name {
    color: var(--mt-primary);
    font-weight: bold;
}

.mt-travail-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.mt-travail-name {
    display: block;
    font-size: 14px;
    color: #333;
}

/* Groupes de formulaire */
.mt-form-group {
    margin-bottom: 20px;
}

.mt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mt-form-group input,
.mt-form-group select,
.mt-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--mt-border);
    border-radius: var(--mt-radius);
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.mt-form-group input:focus,
.mt-form-group select:focus,
.mt-form-group textarea:focus {
    outline: none;
    border-color: var(--mt-primary);
}

.mt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Navigation */
.mt-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--mt-border);
}

.mt-btn-prev,
.mt-btn-next,
.mt-btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: var(--mt-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.mt-btn-prev {
    background: var(--mt-light);
    color: var(--mt-gray);
}

.mt-btn-prev:hover {
    background: #e0e0e0;
}

.mt-btn-next,
.mt-btn-submit {
    background: var(--mt-primary);
    color: white;
    margin-right: auto;
}

.mt-btn-next:hover:not(:disabled),
.mt-btn-submit:hover {
    background: #1e6398;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.mt-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Message de succès */
.mt-form-success {
    text-align: center;
    padding: 60px 20px;
}

.mt-success-icon {
    width: 80px;
    height: 80px;
    background: var(--mt-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mt-form-success h3 {
    color: var(--mt-success);
    font-size: 28px;
    margin-bottom: 15px;
}

.mt-form-success p {
    color: var(--mt-gray);
    font-size: 16px;
    margin-bottom: 30px;
}

.mt-btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: var(--mt-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--mt-radius);
    transition: all 0.3s;
}

.mt-btn-home:hover {
    background: #1e6398;
    transform: translateY(-2px);
}

/* Liste des travaux */
.mt-travaux-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mt-travaux-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.mt-travaux-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.mt-travail-card-large {
    background: white;
    border: 2px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mt-travail-card-large:hover {
    border-color: var(--mt-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mt-travail-icon-large {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

.mt-travail-card-large h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.mt-travail-card-large p {
    color: var(--mt-gray);
    font-size: 14px;
    margin: 0;
}

/* Espace client */
.mt-espace-client {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.mt-client-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--mt-border);
}

.mt-tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--mt-gray);
    transition: all 0.3s;
}

.mt-tab-btn.active {
    color: var(--mt-primary);
    border-bottom-color: var(--mt-primary);
}

.mt-tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow);
}

.mt-tab-content.active {
    display: block;
}

.mt-table {
    width: 100%;
    border-collapse: collapse;
}

.mt-table th,
.mt-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--mt-border);
}

.mt-table th {
    background: var(--mt-light);
    font-weight: 600;
    color: #333;
}

.mt-btn-small {
    display: inline-block;
    padding: 6px 15px;
    background: var(--mt-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.mt-btn-small:hover {
    background: #1e6398;
}

/* Formulaire inscription pro */
.mt-inscription-pro {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow);
}

.mt-inscription-pro h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.mt-inscription-pro > p {
    text-align: center;
    color: var(--mt-gray);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .mt-form-row {
        grid-template-columns: 1fr;
    }
    
    .mt-travaux-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mt-progress-bar {
        font-size: 12px;
    }
    
    .mt-step-label {
        display: none;
    }
    
    .mt-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}