/* Schweizo Email — frontend.css — Swiss Bold Identity */

:root {
    --swz-red:      #D40000;
    --swz-red-dark: #AA0000;
    --swz-red-xdk:  #880000;
    --swz-black:    #0A0A0A;
    --swz-white:    #FFFFFF;
    --swz-grey:     #F2F2F2;
    --swz-grey2:    #E0E0E0;
    --swz-grey3:    #9A9A9A;
    --swz-gold:     #C8A96E;
    --swz-green:    #1A7A3A;
}

/* ── Base wrap ───────────────────────────────────────────────────── */
.de-wrap {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--swz-black);
    max-width: 980px;
    margin: 0 auto;
}

.de-step { animation: deFadeIn .2s ease; }
.de-hidden { display: none !important; }

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

/* ── HERO ────────────────────────────────────────────────────────── */
.de-hero {
    position: relative;
    background: var(--swz-black);
    overflow: hidden;
    padding: 72px 48px 64px;
    color: var(--swz-white);
    text-align: center;
}

/* Grande croix suisse en watermark CSS pur */
.de-hero::before,
.de-hero::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
/* Barre horizontale */
.de-hero::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 160px;
}
/* Barre verticale */
.de-hero::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 480px;
}

.de-hero-inner {
    position: relative;
    z-index: 2;
}

/* Badge eyebrow */
.de-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--swz-white);
    background: var(--swz-red);
    padding: 7px 18px;
    margin-bottom: 28px;
}

/* Titre principal — très bold, condensé, uppercase */
.de-hero-title {
    font-size: clamp(32px, 5.5vw, 58px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--swz-white);
}
.de-hero-title span {
    color: var(--swz-red);
    display: block;
}

.de-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    margin: 12px 0 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Barre de recherche ──────────────────────────────────────────── */
.de-search-box {
    display: flex;
    gap: 0;
    max-width: 580px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.de-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--swz-white);
    border: none;
    border-left: 5px solid var(--swz-red);
    overflow: hidden;
}
.de-input-wrap:focus-within {
    border-left-color: var(--swz-red-dark);
}

#de-local-part {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--swz-black);
    font-size: 17px;
    font-weight: 500;
    padding: 16px 14px;
    font-family: inherit;
}
#de-local-part::placeholder { color: #BCBCBC; }

.de-domain-suffix {
    padding: 0 16px 0 4px;
    color: var(--swz-red);
    font-weight: 900;
    font-size: 15px;
    white-space: nowrap;
    letter-spacing: -.01em;
}

#de-check-btn {
    background: var(--swz-red);
    color: var(--swz-white);
    border: none;
    padding: 16px 30px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
    white-space: nowrap;
}
#de-check-btn:hover  { background: var(--swz-red-dark); }
#de-check-btn:active { background: var(--swz-red-xdk); }

/* ── Résultat check ──────────────────────────────────────────────── */
.de-check-result {
    min-height: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.7);
}
.de-check-result.de-available { color: #5EE888; }
.de-check-result.de-taken     { color: rgba(255,255,255,.55); }
.de-check-result.de-error     { color: #FF6B6B; }
.de-check-result.de-loading   { color: rgba(255,255,255,.5); }

.de-check-ok { color: #5EE888; font-weight: 900; font-size: 16px; }
.de-check-no { color: rgba(255,255,255,.5); font-weight: 700; }

.de-reserve-btn {
    background: var(--swz-red);
    color: var(--swz-white);
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.de-reserve-btn:hover { background: var(--swz-red-dark); }

/* Spinner */
.de-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: rgba(255,255,255,.8);
    border-radius: 50%;
    animation: deSpin .7s linear infinite;
    vertical-align: middle;
}
@keyframes deSpin { to { transform: rotate(360deg); } }

/* ── Pills exemples ──────────────────────────────────────────────── */
.de-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.de-example-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
    background: transparent;
    transition: all .2s;
    letter-spacing: .02em;
}
.de-example-ad {
    text-decoration: none;
    cursor: pointer;
}
.de-example-ad:hover {
    border-color: var(--swz-red);
    color: var(--swz-white);
    background: rgba(212,0,0,.15);
}
.de-ext-icon { font-size: 10px; opacity: .6; margin-left: 3px; }

/* ── Step label ──────────────────────────────────────────────────── */
.de-step-label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--swz-grey3);
    margin: 40px 0 24px;
}
.de-step-label strong {
    color: var(--swz-red);
    font-weight: 900;
}

/* Séparateur rouge avant les étapes */
.de-step:not(#de-step-search)::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--swz-red);
    width: 48px;
    margin: 0 auto 32px;
}

/* ── Plans ───────────────────────────────────────────────────────── */
.de-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    margin-bottom: 32px;
    border: 2px solid var(--swz-black);
}

.de-plan {
    border-right: 2px solid var(--swz-black);
    padding: 36px 28px 28px;
    position: relative;
    background: var(--swz-white);
    transition: background .2s;
}
.de-plan:last-child { border-right: none; }
.de-plan:hover { background: var(--swz-grey); }

/* Plan featured = fond rouge */
.de-plan-featured {
    background: var(--swz-red) !important;
    color: var(--swz-white);
}
.de-plan-featured:hover { background: var(--swz-red-dark) !important; }

.de-plan-badge {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--swz-black);
    color: var(--swz-white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 14px;
    text-align: center;
}
.de-plan-featured .de-plan-badge {
    background: var(--swz-white);
    color: var(--swz-red);
}

.de-plan-name {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--swz-grey3);
    margin-bottom: 16px;
    margin-top: 8px;
}
.de-plan-featured .de-plan-name { color: rgba(255,255,255,.7); }

.de-plan-price {
    font-size: 42px;
    font-weight: 900;
    color: var(--swz-black);
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -.02em;
}
.de-plan-price span { font-size: 16px; color: var(--swz-grey3); font-weight: 400; }
.de-plan-featured .de-plan-price { color: var(--swz-white); }
.de-plan-featured .de-plan-price span { color: rgba(255,255,255,.6); }

.de-plan-indicative {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--swz-grey3);
    margin-bottom: 16px;
    margin-top: 4px;
}
.de-plan-featured .de-plan-indicative { color: rgba(255,255,255,.5); }

/* Ligne prix annuel/3ans */
.de-plan-billing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--swz-black);
    font-weight: 600;
}
.de-plan-featured .de-plan-billing-row { color: rgba(255,255,255,.9); }
.de-bill-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--swz-grey3);
    min-width: 54px;
}
.de-plan-featured .de-bill-label { color: rgba(255,255,255,.55); }

/* Badges remise */
.de-disc-pill {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
    background: rgba(0,0,0,.07);
    color: var(--swz-black);
}
.de-plan-featured .de-disc-pill {
    background: rgba(255,255,255,.2);
    color: var(--swz-white);
}
.de-disc-pill-3y {
    background: rgba(0,0,0,.12);
    color: var(--swz-black);
}
.de-plan-featured .de-disc-pill-3y {
    background: rgba(255,255,255,.3);
    color: var(--swz-white);
}

/* Features — checkmark croix suisse */
.de-plan-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 14px;
}
.de-plan-featured .de-plan-features {
    border-top-color: rgba(255,255,255,.2);
}
.de-plan-features li {
    font-size: 13px;
    color: #333;
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.4;
}
.de-plan-featured .de-plan-features li { color: rgba(255,255,255,.9); }

/* Croix suisse ✛ comme bullet */
.de-plan-features li::before {
    content: '✛';
    position: absolute;
    left: 0;
    color: var(--swz-red);
    font-weight: 900;
    font-size: 11px;
    top: 6px;
}
.de-plan-featured .de-plan-features li::before { color: var(--swz-white); }

/* Bouton choisir plan */
.de-select-plan-btn {
    width: 100%;
    background: var(--swz-black);
    color: var(--swz-white);
    border: none;
    padding: 13px 16px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.de-select-plan-btn:hover { background: #222; }
.de-plan-featured .de-select-plan-btn {
    background: var(--swz-white);
    color: var(--swz-red);
}
.de-plan-featured .de-select-plan-btn:hover {
    background: var(--swz-grey);
}

/* ── Options billing ─────────────────────────────────────────────── */
.de-billing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 580px;
    margin: 0 auto 28px;
    border: 2px solid var(--swz-black);
}

.de-billing-opt {
    padding: 24px 22px;
    cursor: pointer;
    transition: background .15s;
    display: block;
    border-right: 2px solid var(--swz-black);
    background: var(--swz-white);
}
.de-billing-opt:last-child { border-right: none; }
.de-billing-opt input { display: none; }
.de-billing-opt:hover { background: var(--swz-grey); }
.de-billing-active {
    background: var(--swz-black) !important;
    color: var(--swz-white);
}

.de-bill-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: inherit;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.de-bill-best {
    font-size: 9px;
    font-weight: 900;
    background: var(--swz-red);
    color: var(--swz-white);
    padding: 2px 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.de-bill-price {
    font-size: 28px;
    font-weight: 900;
    color: inherit;
    line-height: 1;
    letter-spacing: -.01em;
}
.de-bill-equiv {
    font-size: 11px;
    color: var(--swz-grey3);
    margin-top: 4px;
    font-weight: 500;
}
.de-billing-active .de-bill-equiv { color: rgba(255,255,255,.5); }
.de-bill-save-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--swz-green);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.de-billing-active .de-bill-save-badge { color: #88FFAA; }
.de-bill-note {
    font-size: 11px;
    color: var(--swz-grey3);
    margin-top: 10px;
    line-height: 1.5;
}
.de-billing-active .de-bill-note { color: rgba(255,255,255,.4); }

/* ── Formulaire contact ──────────────────────────────────────────── */
.de-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto 18px;
}

.de-form-group label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--swz-black);
    margin-bottom: 7px;
}

.de-form-group input {
    width: 100%;
    border: none;
    border-left: 4px solid var(--swz-grey2);
    background: var(--swz-grey);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
    color: var(--swz-black);
}
.de-form-group input:focus {
    outline: none;
    border-left-color: var(--swz-red);
    background: var(--swz-white);
}

.de-form-note {
    text-align: center;
    font-size: 12px;
    color: var(--swz-grey3);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ── Payment summary ─────────────────────────────────────────────── */
.de-payment-summary {
    background: var(--swz-black);
    padding: 32px 28px;
    max-width: 440px;
    margin: 0 auto 28px;
    text-align: center;
    position: relative;
}
/* Barre rouge top */
.de-payment-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--swz-red);
}

.de-summary-address {
    font-size: 24px;
    font-weight: 900;
    color: var(--swz-white);
    margin-bottom: 6px;
    letter-spacing: -.01em;
}
.de-summary-address span { color: var(--swz-red); }
.de-summary-plan {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 18px;
}
.de-summary-price {
    font-size: 52px;
    font-weight: 900;
    color: var(--swz-white);
    line-height: 1;
    letter-spacing: -.02em;
}
.de-summary-renewal {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: .04em;
}

/* ── Bouton PayPal ───────────────────────────────────────────────── */
.de-paypal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: var(--swz-red);
    color: var(--swz-white);
    border: none;
    padding: 18px 24px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.de-paypal-btn:hover { background: var(--swz-red-dark); }

/* Loading / Error */
.de-loading, .de-error {
    text-align: center;
    max-width: 440px;
    margin: 14px auto 0;
    font-size: 13px;
    font-weight: 600;
}
.de-loading { color: var(--swz-grey3); }
.de-error {
    background: #FFF0F0;
    border-left: 4px solid var(--swz-red);
    padding: 12px 16px;
    color: var(--swz-red-dark);
    text-align: left;
}

/* ── Success / Fail ──────────────────────────────────────────────── */
.de-success-icon, .de-fail-icon {
    width: 80px; height: 80px;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 24px;
    position: relative;
}
/* Croix suisse style pour icône succès */
.de-success-icon {
    background: var(--swz-red);
    color: var(--swz-white);
}
.de-fail-icon {
    background: var(--swz-grey);
    color: var(--swz-black);
}

#de-step-success, #de-step-failed {
    text-align: center;
    padding: 24px 20px 40px;
}
#de-step-success h3 {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--swz-black);
    margin-bottom: 8px;
}
#de-step-failed h3 {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--swz-black);
}
.de-success-sub {
    font-size: 14px;
    color: var(--swz-grey3);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
}

/* ── Boutons communs ─────────────────────────────────────────────── */
.de-primary-btn {
    display: block;
    max-width: 440px;
    margin: 0 auto;
    background: var(--swz-black);
    color: var(--swz-white);
    border: none;
    padding: 15px 28px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
    font-family: inherit;
}
.de-primary-btn:hover { background: #222; }

.de-back-btn {
    display: block;
    text-align: center;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: var(--swz-grey3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .15s;
    font-family: inherit;
}
.de-back-btn:hover { color: var(--swz-black); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .de-hero { padding: 48px 22px 44px; }
    .de-search-box { flex-direction: column; gap: 0; }
    .de-input-wrap { border-left-width: 5px; }
    #de-check-btn { padding: 15px; }
    .de-plans {
        grid-template-columns: 1fr;
        border: 2px solid var(--swz-black);
    }
    .de-plan { border-right: none; border-bottom: 2px solid var(--swz-black); }
    .de-plan:last-child { border-bottom: none; }
    .de-form-grid { grid-template-columns: 1fr; }
    .de-billing-options {
        grid-template-columns: 1fr;
        border: 2px solid var(--swz-black);
    }
    .de-billing-opt { border-right: none; border-bottom: 2px solid var(--swz-black); }
    .de-billing-opt:last-child { border-bottom: none; }
    .de-plan-price { font-size: 34px; }
    .de-summary-price { font-size: 40px; }
}
