/* Italiana Email — frontend.css */
/* Palette: bordeaux #8B1A2E + crème #FAF7F2 + or #C9A96E */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --de-primary:   #CE2B37;
    --de-primary2:  #a8202a;
    --de-gold:      #009246;
    --de-gold2:     #007538;
    --de-cream:     #F7FAF8;
    --de-cream2:    #E8F2EC;
    --de-dark:      #1C2B3A;
    --de-grey:      #6b7280;
    --de-green:     #009246;
    --de-white:     #ffffff;
    --de-radius:    14px;
    --de-shadow:    0 8px 40px rgba(206,43,55,.13);
}

/* ── Wrap ────────────────────────────────────────────────────────── */
.de-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--de-dark);
    max-width: 980px;
    margin: 0 auto;
}

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

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

/* ══════════════════════════════════════════════════════════════════
   HERO — impact Nashville x eleganza italiana
═══════════════════════════════════════════════════════════════════ */
.de-hero {
    position: relative;
    background: var(--de-cream);
    border: none;
    border-radius: var(--de-radius);
    overflow: hidden;
    padding: 72px 48px 60px;
    text-align: center;
}

/* Ligne décorative top */
.de-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--de-primary), var(--de-gold), var(--de-primary));
}

/* Watermark bold visible — inspiration Nashville */
.de-hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 900;
    letter-spacing: .04em;
    color: rgba(206,43,55,.07);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

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

/* Eyebrow badge */
.de-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--de-primary);
    border: 1.5px solid rgba(206,43,55,.3);
    background: rgba(206,43,55,.06);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

/* Titre massif — inspiration Nashville bold */
.de-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 18px;
    color: var(--de-dark);
    letter-spacing: -.01em;
}
.de-hero-title span {
    color: var(--de-primary);
    font-style: italic;
}

.de-hero-sub {
    font-size: 16px;
    color: #6b5c4e;
    margin: 0 0 38px;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Search box — grande et présente ────────────────────────────── */
.de-search-box {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto 20px;
    box-shadow: 0 6px 32px rgba(206,43,55,.15);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--de-cream2);
    transition: border-color .2s, box-shadow .2s;
}
.de-search-box:focus-within {
    border-color: var(--de-primary);
    box-shadow: 0 6px 40px rgba(206,43,55,.22);
}

.de-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--de-white);
    overflow: hidden;
}

#de-local-part {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--de-dark);
    font-size: 18px;
    font-weight: 500;
    padding: 18px 14px 18px 20px;
    font-family: 'Inter', sans-serif;
}
#de-local-part::placeholder { color: #bdb0a5; font-weight: 400; }

.de-domain-suffix {
    padding: 0 16px 0 2px;
    color: var(--de-primary);
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* Bouton CHECK — bold et visible comme Nashville */
#de-check-btn {
    background: var(--de-primary);
    color: var(--de-white);
    border: none;
    padding: 18px 32px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
#de-check-btn:hover  { background: var(--de-primary2); }
#de-check-btn:active { transform: scale(.98); }

/* ── Check result ────────────────────────────────────────────────── */
.de-check-result {
    min-height: 30px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.de-check-result.de-available { color: var(--de-green); }
.de-check-result.de-taken     { color: var(--de-primary); }
.de-check-result.de-error     { color: #c0392b; }
.de-check-result.de-loading   { color: #9b8f86; }

.de-check-ok { color: var(--de-green); font-weight: 800; }
.de-check-no { color: var(--de-primary); font-weight: 800; }

.de-reserve-btn {
    background: var(--de-primary);
    color: var(--de-white);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.de-reserve-btn:hover { background: var(--de-primary2); }

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

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

.de-example-pill {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--de-cream2);
    color: #7a6a5e;
    background: var(--de-white);
    transition: all .2s;
}
.de-example-ad {
    text-decoration: none;
    cursor: pointer;
}
.de-example-ad:hover {
    border-color: var(--de-primary);
    color: var(--de-primary);
    background: rgba(206,43,55,.04);
}
.de-ext-icon { font-size: 10px; opacity: .6; margin-left: 3px; }

/* ── Step label ──────────────────────────────────────────────────── */
.de-step-label {
    text-align: center;
    font-size: 16px;
    color: var(--de-grey);
    margin: 36px 0 24px;
}
.de-step-label strong { color: var(--de-dark); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════
   PLANS
═══════════════════════════════════════════════════════════════════ */
.de-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.de-plan {
    border: 2px solid var(--de-cream2);
    border-radius: var(--de-radius);
    padding: 32px 26px;
    position: relative;
    background: var(--de-white);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.de-plan:hover {
    border-color: rgba(206,43,55,.3);
    box-shadow: var(--de-shadow);
    transform: translateY(-3px);
}
.de-plan-featured {
    border-color: var(--de-primary);
    box-shadow: 0 0 0 4px rgba(206,43,55,.08);
    background: #fff9f9;
}

.de-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--de-primary);
    color: var(--de-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.de-plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--de-primary);
    margin-bottom: 10px;
}

.de-plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--de-dark);
    margin-bottom: 2px;
}
.de-plan-price span { font-size: 14px; color: var(--de-grey); font-weight: 400; }

.de-plan-indicative {
    font-size: 11px;
    color: #b0a496;
    margin-bottom: 14px;
}

.de-plan-billing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 7px;
    color: var(--de-dark);
}
.de-bill-label { color: var(--de-grey); min-width: 50px; }

.de-disc-pill {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}
.de-disc-pill-3y { background: #fef3c7; color: #92400e; }

.de-plan-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 22px;
}
.de-plan-features li {
    font-size: 13px;
    color: #4a3f38;
    padding: 5px 0 5px 22px;
    position: relative;
    border-bottom: 1px solid var(--de-cream2);
}
.de-plan-features li:last-child { border-bottom: none; }
.de-plan-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--de-gold);
    font-size: 10px;
    top: 6px;
}

.de-select-plan-btn {
    width: 100%;
    background: var(--de-cream);
    color: var(--de-dark);
    border: 2px solid var(--de-cream2);
    border-radius: 8px;
    padding: 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}
.de-select-plan-btn:hover {
    background: var(--de-dark);
    color: var(--de-white);
    border-color: var(--de-dark);
}
.de-plan-featured .de-select-plan-btn {
    background: var(--de-primary);
    color: var(--de-white);
    border-color: var(--de-primary);
}
.de-plan-featured .de-select-plan-btn:hover { background: var(--de-primary2); border-color: var(--de-primary2); }

/* ══════════════════════════════════════════════════════════════════
   BILLING OPTIONS
═══════════════════════════════════════════════════════════════════ */
.de-billing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 580px;
    margin: 0 auto 28px;
}

.de-billing-opt {
    border: 2px solid var(--de-cream2);
    border-radius: var(--de-radius);
    padding: 22px;
    cursor: pointer;
    transition: all .2s;
    display: block;
    background: var(--de-white);
}
.de-billing-opt input { display: none; }
.de-billing-opt:hover { border-color: rgba(206,43,55,.3); }
.de-billing-active {
    border-color: var(--de-primary);
    background: rgba(206,43,55,.03);
    box-shadow: 0 0 0 3px rgba(206,43,55,.07);
}

.de-bill-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--de-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.de-bill-best {
    font-size: 10px;
    font-weight: 800;
    background: var(--de-primary);
    color: var(--de-white);
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.de-bill-price { font-size: 24px; font-weight: 800; color: var(--de-dark); }
.de-bill-equiv { font-size: 12px; color: var(--de-grey); margin-top: 3px; }
.de-bill-save-badge { font-size: 12px; font-weight: 700; color: var(--de-green); margin-top: 5px; }
.de-bill-note { font-size: 11px; color: #b0a496; margin-top: 10px; }

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

.de-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b5c4e;
    margin-bottom: 7px;
}

.de-form-group input {
    width: 100%;
    border: 2px solid var(--de-cream2);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: var(--de-white);
    color: var(--de-dark);
}
.de-form-group input:focus {
    outline: none;
    border-color: var(--de-primary);
    box-shadow: 0 0 0 3px rgba(206,43,55,.08);
}

.de-form-note {
    text-align: center;
    font-size: 13px;
    color: #9b8f86;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   PAYMENT SUMMARY
═══════════════════════════════════════════════════════════════════ */
.de-payment-summary {
    background: var(--de-cream);
    border: 2px solid var(--de-cream2);
    border-radius: var(--de-radius);
    padding: 28px;
    max-width: 440px;
    margin: 0 auto 28px;
    text-align: center;
}
.de-summary-address {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--de-primary);
    margin-bottom: 8px;
}
.de-summary-plan    { font-size: 14px; color: var(--de-grey); margin-bottom: 12px; }
.de-summary-price   { font-size: 38px; font-weight: 900; color: var(--de-dark); }
.de-summary-renewal { font-size: 13px; color: #9b8f86; margin-top: 10px; }

/* ── PayPal button ───────────────────────────────────────────────── */
.de-paypal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #0070ba;
    color: var(--de-white);
    border: none;
    border-radius: 10px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.de-paypal-btn:hover { background: #005ea6; }

.de-loading, .de-error {
    text-align: center;
    max-width: 440px;
    margin: 14px auto 0;
    font-size: 14px;
}
.de-loading { color: #9b8f86; }
.de-error   { color: var(--de-primary); }

/* ── Success / Fail ──────────────────────────────────────────────── */
.de-success-icon, .de-fail-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px auto 24px;
}
.de-success-icon { background: #dcfce7; color: var(--de-green); }
.de-fail-icon    { background: #fee2e2; color: var(--de-primary); }

#de-step-success, #de-step-failed { text-align: center; padding: 24px; }
#de-step-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--de-dark);
}
#de-step-failed h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--de-dark);
}
.de-success-sub { font-size: 14px; color: var(--de-grey); }

/* ── Boutons communs ─────────────────────────────────────────────── */
.de-primary-btn {
    display: block;
    max-width: 440px;
    margin: 0 auto;
    background: var(--de-primary);
    color: var(--de-white);
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.de-primary-btn:hover { background: var(--de-primary2); }

.de-back-btn {
    display: block;
    text-align: center;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: #b0a496;
    font-size: 13px;
    cursor: pointer;
    transition: color .2s;
    font-family: 'Inter', sans-serif;
}
.de-back-btn:hover { color: var(--de-dark); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .de-hero { padding: 48px 24px 40px; }
    .de-search-box {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
        box-shadow: none;
        border: none;
        gap: 10px;
    }
    .de-input-wrap {
        border-radius: 10px;
        border: 2px solid var(--de-cream2);
        box-shadow: 0 4px 20px rgba(206,43,55,.1);
    }
    .de-search-box:focus-within .de-input-wrap { border-color: var(--de-primary); }
    #de-check-btn {
        border-radius: 10px;
        padding: 16px;
        width: 100%;
    }
    .de-form-grid { grid-template-columns: 1fr; }
    .de-billing-options { grid-template-columns: 1fr; }
    .de-plans { grid-template-columns: 1fr; }
}
