/* DP – Order Now
   Chaîne à 3 niveaux : variable locale → charte → repli. */

.dp-on {
    --dp-on-text: var(--dp-color-text, #3c3c3b);
    --dp-on-text-muted: var(--dp-color-text-muted, #6b7280);
    --dp-on-accent: var(--dp-color-primary, #1a86a2);
    --dp-on-accent-dark: var(--dp-color-primary-dark, #0d5e76);
    --dp-on-accent-soft: var(--dp-color-primary-soft, #eef6f9);
    --dp-on-border: var(--dp-color-border, #e5e7eb);
    --dp-on-surface: var(--dp-color-surface, #ffffff);

    position: relative;
    font-family: var(--dp-font-base, inherit);
    font-weight: var(--dp-font-base-weight, 400);
    color: var(--dp-on-text);
}

/* Décalage de l'ancre pour ne pas passer sous un header collant. */
.dp-on__anchor {
    display: block;
    position: relative;
    top: -110px;
    visibility: hidden;
}

/* ── Bandeau « autres formats » ──────────────────────────────────── */

.dp-on__formats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--dp-on-text-muted);
}

.dp-on__formats-title {
    font-weight: 600;
    color: var(--dp-on-text);
}

.dp-on__formats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-on__formats-list a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--dp-on-accent-dark);
    background: var(--dp-on-accent-soft);
    border: 1px solid transparent;
    border-radius: var(--dp-radius-pill, 999px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dp-on__formats-list a:hover {
    border-color: var(--dp-on-accent);
    background: var(--dp-on-surface);
}

/* ── Bouton ──────────────────────────────────────────────────────── */

.dp-on--align-center { text-align: center; }
.dp-on--align-right  { text-align: right; }

.dp-on__button {
    display: inline-flex;
    white-space: normal;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: var(--dp-on-accent);
    border: 1px solid var(--dp-on-accent);
    border-radius: var(--dp-on-button-radius, var(--dp-radius-pill, 999px));
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.dp-on--align-stretch .dp-on__button {
    display: flex;
    width: 100%;
}

.dp-on__button:hover {
    color: #ffffff;
    background: var(--dp-on-accent-dark);
    border-color: var(--dp-on-accent-dark);
    transform: translateY(-1px);
}

/* ── Modale ──────────────────────────────────────────────────────── */

.dp-on__overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 30, 45, 0.55);
    overflow-y: auto;
}

.dp-on__overlay[hidden] {
    display: none;
}

.dp-on__modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto;
    padding: 40px 36px 36px;
    text-align: left;
    background: var(--dp-on-surface);
    border-radius: var(--dp-on-modal-radius, var(--dp-radius-lg, 20px));
    box-shadow: 0 24px 60px rgba(15, 30, 45, 0.3);
}

.dp-on__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--dp-on-text-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dp-on__close:hover {
    color: var(--dp-on-text);
    background: var(--dp-on-accent-soft);
}

.dp-on__step {
    display: none;
}

.dp-on__step.is-active {
    display: block;
}

.dp-on__step-title {
    margin: 0 0 8px;
    font-family: var(--dp-font-heading, inherit);
    font-weight: var(--dp-font-heading-weight, 700);
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.25;
    color: var(--dp-on-text);
}

.dp-on__step-intro {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dp-on-text-muted);
}

.dp-on__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--dp-on-text-muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.dp-on__back:hover {
    color: var(--dp-on-accent);
}

/* ── Étape 1 : les deux profils ──────────────────────────────────── */

.dp-on__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dp-on__choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Le reset de Hello Elementor met white-space: nowrap sur tout <button> :
       sans cela, un libellé long sort de la carte. */
    white-space: normal;
    gap: 8px;
    padding: 24px 22px;
    text-align: left;
    font-family: inherit;
    color: var(--dp-on-text);
    background: var(--dp-on-surface);
    border: 1.5px solid var(--dp-on-border);
    border-radius: var(--dp-on-card-radius, var(--dp-radius-md, 16px));
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.dp-on__choice:hover {
    /* color explicite : le thème force color:#fff sur tout button:hover, ce qui
       rendrait le libellé illisible sur ce fond clair. */
    color: var(--dp-on-text);
    border-color: var(--dp-on-accent);
    background: var(--dp-on-accent-soft);
    transform: translateY(-2px);
}

.dp-on__choice:hover .dp-on__choice-label,
.dp-on__choice:focus .dp-on__choice-label {
    color: var(--dp-on-text);
}

.dp-on__choice:hover .dp-on__choice-desc,
.dp-on__choice:focus .dp-on__choice-desc {
    color: var(--dp-on-text-muted);
}

.dp-on__choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--dp-on-accent);
    background: var(--dp-on-accent-soft);
    border-radius: 50%;
}

.dp-on__choice:hover .dp-on__choice-icon {
    background: var(--dp-on-surface);
}

.dp-on__choice-label {
    font-family: var(--dp-font-heading, inherit);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.dp-on__choice-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--dp-on-text-muted);
}

/* ── Étape 2 : listes de revendeurs ──────────────────────────────── */

.dp-on__sellers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.dp-on__seller > a,
.dp-on__seller > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    min-height: 96px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    color: var(--dp-on-text);
    background: var(--dp-on-surface);
    border: 1px solid var(--dp-on-border);
    border-radius: var(--dp-on-card-radius, var(--dp-radius-md, 16px));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.dp-on__seller > a:hover {
    border-color: var(--dp-on-accent);
    box-shadow: 0 8px 20px rgba(26, 51, 83, 0.1);
    transform: translateY(-2px);
}

.dp-on__seller--inactive > span {
    background: var(--dp-color-surface-alt, #fafafa);
    opacity: 0.75;
}

.dp-on__seller-logo {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.dp-on__seller-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dp-on__seller-note {
    font-size: 12px;
    line-height: 1.4;
    color: var(--dp-on-text-muted);
}

.dp-on__seller-note--muted {
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dp-on__empty {
    margin: 18px 0 0;
    padding: 20px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dp-on-text-muted);
    background: var(--dp-color-surface-alt, #fafafa);
    border-radius: var(--dp-radius-md, 16px);
}

.dp-on__notice {
    margin: 18px 0 0;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--dp-on-text);
    background: var(--dp-on-accent-soft);
    border-left: 3px solid var(--dp-on-accent);
    border-radius: var(--dp-radius-sm, 10px);
}

.dp-on__all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--dp-on-accent);
}

.dp-on__all-link:hover {
    color: var(--dp-on-accent-dark);
}

@media (max-width: 600px) {
    .dp-on__overlay {
        padding: 0;
    }

    .dp-on__modal {
        max-width: none;
        min-height: 100%;
        padding: 56px 20px 32px;
        border-radius: 0;
    }

    .dp-on__choices {
        grid-template-columns: 1fr;
    }
}

/* ── État de focus ────────────────────────────────────────────────
   Le thème repeint tout <button>:hover/:focus en aplat foncé
   (main.css → :is([type="button"], [type="submit"], button)). Les boutons de
   ce bloc gardent donc leur propre traitement, avec un anneau de focus
   visible au clavier. */

.dp-on__button:focus {
    color: #ffffff;
    background: var(--dp-on-accent-dark);
    border-color: var(--dp-on-accent-dark);
}

.dp-on__choice:focus {
    color: var(--dp-on-text);
    background: var(--dp-on-accent-soft);
    border-color: var(--dp-on-accent);
}

.dp-on__close:focus {
    color: var(--dp-on-text);
    background: var(--dp-on-accent-soft);
}

.dp-on__back:focus {
    color: var(--dp-on-accent);
    background: transparent;
    border-color: transparent;
}

.dp-on__button:focus-visible,
.dp-on__choice:focus-visible,
.dp-on__close:focus-visible,
.dp-on__back:focus-visible {
    outline: 3px solid var(--dp-on-accent);
    outline-offset: 2px;
}
