/* ═══════════════════════════════════════════════════════════════
   UNIDET v2 — PORTAIL DÉBITEUR /payer/
   CSS autonome — scope : body.unidet-payer-body
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   01. RESET BODY + NEUTRALISATION ELEMENTOR
   ═══════════════════════════════════════════════ */
html, body.unidet-payer-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fafaf7 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #0a0e17 !important;
    overflow-x: hidden !important;
}
body.unidet-payer-body #wpadminbar { display: none !important; }
body.unidet-payer-body.admin-bar { top: 0 !important; }

body.unidet-payer-body header,
body.unidet-payer-body footer,
body.unidet-payer-body .site-header,
body.unidet-payer-body .site-footer,
body.unidet-payer-body .elementor-location-header,
body.unidet-payer-body .elementor-location-footer {
    display: none !important;
}

html body.unidet-payer-body #page,
html body.unidet-payer-body #content,
html body.unidet-payer-body #primary,
html body.unidet-payer-body #main,
html body.unidet-payer-body .site,
html body.unidet-payer-body .site-content,
html body.unidet-payer-body .entry-content,
html body.unidet-payer-body main,
html body.unidet-payer-body article,
html body.unidet-payer-body .elementor,
html body.unidet-payer-body .elementor-section,
html body.unidet-payer-body .elementor-container,
html body.unidet-payer-body .elementor-column,
html body.unidet-payer-body .elementor-column-wrap,
html body.unidet-payer-body .elementor-widget-wrap,
html body.unidet-payer-body .elementor-widget,
html body.unidet-payer-body .elementor-widget-container,
html body.unidet-payer-body .elementor-shortcode,
html body.unidet-payer-body .e-con,
html body.unidet-payer-body .e-con-inner,
html body.unidet-payer-body .e-con-boxed,
html body.unidet-payer-body .e-con-full {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════
   02. LAYOUT 2 COLONNES
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .unidet-reg-page {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 901px) {
    body.unidet-payer-body .unidet-reg-page {
        grid-template-columns: 36% 1fr;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
}

/* ═══════════════════════════════════════════════
   03. PANNEAU GAUCHE — Branding sombre
   Valeurs copiées EXACTEMENT de style.css
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .unidet-reg-left {
    position: relative;
    background: linear-gradient(160deg, #0a0e17 0%, #0d1420 60%, #111827 100%);
    overflow: hidden;
    display: flex;
}

body.unidet-payer-body .unidet-reg-left-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(160deg,
            rgba(10, 14, 23, 0.62) 0%,
            rgba(13, 20, 32, 0.42) 45%,
            rgba(17, 24, 39, 0.68) 100%),
        url('http://app.unidet.fr/wp-content/uploads/2026/09/unidet_auth_pages.webp');
    background-size: cover;
    background-position: 55% 50%;
    background-repeat: no-repeat;
    opacity: 1;
    filter: brightness(1.05) contrast(0.92) saturate(0.75);
    z-index: 0;
    pointer-events: none;
}

body.unidet-payer-body .unidet-reg-left-glow {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

body.unidet-payer-body .unidet-reg-left-inner {
    position: relative;
    z-index: 2;
    padding: 48px 52px 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

@media (min-width: 901px) {
    body.unidet-payer-body .unidet-reg-left-inner {
        padding: 42px 44px 32px;
        height: 100%;
        gap: 0;
    }
}

/* Logo */
body.unidet-payer-body .unidet-reg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 68px 0;
    align-self: flex-start;
    text-decoration: none;
}

body.unidet-payer-body .unidet-reg-brand-name { display: none !important; }

body.unidet-payer-body .unidet-reg-logo {
    width: 84px;
    height: 84px;
    min-width: 84px;
    max-width: 84px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

body.unidet-payer-body .unidet-reg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
}

/* Hero */
body.unidet-payer-body .unidet-reg-hero { margin: 0; padding: 0; }

body.unidet-payer-body .unidet-reg-tag {
    display: block;
    font-size: 11px;
    color: #d4a373;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(212, 163, 115, 0.35);
    width: 100%;
}

body.unidet-payer-body .unidet-reg-h1 {
    font-size: clamp(30px, 2.8vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.8px;
}

body.unidet-payer-body .unidet-reg-accent {
    color: #d4a373;
    font-weight: 500;
}

body.unidet-payer-body .unidet-reg-lead {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 380px;
}

body.unidet-payer-body .unidet-reg-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.unidet-payer-body .unidet-reg-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.4;
}

body.unidet-payer-body .unidet-reg-check {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    color: #0a0e17;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.35);
    line-height: 1;
}

/* Citation */
body.unidet-payer-body .unidet-reg-quote {
    margin: auto 0 0 0;
    padding: 24px 0 20px 0;
}

body.unidet-payer-body .unidet-reg-quote p {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 12px;
}

body.unidet-payer-body .unidet-reg-quote::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #d4a373, #b8895c);
    border-radius: 2px;
}

/* Footer 3 mots */
body.unidet-payer-body .unidet-reg-left-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

body.unidet-payer-body .unidet-reg-left-footer span {
    padding: 0 18px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

body.unidet-payer-body .unidet-reg-left-footer span:first-child { padding-left: 0; }
body.unidet-payer-body .unidet-reg-left-footer span:last-child  { padding-right: 0; }

body.unidet-payer-body .unidet-reg-left-footer span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
    font-size: 12px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════
   04. PANNEAU DROIT — Contenu
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .unidet-reg-right {
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: #fafaf7;
    box-sizing: border-box;
}

body.unidet-payer-body .unidet-reg-right-inner {
    width: 100%;
    max-width: 560px;
    margin: auto;
}

@media (min-width: 901px) {
    body.unidet-payer-body .unidet-reg-right {
        padding: 40px 56px;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
    }
    body.unidet-payer-body .unidet-reg-right-inner {
        max-width: 620px;
    }
}

/* Topbar */
body.unidet-payer-body .unidet-reg-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #64748b;
}

body.unidet-payer-body .unidet-reg-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a0824d;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted #a0824d;
    padding-bottom: 1px;
    transition: all 0.2s;
}

body.unidet-payer-body .unidet-reg-topbar-link:hover {
    color: #d4a373;
    border-bottom-color: #d4a373;
}

body.unidet-payer-body .unidet-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

body.unidet-payer-body .unidet-reg-topbar-link:hover .unidet-arrow {
    transform: translateX(3px);
}

/* Headings */
body.unidet-payer-body .unidet-reg-heading {
    text-align: center;
    margin-bottom: 24px;
}

body.unidet-payer-body .unidet-reg-h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0a0e17;
    margin: 0 0 8px;
    letter-spacing: -0.6px;
    line-height: 1.25;
}

body.unidet-payer-body .unidet-reg-h2-sub {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Submit */
body.unidet-payer-body .unidet-reg-submit,
body.unidet-payer-body .unidet-reg-submit.active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 24px !important;
    height: 52px !important;
    min-height: 52px !important;
    background: #0a0e17 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 11px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
}

body.unidet-payer-body .unidet-reg-submit.active:hover,
body.unidet-payer-body .unidet-reg-submit:hover:not(:disabled) {
    background: #1a1f2e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 22px rgba(10, 14, 23, 0.22) !important;
}

body.unidet-payer-body .unidet-reg-submit:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
}

body.unidet-payer-body .unidet-reg-submit .unidet-arrow { font-size: 16px; }
body.unidet-payer-body .unidet-reg-submit.active:hover .unidet-arrow { transform: translateX(3px); }

body.unidet-payer-body .unidet-reg-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 14px 0 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   05. STEPPER
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-stepper-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

body.unidet-payer-body .upayer-sc-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.25s;
    white-space: nowrap;
}

body.unidet-payer-body .upayer-sc-step.is-active { opacity: 1; }
body.unidet-payer-body .upayer-sc-step.is-done   { opacity: 0.85; }

body.unidet-payer-body .upayer-sc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.25s;
}

body.unidet-payer-body .upayer-sc-step.is-active .upayer-sc-num {
    background: #0a0e17;
    color: #d4a373;
    transform: scale(1.12);
}

body.unidet-payer-body .upayer-sc-step.is-done .upayer-sc-num {
    background: #27ae60;
    color: #fff;
    font-size: 0;
}

body.unidet-payer-body .upayer-sc-step.is-done .upayer-sc-num::before {
    content: '✓';
    font-size: 13px;
    font-weight: 800;
}

body.unidet-payer-body .upayer-sc-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

body.unidet-payer-body .upayer-sc-line {
    display: block;
    width: 32px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   06. FORMULAIRE — champ référence
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .unidet-reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.unidet-payer-body .unidet-reg-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0a0e17;
}

body.unidet-payer-body .unidet-reg-field .req { color: #e74c3c; }

body.unidet-payer-body #upayer-reference {
    width: 100%;
    font-family: 'Courier New', 'SF Mono', Consolas, monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 17px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #e5e9f0;
    padding: 16px 18px;
    box-sizing: border-box;
    color: #0a0e17;
    border-radius: 12px;
    transition: all 0.2s;
    outline: none;
}

body.unidet-payer-body #upayer-reference::placeholder {
    color: #cbd5e1;
    letter-spacing: 3px;
    font-weight: 700;
}

body.unidet-payer-body #upayer-reference:focus {
    background: #fff;
    border: 2px solid #0a0e17;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(10,14,23,0.06);
}

body.unidet-payer-body #upayer-reference.is-valid {
    border-color: #10b981;
    border-style: solid;
    background: #ecfdf5;
}

body.unidet-payer-body #upayer-reference.is-invalid {
    border-color: #ef4444;
    border-style: solid;
    background: #fef2f2;
}

body.unidet-payer-body .upayer-format-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}

body.unidet-payer-body .upayer-format-hint code {
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 5px;
    color: #475569;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

body.unidet-payer-body .unidet-error-msg {
    display: none;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   07. PANEL 2 — Détails du dossier
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-ref-card {
    text-align: center;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
}

body.unidet-payer-body .upayer-ref-card-label {
    color: rgba(255,255,255,0.55);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

body.unidet-payer-body .upayer-ref-card-value {
    color: #d4a373;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    word-break: break-all;
}

body.unidet-payer-body .upayer-main-amount {
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
}

body.unidet-payer-body .upayer-main-amount-label {
    color: rgba(255,255,255,0.9);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 4px;
}

body.unidet-payer-body .upayer-main-amount-value {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

body.unidet-payer-body .upayer-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

body.unidet-payer-body .upayer-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
}

body.unidet-payer-body .upayer-mini-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.unidet-payer-body .upayer-mini-icon-green { background: #ecfdf5; color: #059669; }

body.unidet-payer-body .upayer-mini-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    margin-bottom: 2px;
}

body.unidet-payer-body .upayer-mini-value {
    font-size: 13px;
    font-weight: 800;
    color: #0a0e17;
}

body.unidet-payer-body .upayer-mini-value.is-green { color: #059669; }

body.unidet-payer-body .upayer-info-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px 14px;
    margin-bottom: 8px;
}

body.unidet-payer-body .upayer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
}

body.unidet-payer-body .upayer-info-item:last-child { border-bottom: none; }

body.unidet-payer-body .upayer-info-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

body.unidet-payer-body .upayer-info-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

body.unidet-payer-body .upayer-info-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

body.unidet-payer-body .upayer-info-value {
    color: #0a0e17;
    font-weight: 800;
    font-size: 12px;
}

body.unidet-payer-body .upayer-info-value.is-gold { color: #a0824d; }

/* ═══════════════════════════════════════════════
   08. PANEL 3 — Choix du montant
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-remaining-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}

body.unidet-payer-body .upayer-remaining-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.unidet-payer-body .upayer-remaining-banner-icon {
    color: #d4a373;
    font-size: 16px;
    line-height: 1;
}

body.unidet-payer-body .upayer-remaining-banner-label {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.unidet-payer-body .upayer-remaining-banner-value {
    color: #d4a373;
    font-size: 18px;
    font-weight: 900;
}

body.unidet-payer-body .upayer-choice-head { margin-bottom: 8px; }

body.unidet-payer-body .upayer-choice-title {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0a0e17;
}

body.unidet-payer-body .upayer-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

body.unidet-payer-body .upayer-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    min-height: 54px;
    background: #fff;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    color: #0a0e17;
    outline: none;
    transition: all 0.15s;
}

body.unidet-payer-body .upayer-preset:hover {
    border-color: #0a0e17;
    background: #f8fafc;
    transform: translateY(-1px);
}

body.unidet-payer-body .upayer-preset.is-selected {
    border-color: #0a0e17;
    background: #0a0e17;
    color: #fff;
}

body.unidet-payer-body .upayer-preset.is-full {
    grid-column: 1 / -1;
    min-height: 58px;
}

body.unidet-payer-body .upayer-preset-pct {
    display: block;
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 3px;
}

body.unidet-payer-body .upayer-preset.is-selected .upayer-preset-pct {
    color: rgba(255,255,255,0.65);
}

body.unidet-payer-body .upayer-preset-amount {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: inherit;
}

body.unidet-payer-body .upayer-preset.is-selected .upayer-preset-amount {
    color: #d4a373;
}

body.unidet-payer-body .upayer-amount-input {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body.unidet-payer-body .upayer-amount-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
    border-right: 1.5px solid #e5e9f0;
    min-width: 48px;
}

body.unidet-payer-body .upayer-amount-input input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    background: transparent;
    color: #0a0e17;
    outline: none;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   09. ERREURS INLINE + RETOUR
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-inline-error {
    display: none;
    align-items: flex-start;
    gap: 8px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.5;
    margin: 14px 0;
}

body.unidet-payer-body .upayer-inline-error-icon {
    font-size: 15px;
    flex-shrink: 0;
}

body.unidet-payer-body .upayer-back-link {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    padding: 14px 0 6px;
    margin: 0 auto;
    transition: color 0.15s;
    font-family: inherit;
    text-align: center;
    box-shadow: none;
    outline: none;
}

body.unidet-payer-body .upayer-back-link:hover,
body.unidet-payer-body .upayer-back-link:focus,
body.unidet-payer-body .upayer-back-link:active {
    color: #0a0e17;
    background: transparent;
    text-decoration: none;
    transform: none;
}

/* ═══════════════════════════════════════════════
   10. SUCCÈS (PANEL 4)
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-success-wrap {
    text-align: center;
    padding: 0;
}

body.unidet-payer-body .upayer-success-hero { margin-bottom: 24px; }

body.unidet-payer-body .upayer-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 3px solid #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    box-shadow: 0 8px 24px rgba(16,185,129,0.22);
}

body.unidet-payer-body .upayer-success-title {
    font-size: 22px;
    font-weight: 800;
    color: #0a0e17;
    margin: 0 0 8px;
    line-height: 1.25;
}

body.unidet-payer-body .upayer-success-sub {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

body.unidet-payer-body .upayer-success-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px 18px;
    margin-bottom: 16px;
    text-align: left;
}

body.unidet-payer-body .upayer-success-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
    border-bottom: 1px solid #eef2f6;
}

body.unidet-payer-body .upayer-success-row:last-child { border-bottom: none; }

body.unidet-payer-body .upayer-success-row-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

body.unidet-payer-body .upayer-success-row-value {
    font-size: 14.5px;
    font-weight: 800;
    color: #0a0e17;
    text-align: right;
    word-break: break-word;
}

body.unidet-payer-body .upayer-success-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f8ff;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    color: #1a5276;
    line-height: 1.5;
    margin-bottom: 4px;
}

body.unidet-payer-body .upayer-success-note-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background: #fff;
    color: #0073aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

body.unidet-payer-body .upayer-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    margin-top: 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #0a0e17;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

body.unidet-payer-body .upayer-receipt-btn:hover {
    background: #0a0e17;
    border-color: #0a0e17;
    color: #d4a373;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10,14,23,0.15);
}

body.unidet-payer-body .upayer-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: upayerSpin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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

/* ═══════════════════════════════════════════════
   11. RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    body.unidet-payer-body .unidet-reg-page {
        display: block;
        height: auto;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
    }
    body.unidet-payer-body .unidet-reg-left {
        border-radius: 0 0 24px 24px;
        min-height: auto;
    }
    body.unidet-payer-body .unidet-reg-left-inner {
        padding: 32px 28px 30px;
        height: auto;
        gap: 20px;
        justify-content: flex-start;
    }
    body.unidet-payer-body .unidet-reg-brand {
        margin: 0 0 8px 0;
        justify-content: flex-start;
    }
    body.unidet-payer-body .unidet-reg-logo {
        width: 68px; height: 68px;
        min-width: 68px; max-width: 68px;
    }
    body.unidet-payer-body .unidet-reg-h1 { font-size: 26px; line-height: 1.2; }
    body.unidet-payer-body .unidet-reg-lead { font-size: 13.5px; margin-bottom: 18px; max-width: 100%; }
    body.unidet-payer-body .unidet-reg-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }
    body.unidet-payer-body .unidet-reg-feat { font-size: 12.5px; gap: 10px; }
    body.unidet-payer-body .unidet-reg-check { width: 24px; height: 24px; min-width: 24px; font-size: 11px; }
    body.unidet-payer-body .unidet-reg-quote {
        margin: 12px 0 0 0;
        padding: 18px 0 0 0;
        border-top: 1px solid rgba(212, 163, 115, 0.18);
    }
    body.unidet-payer-body .unidet-reg-quote p { font-size: 13.5px; margin: 0 0 10px; }
    body.unidet-payer-body .unidet-reg-left-footer {
        justify-content: flex-start;
        margin: 4px 0 0 0;
    }
    body.unidet-payer-body .unidet-reg-left-footer span {
        padding: 0 14px;
        font-size: 9.5px;
        letter-spacing: 2px;
    }
    body.unidet-payer-body .unidet-reg-left-footer span:first-child { padding-left: 0; }

    body.unidet-payer-body .unidet-reg-right {
        padding: 32px 28px 48px;
        height: auto;
        max-height: none;
        display: block;
        overflow: visible;
    }
    body.unidet-payer-body .unidet-reg-right-inner {
        max-width: 560px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    body.unidet-payer-body .unidet-reg-topbar { margin-bottom: 22px; justify-content: center; }
    body.unidet-payer-body .unidet-reg-heading { margin-bottom: 24px; }
    body.unidet-payer-body .unidet-reg-h2 { font-size: 22px; }
    body.unidet-payer-body .unidet-reg-h2-sub { font-size: 13px; }
    body.unidet-payer-body .upayer-sc-label { display: none; }
    body.unidet-payer-body .upayer-sc-line  { width: 24px; }
}

@media (max-width: 560px) {
    body.unidet-payer-body .unidet-reg-left { border-radius: 0 0 20px 20px; }
    body.unidet-payer-body .unidet-reg-left-inner { padding: 22px 20px 24px; gap: 14px; }
    body.unidet-payer-body .unidet-reg-logo { width: 56px; height: 56px; min-width: 56px; max-width: 56px; }
    body.unidet-payer-body .unidet-reg-tag {
        font-size: 9.5px;
        letter-spacing: 1.8px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    body.unidet-payer-body .unidet-reg-h1 { font-size: 22px; margin-bottom: 8px; }
    body.unidet-payer-body .unidet-reg-lead { font-size: 12.5px; margin-bottom: 14px; }
    body.unidet-payer-body .unidet-reg-features { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
    body.unidet-payer-body .unidet-reg-feat { font-size: 11.5px; gap: 8px; }
    body.unidet-payer-body .unidet-reg-check { width: 20px; height: 20px; min-width: 20px; font-size: 10px; }
    body.unidet-payer-body .unidet-reg-quote { display: none; }
    body.unidet-payer-body .unidet-reg-left-footer { justify-content: flex-start; margin-top: 2px; }
    body.unidet-payer-body .unidet-reg-left-footer span {
        padding: 0 10px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    body.unidet-payer-body .unidet-reg-right { padding: 28px 18px 40px; }
    body.unidet-payer-body .unidet-reg-right-inner { max-width: 100%; }

    body.unidet-payer-body .unidet-reg-topbar { margin-bottom: 18px; font-size: 12.5px; }
    body.unidet-payer-body .unidet-reg-heading { margin-bottom: 20px; }
    body.unidet-payer-body .unidet-reg-h2 { font-size: 20px; }
    body.unidet-payer-body .unidet-reg-h2-sub { font-size: 12.5px; }
    body.unidet-payer-body #upayer-reference {
        font-size: 15px;
        letter-spacing: 2px;
        padding: 14px;
    }
    body.unidet-payer-body .upayer-main-amount-value { font-size: 20px; }
    body.unidet-payer-body .upayer-ref-card-value { font-size: 14px; }
    body.unidet-payer-body .upayer-mini-grid { grid-template-columns: 1fr; }
    body.unidet-payer-body .upayer-success-title { font-size: 20px; }
    body.unidet-payer-body .upayer-success-icon { width: 68px; height: 68px; }
}

@media (min-width: 901px) and (max-height: 800px) {
    body.unidet-payer-body .unidet-reg-left-inner { padding: 32px 44px 24px; }
    body.unidet-payer-body .unidet-reg-brand { margin-bottom: 40px; }
    body.unidet-payer-body .unidet-reg-h1 { font-size: 30px; }
    body.unidet-payer-body .unidet-reg-right { padding: 24px 48px; }
    body.unidet-payer-body .unidet-reg-topbar { margin-bottom: 14px; }
    body.unidet-payer-body .unidet-reg-heading { margin-bottom: 14px; }
}

@media (min-width: 901px) and (max-height: 700px) {
    body.unidet-payer-body .unidet-reg-brand { margin-bottom: 28px; }
    body.unidet-payer-body .unidet-reg-h1 { font-size: 26px; }
    body.unidet-payer-body .unidet-reg-lead { margin-bottom: 20px; font-size: 13.5px; }
    body.unidet-payer-body .unidet-reg-features { gap: 10px; }
    body.unidet-payer-body .unidet-reg-quote p { font-size: 14px; }
}

/* ═══════════════════════════════════════════════
   12. ONGLETS PAIEMENT (bloc / échéance)
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-payment-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 20px;
}

body.unidet-payer-body .upayer-ptab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

body.unidet-payer-body .upayer-ptab:hover {
    color: #0a0e17;
}

body.unidet-payer-body .upayer-ptab.active {
    background: #fff;
    color: #0a0e17;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

body.unidet-payer-body .upayer-ptab-icon {
    font-size: 16px;
    line-height: 1;
}

body.unidet-payer-body .upayer-ptab-label {
    letter-spacing: 0.1px;
}

/* ═══════════════════════════════════════════════
   13. CARTES ÉCHÉANCIER
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-installment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

body.unidet-payer-body .upayer-installment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #fff;
    border: 1.5px solid #e5e9f0;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
}

body.unidet-payer-body .upayer-installment-card:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59,130,246,.15);
}

body.unidet-payer-body .upayer-installment-card.is-selected {
    border-color: #0a0e17;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    box-shadow: 0 8px 20px rgba(10,14,23,.22);
    transform: translateY(-2px);
}

body.unidet-payer-body .upayer-installment-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: #d4a373;
    color: #0a0e17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

body.unidet-payer-body .upayer-installment-months {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

body.unidet-payer-body .upayer-installment-num {
    font-size: 32px;
    font-weight: 900;
    color: #0a0e17;
    line-height: 1;
    letter-spacing: -1px;
}

body.unidet-payer-body .upayer-installment-unit {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.unidet-payer-body .upayer-installment-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.unidet-payer-body .upayer-installment-monthly {
    font-size: 15px;
    font-weight: 800;
    color: #0a0e17;
    font-variant-numeric: tabular-nums;
}

body.unidet-payer-body .upayer-installment-label {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* États sélectionnés : textes en blanc */
body.unidet-payer-body .upayer-installment-card.is-selected .upayer-installment-num,
body.unidet-payer-body .upayer-installment-card.is-selected .upayer-installment-monthly {
    color: #d4a373;
}
body.unidet-payer-body .upayer-installment-card.is-selected .upayer-installment-unit,
body.unidet-payer-body .upayer-installment-card.is-selected .upayer-installment-label {
    color: rgba(255,255,255,.55);
}

body.unidet-payer-body .upayer-installment-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 560px) {
    body.unidet-payer-body .upayer-installment-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   14. TRANSITIONS PANELS
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-panel:not([style*="display:none"]) {
    animation: upayerPanelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes upayerPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Montants qui s'animent au chargement */
body.unidet-payer-body .upayer-main-amount-value,
body.unidet-payer-body .upayer-remaining-banner-value,
body.unidet-payer-body .upayer-success-row-value {
    animation: upayerAmountIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes upayerAmountIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Hover subtil sur les badges de statut */
body.unidet-payer-body .upayer-sc-step.is-done .upayer-sc-num {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.unidet-payer-body .upayer-sc-step.is-done:hover .upayer-sc-num {
    transform: scale(1.12);
}


/* ═══════════════════════════════════════════════
   15. PLAN D'ÉCHÉANCE (panel 4)
   ═══════════════════════════════════════════════ */
body.unidet-payer-body .upayer-success-plan {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(15,23,42,.03);
}

body.unidet-payer-body .upayer-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f4f8;
    flex-wrap: wrap;
}

body.unidet-payer-body .upayer-plan-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0a0e17;
    letter-spacing: -0.1px;
}
body.unidet-payer-body .upayer-plan-title svg {
    color: #C9A227;
    flex-shrink: 0;
}

body.unidet-payer-body .upayer-plan-summary {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

body.unidet-payer-body .upayer-plan-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}
body.unidet-payer-body .upayer-plan-list::-webkit-scrollbar { width: 5px; }
body.unidet-payer-body .upayer-plan-list::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 3px;
}

body.unidet-payer-body .upayer-plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    background: #fafbfc;
    transition: all 0.15s;
}
body.unidet-payer-body .upayer-plan-item.is-paid {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #a7f3d0;
}
body.unidet-payer-body .upayer-plan-item.is-pending {
    background: #fff;
}

body.unidet-payer-body .upayer-plan-item-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
    background: #e2e8f0;
    color: #64748b;
}
body.unidet-payer-body .upayer-plan-item.is-paid .upayer-plan-item-num {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

body.unidet-payer-body .upayer-plan-item-body {
    flex: 1;
    min-width: 0;
}
body.unidet-payer-body .upayer-plan-item-label {
    font-size: 12px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.2;
}
body.unidet-payer-body .upayer-plan-item.is-paid .upayer-plan-item-label {
    color: #047857;
}
body.unidet-payer-body .upayer-plan-item-date {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

body.unidet-payer-body .upayer-plan-item-amount {
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    font-weight: 800;
    color: #0a0e17;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
body.unidet-payer-body .upayer-plan-item.is-paid .upayer-plan-item-amount {
    color: #047857;
}