* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-color: #333;
    --fg-color: #fff;
    --accent: #f1cc13;
    --alternative: #c2c2c2;
}
html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}
body {
    color: var(--fg-color); 
    background-color: var(--bg-color);
    font-family: Manrope, sans-serif;
    font-weight: 600;
}
strong {
    color: var(--accent);
    font-weight: 600;
}
strong.inverted {
    color: var(--bg-color);
    background-color: var(--accent);
    padding: 0em 0.5ex;
}
section {
    scroll-snap-align: start;
    min-height: 100dvh;
    background-size: cover;
    display: flex;
    justify-content: center;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-bottom: 33dvh;
}
section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: center / cover no-repeat var(--bg-image);
}

section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.75) 100%
        );

    filter: url(#grain);
    mix-blend-mode: multiply;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

section > * {
    position: relative;
    z-index: 1;
}
section div.content {
    width: 40dvw;
    font-size: 28pt;
}
section div.content img {
    width: fit-content;
}
section div.content h2 {
    color: var(--accent);
    font-size: 72pt;
    padding-top: 33dvh;
    padding-bottom: 20dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}
section div.content img.portrait {
    margin-top: 33dvh;
    margin-bottom: 10dvh;
    height: 33dvh;
    justify-self: center;
}
section div.content .content-box {
    background-color: var(--bg-color);
    padding: 2rem 3rem;
    border-radius: 0.5rem;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
section div.content p:not(:last-of-type) {
    padding-bottom: 1rem;
}
section div.content .content-box ul {
    padding: 2rem;
    font-size: 24pt;
}
section div.content .content-box li {
    color: var(--alternative);
    list-style-type: '—';
    padding-left: 1ex;
}
section div.content img.logo {
    margin-top: 33dvh;
    margin-bottom: 33dvh;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
section div.content a.cta {
    display: inline-block;
    margin-top: 2rem;
    margin-right: 1ex;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.logo-square {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
}
.logo-square-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 4vw, 60px);
    height: clamp(44px, 4vw, 60px);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.logo-square-btn:hover,
.logo-square-btn:focus-visible {
    transform: translateY(-2px);
}
.logo-square-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.contact-menu {
    position: absolute;
    bottom: calc(100% + 0.75rem); /* gap fixe au-dessus du bouton, plus de calc() fragile */
    right: 0;
    display: none;
    flex-direction: column;
    background-color: var(--bg-color);
    min-width: 10rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 9999;
}
.contact-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--fg-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-menu a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}
.logo-square.open .contact-menu {
    display: flex;
}
@media (max-width: 1024px) {
    html {
        scroll-snap-type: none;
    }
    section {
        min-height: auto;
        padding-bottom: 6dvh;
        scroll-snap-align: none;
    }
    section div.content {
        width: 92vw;
        font-size: 14pt;
    }
    section div.content h2 {
        font-size: 32pt;
        padding-top: 10dvh;
        padding-bottom: 4dvh;
    }
    section div.content .content-box {
        padding: 1.25rem 1.5rem;
    }
    section div.content .content-box ul {
        padding: 1rem 1.5rem;
        font-size: 12pt;
    }
    section div.content a.cta {
        padding: 0.75rem 1.25rem;
        font-size: 12pt;
        margin-top: 1rem;
    }
    section div.content img.logo {
        height: auto;
        max-width: 100%;
        margin-top: 8dvh;
        margin-bottom: 4dvh;
    }
    section div.content img.portrait {
        height: 24dvh;
        margin-top: 6dvh;
        margin-bottom: 3dvh;
    }
    .logo-square-btn img {
        width: 12vw;
        height: 12vw;
    }
    .logo-square {
        bottom: 1.5rem;
        right: 0.75rem;
    }
    .contact-menu {
        right: 1rem;
        bottom: calc(100% - 1rem);
        min-width: 12rem;
        font-size: 14pt;
        z-index: 9999;
    }
}
@media (max-width: 480px) {
    section div.content {
        font-size: 13pt;
    }
    section div.content h2 {
        font-size: 28pt;
    }
    section div.content .content-box ul {
        font-size: 11pt;
    }
}
a {
    color: var(--accent);
    text-decoration: none;
}
.lang-popup {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--bg-color);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-size: 11pt;
    display: none;
}
.lang-popup.visible {
    display: flex;
}
.lang-popup button {
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 10pt;
}
.lang-popup button.lang-close {
    background: none;
    color: var(--fg-color);
    padding: 0.2rem 0.5rem;
    font-weight: 400;
    opacity: 0.6;
}
.lang-popup button.lang-close:hover {
    opacity: 1;
}