.lp27-stage .lp27-footer {
    background: radial-gradient(ellipse at 0 0, rgba(255, 138, 61, .07), transparent 52%), var(--oc-bg);
    border-top: 1px solid var(--oc-line);
}

.lp27-footer > .lp-newsletter {
    grid-column: 1 / -1;
    min-width: 0;
    padding-block: 1rem;
    border-block-start: 1px solid rgba(255, 255, 255, .18);
}

.lp27-footer .lp27-footer__identity {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.lp27-footer .lp27-footer__brand {
    align-self: center;
    width: 5.25rem;
    margin-bottom: .2rem;
}
.lp27-footer .lp27-footer__brand .lp27-pinede-emblem { width: 100%; }

.lp27-footer .lp27-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--oc-muted);
    transition: color .18s ease;
}

.lp27-footer .lp27-footer__contact span {
    min-width: 0;
    color: inherit;
}

.lp27-footer .lp27-footer__contact .lp27-icon {
    width: 1.9rem;
    height: 1.9rem;
    padding: .3rem;
    border: 1px solid rgba(255, 138, 61, .2);
    border-radius: .5rem;
    background: rgba(255, 138, 61, .08);
    color: var(--oc-orange);
}

.lp27-footer address.lp27-footer__contact {
    align-items: flex-start;
}

.lp27-footer .lp27-footer__social {
    gap: .45rem;
    margin-top: .4rem;
}

.lp27-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.4rem;
    padding: .35rem .65rem;
    border: 1px solid var(--oc-line);
    border-radius: 100px;
    background: var(--oc-surface);
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.lp27-footer__social a:is(:hover, :focus-visible) {
    border-color: var(--oc-orange);
    color: var(--oc-orange);
    text-decoration: none;
}

.lp27-footer__social a:hover {
    transform: translateY(-2px);
}

.lp27-footer__social .lp27-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--oc-orange);
}

.lp27-footer__section h2::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 2px;
    margin-top: .65rem;
    border-radius: 1px;
    background: var(--oc-orange);
}

.lp27-footer .lp27-footer__section a {
    transition: color .18s ease;
}

.lp27-footer :is(.lp27-footer__map-link, .lp27-footer__availability-link) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

:is(.lp27-footer__map-link, .lp27-footer__availability-link) .lp27-icon {
    width: 1rem;
    height: 1rem;
    color: var(--oc-orange);
}

.lp27-footer .lp27-footer__quality {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp27-footer__quality-defs { position: absolute; }

.lp27-footer .lp27-footer__quality-link {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .3rem .55rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    background: transparent;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lp27-footer .lp27-footer__quality-link:is(:hover, :focus-visible) {
    border-color: var(--oc-orange);
    box-shadow: 0 0 0 1px var(--oc-orange);
    transform: translateY(-2px) scale(1.035);
}

.lp27-footer .lp27-footer__quality-link:focus-visible {
    outline: 2px solid var(--oc-orange);
    outline-offset: 3px;
}

/* Crop the supplied 643 × 120 signature and adapt its colours to the blue footer. */
.lp27-footer__quality-logo {
    --lp27-quality-scale: .61;
    display: block;
    width: calc(var(--lp27-quality-width) * var(--lp27-quality-scale));
    height: calc(108px * var(--lp27-quality-scale));
    background: url(footer-logos-qualite.webp) no-repeat;
    background-size: calc(643px * var(--lp27-quality-scale)) auto;
    background-position: calc(0px - var(--lp27-quality-x) * var(--lp27-quality-scale)) calc(0px - var(--lp27-quality-y) * var(--lp27-quality-scale));
    filter: url(#lp27-quality-on-blue);
}

.lp27-footer__quality-logo--occitanie { --lp27-quality-x: 137px; --lp27-quality-y: 6px; --lp27-quality-width: 110px; }
.lp27-footer__quality-logo--tourisme { --lp27-quality-x: 260px; --lp27-quality-y: 6px; --lp27-quality-width: 116px; }
.lp27-footer__quality-logo--camping { --lp27-quality-x: 381px; --lp27-quality-y: 3px; --lp27-quality-width: 262px; }

.lp27-footer__membership {
    margin-inline-start: auto;
}

.lp27-footer .lp27-footer__membership-link,
.lp27-footer .lp27-footer__membership-link:is(:hover, :focus-visible) {
    gap: .22rem;
    color: var(--oc-orange);
    text-decoration: none;
}

.lp27-footer__membership-label {
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.lp27-footer__membership-logo {
    width: 9rem;
    aspect-ratio: 300 / 103;
    background: currentColor;
    mask: url(footer-logo-fnhpa.png) center / contain no-repeat;
}

.lp27-footer__camping {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
}

.lp27-footer__version {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .5rem;
    color: var(--oc-orange);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lp27-footer__camping-name { min-width: 0; }
.lp27-footer__name { white-space: nowrap; }

.lp27-footer__at,
.lp27-footer__rating { color: var(--oc-orange); }

.lp27-footer__at { font-weight: 700; }

.lp27-footer__rating {
    margin-inline-start: .12em;
    font-size: .73em;
    line-height: 0;
    vertical-align: super;
}

.lp27-footer .lp27-footer__signature {
    align-items: center;
    gap: .18rem .65rem;
}

.lp27-footer__signature small + small {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.lp27-footer__version::after,
.lp27-footer__signature small + small::before {
    content: '';
    flex: 0 0 .35rem;
    width: .35rem;
    height: .35rem;
    border-radius: 50%;
    background: var(--oc-orange);
}

.lp27-footer__version::after { background: var(--oc-blue); }

.lp27-footer .lp27-footer__credit {
    display: inline;
    text-decoration: none;
}

.lp27-footer__credit img {
    display: inline-block;
    width: 3.4rem;
    height: auto;
    margin-inline-start: .2rem;
    vertical-align: middle;
}

/* Keep the legal links clear of the fixed back-to-top shortcut. */
.lp27-footer .lp27-footer__links {
    padding-inline-end: max(0px, 9.9rem - clamp(1.2rem, 5vw, 6rem));
}

@media (max-width: 600px) {
    .lp27-footer .lp27-footer__links {
        padding-inline-end: max(0px, 4.05rem - clamp(1.2rem, 5vw, 6rem));
    }
}

@media (max-width: 370px) {
    .lp27-stage .lp27-footer {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp27-footer :is(.lp27-footer__contact, .lp27-footer__social a, .lp27-footer__section a, .lp27-footer__quality-link) {
        transition: none;
        transform: none;
    }

    .lp27-footer .lp27-footer__quality-link:is(:hover, :focus-visible) { transform: none; }
}
