.dptool {
    --ink: #0b2342;
    --muted: #7d8797;
    --mint: #48dcb0;
    --pink: #e31f62;
    --blue: #57c8f5;
    --line: #e7edf2;
    --soft: #f7f9fb;

    width: 100%;
    margin: 20px 0 34px;
    color: var(--ink);
    font-family: inherit;
}

.dptool * {
    box-sizing: border-box;
}


/* ==========================================================
   PROGRESSION
   ========================================================== */

.dp-progress {
    display: flex;
    gap: 7px;
    margin-bottom: 22px;
}

.dp-progress span {
    height: 4px;
    flex: 1;
    border-radius: 99px;
    background: #e8edf2;
}

.dp-progress span.is-active {
    background: var(--mint);
}


/* ==========================================================
   CONTEXTE / CHIPS
   ========================================================== */

.dp-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dp-chip {
    padding: 8px 12px;
    border-radius: 99px;
    background: #eefbf7;
    font-size: 13px;
}


/* ==========================================================
   TITRES
   ========================================================== */

.dp-kicker {
    margin: 0 0 4px;
    color: var(--pink);
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
}

.dp-step h3 {
    margin: 2px 0 8px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.dp-lead,
.dp-result-copy {
    max-width: 880px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}


/* ==========================================================
   CHOIX
   ========================================================== */

.dp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dp-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: .18s;
}

.dp-choice:hover,
.dp-choice:focus-visible {
    border-color: var(--mint);
    background: #fbfffd;
    outline: none;
    transform: translateY(-1px);
}

.dp-choice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.dp-choice small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dp-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
    background: #eefbf7;
    font-weight: 900;
}

.dp-choice:nth-child(2n) .dp-icon {
    background: #fff0f5;
}

.dp-choice:nth-child(3n) .dp-icon {
    background: #eef9fe;
}


/* ==========================================================
   CHAMPS
   ========================================================== */

.dp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dp-fields label span,
.dp-imei-label span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 800;
}

.dp-fields select,
.dp-imei-input {
    width: 100%;
    min-height: 50px;
    padding: 0 13px;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.dp-fields select:focus,
.dp-imei-input:focus {
    border-color: var(--mint);
    outline: 3px solid rgba(72, 220, 176, .22);
}


/* ==========================================================
   ACTIONS / BOUTONS
   ========================================================== */

.dp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.dp-primary {
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.dp-link {
    padding: 9px 5px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.dp-error {
    color: #a11646;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================================
   RESULTAT OK
   ========================================================== */

.dp-ok {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e9fbf5;
    color: #158463;
    font-size: 22px;
    font-weight: 900;
}


/* ==========================================================
   MINI CARTES / METHODES
   ========================================================== */

.dp-minis,
.dp-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 18px 0 0;
}

.dp-mini,
.dp-method {
    min-height: 0;
    padding: 20px;
    border-top: 4px solid var(--mint);
    border-radius: 12px;
    background: var(--soft);
}

.dp-mini:nth-child(2),
.dp-method:nth-child(2) {
    border-top-color: var(--blue);
}

.dp-mini:nth-child(3),
.dp-method:nth-child(3) {
    border-top-color: var(--pink);
}

.dp-mini b,
.dp-method b {
    display: block;
    margin: 0 0 8px;
    color: var(--ink) !important;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    opacity: 1;
}

.dp-mini span,
.dp-method span {
    display: block;
    margin: 0;
    color: var(--muted) !important;
    font-size: 14px;
    line-height: 1.55;
    opacity: 1;
}


/* ==========================================================
   OUTIL PUK - CARTES DE RESULTAT
   ========================================================== */

.dppuk .dp-methods {
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
    margin-bottom: 20px;
}

.dppuk .dp-method {
    display: block;
    min-height: 0;
    padding: 22px;
    background: #f7f9fb;
}

.dppuk .dp-method b {
    display: block;
    margin: 0 0 10px;
    color: #0b2342 !important;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    opacity: 1;
}

.dppuk .dp-method span {
    display: block;
    margin: 0;
    color: #66768a !important;
    font-size: 14px;
    line-height: 1.55;
    opacity: 1;
}


/* ==========================================================
   OPERATEURS
   ========================================================== */

.dp-operator-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.dp-pill {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.dp-pill:hover,
.dp-pill.is-selected {
    border-color: var(--mint);
    background: #eefbf7;
}


/* ==========================================================
   AVERTISSEMENT
   ========================================================== */

.dp-warning {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 15px;
    border-left: 4px solid var(--pink);
    border-radius: 8px;
    background: #fff5f8;
}

.dp-warning strong {
    white-space: nowrap;
}

.dp-warning span {
    color: #6f7886;
    font-size: 13px;
    line-height: 1.5;
}

/* Evite un grand espace entre les méthodes PUK
   et l'avertissement */

.dppuk .dp-methods + .dp-warning {
    margin-top: 18px;
}


/* ==========================================================
   IMEI
   ========================================================== */

.dp-imei-label {
    display: block;
    max-width: 540px;
    margin-top: 18px;
}

.dp-imei-input {
    letter-spacing: .08em;
    font-weight: 700;
}

.dp-imei-result {
    max-width: 700px;
    margin-top: 14px;
}

.dp-imei-status {
    padding: 14px 16px;
    border-left: 4px solid var(--mint);
    border-radius: 9px;
    background: #eefbf7;
    line-height: 1.55;
}

.dp-imei-status.is-bad {
    border-left-color: var(--pink);
    background: #fff5f8;
}

.dp-imei-status strong {
    display: block;
    margin-bottom: 3px;
}


/* ==========================================================
   ETAPES MASQUEES
   ========================================================== */

.dp-step[hidden] {
    display: none !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .dp-grid,
    .dp-fields,
    .dp-minis,
    .dp-methods {
        grid-template-columns: 1fr;
    }

    .dp-step h3 {
        font-size: 25px;
    }

    .dp-mini,
    .dp-method,
    .dppuk .dp-method {
        padding: 18px;
    }

    .dp-warning {
        display: block;
    }

    .dp-warning strong {
        display: block;
        margin-bottom: 4px;
    }

}
/* ==========================================================
   FIX AFFICHAGE OUTIL PUK
   ========================================================== */

.dppuk .dp-methods {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 22px 0 18px !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.dppuk .dp-method {
    display: block !important;
    margin: 0 !important;
    padding: 20px !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 12px !important;
    background: #f7f9fb !important;
    color: #0b2342 !important;
}

.dppuk .dp-method b,
.dppuk .dp-method strong {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #0b2342 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.dppuk .dp-method span,
.dppuk .dp-method p {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #66768a !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.dppuk .dp-method > * {
    min-height: 0 !important;
    height: auto !important;
}

.dppuk .dp-methods + .dp-warning {
    margin-top: 18px !important;
}

@media (max-width: 700px) {
    .dppuk .dp-methods {
        grid-template-columns: 1fr !important;
    }
}