/* ═══════════════════════════════════════════════
   TEH DEVIS WIZARD — Design moderne
   ═══════════════════════════════════════════════ */
.teh-dw {
    --teh-blue: #193353;
    --teh-blue-light: #2a4a75;
    --teh-green: #507a2e;
    --teh-orange: #e05512;
    --teh-orange-light: #f07a3a;
    --teh-accent: #507a2e;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 40px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(25,51,83,.12), 0 4px 16px rgba(25,51,83,.06);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    background: #fff;
}
.teh-dw::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,85,18,.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Progress moderne ── */
.teh-dw__progress { margin-bottom: 44px; position: relative; z-index: 1; }
.teh-dw__progress-track {
    height: 6px;
    background: rgba(25,51,83,.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.teh-dw__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teh-orange), var(--teh-orange-light), var(--teh-green));
    border-radius: 6px;
    width: 33.33%;
    transition: width .6s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 0 12px rgba(224,85,18,.4);
}
.teh-dw__steps-indicator {
    display: flex; justify-content: space-between;
}
.teh-dw__step-ind {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: .5; transition: opacity .35s;
    cursor: default;
}
.teh-dw__step-ind.is-active, .teh-dw__step-ind.is-done { opacity: 1; }
.teh-dw__step-num {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid rgba(25,51,83,.2);
    background: #fff;
    color: var(--teh-blue);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    transition: all .4s cubic-bezier(.25,.8,.25,1);
}
.teh-dw__step-ind.is-active .teh-dw__step-num {
    background: linear-gradient(135deg, var(--teh-orange), var(--teh-orange-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(224,85,18,.45);
    transform: scale(1.1);
}
.teh-dw__step-ind.is-done .teh-dw__step-num {
    background: linear-gradient(135deg, var(--teh-green), var(--teh-blue));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(80,122,46,.4);
}
.teh-dw__step-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--teh-blue);
}

/* ── Steps ── */
.teh-dw__step {
    display: none;
    animation: tehDwFadeIn .5s cubic-bezier(.25,.8,.25,1);
    position: relative;
    z-index: 1;
}
.teh-dw__step.is-active { display: block; }
@keyframes tehDwFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.teh-dw__step-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--teh-blue);
    margin: 0 0 28px;
    text-align: center;
    letter-spacing: -.02em;
    line-height: 1.2;
}

/* ══ SERVICES — GRILLE 4 COLONNES RESPONSIVE ══ */
.teh-dw__services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.teh-dw__svc {
    position: relative;
    cursor: pointer;
    margin: 0;
}
.teh-dw__svc-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.teh-dw__svc-inner {
    background: #f8fafc;
    border: 2px solid rgba(25,51,83,.08);
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    transition: all .4s cubic-bezier(.25,.8,.25,1);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}
.teh-dw__svc:hover .teh-dw__svc-inner {
    border-color: var(--teh-orange);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(224,85,18,.15);
}
.teh-dw__svc-input:checked + .teh-dw__svc-inner {
    background: linear-gradient(135deg, #0f1f35 0%, var(--teh-blue) 100%) !important;
    background-color: #0f1f35 !important;
    border-color: transparent !important;
    box-shadow: 0 18px 40px rgba(25,51,83,.35) !important;
    transform: translateY(-4px);
}
.teh-dw__svc-input:checked + .teh-dw__svc-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teh-orange), var(--teh-orange-light));
    z-index: 1;
}
.teh-dw__svc-icon {
    font-size: 34px;
    color: var(--teh-blue);
    margin-bottom: 6px;
    transition: all .4s;
}
.teh-dw__svc:hover .teh-dw__svc-icon { color: var(--teh-orange); transform: scale(1.1); }
.teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-icon {
    color: var(--teh-orange-light) !important;
}
.teh-dw__svc-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--teh-blue);
    letter-spacing: -.01em;
    line-height: 1.25;
    position: relative;
    z-index: 2;
}
.teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-label,
.teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-label {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.5) !important;
}
.teh-dw__svc-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    font-weight: 500;
    position: relative;
    z-index: 2;
}
.teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-desc,
.teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-desc {
    color: #ffffff !important;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,.5) !important;
}
.teh-dw__svc-check {
    position: absolute;
    top: 10px; right: 10px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--teh-orange);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 4px 12px rgba(224,85,18,.4);
}
.teh-dw__svc-check svg { width: 14px; height: 14px; }
.teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Fields ── */
.teh-dw__fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.teh-dw__field--full { grid-column: 1 / -1; }
.teh-dw__field label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--teh-blue);
    margin-bottom: 8px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.teh-dw__field input,
.teh-dw__field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(25,51,83,.1);
    border-radius: 14px;
    font-size: 15px;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    background: #f8fafc;
    font-family: inherit;
    resize: vertical;
    color: var(--teh-blue);
    font-weight: 500;
    box-sizing: border-box;
}
.teh-dw__field input::placeholder,
.teh-dw__field textarea::placeholder { color: #94a3b8; }
.teh-dw__field input:hover,
.teh-dw__field textarea:hover { border-color: rgba(25,51,83,.2); }
.teh-dw__field input:focus,
.teh-dw__field textarea:focus {
    outline: none;
    border-color: var(--teh-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(224,85,18,.1), 0 4px 12px rgba(224,85,18,.08);
}

/* ══ URGENCY — 3 boutons sur une ligne en desktop ══ */
.teh-dw__urgency {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.teh-dw__urg-opt {
    cursor: pointer;
    position: relative;
    margin: 0;
}
.teh-dw__urg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.teh-dw__urg-opt span {
    display: block;
    text-align: center;
    padding: 14px 12px;
    background: #f8fafc;
    border: 2px solid rgba(25,51,83,.1);
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    color: var(--teh-blue);
    transition: all .3s;
    letter-spacing: .2px;
    text-transform: uppercase;
}
.teh-dw__urg-opt:hover span { border-color: var(--teh-orange); transform: translateY(-1px); }
.teh-dw__urg-opt input:checked + span {
    background: linear-gradient(135deg, var(--teh-orange), var(--teh-orange-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(224,85,18,.35);
}

/* ── Navigation ── */
.teh-dw__nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.teh-dw__btn {
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .4s cubic-bezier(.25,.8,.25,1);
    font-family: inherit;
    letter-spacing: .5px;
}
.teh-dw__btn--next,
.teh-dw__btn--submit {
    background: linear-gradient(135deg, var(--teh-orange), var(--teh-orange-light));
    color: #fff;
    box-shadow: 0 10px 24px rgba(224,85,18,.4), inset 0 1px 0 rgba(255,255,255,.2);
    margin-left: auto;
}
.teh-dw__btn--next:hover:not(:disabled),
.teh-dw__btn--submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(224,85,18,.55), inset 0 1px 0 rgba(255,255,255,.3);
}
.teh-dw__btn--next:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}
/* Bouton Retour - hover visible (texte BLANC sur fond BLEU) */
.teh-dw__btn--back {
    background: #f8fafc;
    color: var(--teh-blue);
    border: 2px solid rgba(25,51,83,.15);
}
.teh-dw__btn--back:hover {
    background: var(--teh-blue);
    border-color: var(--teh-blue);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 10px 24px rgba(25,51,83,.3);
}

/* ── Success ── */
.teh-dw__success { text-align: center; padding: 60px 20px; animation: tehDwFadeIn .5s; position: relative; z-index: 1; }
.teh-dw__success-icon {
    margin: 0 auto 24px;
    animation: tehDwPop .5s .1s both cubic-bezier(.34,1.56,.64,1);
}
.teh-dw__success-icon svg {
    width: 96px; height: 96px;
    filter: drop-shadow(0 12px 28px rgba(80,122,46,.35));
}
.teh-dw__success-msg {
    font-size: 17px;
    color: var(--teh-blue);
    line-height: 1.65;
    font-weight: 600;
    max-width: 480px;
    margin: 0 auto;
}
@keyframes tehDwPop { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0); } }

/* ── Loading ── */
.teh-dw__loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.teh-dw__spinner {
    width: 52px; height: 52px;
    border: 3px solid rgba(25,51,83,.1);
    border-top-color: var(--teh-orange);
    border-right-color: var(--teh-green);
    border-radius: 50%;
    animation: tehDwSpin .9s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes tehDwSpin { to { transform: rotate(360deg); } }

/* ── RGPD ── */
.teh-dw__rgpd {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: rgba(25,51,83,.03);
    border-radius: 12px;
    border-left: 3px solid var(--teh-orange);
}
.teh-dw__rgpd label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.teh-dw__rgpd-check {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px; height: 18px;
    accent-color: var(--teh-orange);
}

/* ══ RESPONSIVE ══ */
/* Tablette: grille 2x4 (colonnes) */
@media (max-width: 960px) {
    .teh-dw { padding: 40px 28px; }
    .teh-dw__services { grid-template-columns: repeat(2, 1fr); }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner {
        background: linear-gradient(135deg, #0f1f35 0%, #193353 100%) !important;
        background-color: #0f1f35 !important;
        border-color: transparent !important;
    }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-label,
    .teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-label {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,.5) !important;
    }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-desc,
    .teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-desc {
        color: #ffffff !important;
        opacity: 0.95 !important;
    }
}
/* Mobile: tout en colonne */
@media (max-width: 640px) {
    .teh-dw { padding: 28px 18px; border-radius: 20px; }
    .teh-dw__fields { grid-template-columns: 1fr; }
    .teh-dw__services { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .teh-dw__urgency { grid-template-columns: 1fr; }
    .teh-dw__step-title { font-size: 20px; }
    .teh-dw__step-label { display: none; }
    .teh-dw__btn { padding: 13px 22px; font-size: 13.5px; }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner {
        background: linear-gradient(135deg, #0f1f35 0%, #193353 100%) !important;
        background-color: #0f1f35 !important;
        border-color: transparent !important;
        box-shadow: 0 12px 28px rgba(25,51,83,.4) !important;
    }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-label,
    .teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-label {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,.5) !important;
    }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-desc,
    .teh-dw__svc-input:checked + .teh-dw__svc-inner span.teh-dw__svc-desc {
        color: #ffffff !important;
        opacity: 0.95 !important;
        text-shadow: 0 1px 4px rgba(0,0,0,.5) !important;
    }
    .teh-dw__svc-input:checked + .teh-dw__svc-inner .teh-dw__svc-icon {
        color: #f07a3a !important;
    }
}
/* Très petit: 1 colonne services */
@media (max-width: 400px) {
    .teh-dw__services { grid-template-columns: 1fr; }
}
