/* =====================================================================
   PIED DE PAGE UNIFIE                                        foot.css
   ---------------------------------------------------------------------
   Seule source de verite du footer, chargee en dernier sur chaque page.
   Palette explicite : independante des variables des feuilles hotes.
   ===================================================================== */

.foot {
    position: relative;
    border-top: 1px solid rgba(201, 162, 39, 0.16);
    padding: 3.1rem 0 1.5rem;
    margin-top: 3rem;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.045), transparent 42%),
        #0a0908;
    text-align: left;
}
.foot > .wrap {
    width: 100%;
    max-width: var(--maxw, 1220px);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.foot a { text-decoration: none; color: inherit; }
.foot a:visited { color: inherit; }
.foot a:hover, .foot a:focus-visible { color: #e8c547; }

.foot-top {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) auto auto;
    gap: 2.4rem clamp(2rem, 5vw, 4.5rem);
    align-items: end;
}

.foot-brand {
    display: flex;
    align-items: center;
}
.foot-brand img {
    height: clamp(30px, 4.6vw, 40px);
    width: auto;
    max-width: 156px;
    object-fit: contain;
    filter: drop-shadow(0 1px 6px rgba(201, 162, 39, 0.12));
}

.foot-tagline {
    color: #f8f6f0;
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 0.85rem;
    line-height: 1.45;
}
.foot-claim {
    color: #9a9590;
    font-size: 0.84rem;
    margin-top: 0.28rem;
    max-width: 300px;
    line-height: 1.5;
}
.foot-press {
    margin: 0.75rem 0 0;
    max-width: 320px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #6d6862;
}
.foot-press a {
    color: #8a857e;
    border-bottom: 1px solid rgba(201, 162, 39, 0.22);
    transition: color 0.2s, border-color 0.2s;
}
.foot-press a:hover,
.foot-press a:focus-visible {
    color: #c9a227;
    border-color: #c9a227;
}
.foot-connect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}
.foot-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #c4bfb8;
}
.foot-discord-link i {
    font-size: 0.85em;
    transition: transform 0.2s var(--ease, ease);
}
.foot-discord-link:hover i,
.foot-discord-link:focus-visible i {
    transform: translateX(4px);
}
.foot-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.foot-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.62rem;
    padding: 0.48rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #12100a;
    background: linear-gradient(125deg, #e8c547, #c9a227 58%, #a8861f);
    border-radius: 999px;
    box-shadow: 0 4px 14px -8px rgba(201, 162, 39, 0.85);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.foot-cta:hover,
.foot-cta:focus-visible {
    color: #12100a;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -8px rgba(201, 162, 39, 0.95);
}
.foot-cta i {
    font-size: 1.05em;
}
.foot .be-flag {
    display: inline-block;
    width: 1.35em;
    height: 0.95em;
    border-radius: 2px;
    vertical-align: -0.12em;
    background: linear-gradient(90deg, #1a1a1a 0 33.33%, #FDDA24 33.33% 66.66%, #EF3340 66.66% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.foot-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0;
}
.foot-socials a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.18);
    color: #9a9590;
    font-size: 0.82rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.foot-socials a:hover,
.foot-socials a:focus-visible {
    color: #c9a227;
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
    transform: translateY(-2px);
}

.foot-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.2rem;
    row-gap: 0.05rem;
    min-width: 260px;
    align-content: end;
}
.foot-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #c4bfb8;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.foot-nav a:hover,
.foot-nav a:focus-visible {
    color: #c9a227;
    border-bottom-color: rgba(201, 162, 39, 0.35);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.3rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(201, 162, 39, 0.14);
}
.foot-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1.15rem;
}
.foot-legal a,
#ntx-cookie-settings {
    color: #6d6862;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.foot-socials a {
    min-width: 44px;
    min-height: 44px;
}
.foot-legal a:hover,
.foot-legal a:focus-visible { color: #c9a227; }

.foot-meta {
    color: #5a5550;
    font-size: 0.75rem;
    margin: 0;
}
.foot-meta [data-foot-updated] {
    color: #8a857e;
    letter-spacing: 0.02em;
}
.foot-meta a {
    color: #8a857e;
    border-bottom: 1px solid rgba(201, 162, 39, 0.28);
    transition: color 0.2s, border-color 0.2s;
}
.foot-meta a:hover,
.foot-meta a:focus-visible {
    color: #c9a227;
    border-color: #c9a227;
}

/* Lien cookies injecté hors .foot-legal (repli cookie-consent.js) */
footer.foot > div:not(.wrap) {
    width: 100%;
    max-width: var(--maxw, 1220px);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left !important;
}
footer.foot > div:not(.wrap) #ntx-cookie-settings {
    text-decoration: none;
    color: #6d6862;
    font-size: 0.75rem;
}

@media (min-width: 641px) and (max-width: 960px) {
    .foot-top {
        gap: 2rem clamp(1.25rem, 4vw, 2.5rem);
        grid-template-columns: minmax(180px, 1fr) auto auto;
    }
    .foot-nav { column-gap: 2rem; min-width: 220px; }
}

/* ---- Mobile : pied de page 2026 (colonne unique, CTA, carte nav) ----- */
@media (max-width: 640px) {
    footer.foot {
        padding: clamp(1.65rem, 5vw, 2.1rem) 0 1.15rem;
        margin-top: clamp(1.75rem, 5vw, 2.5rem);
        background:
            radial-gradient(ellipse 130% 70% at 50% -20%, rgba(201, 162, 39, 0.07), transparent 58%),
            #0a0908;
        border-top: 1px solid rgba(201, 162, 39, 0.22);
    }
    body.ntx-mobile-chrome footer.foot {
        padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    }
    footer.foot > .wrap,
    footer.foot > div:not(.wrap) {
        padding-inline: max(1.125rem, env(safe-area-inset-left)) max(1.125rem, env(safe-area-inset-right));
    }

    footer.foot .foot-top {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    footer.foot .foot-brand-block { order: 1; }
    footer.foot .foot-connect { order: 2; }
    footer.foot .foot-nav { order: 3; }

    footer.foot .foot-brand img {
        height: 28px;
        max-width: 128px;
    }
    footer.foot .foot-tagline {
        margin-top: 0.55rem;
        font-size: 0.875rem;
        line-height: 1.45;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }
    footer.foot .foot-claim {
        max-width: none;
        margin-top: 0.35rem;
        font-size: 0.78rem;
        line-height: 1.5;
    }
    footer.foot .foot-press {
        max-width: none;
        margin-top: 0.5rem;
        font-size: 0.74rem;
        line-height: 1.55;
    }

    footer.foot .foot-brand-block .foot-cta {
        display: inline-flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        min-height: 48px;
        margin-top: 0.9rem;
        padding: 0.78rem 1.35rem;
        border-radius: 14px;
        font-size: 0.88rem;
        letter-spacing: 0.02em;
    }
    footer.foot .foot-brand-block .foot-socials a[aria-label="Discord"] {
        display: none;
    }
    footer.foot .foot-brand-block .foot-socials {
        margin-top: 0.85rem;
        gap: 0.45rem;
    }

    footer.foot .foot-connect {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }
    footer.foot .foot-connect .foot-discord-link {
        order: -1;
    }
    footer.foot .foot-discord-link {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        padding: 0.78rem 1.35rem;
        border-radius: 14px;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: none;
        color: #12100a;
        background: linear-gradient(125deg, #e8c547, #c9a227 58%, #a8861f);
        box-shadow: 0 10px 28px -14px rgba(201, 162, 39, 0.75);
        transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    }
    footer.foot .foot-discord-link:hover,
    footer.foot .foot-discord-link:focus-visible {
        color: #12100a;
        filter: brightness(1.05);
        transform: translateY(-1px);
        box-shadow: 0 12px 32px -12px rgba(201, 162, 39, 0.85);
    }
    footer.foot .foot-discord-link i {
        font-size: 0.92em;
    }

    footer.foot .foot-socials a {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.035);
        font-size: 0.88rem;
    }

    footer.foot .foot-nav {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
        column-gap: 0.75rem;
        row-gap: 0;
        padding: 0.65rem 1rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.025);
    }
    footer.foot .foot-nav::before {
        content: "Navigation";
        grid-column: 1 / -1;
        margin: 0 0 0.4rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #6d6862;
    }
    html[lang^="en"] footer.foot .foot-nav::before {
        content: "Links";
    }
    footer.foot .foot-nav a {
        justify-content: flex-start;
        font-size: 0.875rem;
        font-weight: 600;
        color: #e8e4dc;
        min-height: 42px;
        padding: 0.18rem 0;
        border-bottom: none;
    }
    footer.foot .foot-nav a:hover,
    footer.foot .foot-nav a:focus-visible {
        color: #e8c547;
        border-bottom-color: transparent;
    }

    footer.foot .foot-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1.15rem;
        padding-top: 1rem;
        gap: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    footer.foot .foot-legal {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.15rem 0.55rem;
        width: 100%;
    }
    footer.foot .foot-legal a + a::before {
        content: "\00b7";
        margin-right: 0.55rem;
        color: #5a5550;
        font-weight: 400;
    }
    footer.foot .foot-legal a,
    footer.foot #ntx-cookie-settings {
        justify-content: flex-start;
        text-decoration: none;
        border-bottom: none;
        padding: 0.12rem 0;
        min-height: auto;
        font-size: 0.72rem;
        color: #7a756f;
    }
    footer.foot .foot-legal a:hover,
    footer.foot .foot-legal a:focus-visible {
        color: #c9a227;
    }

    footer.foot .foot-meta {
        width: 100%;
        font-size: 0.7rem;
        line-height: 1.55;
        color: #6d6862;
    }
    footer.foot .foot-meta [data-foot-updated] {
        color: #8a857e;
    }
    footer.foot .foot-meta a {
        border-bottom: 1px solid rgba(201, 162, 39, 0.22);
        color: #8a857e;
    }

    footer.foot > div:not(.wrap) {
        margin-top: 0.35rem;
        padding-bottom: 0.25rem;
    }
    footer.foot > div:not(.wrap) #ntx-cookie-settings {
        display: inline-flex;
        align-items: center;
        min-height: auto;
        padding: 0.12rem 0;
        font-size: 0.72rem;
        color: #8a857e;
    }
    footer.foot > div:not(.wrap) #ntx-cookie-settings:hover,
    footer.foot > div:not(.wrap) #ntx-cookie-settings:focus-visible {
        color: #c9a227;
    }
}

@media (max-width: 360px) {
    .foot-tagline { font-size: 0.78rem; }
    .foot-nav a { font-size: 0.84rem; }
    .foot-legal a,
    #ntx-cookie-settings { font-size: 0.72rem; }
}

/* Page 404 : body en flex centre, le footer doit reprendre toute
   la largeur sous le message, pas une colonne a cote. */
body:has(> .foot) {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
body:has(> .foot) > .wrap { margin: auto; }
body:has(> .foot) > .foot { flex: 0 0 auto; width: 100%; }
