/* Footer mobile — accordéons, liens légaux, réseaux sociaux */

.footer-mobile-shop {
    display: none;
}

@media (max-width: 768px) {
    body:not(.admin-page) .footer-desktop {
        display: none;
    }

    body:not(.admin-page) .footer {
        padding: 0;
        border-top: none;
        background: var(--mobile-footer-bg, #f5f0e8);
    }

    body:not(.admin-page) .footer-mobile-shop {
        display: block;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    }

    /* Espace sous le footer quand une barre fixe occupe le bas de l'écran */
    body:not(.admin-page).has-home-sticky-cta .footer-mobile-shop,
    body:not(.admin-page):has(.home-sticky-cta.is-visible) .footer-mobile-shop,
    body:not(.admin-page).has-product-mobile-cta .footer-mobile-shop,
    body:not(.admin-page):has(.pr-mobile-cta) .footer-mobile-shop,
    body:not(.admin-page).has-reservation-mobile-bar .footer-mobile-shop,
    body:not(.admin-page):has(.reservation-mobile-bar.is-visible) .footer-mobile-shop {
        padding-bottom: calc(24px + 80px + env(safe-area-inset-bottom, 0));
    }

    body:not(.admin-page) .footer-mobile-accordion {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    body:not(.admin-page) .footer-accordion-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    body:not(.admin-page) .footer-accordion-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 0;
        border: none;
        background: transparent;
        font: inherit;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary, #1a1a1a);
        text-align: left;
        cursor: pointer;
    }

    body:not(.admin-page) .footer-accordion-trigger i {
        font-size: 0.85rem;
        transition: transform 0.25s ease;
        color: var(--text-muted, #666);
    }

    body:not(.admin-page) .footer-accordion-item.is-open .footer-accordion-trigger i {
        transform: rotate(180deg);
    }

    body:not(.admin-page) .footer-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    body:not(.admin-page) .footer-accordion-item.is-open .footer-accordion-panel {
        max-height: 480px;
    }

    body:not(.admin-page) .footer-accordion-panel-inner {
        padding: 0 0 18px;
    }

    body:not(.admin-page) .footer-accordion-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body:not(.admin-page) .footer-accordion-links a {
        color: var(--text-muted, #555);
        text-decoration: none;
        font-size: 0.95rem;
        text-transform: none;
        letter-spacing: normal;
    }

    body:not(.admin-page) .footer-accordion-links a:hover {
        color: var(--accent, #e68b77);
        transform: none;
    }

    body:not(.admin-page) .footer-accordion-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
        color: var(--text-muted, #555);
        line-height: 1.5;
    }

    body:not(.admin-page) .footer-accordion-contact a {
        color: inherit;
        text-decoration: none;
    }

    body:not(.admin-page) .footer-mobile-social {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
    }

    body:not(.admin-page) .footer-mobile-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: var(--text-primary, #1a1a1a);
        text-decoration: none;
        font-size: 1.1rem;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    body:not(.admin-page) .footer-mobile-social a:hover {
        color: var(--accent, #e68b77);
        transform: translateY(-2px);
    }

    body:not(.admin-page) .footer-mobile-legal {
        margin-top: 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    body:not(.admin-page) .footer-mobile-legal-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 16px;
    }

    body:not(.admin-page) .footer-mobile-legal a {
        color: var(--text-muted, #666);
        text-decoration: none;
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: normal;
    }

    body:not(.admin-page) .footer-mobile-legal a:hover {
        color: var(--text-primary, #1a1a1a);
    }

    body:not(.admin-page) .footer-mobile-copy {
        margin: 20px 0 0;
        font-size: 0.75rem;
        color: var(--text-muted, #888);
        text-align: center;
    }

    body:not(.admin-page) .whatsapp-button {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #fff;
        color: #25d366;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        font-size: 1.4rem;
    }

    body:not(.admin-page) .whatsapp-button:hover {
        background: #fff;
        color: #25d366;
    }

    body:not(.admin-page).back-to-top-visible:not(.has-home-sticky-cta):not(.has-product-mobile-cta):not(.has-reservation-mobile-bar) .whatsapp-button {
        bottom: 74px;
    }
}

@media (min-width: 769px) {
    body:not(.admin-page) .footer-mobile-shop {
        display: none;
    }

    body:not(.admin-page) .footer {
        padding: 0;
        border-top: none;
        background: var(--mobile-footer-bg, #f5f0e8);
    }

    body:not(.admin-page) .footer-desktop {
        padding: 48px 0 56px;
    }

    body:not(.admin-page) .footer-desktop-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 40px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 40px;
    }

    body:not(.admin-page) .footer-desktop-heading {
        margin: 0 0 16px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary, #1a1a1a);
        text-transform: none;
        letter-spacing: normal;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-links a {
        color: var(--text-muted, #555);
        text-decoration: none;
        font-size: 0.95rem;
        text-transform: none;
        letter-spacing: normal;
        transition: color 0.2s ease;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-links a:hover {
        color: var(--accent, #e68b77);
        transform: none;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
        color: var(--text-muted, #555);
        line-height: 1.5;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-contact a {
        color: inherit;
        text-decoration: none;
    }

    body:not(.admin-page) .footer-desktop .footer-accordion-contact a:hover {
        color: var(--accent, #e68b77);
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-social {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 40px;
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: var(--text-primary, #1a1a1a);
        text-decoration: none;
        font-size: 1.1rem;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-social a:hover {
        color: var(--accent, #e68b77);
        transform: translateY(-2px);
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-legal {
        margin-top: 32px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-right: 72px;
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-legal-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 16px;
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-legal a {
        color: var(--text-muted, #666);
        text-decoration: none;
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: normal;
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-legal a:hover {
        color: var(--text-primary, #1a1a1a);
    }

    body:not(.admin-page) .footer-desktop .footer-mobile-copy {
        margin: 24px 0 0;
        font-size: 0.75rem;
        color: var(--text-muted, #888);
        text-align: center;
        padding-right: 72px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body:not(.admin-page) .footer-desktop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
