:root {
    --blanc: #FAF7F5;
    --beige: #E3D6C2;
    --bleu: #0F4D5A;
    --noir: #1A1A1A;
    --gris: #6B6B6B;
    --container-padding: 10vw;
    --gap: 20px;
    --glass-text-shadow: 0 0 15px var(--beige);
    --time: 0.2s;
    --radius: 12px;
}

/********************
        BODY
*********************/

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    font-family: "korolev-rounded", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: var(--noir);
    background: var(--blanc);
    margin: 0;
}

/********************
        SECTION
*********************/

section> :last-child,
.container> :last-child,
footer> :last-child {
    margin-bottom: 0;
}

header,
#contact {
    min-height: 70vh;
}

.container {
    width: calc(100vw - var(--container-padding) * 2);
    max-width: 900px;
    margin: auto;
    padding: clamp(var(--gap), var(--container-padding), 100px);
}

body:not(.legal-page)>section:not(.founder):not(#contact) .container {
    padding-top: clamp(54px, 7vw, 84px);
    padding-bottom: clamp(54px, 7vw, 84px);
}

#approach:not(.activity) .container {
    padding-bottom: 0;
}

.section-label {
    margin: 0 0 10px;
    color: var(--bleu);
    font-family: "bc-alphapipe", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* NAVBAR */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 10px;
    z-index: 1000;
    box-sizing: border-box;
}

nav>a.logo,
nav a.logo img {
    width: 288px;
    height: 30px;
    display: block;
    margin: auto;
}

.language-switch {
    position: absolute;
    top: 50%;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(-50%);
    color: var(--bleu);
    font-family: "bc-alphapipe", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.language-switch a {
    opacity: 0.45;
    transition: opacity var(--time) ease;
}

.language-switch a:hover,
.language-switch a.active {
    opacity: 1;
}

/* HERO BANNER */

header {
    background-color: var(--beige);
    background-image: url(../image/hero_banner.jpg);
    background-size: cover;
    background-position: center bottom;
    padding-top: 10vh;
    border-radius: 0 0 var(--container-padding) 0;
    text-shadow: var(--glass-text-shadow);
}

header a {
    display: inline-block;
    text-shadow: none;
}

header p {
    max-width: 500px;
    margin-left: 0;
}

/* CONTENT */

h1,
h2,
h3,
h4,
p {
    margin: 0 auto;
    margin-bottom: var(--gap);
    text-align: center;
    max-width: 600px;
}

h1,
h2,
h3,
h4 {
    color: var(--bleu);
    font-family: "bc-alphapipe", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
    color: var(--gris);
}

img {
    width: 100%;
}

/* LINK */

a {
    text-decoration: none;
    color: inherit;
}

.button {
    display: inline-block;
    position: relative;
    font-family: "bc-alphapipe", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    color: var(--blanc);
    background-color: var(--bleu);
    margin-top: var(--gap);
    padding: 8px 18px;
    border: 2px solid var(--bleu);
    border-radius: var(--radius);
    box-sizing: border-box;
}

.button.mail {
    text-transform: lowercase;
}

.button::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 10px;
    width: calc(100% - 36px);
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--time) ease;
}

.button:hover::after {
    transform: scaleX(1);
}

.button.line {
    background-color: transparent;
    color: var(--bleu);
}

/* GLASS EFFECT */

.glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--radius));
    -webkit-backdrop-filter: blur(var(--radius));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass.card {
    max-width: 500px;
    padding: 40px;
    border-radius: calc(2 * var(--radius));
}

.glass.card *:not(.button) {
    text-align: left;
}

header .glass.card *:not(.button),
#contact .glass.card *:not(.button) {
    text-shadow: var(--glass-text-shadow);
}

/* PROJECT GRID */

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: clamp(42px, 6vw, 76px);
}

.project img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project .glass.card {
    width: 95%;
    transform: translate(-5%, 10%);
    transition: transform var(--time) ease;
}

.project a:hover.glass.card {
    transform: translate(-5%, 5%);
    transition: transform 0.3s var(--time) ease;
}

.project .glass.card h3 {
    margin: 0;
}

.project img {
    border-radius: calc((2 * var(--radius)));
}

/* ACTIVITY */

.activity {
    margin: 0;
}

.activity .container {
    box-sizing: border-box;
    width: min(calc(100vw - var(--container-padding) * 2), 760px);
    max-width: none;
    padding-top: clamp(60px, 8vw, 90px);
    padding-bottom: clamp(18px, 3vw, 34px);
}

.activity-layout {
    position: relative;
}

.activity-copy {
    max-width: 620px;
    margin: auto;
}

.activity-copy h2,
.activity-copy p {
    text-align: left;
}

.activity-copy h2 {
    max-width: 430px;
    margin-left: 0;
}

.activity-copy p:not(.section-label) {
    max-width: 620px;
    margin-left: 0;
    font-size: 18px;
}

.activity + section .container {
    padding-top: clamp(28px, 4vw, 48px);
}

/* FOUNDER */

.founder {
    margin-top: clamp(48px, 7vw, 88px);
    color: var(--blanc);
    background: var(--bleu);
    border-radius: var(--container-padding) 0 var(--container-padding) 0;
}

.founder-layout {
    box-sizing: border-box;
    width: min(calc(100vw - var(--container-padding) * 2), 700px);
    max-width: none;
}

.founder h2,
.founder p {
    text-align: left;
}

.founder h2 {
    color: var(--blanc);
    max-width: 420px;
    margin-left: 0;
}

.founder .section-label {
    margin: 0 0 10px;
    color: var(--beige);
    font-family: "bc-alphapipe", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.founder-copy {
    max-width: 620px;
}

.founder-copy p {
    max-width: 620px;
    margin-left: 0;
    font-size: 18px;
    line-height: 1.7;
}

.founder-copy strong {
    color: var(--beige);
    font-weight: 700;
}

.founder-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: calc(var(--gap) * 1.2) 0 0;
    list-style: none;
}

.founder-points li {
    padding: 7px 12px;
    color: var(--bleu);
    background: var(--blanc);
    border-radius: var(--radius);
    font-family: "bc-alphapipe", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* LEGAL NOTICE */

.legal-page header {
    min-height: 48vh;
}

.legal-page header .glass.card {
    max-width: 620px;
}

.legal-page section:not(#contact) .container {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
    column-gap: clamp(18px, 5vw, 56px);
    row-gap: 10px;
    max-width: 920px;
    padding-top: clamp(32px, 5vw, 58px);
    padding-bottom: clamp(32px, 5vw, 58px);
    border-bottom: 1px solid rgba(15, 77, 90, 0.12);
}

.legal-page section:not(#contact) h2 {
    margin-left: 0;
    text-align: left;
    font-size: 22px;
}

.legal-page section:not(#contact) p,
.legal-page section:not(#contact) ul {
    max-width: 620px;
    margin-left: 0;
    text-align: left;
}

.legal-page section:not(#contact) .container > :not(h2) {
    grid-column: 2;
}

.legal-page section:not(#contact) ul {
    padding-left: 0;
    list-style: none;
}

.legal-page section:not(#contact) li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(15, 77, 90, 0.09);
}

.legal-page section:not(#contact) li:last-child {
    border-bottom: 0;
}

.legal-page section:not(#contact) a {
    color: var(--bleu);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* CLIENT GRID */

.clients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    text-align: center;
}

.clients img {
    max-width: 200px;
    opacity: 1;
    transition: opacity var(--time) ease;
}

.clients img:hover {
    opacity: 0.6;
}

/* CONTACT */

#contact {
    background-image: linear-gradient(transparent, #b1977e), url(../image/contact.jpg);
    background-size: 100% 50px, cover;
    background-repeat: no-repeat;
    background-position: 70% bottom;
    border-radius: 0 var(--container-padding) 0 0;
}

#contact .container {
    padding-top: clamp(150px, var(--container-padding), 250px);
}

/* FOOTER */

footer {
    text-align: right;
    padding: 10px;
    background-color: #b1977e;
    color: var(--beige);
    font-size: small;
    letter-spacing: 12%;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .clients {
        grid-template-columns: repeat(2, 1fr);
    }

    .project {
        grid-template-columns: 1fr;
    }

    .project a.glass.card {
        transform: translate(0, -5%);
    }

    .project a:hover.glass.card {
        transform: translate(0, -10%);
    }

    .project .glass.card {
        transform: translate(0, 10%);
    }

    .glass.card {
        max-width: 90vw;
        padding: 30px;
    }

    .project .glass.card {
        width: inherit;
    }

    .project img {
        width: 110%;
        transform: translateX(-5%);
    }

    .founder h2 {
        max-width: 100%;
    }

    .founder-copy {
        padding-left: 0;
        border-left: 0;
    }

    .founder-copy p {
        font-size: 16px;
    }

    .legal-page section:not(#contact) .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-page section:not(#contact) h2 {
        font-size: 24px;
    }

    .legal-page section:not(#contact) .container > :not(h2) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    nav>a.logo,
    nav a.logo img {
        width: 220px;
        height: auto;
    }

    .language-switch {
        right: 12px;
        font-size: 12px;
        gap: 4px;
    }
}
