/* ========== DEVIS HERO ========== */
.devis-hero {
    padding: 104px 0 80px;
    background: var(--gradient-subtle);
    min-height: 100vh;
}
.devis-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* ========== FORM WRAPPER ========== */
.devis-form-wrapper h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
    animation: heroSlideDown 0.6s ease both;
    animation-delay: 0.1s;
}
.devis-form-wrapper h1 .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.devis-sub {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    animation: heroSlideDown 0.6s ease both;
    animation-delay: 0.25s;
}

/* ========== FORM STEPS ========== */
.devis-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    animation: heroSlideUp 0.7s ease both;
    animation-delay: 0.3s;
}
.form-step { display: none; }
.form-step.active { display: block; animation: fadeStep 0.4s ease; }

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

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.step-badge {
    background: var(--gradient-main);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}
.step-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark);
}

/* ========== FORM ELEMENTS ========== */
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    margin-top: 20px;
}
.form-label:first-of-type { margin-top: 0; }

.devis-form .form-input,
.devis-form .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.devis-form .form-input:focus,
.devis-form .form-select:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(93,173,226,0.12);
    background: white;
}
.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ========== RADIO CARDS ========== */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}
.radio-card {
    cursor: pointer;
}
.radio-card input { display: none; }
.radio-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: all 0.2s;
    text-align: center;
}
.radio-icon { font-size: 1.5rem; }
.radio-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
}
.radio-card input:checked + .radio-card-inner {
    border-color: var(--teal);
    background: rgba(26,188,156,0.06);
    box-shadow: 0 0 0 3px rgba(26,188,156,0.12);
}
.radio-card input:checked + .radio-card-inner .radio-text {
    color: var(--blue-dark);
}
.radio-card:hover .radio-card-inner {
    border-color: var(--blue-light);
}

/* ========== FORM BUTTONS ========== */
.devis-form .form-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.devis-form .form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26,82,118,0.3);
}
.devis-form .form-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}
.form-btn-submit {
    background: var(--green-primary) !important;
}
.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.form-nav .form-btn { flex: 1; margin-top: 0; }
.form-btn-back {
    flex: 0 0 auto;
    padding: 14px 24px;
    background: white;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.form-btn-back:hover {
    border-color: var(--blue-light);
    color: var(--blue-primary);
}

/* ========== CONSENT ========== */
.form-consent {
    margin-top: 20px;
}
.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.5;
}
.form-consent input {
    margin-top: 3px;
    flex-shrink: 0;
}
.form-consent a {
    color: var(--blue-primary);
    text-decoration: underline;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    margin-top: 20px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ========== SUCCESS ========== */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    margin-bottom: 20px;
    animation: successPop 0.5s ease both;
}
@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.form-success h2 {
    font-size: 1.6rem;
    color: var(--green-primary);
    margin-bottom: 12px;
}
.form-success p {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ========== SIDEBAR ========== */
.devis-sidebar {
    position: sticky;
    top: 96px;
}
.devis-trust-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    animation: heroSlideUp 0.7s ease both;
    animation-delay: 0.45s;
}
.devis-trust-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 20px;
}
.trust-list {
    list-style: none;
}
.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.trust-list li:last-child { margin-bottom: 0; }
.trust-list svg { flex-shrink: 0; margin-top: 2px; }
.trust-list strong {
    display: block;
    font-size: 0.9rem;
    color: var(--blue-dark);
    margin-bottom: 2px;
}
.trust-list span {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.devis-stat-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    animation: heroSlideUp 0.7s ease both;
    animation-delay: 0.55s;
}
.devis-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}
.devis-stat-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

/* ========== MOBILE ========== */
@media (max-width: 1024px) {
    .devis-layout {
        grid-template-columns: 1fr;
    }
    .devis-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .devis-hero { padding: 96px 0 60px; }
    .devis-form-wrapper h1 { font-size: 1.6rem; }
    .radio-grid { grid-template-columns: repeat(2, 1fr); }
    .devis-form { padding: 24px; }
}
