/* ============================================================
   AL SOUDANI — Shared Footer
   Chargé sur toutes les pages via functions.php
   ============================================================ */

/* ============================================================
   MOBILE FOOTER (visible mobile < 768px)
   ============================================================ */
.mob-footer {
    width: 100%;
    padding: 3rem 2rem calc(3rem + 90px);
    background-color: #131313;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.mob-footer-logo {
    color: #e5e2e1;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.5rem;
}

.mob-footer-links {
    display: flex;
    gap: 2rem;
}

.mob-footer-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(229, 226, 225, 0.6);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.mob-footer-link:hover { color: #e5e2e1; }

.mob-footer-copy {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(229, 226, 225, 0.4);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   MOBILE BOTTOM NAV (visible mobile < 768px)
   ============================================================ */
.mob-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.5rem 1rem;
    gap: 0.25rem;
    background-color: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 50;
    border-radius: 1.5rem 1.5rem 0 0;
    border-top: 1px solid rgba(86, 67, 55, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.1;
    color: rgba(229, 226, 225, 0.6);
    transition: color 0.3s;
    flex-shrink: 0;
}

.mob-nav-item:hover { color: #ffb4ab; }

.mob-nav-item--active {
    background: linear-gradient(135deg, #ffb4ab 0%, #e31e24 100%);
    color: #4f2500;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease-out;
}

.mob-nav-item--active:hover { color: #4f2500; }

.mob-nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   DESKTOP FOOTER (visible desktop ≥ 768px)
   ============================================================ */
.site-footer {
    display: none;
    width: 100%;
    border-top: 1px solid rgba(112, 112, 112, 0.15);
    background: var(--background, #131313);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    gap: 32px;
    padding: 64px 48px;
}

.footer-brand {
    color: var(--primary-container, #e31e24);
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 20px;
    margin-bottom: 16px;
}

.site-footer p,
.footer-links a {
    color: rgba(229, 226, 225, 0.5);
}

.site-footer p {
    max-width: 340px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    margin: 0 0 8px;
    color: var(--primary, #ffb4ab);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-container, #e31e24); }

.footer-links .copyright {
    padding-top: 16px;
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.9;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE SHOW / HIDE
   ============================================================ */
@media (min-width: 768px) {
    .mob-footer,
    .mob-bottom-nav { display: none; }

    .site-footer { display: block; }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Logos du footer (logo uploadé via ACF) */
.site-footer .footer-brand-logo,
.woocommerce-page .site-footer .footer-brand-logo {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
}

.mob-footer .mob-footer-logo-img,
.woocommerce-page .mob-footer .mob-footer-logo-img {
    height: 44px;
    width: auto;
    margin: 0 auto 12px;
}

/* ============================================================
   CRÉDIT AGENCE
   ============================================================ */
.footer-credit {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 48px 28px;
    border-top: 1px solid rgba(112, 112, 112, 0.15);
    text-align: center;
}

.site-footer .footer-credit p {
    max-width: none;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.footer-credit a,
.mob-footer-credit a {
    color: var(--primary, #ffb4ab);
    font-weight: 600;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.35s ease, color 0.3s ease;
}

.footer-credit a:hover,
.mob-footer-credit a:hover {
    color: var(--primary-container, #e31e24);
    background-size: 100% 1px;
}

.mob-footer-credit {
    margin: -0.5rem 0 0;
    font-size: 12px;
    color: rgba(229, 226, 225, 0.5);
    font-family: 'Inter', sans-serif;
}
