/* Footer commun — Saison IV */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 4.5rem 0 1.4rem;
    background:
        radial-gradient(circle at 10% 18%, rgba(230, 179, 52, 0.11), transparent 28rem),
        radial-gradient(circle at 88% 72%, rgba(84, 111, 171, 0.1), transparent 25rem),
        linear-gradient(180deg, #0a0c12 0%, #07080c 100%);
    border-top: 1px solid rgba(230, 179, 52, 0.18);
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.site-footer .footer-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(19, 22, 31, 0.95), rgba(11, 13, 19, 0.94));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.25fr);
    gap: clamp(2.5rem, 7vw, 6.5rem);
    align-items: start;
    margin: 0;
    padding: clamp(2rem, 4.5vw, 3.75rem);
}

.site-footer .footer-brand {
    max-width: 430px;
}

.site-footer .footer-wordmark {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.site-footer .footer-wordmark img {
    display: block;
    width: 158px;
    height: auto;
}

.site-footer .footer-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin-bottom: 0.8rem;
    color: #e6b334;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer .footer-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.site-footer .footer-brand > p {
    max-width: 39ch;
    margin: 0 0 1.5rem;
    color: rgba(239, 240, 245, 0.68);
    font-size: 0.98rem;
    line-height: 1.75;
}

.site-footer .footer-play {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 190px;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(230, 179, 52, 0.28);
    border-radius: 11px;
    color: #f5d46e;
    background: rgba(230, 179, 52, 0.07);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-footer .footer-play > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #0d0e12;
    background: #e6b334;
    font-size: 0.78rem;
}

.site-footer .footer-play span {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer .footer-play small {
    color: rgba(239, 240, 245, 0.5);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.site-footer .footer-play:hover,
.site-footer .footer-play:focus-visible {
    border-color: rgba(230, 179, 52, 0.6);
    color: #fff0b4;
    background: rgba(230, 179, 52, 0.13);
}

.site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.site-footer .footer-column {
    min-width: 0;
}

.site-footer .footer-column h2 {
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.site-footer .footer-column ul {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-column ul li {
    margin: 0;
}

.site-footer .footer-column a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 38px;
    padding: 0.35rem 0;
    color: rgba(244, 245, 248, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 1;
    transition: color 180ms ease;
}

.site-footer .footer-column a i {
    width: 18px;
    color: rgba(230, 179, 52, 0.62);
    text-align: center;
    transition: color 180ms ease;
}

.site-footer .footer-column a:hover,
.site-footer .footer-column a:focus-visible {
    padding-left: 0;
    color: #f3c64f;
}

.site-footer .footer-column a:hover i,
.site-footer .footer-column a:focus-visible i {
    color: #f3c64f;
}

.site-footer .footer-community {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(2rem, 4.5vw, 3.75rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
}

.site-footer .footer-community-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}

.site-footer .footer-community-copy span {
    color: #e6b334;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-footer .footer-community-copy strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.site-footer .footer-socials {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.site-footer .footer-socials a {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus-visible {
    border-color: rgba(230, 179, 52, 0.42);
    color: #f3c64f;
    background: rgba(230, 179, 52, 0.1);
}

.site-footer .footer-bottom {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 1.15rem 0 0;
    border: 0;
    text-align: left;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 1;
}

.site-footer .footer-bottom p:last-child {
    max-width: 54ch;
    text-align: right;
}

@media (max-width: 900px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .site-footer .footer-brand {
        max-width: 580px;
    }
}

@media (max-width: 620px) {
    .site-footer {
        padding-top: 3rem;
    }

    .site-footer .footer-frame {
        border-radius: 15px;
    }

    .site-footer .footer-content {
        padding: 1.75rem 1.35rem 2rem;
    }

    .site-footer .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer .footer-community,
    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer .footer-community {
        padding: 1.35rem;
    }

    .site-footer .footer-bottom {
        gap: 0.45rem;
    }

    .site-footer .footer-bottom p:last-child {
        text-align: left;
    }
}

/* 2026 visual refresh — expedition / arcane direction */
.site-footer {
    --footer-gold: #e8c75a;
    --footer-gold-rgb: 232, 199, 90;
    --footer-arcane: #9187ee;
    --footer-arcane-rgb: 145, 135, 238;
    --footer-azure: #62bfd8;
    --footer-azure-rgb: 98, 191, 216;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.25rem, 5vw, 4.75rem) 0 1.25rem;
    border-top: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 16, 0.84), #070914 34%, #05060d 100%),
        linear-gradient(90deg, rgba(26, 20, 55, 0.5), transparent 46%, rgba(14, 43, 58, 0.36)),
        url('../images/illu/chemin.jpg') center 57% / cover no-repeat;
}

.site-footer::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 24%, rgba(var(--footer-arcane-rgb), 0.18), transparent 28%),
        radial-gradient(circle at 84% 36%, rgba(var(--footer-azure-rgb), 0.12), transparent 26%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025) 50%, transparent);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(760px, 72vw);
    height: 1px;
    pointer-events: none;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(var(--footer-gold-rgb), 0.78), transparent);
    box-shadow: 0 0 24px rgba(var(--footer-gold-rgb), 0.3);
}

.site-footer .footer-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--footer-arcane-rgb), 0.24);
    border-radius: 3px;
    background:
        linear-gradient(125deg, rgba(var(--footer-arcane-rgb), 0.055), transparent 34%),
        linear-gradient(305deg, rgba(var(--footer-azure-rgb), 0.04), transparent 38%),
        rgba(8, 10, 22, 0.9);
    box-shadow:
        0 26px 72px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.site-footer .footer-frame::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--footer-arcane), var(--footer-gold) 46%, var(--footer-azure));
    opacity: 0.8;
}

.site-footer .footer-frame::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-top: 1px solid rgba(var(--footer-gold-rgb), 0.55);
    border-right: 1px solid rgba(var(--footer-gold-rgb), 0.55);
    pointer-events: none;
}

.site-footer .footer-content {
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4.75rem);
    padding: clamp(2.25rem, 4vw, 3.5rem);
}

.site-footer .footer-brand {
    max-width: 500px;
}

.site-footer .footer-wordmark img {
    width: 174px;
    filter: drop-shadow(0 0 22px rgba(var(--footer-arcane-rgb), 0.16));
}

.site-footer .footer-wordmark {
    margin-bottom: 0;
}

.site-footer .footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.8rem 0 0.75rem;
    color: #aaa4f5;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.site-footer .footer-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--footer-arcane), var(--footer-azure));
    box-shadow: 0 0 10px rgba(var(--footer-arcane-rgb), 0.42);
}

.site-footer .footer-brand p {
    max-width: 45ch;
    margin: 0;
    color: rgba(234, 235, 247, 0.68);
    line-height: 1.72;
}

.site-footer .footer-play {
    min-height: 56px;
    width: min(100%, 300px);
    margin-top: 1.25rem;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 231, 147, 0.65);
    border-radius: 3px;
    color: #11121a;
    background: linear-gradient(135deg, #f1d56f, #d6a936);
    box-shadow: 0 10px 28px rgba(211, 163, 47, 0.14);
}

.site-footer .footer-play i {
    display: grid;
    flex: 0 0 53px;
    align-self: stretch;
    place-items: center;
    border-right: 1px solid rgba(17, 18, 26, 0.18);
    background: rgba(17, 18, 26, 0.08);
    color: #11121a;
}

.site-footer .footer-play span {
    padding: 0.62rem 0.95rem;
    color: #11121a;
}

.site-footer .footer-play small {
    color: rgba(17, 18, 26, 0.62);
}

.site-footer .footer-play:hover,
.site-footer .footer-play:focus-visible {
    border-color: #fff0ac;
    color: #08090e;
    background: linear-gradient(135deg, #f7df85, #e5b944);
    box-shadow: 0 13px 34px rgba(211, 163, 47, 0.24);
    transform: translateY(-2px);
}

.site-footer .footer-links {
    position: relative;
    padding-left: clamp(2rem, 3.5vw, 3.75rem);
    border-left: 1px solid rgba(var(--footer-arcane-rgb), 0.16);
}

.site-footer .footer-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 64px;
    background: linear-gradient(180deg, var(--footer-arcane), transparent);
    box-shadow: 0 0 14px rgba(var(--footer-arcane-rgb), 0.36);
}

.site-footer .footer-column h2 {
    margin-bottom: 1rem;
    color: #f4f2ff;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.site-footer .footer-column h2::after {
    width: 32px;
    background: linear-gradient(90deg, var(--footer-gold), transparent);
}

.site-footer .footer-column ul {
    gap: 0.2rem;
}

.site-footer .footer-column a {
    min-height: 41px;
    margin-left: -0.7rem;
    padding: 0.55rem 0.7rem;
    border-left: 1px solid transparent;
    color: rgba(226, 227, 240, 0.62);
}

.site-footer .footer-column a i {
    width: 18px;
    color: rgba(var(--footer-azure-rgb), 0.68);
}

.site-footer .footer-column a:hover,
.site-footer .footer-column a:focus-visible {
    padding-left: 0.95rem;
    border-left-color: var(--footer-arcane);
    color: #ffffff;
    background: linear-gradient(90deg, rgba(var(--footer-arcane-rgb), 0.11), transparent 82%);
}

.site-footer .footer-community {
    position: relative;
    gap: 2rem;
    padding: 1.45rem clamp(1.5rem, 4vw, 4.5rem);
    border-top: 1px solid rgba(var(--footer-arcane-rgb), 0.2);
    background:
        linear-gradient(90deg, rgba(var(--footer-arcane-rgb), 0.12), transparent 48%, rgba(var(--footer-azure-rgb), 0.08)),
        rgba(4, 6, 14, 0.46);
}

.site-footer .footer-community::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 54%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--footer-arcane), var(--footer-azure));
    box-shadow: 0 0 14px rgba(var(--footer-arcane-rgb), 0.5);
}

.site-footer .footer-community-copy span {
    color: #aaa4f5;
    letter-spacing: 0.18em;
}

.site-footer .footer-community-copy strong {
    color: rgba(246, 246, 252, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-footer .footer-socials {
    flex-shrink: 0;
}

.site-footer .footer-socials a {
    width: 44px;
    height: 44px;
    border-color: rgba(var(--footer-arcane-rgb), 0.25);
    border-radius: 3px;
    color: rgba(246, 246, 252, 0.76);
    background: rgba(255, 255, 255, 0.035);
}

.site-footer .footer-socials .footer-discord {
    width: auto;
    gap: 0.6rem;
    padding: 0 1rem;
    border-color: rgba(147, 156, 255, 0.48);
    color: #ffffff;
    background: linear-gradient(135deg, #5865f2, #6e5ad7);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.16);
}

.site-footer .footer-discord span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus-visible {
    border-color: rgba(var(--footer-gold-rgb), 0.55);
    color: #fff0ad;
    background: rgba(var(--footer-gold-rgb), 0.1);
    transform: translateY(-2px);
}

.site-footer .footer-socials .footer-discord:hover,
.site-footer .footer-socials .footer-discord:focus-visible {
    border-color: rgba(182, 187, 255, 0.78);
    color: #ffffff;
    background: linear-gradient(135deg, #6975fb, #8069e9);
}

.site-footer .footer-bottom {
    padding: 1.1rem 0 0;
    border-top: 0;
}

@media (max-width: 900px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .site-footer .footer-links {
        padding-top: 2.5rem;
        padding-left: 0;
        border-top: 1px solid rgba(var(--footer-arcane-rgb), 0.16);
        border-left: 0;
    }

    .site-footer .footer-links::before {
        top: -1px;
        left: 0;
        width: 72px;
        height: 1px;
        background: linear-gradient(90deg, var(--footer-arcane), transparent);
    }
}

@media (max-width: 620px) {
    .site-footer {
        padding-top: 2.75rem;
    }

    .site-footer .footer-frame {
        border-radius: 2px;
    }

    .site-footer .footer-content {
        gap: 2rem;
        padding: 1.75rem 1.2rem 2rem;
    }

    .site-footer .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding-top: 1.75rem;
    }

    .site-footer .footer-column a {
        min-height: 38px;
        margin-left: -0.45rem;
        padding: 0.45rem;
        font-size: 0.82rem;
    }

    .site-footer .footer-community {
        gap: 1.15rem;
        padding: 1.2rem;
    }

    .site-footer .footer-socials {
        width: 100%;
    }

    .site-footer .footer-socials .footer-discord {
        flex: 1;
    }

    .site-footer .footer-bottom {
        padding-top: 0.9rem;
    }
}

@media (max-width: 360px) {
    .site-footer .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-play,
    .site-footer .footer-column a,
    .site-footer .footer-socials a {
        transition: none;
    }
}
