:root {
    --body-margin: 36px;
    --body-max-width: 900px;
    --body-bg-color: #f5f5f5;
    --body-text-color: #333333;
    --body-link-color: #000000;
    --body-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font-size: 16px;
    --body-line-height: 1.5;
    --button-bg-color: #e4e4e4;
    --button-text-color: #2A2A2A;
    --border-radius: 4px;
    --button-padding: 6px;
    --active-color: #f5e0e1;
    --border-color: #000000;
}

::selection {
    background: var(--body-link-color);
    color: white;
}

body {
    margin: var(--body-margin) !important;
    font-family: "STKBureau";
    background-color: var(--body-bg-color);
    line-height: 1.08;
    letter-spacing: -1%;

}

body.htmx-swapping>*:not(nav) {
    opacity: 0;
}

body>* {
    transition: opacity .2s;
    opacity: 1;
}

main {
    min-height: 100vh;
}

p {
    margin: 1em 0;
}

.monospace {
    font-family: "Hal TZ Mono";
}

nav {
    z-index: 100;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: var(--body-margin);
    padding: var(--body-margin);
    margin: calc(-1 * var(--body-margin));
    transition: background 0.3s ease;
}

#main-nav {}

nav.stuck {
    /* background: rgba(0, 0, 0, 0.8); */

}

nav::before {}

nav .main-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 1em;
}


.languages {}

.button {

    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    text-align: center;
    border-radius: var(--border-radius);
    padding: calc(var(--button-padding) * .5) var(--button-padding);
    transition: 0.3s;
}

.button.rounded {
    width: 1.5em;
    display: inline-block;

}

.button:hover {
    filter: brightness(0.90);
}

.button.active:hover {
    filter: brightness(1.05);
}

.button.active {
    background-color: var(--active-color);

}

.languages>.button {
    padding: none;
    display: inline-block;
    height: calc(var(--button-padding) * .5 + 1em);
    margin-left: 2em;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
    background: transparent;
}

a {
    text-decoration: none;
}

.label-up {
    display: block;

    height: 200%;
    position: relative;
    top: 0%;
    transition: 0.3s;
}

.button:hover .label-up {
    top: -200%;
}


footer img {
    width: 100%;
    height: auto;
}


footer {
    border-top: 1px solid #e4e4e4;
    display: grid;
    gap: 0 1em;
    grid-template-columns: repeat(6, 1fr);
    padding: 2em 0;


    /* 
    width: 100%;
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 1; */


    .logo {
        grid-column: 1 / 3;
    }

    .footer-pages {
        grid-column: 3 / 5;
    }

    .footer-contact {
        grid-column: 6 / -1;

        p {
            margin-top: 0;
            margin-bottom: 2em;
        }


    }

    .footer-copyright {
        grid-column: 1 / -1;
        grid-row: 2;

    }
}

h2 {
    margin-top: 6em;
    font-size: 2.5em;
}


.htmx-request .htmx-settling .htmx-swapping {}



.gradient-blur {
    position: fixed;
    z-index: -1;
    inset: auto 0 0 0;
    height: 10%;
    top: -1px;
    transform: rotate(180deg);
    pointer-events: none;
}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
    position: absolute;
    inset: 0;
}

/* Step 1 – léger flou en haut */
.gradient-blur::before {
    content: "";
    z-index: 1;
    backdrop-filter: blur(1px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 0) 75%);
}

/* Step 2 – flou moyen */
.gradient-blur>div:nth-of-type(1) {
    z-index: 2;
    backdrop-filter: blur(4px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 25%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 0) 100%);
}

/* Step 3 – flou plus fort */
.gradient-blur>div:nth-of-type(2) {
    z-index: 3;
    backdrop-filter: blur(8px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 1) 100%);
}

/* Final – encore plus fort en bas */
.gradient-blur::after {
    content: "";
    z-index: 4;
    backdrop-filter: blur(16px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 75%,
            rgba(0, 0, 0, 1) 100%);
}