/* ============================================================
 * WUTLU — Formulaire d'inscription multi-étapes
 * ============================================================ */

/* === BARRE DE PROGRESSION === */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    padding: 0 10px;
}
.step-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #E2E8F0;
    z-index: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .3s;
    border: 2px solid #F1F5F9;
}
.step-item.active .step-num {
    background: #C2410C;
    color: #fff;
    border-color: #C2410C;
    box-shadow: 0 0 0 4px rgba(194,65,12,.15);
}
.step-item.done .step-num {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.step-item.done .step-num::after {
    content: '✓';
    font-size: 16px;
}
.step-item.done .step-num {
    font-size: 0;
}
.step-item.done .step-num::after {
    font-size: 16px;
}
.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
}
.step-item.active .step-label {
    color: #C2410C;
}
.step-item.done .step-label {
    color: #059669;
}

/* Variante prestataire : couleur teal */
.auth-provider-theme .step-item.active .step-num {
    background: #0F766E;
    border-color: #0F766E;
    box-shadow: 0 0 0 4px rgba(15,118,110,.15);
}
.auth-provider-theme .step-item.active .step-label {
    color: #0F766E;
}
.auth-provider-theme .step-progress::before {
    background: #CCFBF1;
}

/* === PANNEAUX D'ÉTAPES === */
.step-panel {
    display: none;
    animation: wdFadeIn .3s ease;
}
.step-panel.active {
    display: block;
}
@keyframes wdFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === CARTES DE TYPE DE COMPTE === */
.account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #fff;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.account-type-card:hover {
    border-color: #FDBA74;
    background: #FFF7ED;
}
.account-type-card.active {
    border-color: #C2410C;
    background: #FFF7ED;
    box-shadow: 0 0 0 3px rgba(194,65,12,.1);
}
.account-type-card input {
    display: none;
}
.account-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFF7ED;
    color: #C2410C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all .2s;
}
.account-type-card.active .account-type-icon {
    background: #C2410C;
    color: #fff;
}
.account-type-card strong {
    font-size: 14px;
    color: #0F172A;
    font-weight: 700;
}
.account-type-card span {
    font-size: 12px;
    color: #64748B;
    line-height: 1.3;
}

/* Variante prestataire */
.auth-provider-theme .account-type-card.active {
    border-color: #0F766E;
    background: #F0FDFA;
    box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}
.auth-provider-theme .account-type-card.active .account-type-icon {
    background: #0F766E;
    color: #fff;
}
.auth-provider-theme .account-type-card:hover {
    border-color: #5EEAD4;
    background: #F0FDFA;
}

/* === TOGGLE ADRESSE / GÉOLOC === */
.address-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.addr-toggle {
    flex: 1;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.addr-toggle:hover {
    border-color: #FDBA74;
    color: #C2410C;
}
.addr-toggle.active {
    background: #FFF7ED;
    border-color: #C2410C;
    color: #C2410C;
}
.auth-provider-theme .addr-toggle:hover {
    border-color: #5EEAD4;
    color: #0F766E;
}
.auth-provider-theme .addr-toggle.active {
    background: #F0FDFA;
    border-color: #0F766E;
    color: #0F766E;
}

.btn-geoloc {
    width: 100%;
    padding: 14px;
    background: #C2410C;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s;
}
.btn-geoloc:hover {
    background: #9A3412;
    transform: translateY(-1px);
}
.btn-geoloc:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}
.auth-provider-theme .btn-geoloc {
    background: #0F766E;
}
.auth-provider-theme .btn-geoloc:hover {
    background: #115E59;
}

.geoloc-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}
.geoloc-status.is-info { background: #DBEAFE; color: #1E40AF; display: block; }
.geoloc-status.is-ok { background: #D1FAE5; color: #065F46; display: block; }
.geoloc-status.is-err { background: #FEE2E2; color: #991B1B; display: block; }
.geoloc-status.is-warn { background: #FEF3C7; color: #92400E; display: block; }

/* === NAVIGATION === */
.step-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}
.btn-prev, .btn-next {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-prev {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    color: #64748B;
}
.btn-prev:hover {
    background: #F8FAFC;
    color: #0F172A;
}
.btn-next {
    background: #C2410C;
    border: 0;
    color: #fff;
}
.btn-next:hover {
    background: #9A3412;
}
.auth-provider-theme .btn-next {
    background: #0F766E;
}
.auth-provider-theme .btn-next:hover {
    background: #115E59;
}

/* === BADGE DE PRÉCISION GPS === */
.gps-accuracy {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}
.gps-accuracy.good { background: #D1FAE5; color: #065F46; }
.gps-accuracy.medium { background: #FEF3C7; color: #92400E; }
.gps-accuracy.poor { background: #FEE2E2; color: #991B1B; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .account-type-grid { grid-template-columns: 1fr; }
    .step-progress { margin-bottom: 20px; padding: 0; }
    .step-progress::before { left: 20px; right: 20px; top: 15px; }
    .step-num { width: 30px; height: 30px; font-size: 12px; border-width: 2px; }
    .step-label { font-size: 9.5px; }
    .step-item.done .step-num::after { font-size: 14px; }
}
/* ============================================================
 * WUTLU — Étape 3 : Localisation + Domaines
 * ============================================================ */

.step3-section {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.step3-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.step3-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #FFF7ED;
    color: #C2410C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.step3-section-head > div:last-child {
    flex: 1;
    min-width: 0;
}

.step3-section-head strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.step3-section-head span {
    display: block;
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
}

/* === TOGGLE MODE === */
.step3-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.step3-mode {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all .15s;
}

.step3-mode:hover {
    border-color: #FDBA74;
    background: #FFF7ED;
    color: #C2410C;
}

.step3-mode.active {
    background: #FFF7ED;
    border-color: #C2410C;
    color: #C2410C;
    box-shadow: 0 0 0 3px rgba(194,65,12,.1);
}

.step3-mode i {
    font-size: 15px;
}

/* === CHAMPS === */
.step3-field {
    display: block;
    margin-bottom: 12px;
}

.step3-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.step3-field input,
.step3-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #0F172A;
    background: #fff;
    transition: all .15s;
    box-sizing: border-box;
}

.step3-field input:focus,
.step3-select:focus {
    outline: none;
    border-color: #0F766E;
    box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}

.step3-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* === BOUTONS === */
.step3-btn-primary {
    width: 100%;
    padding: 13px 18px;
    background: #C2410C;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s;
}

.step3-btn-primary:hover {
    background: #9A3412;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(194,65,12,.2);
}

.step3-btn-primary:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.step3-hint {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.step3-hint i {
    color: #0F766E;
    margin-top: 2px;
    flex: 0 0 auto;
}

/* === FEEDBACK ZONE === */
.step3-feedback {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.step3-feedback.is-ok {
    display: block;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #86EFAC;
}

.step3-feedback.is-warn {
    display: block;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.step3-feedback i {
    margin-right: 6px;
}

/* === DOMAINES SÉLECTIONNÉS === */
.step3-domains-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.step3-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F0FDFA;
    border: 1px solid #CCFBF1;
    border-radius: 10px;
    font-size: 13px;
}

.step3-domain-item i {
    color: #0F766E;
    font-size: 14px;
    flex: 0 0 auto;
}

.step3-domain-item span {
    flex: 1;
    font-weight: 600;
    color: #0F172A;
}

.step3-domain-item .level-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 4px;
}

.step3-domain-item .level-badge.cat {
    background: #DBEAFE;
    color: #1E40AF;
}

.step3-domain-item .level-badge.sub {
    background: #FEF3C7;
    color: #92400E;
}

.step3-domain-item .level-badge.svc {
    background: #D1FAE5;
    color: #065F46;
}

/* === EMPTY STATE === */
.step3-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    background: #F8FAFC;
    border: 1.5px dashed #E2E8F0;
    border-radius: 10px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-top: 12px;
}

.step3-empty i {
    font-size: 26px;
    color: #CBD5E1;
}

@media (max-width: 480px) {
    .step3-section {
        padding: 16px;
    }

    .step3-mode-toggle {
        grid-template-columns: 1fr;
    }

    .step3-section-head {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .step3-section-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        font-size: 15px;
    }
}
/* ============================================================
 * WUTLU — MODALE ARBORESCENCE (mobile-first)
 * ============================================================ */

.tree-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.tree-modal.is-open {
    display: flex;
    animation: treeFadeIn .2s ease;
}

@keyframes treeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tree-modal-card {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0,0,0,.25);
    animation: treeSlideUp .3s cubic-bezier(.4,0,.2,1);
}

@keyframes treeSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* === EN-TÊTE === */
.tree-modal-head {
    padding: 16px 18px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    background: #fff;
    position: relative;
}

.tree-modal-head::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
}

.tree-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    margin-top: 8px;
}

.tree-head-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #F0FDFA;
    color: #0F766E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tree-modal-head h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.tree-head-sub {
    display: block;
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.3;
}

.tree-close {
    background: #F8FAFC;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #64748B;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    transition: all .15s;
    margin-top: 8px;
}

.tree-close:hover,
.tree-close:active {
    background: #FEE2E2;
    color: #DC2626;
}

/* === RECHERCHE === */
.tree-search {
    position: relative;
    padding: 10px 18px;
    background: #fff;
    border-bottom: 1px solid #F1F5F9;
    flex: 0 0 auto;
}

.tree-search i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 13px;
    pointer-events: none;
}

.tree-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #0F172A;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.tree-search input:focus {
    outline: none;
    border-color: #0F766E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}

/* === FIL D'ARIANE MOBILE === */
.tree-mobile-breadcrumb {
    padding: 10px 18px;
    background: #F0FDFA;
    border-bottom: 1px solid #CCFBF1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.tree-back-btn {
    background: #fff;
    border: 1px solid #CCFBF1;
    color: #0F766E;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tree-back-btn:active {
    background: #0F766E;
    color: #fff;
}

.tree-current-level {
    font-size: 13px;
    font-weight: 700;
    color: #0F766E;
    flex: 1;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* === CORPS === */
.tree-modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.tree-columns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
}

/* === COLONNES (mobile : 1 seule visible) === */
.tree-col {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: none;
}

.tree-col-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94A3B8;
    padding: 4px 8px 10px;
}

.tree-count {
    background: #E2E8F0;
    color: #64748B;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
}

.tree-col-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 400px;
    -webkit-overflow-scrolling: touch;
}

/* === ITEMS === */
.tree-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    text-align: left;
    transition: all .12s;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}

.tree-item:active {
    transform: scale(.98);
}

.tree-item:hover {
    background: #F0FDFA;
    border-color: #5EEAD4;
}

.tree-item.selected {
    background: #D1FAE5;
    border-color: #059669;
    color: #065F46;
}

.tree-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-item i {
    color: #94A3B8;
    font-size: 12px;
    flex: 0 0 auto;
}

.tree-item.selected i {
    color: #059669;
}

.tree-item-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    transition: all .15s;
}

.tree-item.selected .tree-item-check {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.tree-item.selected .tree-item-check::after {
    content: '✓';
    font-size: 13px;
    font-weight: 800;
}

/* === SÉLECTION === */
.tree-selected-panel {
    background: #F0FDFA;
    border: 1.5px solid #CCFBF1;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}

.tree-selected-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tree-selected-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0F766E;
}

.tree-clear-all {
    background: transparent;
    border: 0;
    color: #DC2626;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tree-clear-all:active {
    background: #FEE2E2;
}

.tree-selected-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tree-sel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #0F172A;
    border: 1px solid #E2E8F0;
}

.tree-sel-item span:first-child {
    flex: 0 0 auto;
}

.tree-sel-item .sel-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.tree-sel-remove {
    background: transparent;
    border: 0;
    color: #DC2626;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-sel-remove:active {
    background: #FEE2E2;
}

/* === PIED === */
.tree-modal-foot {
    padding: 14px 18px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid #F1F5F9;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.tree-foot-info {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
}

.tree-selection-count {
    color: #0F766E;
    font-weight: 800;
    font-size: 16px;
    margin-right: 4px;
}

.tree-foot-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 320px;
}

.tree-btn-cancel,
.tree-btn-validate {
    padding: 12px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.tree-btn-cancel {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    color: #64748B;
    flex: 1;
}

.tree-btn-cancel:active {
    background: #F8FAFC;
}

.tree-btn-validate {
    background: #0F766E;
    border: 0;
    color: #fff;
    flex: 1.5;
}

.tree-btn-validate:active {
    background: #115E59;
}

.tree-btn-validate:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
}

/* ============================================================
 * DESKTOP (>= 720px)
 * ============================================================ */
@media (min-width: 720px) {
    .tree-modal {
        align-items: center;
        padding: 24px;
    }

    .tree-modal-card {
        border-radius: 20px;
        max-width: 980px;
        height: auto;
        max-height: 85vh;
        animation: treeScaleIn .25s cubic-bezier(.4,0,.2,1);
    }

    @keyframes treeScaleIn {
        from { transform: scale(.95); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    .tree-modal-head::before {
        display: none;
    }

    .tree-head-left,
    .tree-close {
        margin-top: 0;
    }

    .tree-mobile-breadcrumb {
        display: none;
    }

    .tree-columns {
        flex-direction: row;
        gap: 12px;
        min-height: 300px;
    }

    .tree-col {
        flex: 1;
        min-width: 0;
        max-height: 400px;
    }

    .tree-col-list {
        max-height: 340px;
    }

    .tree-foot-actions {
        max-width: 340px;
    }

    .tree-btn-cancel,
    .tree-btn-validate {
        padding: 11px 20px;
        font-size: 13.5px;
    }
}

/* ============================================================
 * TABLETTE (480px à 719px)
 * ============================================================ */
@media (min-width: 480px) and (max-width: 719px) {
    .tree-modal-card {
        height: 88vh;
        max-height: 88vh;
    }

    .tree-columns {
        flex-direction: column;
        gap: 12px;
    }

    .tree-col {
        max-height: 220px;
    }
}