/* ═══════════════════════════════════
   BLOC CONTACT — SECTION + FORM
/* ═══════════════════════════════════ */

.premium-footer {
    background: #F9F7F2;
    color: #070B0F;
    padding: 120px 0 80px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 100px;
}

/* Left side: Rich Info */
.footer-side-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.brand-tagline {
    font-size: 17px;
    color: rgba(7, 11, 15, 0.85);
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 400px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

/* ══ Footer social icons: golden style (ProStables) ══ */
.social-links .btn-social {
    background: var(--color-secondary) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-secondary) !important;
}

.social-links .btn-social:hover {
    background: var(--color-primary) !important;
    color: var(--color-secondary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(154, 125, 92, 0.3) !important;
}

/* ══ Footer social icons: teal style (ProTrot) ══ */
.mode-protrot .social-links .btn-social {
    background: var(--color-protrot-secondary) !important;
    color: white !important;
    border-color: var(--color-protrot-secondary) !important;
}

.mode-protrot .social-links .btn-social:hover {
    background: var(--color-protrot-primary) !important;
    border-color: var(--color-protrot-primary) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(36, 187, 155, 0.35) !important;
}


.made-in-france {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Right side: Contact side */
.footer-contact-wrap {
    width: 650px;
    position: relative;
}

.footer-contact-card {
    width: 100%;
    background: #FFF;
    border-radius: 32px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), 0 30px 60px rgba(0, 0, 0, 0.04);
    color: #0A1118;
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    perspective: 1500px;
}

/* ENVELOPE ANIMATION FIX */
.card-content-to-fade {
    transition: opacity 0.4s;
}

.footer-contact-card.is-sending .card-content-to-fade {
    opacity: 0;
}

.card-fold-flap {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: 50%;
    background: #f8f8f8;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transform: rotateX(-180deg);
    z-index: 10;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.footer-contact-card.is-folding .card-fold-flap {
    opacity: 1;
    transform: rotateX(0deg);
}

.footer-contact-card.is-folding {
    background: #fdfdfd;
    box-shadow: none;
    transform: translateY(0) rotateX(10deg);
}

.envelope-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(3);
    width: 140px;
    height: auto;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
}

.footer-contact-card.is-stamped .envelope-stamp {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-contact-card.is-flying {
    animation: cardFlyRight 1.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes cardFlyRight {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(-10%) translateX(1500px) rotate(15deg);
        opacity: 0;
        filter: blur(20px);
    }
}

.card-header-compact {
    margin-bottom: 35px;
}

.card-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-contact-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0;
    color: #0A1118;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
}

/* NL Form */
.nl-form {
    font-size: 16px;
    line-height: 2.2;
    color: #0A1118;
    font-weight: 400;
}

.nl-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.nl-row-one-line {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.nl-row-sep {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.nl-select.is-protrot {
    color: #19826c !important;
    border-bottom-color: rgba(25, 130, 108, 0.3) !important;
}

.nl-select:not(.is-protrot) {
    color: #9a7d5c !important;
    border-bottom-color: rgba(154, 125, 92, 0.3) !important;
}

.nl-submit-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.btn-nl-submit {
    background: #0E0338;
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(14, 3, 56, 0.15);
}

.btn-nl-submit:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-accent-glow);
}

/* Success Message */
.success-message {
    position: absolute;
    inset: 0;
    background: #FFF;
    border-radius: 40px;
    padding: 50px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.success-message.visible {
    display: flex;
    animation: fadeIn 0.5s forwards;
}

.success-icon-badge {
    width: 80px;
    height: 80px;
    background: rgba(184, 157, 125, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.success-message h4 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.success-message p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 350px;
    line-height: 1.6;
}

.success-btn-reset {
    background: transparent;
    border: 2px solid var(--color-secondary);
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Validation Errors */
.has-error {
    border-bottom-color: #ff4d4d !important;
    color: #ff4d4d !important;
}

.has-error::placeholder {
    color: #ff4d4d !important;
    opacity: 0.8;
}

.nl-editable.has-error:empty:before {
    content: attr(data-placeholder);
    color: #ff4d4d !important;
}

.nl-editable.has-error {
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        text-align: center;
    }

    .footer-side-info {
        flex: none;
        width: 100%;
        align-items: center;
    }

    .contact-grid {
        justify-items: center;
        width: 100%;
    }

    .footer-contact-wrap {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .premium-footer {
        padding: 60px 0 40px !important;
    }

    .footer-inner {
        padding: 0 15px !important;
        gap: 40px !important;
    }

    .contact-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .brand-tagline {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 35px !important;
    }

    .footer-contact-card {
        padding: 30px 20px !important;
        border-radius: 24px !important;
    }

    .footer-contact-card h3 {
        font-size: 22px !important;
    }

    .nl-form {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .nl-row {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .nl-row-one-line {
        flex-wrap: wrap !important;
        white-space: normal !important;
        overflow: visible !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }

    .nl-row-sep {
        gap: 6px !important;
        margin-top: 10px !important;
    }

    .nl-input {
        font-size: 15px !important;
    }

    .nl-select {
        font-size: 15px !important;
    }

    .nl-editable {
        font-size: 15px !important;
    }

    .nl-submit-wrap {
        margin-top: 25px !important;
    }

    .btn-nl-submit {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 30px !important;
    }
}
