/* Shared footer layout and social links. */

.site-footer {
    position: relative;
    width: 100%;
    margin-top: clamp(3rem, 5vw, 4rem);
    padding: 1.4rem 1rem 1.2rem;
    color: rgba(255, 247, 237, 0.94);
    background:
        linear-gradient(180deg, rgba(31, 38, 34, 0.98), rgba(18, 22, 20, 0.98)),
        radial-gradient(circle at 18% 20%, rgba(217, 117, 65, 0.2), transparent 28%);
    border-top: 1px solid rgba(255, 235, 214, 0.12);
    box-shadow: 0 -20px 44px rgba(10, 13, 11, 0.14);
}

.site-footer__inner {
    position: relative;
    width: min(92%, 1200px);
    margin: 0 auto;
}

.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__copyright {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 247, 237, 0.94);
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-footer__social-link--discord {
    color: #7289da;
}

.site-footer__social-link--linkedin {
    color: #0077b5;
}

.site-footer__meta {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer__legal-link {
    color: rgba(255, 247, 237, 0.94);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer__note {
    max-width: 760px;
    margin: 0.95rem auto 0;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 247, 237, 0.88);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

/* Bandeau de préférences partagé : cette définition est l’unique source visuelle. */
.cookie-notice {
    position: fixed !important;
    z-index: 9999 !important;
    left: auto !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    width: min(calc(100vw - 2rem), 440px) !important;
    margin: 0 !important;
    padding: 0.85rem 0.9rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.8rem !important;
    border: 1px solid rgba(255, 247, 236, 0.18) !important;
    border-radius: 16px !important;
    background: rgba(17, 30, 24, 0.97) !important;
    color: #fff7ec !important;
    box-shadow: 0 20px 55px rgba(5, 12, 8, 0.3) !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    animation: cookieNoticeIn 360ms cubic-bezier(.2,.8,.2,1) both;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cookie-notice .cookie-notice__content {
    min-width: 0;
    display: grid !important;
    gap: 0.12rem !important;
}

.cookie-notice .cookie-notice__content strong {
    display: block !important;
    margin: 0 !important;
    color: #fff7ec !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.cookie-notice .cookie-notice__content p {
    margin: 0 !important;
    color: rgba(255, 247, 236, 0.78) !important;
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
}

.cookie-notice .cookie-notice__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}

.cookie-notice .cookie-notice__link,
.cookie-notice .cookie-notice__button {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.cookie-notice .cookie-notice__link {
    padding: 0 0.2rem !important;
    color: #fff7ec !important;
    text-decoration: underline !important;
    text-underline-offset: 0.2em !important;
}

.cookie-notice .cookie-notice__button {
    padding: 0 0.8rem !important;
    border: 0 !important;
    background: #e4eadf !important;
    color: #142018 !important;
    cursor: pointer !important;
}

.cookie-notice .cookie-notice__button:hover,
.cookie-notice .cookie-notice__button:focus-visible {
    background: #fff !important;
    outline: 2px solid #ef9a68 !important;
    outline-offset: 2px !important;
}

@keyframes cookieNoticeIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
    .site-footer__top {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__socials {
        justify-content: center;
    }

    .cookie-notice {
        left: max(0.75rem, env(safe-area-inset-left)) !important;
        right: max(0.75rem, env(safe-area-inset-right)) !important;
        bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.65rem !important;
    }

    .cookie-notice .cookie-notice__actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .cookie-notice .cookie-notice__button {
        margin-left: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice { animation: none; }
}
