/* Formulaire de Devis - L'Atelier de la Cuillère */

.acd-formulaire * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.acd-formulaire {
    font-family: 'Lora', Georgia, serif;
    background: linear-gradient(135deg, #fef3e2 0%, #f5f5f0 50%, #fef3e2 100%);
    padding: 20px;
    width: 100%;
}

.acd-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.acd-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
}

.acd-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #6B5E4E;
    margin-bottom: 10px;
}

.acd-header p {
    color: #8B7E6E;
    font-style: italic;
}

.acd-progress-bar {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

.acd-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.acd-step {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    transition: all 0.3s;
}

.acd-step.active {
    color: #C17817;
    font-weight: bold;
}

.acd-progress-track {
    height: 8px;
    background: #E5DDD5;
    border-radius: 10px;
    overflow: hidden;
}

.acd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C17817, #8B6914);
    transition: width 0.5s ease;
}

.acd-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.acd-sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #6B5E4E;
    margin-bottom: 20px;
    text-align: center;
}

.acd-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #6B5E4E;
}

.acd-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #E5DDD5;
    font-size: 1.2rem;
    font-weight: bold;
    color: #C17817;
}

.acd-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.acd-form-section {
    display: none;
}

.acd-form-section.active {
    display: block;
    animation: acdFadeIn 0.5s;
}

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

.acd-formulaire h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #6B5E4E;
    margin-bottom: 30px;
}

.acd-formulaire h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #6B5E4E;
    margin-bottom: 20px;
}

.acd-form-group {
    margin-bottom: 25px;
}

.acd-formulaire label {
    display: block;
    margin-bottom: 8px;
    color: #6B5E4E;
    font-weight: 500;
}

.acd-formulaire input[type="text"],
.acd-formulaire input[type="email"],
.acd-formulaire input[type="tel"],
.acd-formulaire input[type="date"],
.acd-formulaire input[type="number"],
.acd-formulaire input[type="file"],
.acd-formulaire select,
.acd-formulaire textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5DDD5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.acd-formulaire input:focus,
.acd-formulaire select:focus,
.acd-formulaire textarea:focus {
    outline: none;
    border-color: #C17817;
    box-shadow: 0 0 0 3px rgba(193, 120, 23, 0.1);
}

.acd-formulaire input.error,
.acd-formulaire select.error {
    border-color: #d32f2f;
}

.acd-error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.acd-error-message.show {
    display: block;
}

.acd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.acd-radio-group,
.acd-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acd-radio-option,
.acd-checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #E5DDD5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.acd-radio-option:hover,
.acd-checkbox-option:hover {
    background: #FEF9F3;
    border-color: #C17817;
}

.acd-radio-option input,
.acd-checkbox-option input {
    width: auto;
    margin-right: 12px;
}

.acd-price-info {
    font-size: 0.9rem;
    color: #8B7E6E;
    margin-top: 5px;
}

.acd-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #E5DDD5;
}

.acd-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acd-btn-secondary {
    background: white;
    color: #6B5E4E;
    border: 2px solid #6B5E4E;
}

.acd-btn-secondary:hover {
    background: #F5F5F0;
}

.acd-btn-primary {
    background: linear-gradient(135deg, #C17817, #8B6914);
    color: white;
    margin-left: auto;
}

.acd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(193, 120, 23, 0.3);
}

.acd-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #C17817, #8B6914);
    color: white;
    padding: 18px;
    font-size: 1.1rem;
}

.acd-devis-summary {
    background: #FEF9F3;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.acd-devis-detail {
    background: #F5F5F0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.acd-devis-detail h4 {
    color: #6B5E4E;
    margin-bottom: 15px;
}

.acd-devis-detail p {
    color: #8B7E6E;
    margin-bottom: 8px;
}

.acd-success-message {
    text-align: center;
    font-style: italic;
    color: #8B7E6E;
    margin-top: 15px;
    display: none;
}

@media (max-width: 992px) {
    .acd-container {
        grid-template-columns: 1fr;
    }
    .acd-sidebar {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .acd-grid-2 {
        grid-template-columns: 1fr;
    }
    .acd-header h1 {
        font-size: 2rem;
    }
    .acd-form-card {
        padding: 25px;
    }
}
