/* Global public redesign v2 */
body.public-page {
    background:
        radial-gradient(980px 430px at 8% -12%, rgba(20, 184, 166, 0.14), transparent 60%),
        radial-gradient(880px 380px at 92% -10%, rgba(209, 154, 79, 0.2), transparent 58%),
        linear-gradient(180deg, #f5f8fd 0%, #edf3fb 100%);
    color: #0f172a;
}

main.container,
main .container {
    position: relative;
    z-index: 1;
}

/* Shared hero blocks */
body.public-page .hero-lite,
body.public-page .apropos-header,
body.public-page .contact-header,
body.public-page .request-header {
    border-radius: 28px !important;
    border: 1px solid #cad9ec !important;
    color: #f8fbff !important;
    background: linear-gradient(135deg, #0b1324 0%, #111e38 52%, #1d3a63 100%) !important;
    box-shadow: 0 18px 36px rgba(11, 19, 36, 0.28) !important;
}

body.public-page .hero-lite p,
body.public-page .apropos-header p,
body.public-page .contact-header p,
body.public-page .request-header p {
    color: rgba(236, 245, 255, 0.88) !important;
}

/* Shared cards */
body.public-page .apropos-section,
body.public-page .contact-card,
body.public-page .direct-card,
body.public-page .request-card,
body.public-page .card-shell,
body.public-page .intro-platform,
body.public-page .reviews,
body.public-page .zone-card,
body.public-page .review-card {
    border-color: #cddded !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08) !important;
}

/* Listings and product cards */
body.public-page .listing-grid {
    gap: 1.45rem !important;
}

body.public-page .immo-tile {
    border: 1px solid #c9d8eb !important;
    border-radius: 20px !important;
    background: #dfe8f5 !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

body.public-page .immo-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2) !important;
}

body.public-page .immo-overlay,
body.public-page .immo-tile-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.84) 58%, rgba(15, 23, 42, 0.95) 100%) !important;
}

/* Ensure product images are consistently cropped and centered inside cards. */
body.public-page .immo-tile img,
body.public-page .product-poster,
body.public-page .wood-card .img,
body.public-page .main-image {
    object-position: center !important;
    display: block;
}

body.public-page .immo-price {
    color: #f7cf95 !important;
}

/* About / trust / values */
body.public-page .trust,
body.public-page .chiffres {
    background: linear-gradient(135deg, #0b1324 0%, #111e38 55%, #1c3558 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.42) !important;
}

body.public-page .valeur-card {
    border-color: #d4e0ef !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%) !important;
}

/* Forms */
body.public-page .form-control,
body.public-page .form-select {
    border: 1px solid #c7d7ea !important;
    border-radius: 12px !important;
    background-color: #fbfdff;
}

body.public-page .form-control:focus,
body.public-page .form-select:focus {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.14) !important;
}

body.public-page .hint-box {
    background: #eff5ff !important;
    border: 1px solid #cedef3 !important;
    color: #1e3a5f !important;
}

/* Buttons */
body.public-page .btn-primary,
body.public-page .btn-send {
    background: linear-gradient(120deg, #d19a4f, #9f6f2f) !important;
    border-color: #8d6129 !important;
    color: #fff !important;
}

body.public-page .btn-primary:hover,
body.public-page .btn-send:hover {
    filter: brightness(1.07);
}

body.public-page .btn-dark {
    background: #0f172a !important;
    border-color: #0f172a !important;
}

/* Detail page specific */
body.public-page .hero-image {
    border: 1px solid #c7d8ec !important;
    border-radius: 16px !important;
}

body.public-page .detail-item {
    border: 1px solid #d0deee !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
}

body.public-page .badge-ref {
    background: #ecf4ff !important;
    color: #1f3b71 !important;
    border: 1px solid #ccddf2 !important;
}

body.public-page .bottom-cta {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
    border-top: 1px solid #c8d8eb !important;
}

/* Accessibility and motion */
body.public-page .reveal {
    transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.public-page a:focus-visible,
body.public-page button:focus-visible,
body.public-page input:focus-visible,
body.public-page select:focus-visible,
body.public-page textarea:focus-visible {
    outline: 3px solid rgba(30, 58, 138, 0.34);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    body.public-page .hero-lite,
    body.public-page .apropos-header,
    body.public-page .contact-header,
    body.public-page .request-header {
        border-radius: 22px !important;
    }
}
