/* ==========================================================
 * DBC · Formulaire Devis — Grille prestations + blocs numérotés
 * ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

.dbc-df {
    --dbc-df-blue-1: #0d4899;
    --dbc-df-blue-2: #2f7cc0;
    --dbc-df-orange-1: #f49826;
    --dbc-df-orange-2: #e25312;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 40px 20px;
}

.dbc-df__inner {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 48px 44px;
    box-shadow: 0 40px 80px -30px rgba(13, 72, 153, 0.35);
    border: 1px solid rgba(13, 72, 153, 0.06);
}

/* ============ HEADER ============ */
.dbc-df__head { text-align: center; margin-bottom: 40px; }

.dbc-df__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(244, 152, 38, 0.12), rgba(226, 83, 18, 0.12));
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dbc-df-orange-2);
}

.dbc-df__eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--dbc-df-orange-1);
    box-shadow: 0 0 0 4px rgba(244, 152, 38, 0.25);
    animation: dbcDfPulse 2s ease-in-out infinite;
}

@keyframes dbcDfPulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.3);opacity:0.7;} }

.dbc-df__title {
    margin: 0 0 12px 0;
    font-family: 'Sora', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.12;
    color: #0a1929;
}

.dbc-df__subtitle {
    margin: 0 auto;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
}

/* ============ BARRE DE PROGRESSION (STEPPER) ============ */
.dbc-df__progress {
    position: relative;
    margin: 0 auto 40px;
    max-width: 560px;
}

.dbc-df__progress-bar {
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    z-index: 0;
}

.dbc-df__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dbc-df-orange-1), var(--dbc-df-orange-2));
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.dbc-df__steps-nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}

.dbc-df__step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.dbc-df__step-num,
.dbc-df__step-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 800;
    border: 3px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbc-df__step-check {
    display: none;
    background: linear-gradient(135deg, var(--dbc-df-orange-1), var(--dbc-df-orange-2));
    border-color: transparent;
    color: #fff;
}

/* Étape active : pastille bleue */
.dbc-df__step-dot.is-active .dbc-df__step-num {
    border-color: var(--dbc-df-blue-1);
    background: var(--dbc-df-blue-1);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px -4px rgba(13, 72, 153, 0.5);
}

/* Étape complétée : check orange */
.dbc-df__step-dot.is-done .dbc-df__step-num { display: none; }
.dbc-df__step-dot.is-done .dbc-df__step-check { display: flex; }

.dbc-df__step-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.dbc-df__step-dot.is-active .dbc-df__step-label { color: var(--dbc-df-blue-1); }
.dbc-df__step-dot.is-done .dbc-df__step-label { color: var(--dbc-df-orange-2); }

/* ============ ÉTAPES (slides) ============ */
.dbc-df__step {
    display: none;
    animation: dbcDfStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbc-df__step.is-active { display: block; }

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

.dbc-df__step-title {
    margin: 0 0 22px 0;
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #0a1929;
    text-align: center;
}

/* ============ NAVIGATION ÉTAPES ============ */
.dbc-df__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

.dbc-df__btn-prev,
.dbc-df__btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.dbc-df__btn-next {
    background: linear-gradient(135deg, var(--dbc-df-blue-1), var(--dbc-df-blue-2));
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(13, 72, 153, 0.5);
}
.dbc-df__btn-next:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(13, 72, 153, 0.6); }

.dbc-df__btn-prev {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}
.dbc-df__btn-prev:hover { border-color: var(--dbc-df-blue-1); color: var(--dbc-df-blue-1); }

/* ============ GRILLE PRESTATIONS ============ */
.dbc-df__presta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dbc-df__presta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: center;
}

.dbc-df__presta:hover {
    border-color: var(--dbc-df-blue-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(13, 72, 153, 0.25);
}

.dbc-df__presta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--dbc-df-blue-1);
    transition: all 0.3s ease;
}

.dbc-df__presta-icon i,
.dbc-df__presta-icon svg { font-size: 22px; width: 22px; height: 22px; }

.dbc-df__presta-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.dbc-df__presta-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dbc-df-orange-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* État sélectionné */
.dbc-df__presta.is-selected {
    border-color: var(--dbc-df-orange-1);
    background: linear-gradient(135deg, rgba(244, 152, 38, 0.08), rgba(226, 83, 18, 0.06));
}

.dbc-df__presta.is-selected .dbc-df__presta-icon {
    background: linear-gradient(135deg, var(--dbc-df-orange-1), var(--dbc-df-orange-2));
    color: #fff;
    transform: scale(1.05);
}

.dbc-df__presta.is-selected .dbc-df__presta-check {
    opacity: 1;
    transform: scale(1);
}

.dbc-df__presta.is-selected .dbc-df__presta-label {
    color: var(--dbc-df-orange-2);
    font-weight: 700;
}

.dbc-df__presta-error {
    margin: 14px 0 0 0;
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 600;
}

/* ============ CHAMPS ============ */
.dbc-df__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dbc-df__field { margin-bottom: 18px; }

.dbc-df__field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.dbc-df__field input[type="text"],
.dbc-df__field input[type="number"],
.dbc-df__field input[type="tel"],
.dbc-df__field input[type="email"],
.dbc-df__field input[type="date"],
.dbc-df__field input:not([type]),
.dbc-df__field textarea,
.dbc-df__field select {
    width: 100% !important;
    min-height: 50px;
    padding: 13px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-family: inherit;
    color: #0a1929 !important;
    -webkit-text-fill-color: #0a1929 !important;
    background: #f8fafc !important;
    opacity: 1 !important;
    display: block !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box !important;
}
.dbc-df__field input::placeholder,
.dbc-df__field textarea::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}

.dbc-df__field input:focus,
.dbc-df__field textarea:focus,
.dbc-df__field select:focus {
    outline: none;
    border-color: var(--dbc-df-blue-2) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(47, 124, 192, 0.12);
}

.dbc-df__field textarea { resize: vertical; min-height: 100px; }

.dbc-df__hint {
    margin: 8px 0 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    background: #f8fafc;
    border-left: 3px solid var(--dbc-df-orange-1, #f49826);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
}

.dbc-df__select-wrap { position: relative; }
.dbc-df__select-wrap::after {
    content: '';
    position: absolute;
    right: 18px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.dbc-df__field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }

/* ============ URGENCE (pills radio) ============ */
.dbc-df__urgence {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dbc-df__urg-opt { cursor: pointer; }
.dbc-df__urg-opt input { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }

.dbc-df__urg-pill {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.25s ease;
}

.dbc-df__urg-opt input:checked + .dbc-df__urg-pill--red {
    border-color: var(--dbc-df-orange-2);
    background: rgba(226, 83, 18, 0.1);
    color: var(--dbc-df-orange-2);
}
.dbc-df__urg-opt input:checked + .dbc-df__urg-pill--orange {
    border-color: var(--dbc-df-orange-1);
    background: rgba(244, 152, 38, 0.12);
    color: #b45309;
}
.dbc-df__urg-opt input:checked + .dbc-df__urg-pill--blue {
    border-color: var(--dbc-df-blue-2);
    background: rgba(47, 124, 192, 0.1);
    color: var(--dbc-df-blue-1);
}

.dbc-df__urg-opt input:focus-visible + .dbc-df__urg-pill {
    box-shadow: 0 0 0 4px rgba(47, 124, 192, 0.15);
}

/* ============ RGPD ============ */
.dbc-df__rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    cursor: pointer;
}

.dbc-df__rgpd input {
    margin-top: 3px;
    width: 18px; height: 18px;
    accent-color: var(--dbc-df-blue-1);
    flex-shrink: 0;
    cursor: pointer;
}

/* ============ SUBMIT ============ */
.dbc-df__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--dbc-df-orange-1) 0%, var(--dbc-df-orange-2) 100%);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: 0 14px 30px -10px var(--dbc-df-orange-2);
}

.dbc-df__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px var(--dbc-df-orange-2);
}

.dbc-df__submit:disabled { opacity: 0.7; cursor: not-allowed; }

.dbc-df__submit-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dbcDfSpin 0.7s linear infinite;
}

.dbc-df--loading .dbc-df__submit-loader { display: inline-block; }

@keyframes dbcDfSpin { to { transform: rotate(360deg); } }

.dbc-df__trust {
    margin: 16px 0 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

/* ============ FEEDBACK ============ */
.dbc-df__feedback {
    margin-top: 16px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.dbc-df__feedback.is-success { padding: 14px 18px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dbc-df__feedback.is-error { padding: 14px 18px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.dbc-df__field input.is-invalid,
.dbc-df__field textarea.is-invalid,
.dbc-df__field select.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.dbc-df__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .dbc-df__inner { padding: 36px 24px; }
    .dbc-df__title { font-size: 28px; }
    .dbc-df__presta-grid { grid-template-columns: repeat(2, 1fr); }
    /* Stepper : labels masqués, juste les pastilles */
    .dbc-df__step-label { display: none; }
    .dbc-df__progress { max-width: 280px; margin-bottom: 32px; }
    .dbc-df__progress-bar { left: 19px; right: 19px; }
    .dbc-df__step-num, .dbc-df__step-check { width: 36px; height: 36px; }
}

@media (max-width: 520px) {
    .dbc-df { padding: 20px 12px; }
    .dbc-df__inner { padding: 28px 18px; border-radius: 20px; }
    .dbc-df__row { grid-template-columns: 1fr; gap: 0; }
    .dbc-df__urgence { flex-direction: column; }
    .dbc-df__urg-pill { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .dbc-df__presta, .dbc-df__submit, .dbc-df__field input,
    .dbc-df__field textarea, .dbc-df__field select, .dbc-df__eyebrow-dot { transition: none !important; animation: none !important; }
}

/* ============ POPUP DE CONFIRMATION ============ */
.dbc-df__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dbc-df__modal.is-open { opacity: 1; visibility: visible; }
.dbc-df__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 33, 0.6);
    backdrop-filter: blur(3px);
}
.dbc-df__modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 40px 90px -20px rgba(7, 18, 33, 0.5);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dbc-df__modal.is-open .dbc-df__modal-box { transform: translateY(0) scale(1); }
.dbc-df__modal-close {
    position: absolute;
    top: 16px; right: 18px;
    width: 34px; height: 34px;
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.dbc-df__modal-close:hover { background: #e2e8f0; }
.dbc-df__modal-icon {
    width: 76px; height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 14px 30px -8px rgba(16, 185, 129, 0.5);
    animation: dbcDfPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dbcDfPop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.dbc-df__modal-title {
    margin: 0 0 12px 0;
    font-family: 'Sora', sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: #0a1929;
    line-height: 1.2;
}
.dbc-df__modal-text {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}
.dbc-df__modal-contact {
    padding: 16px;
    background: linear-gradient(135deg, var(--dbc-df-blue-1), var(--dbc-df-blue-2));
    border-radius: 14px;
    margin-bottom: 22px;
}
.dbc-df__modal-contact span {
    display: block;
    font-size: 12.5px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.dbc-df__modal-phone {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.dbc-df__modal-ok {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--dbc-df-orange-1), var(--dbc-df-orange-2));
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease;
    box-shadow: 0 12px 26px -10px var(--dbc-df-orange-2);
}
.dbc-df__modal-ok:hover { transform: translateY(-2px); }
@media (max-width: 520px) {
    .dbc-df__modal-box { padding: 32px 22px 24px; border-radius: 20px; }
    .dbc-df__modal-title { font-size: 20px; }
    .dbc-df__modal-icon { width: 64px; height: 64px; }
}
