/* HERO */
.devis-hero {
    background: var(--dark-bg);
    padding: var(--section-pad-y) 0 64px;
}

@media (max-width: 479px) { .devis-hero { padding: 48px 0 40px; } }

.devis-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) { .devis-hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    color: var(--dark-text-primary);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title-accent { color: var(--accent); }

.hero-subtitle {
    font-size: 15px;
    color: var(--dark-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #CBD5E1;
}

/* Panneau droite — utilise .dark-panel de components */
.hero-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.hpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--hpi-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpi-label { font-size: 11px; color: var(--dark-text-muted); margin-bottom: 3px; }
.hpi-value { font-size: 13px; color: #E2E8F0; }

/* Status dot spécifique devis (couleur bleue) */
.hero-status--info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
}

.hero-status--info .status-dot { background: var(--accent); }

/* FORMULAIRE MULTI-ÉTAPES */
.devis-form-section {
    background: var(--light-bg-alt);
    padding: var(--section-pad-y) 0;
}

.form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

/* Stepper */
.stepper { margin-bottom: 32px; }

.stepper-track {
    height: 3px;
    background: var(--light-border);
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.stepper-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 350ms ease;
}

.stepper-steps { display: flex; justify-content: space-between; }

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stepper-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-border);
    color: var(--light-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--tr), color var(--tr), transform var(--tr);
}

.stepper-step.is-active .stepper-dot { background: var(--accent); color: #fff; transform: scale(1.1); }
.stepper-step.is-done   .stepper-dot { background: #22C55E; color: #fff; }

.stepper-label {
    font-size: 12px;
    color: var(--light-text-muted);
    font-weight: 500;
    transition: color var(--tr);
}

.stepper-step.is-active .stepper-label { color: var(--accent); }
.stepper-step.is-done   .stepper-label { color: #15803D; }

/* Étapes du formulaire */
.form-step {
    display: none;
    background: var(--light-bg);
    border: 0.5px solid var(--light-border);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.form-step.is-active {
    display: block;
    animation: stepIn 0.3s ease-out;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.step-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--light-text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid var(--light-border);
}

.step-legend-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    border: 0.5px solid rgba(59, 130, 246, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

/* Radio personnalisé */
.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--light-bg-alt);
    border: 0.5px solid var(--light-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    color: var(--light-text-primary);
    transition: border-color var(--tr), background var(--tr);
    user-select: none;
}

.radio-item:hover,
.radio-item:has(input:checked) { border-color: #BFDBFE; background: #EFF6FF; }

/* L'input est caché mais reste fonctionnel pour l'accessibilité clavier */
.radio-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.radio-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--light-border);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: background var(--tr), border-color var(--tr), color var(--tr);
}

/* Sélecteurs robustes : .radio-box est toujours le 2e enfant, le label texte le 3e */
.radio-item:has(input:checked) .radio-box {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.radio-item:has(input:checked) .radio-label {
    font-weight: 500;
    color: var(--accent);
}

/* Checkbox personnalisée */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 480px) { .checkbox-group { grid-template-columns: 1fr 1fr; } }

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--light-bg-alt);
    border: 0.5px solid var(--light-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    color: var(--light-text-primary);
    transition: border-color var(--tr), background var(--tr);
}

.checkbox-item:hover,
.checkbox-item:has(input:checked) { border-color: #BFDBFE; background: #EFF6FF; }

.checkbox-item input { display: none; }

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 0.5px solid var(--light-border);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: background var(--tr), border-color var(--tr);
}

.checkbox-item input:checked ~ .checkbox-box { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Actions navigation étapes */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 0.5px solid var(--light-border);
}

/* Dans step-actions, le bouton submit reprend une taille auto (pas full-width) */
.step-actions .btn-submit {
    width: auto;
}

@media (max-width: 479px) {
    .form-step { padding: 20px 16px; }
    .step-actions { flex-wrap: wrap; gap: 10px; }
}

/* GARANTIE */
.guarantee-section {
    background: var(--dark-bg);
    padding: 40px 0;
}

.guarantee-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--dark-surface);
    border: 0.5px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

@media (max-width: 479px) { .guarantee-bar { flex-direction: column; text-align: center; } }

.guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(34, 197, 94, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-title { font-size: 14px; font-weight: 500; color: var(--dark-text-primary); margin-bottom: 4px; }
.guarantee-desc  { font-size: 13px; color: var(--dark-text-secondary); line-height: 1.6; margin: 0; }

/* FAQ DEVIS */
/* Section wrapper — composant .faq-* dans components.css */
.devis-faq {
    background: var(--light-bg);
    padding: var(--section-pad-y) 0;
}

/* MODALE D'ERREUR */
.error-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--tr-slow);
}

.error-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.error-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.error-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--light-bg);
    border-radius: var(--radius-xl);
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--tr-slow);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.error-modal.is-open .error-modal-panel { transform: none; }

.error-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-danger);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.error-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-text-primary);
    margin-bottom: 8px;
}

.error-modal-message {
    font-size: 14px;
    color: var(--light-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.error-modal-detail {
    font-size: 12px;
    color: var(--light-text-muted);
    background: var(--light-bg-alt);
    border: 0.5px solid var(--light-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    line-height: 1.5;
    word-break: break-word;
}

.error-modal-hint {
    font-size: 12px;
    color: var(--light-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.error-modal-hint a { color: var(--accent); font-weight: 500; }
.error-modal-hint a:hover { text-decoration: underline; }

.error-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-direction: column;
}

@media (min-width: 380px) {
    .error-modal-actions { flex-direction: row; justify-content: center; }
    .error-modal-actions .btn { flex: 1; justify-content: center; }
}

.error-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: var(--light-bg-alt);
    border: 0.5px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-text-muted);
    transition: background var(--tr), color var(--tr);
}

.error-modal-close:hover { background: var(--light-border); color: var(--light-text-primary); }
.error-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }