*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --paper : #f0ece4;
  --ink   : #0f0e0c;
  --phi   : 1.618;

  /* ── Référence d'échelle (viewport idéal, en px) ────────── */
  --w-ref : 1280;
  --h-ref : 900;

  /* Unité bi-axe : suit la plus PETITE contrainte (largeur OU hauteur) */
  --u-raw : min(calc(100vw / var(--w-ref)), calc(100vh / var(--h-ref)));
  --u     : clamp(0.5px, var(--u-raw), 1.5px);

  /* ── Tailles dérivées ── */
  --title : calc(120 * var(--u));
  --gap   : calc(40  * var(--u));

  --logo-sota   : calc(40 * var(--u));
  --logo-kunst  : calc(15 * var(--u));
  --logo-vallee : calc(17 * var(--u));
}

html, body { height: 100%; }

/* ── Tint overlay home ── */
.home-tint {
  position: fixed;
  inset: 0;
  background: rgba(240, 185, 150, 0.40);
  pointer-events: none;
  z-index: 0;
}

/* ── Animation background ── */
#anim-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  pointer-events: none;
}
header, main, footer {
  position: relative;
  z-index: 1;
}

/* ── Header aligné avec le contenu, marges ajustées, police discrète ── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(960 * var(--u)), 92vw);
  margin-inline: auto;
  padding-top: calc(30 * var(--u));
  padding-bottom: calc(10 * var(--u));
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.brand {
  font-family: inherit;
  font-size: calc(15 * var(--u));
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.brand-icon {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: calc(13 * var(--u));
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  font-size: calc(13 * var(--u));
  font-weight: 400;
  font-family: inherit;
  color: inherit;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  font-size: calc(18 * var(--u));
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 800px) {
  .brand {
    font-size: 0.9rem;
  }
  .brand-text {
    display: none;
  }
  .brand-icon {
    display: block;
    height: 28px;
    width: auto;
  }
  .lang-switch {
    position: relative;
    z-index: 20;
  }
  .lang-switch button {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    touch-action: manipulation;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-block;
    font-size: 1.4rem;
    padding: 0.25rem 0.5rem;
    line-height: 1;
  }
  .nav-list {
    display: none;
  }

  /* ── Menu plein écran centré ── */
  .main-nav.open .nav-list {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 3.5vh, 1.8rem);
    padding: 0 1.5rem;
    pointer-events: none;
  }
  .main-nav.open .nav-list a {
    pointer-events: auto;
    display: block;
    max-width: 100%;
    font-size: clamp(1.4rem, 7vw, 2.3rem);
    font-variation-settings: "ital" 0, "wght" 380, "wdth" 100;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.05;
    padding: 0.1rem 0;
    border-bottom: none;
    letter-spacing: 0;
    text-align: center;
    overflow-wrap: break-word;
    transition: opacity 0.2s ease;
  }
  .main-nav.open .nav-list a:hover {
    border-bottom: none;
    opacity: 0.55;
  }
  /* Sur une des 3 pages, on ne propose que l'accès aux deux autres */
  .nav-list li:has(a[aria-current="page"]) {
    display: none;
  }
  /* Le contenu de la page disparaît quand le menu est ouvert */
  body:has(.main-nav.open) main,
  body:has(.main-nav.open) footer {
    visibility: hidden;
  }
}


body {
  background         : var(--paper);
  color              : var(--ink);
  font-family        : "obviously-variable", sans-serif;
  font-optical-sizing: auto;
  overflow-x         : clip;
  cursor             : pointer;
  user-select        : none;
  -webkit-user-select: none;

  /* ── Layout vertical : footer toujours visible ── */
  display        : flex;
  flex-direction : column;
  height         : 100vh;
}

/* ── Contenu principal : occupe l'espace, pousse le footer en bas ── */
main {
  flex: 1;
  width          : min(calc(960 * var(--u)), 92vw);
  margin-inline  : auto;
  display        : flex;
  flex-direction : column;
  justify-content: center;
  gap            : var(--gap);
  overflow-x     : clip;
}

/* ── Lignes communes ── */
.line {
  display        : block;
  line-height    : 0.92;
  white-space    : nowrap;
  text-transform : uppercase;
  overflow       : visible;
}
.line.align-right { text-align: right; }
.line.align-left  { text-align: left;  }

.block + .block { margin-top: 0; }

/* ── H1 intérieur : GAP / GROUP ── */
.h1 .inner {
  display                : block;
  font-size              : var(--title);
  font-variation-settings: "ital" 0, "wght" 803, "wdth" 121;
  transform              : scaleY(0.88);
  transform-origin       : bottom left;
  color                  : #fff;
}

/* ── H1 extérieur : THE / BXL ── */
.h1 .outer {
  display                : block;
  font-size              : calc(var(--title) / var(--phi));
  font-variation-settings: "ital" 0, "wght" 500, "wdth" 100;
  transform              : scaleY(0.88);
  transform-origin       : bottom left;
  color                  : #fff;
}

/* ── H2 : PAIRING / IS CARING ── */
.h2 .line {
  display                : block;
  font-size              : calc(var(--title) / var(--phi));
  font-variation-settings: "ital" 0, "wght" 699, "wdth" 121;
  transform              : scaleY(0.88);
  transform-origin       : bottom left;
  color                  : #fff;
}

/* ── Ligne d'appel ── */
.call {
  font-size              : calc(26 * var(--u));
  font-variation-settings: "ital" 0, "wght" 480, "wdth" 100;
  line-height            : 1.3;
  max-width              : calc(620 * var(--u));
}

/* ── Bouton ── */
.btn {
  align-self             : flex-start;
  display                : inline-block;
  padding                : calc(15 * var(--u)) calc(30 * var(--u));
  background             : var(--ink);
  color                  : var(--paper);
  text-decoration        : none;
  font-size              : calc(21 * var(--u));
  font-variation-settings: "ital" 0, "wght" 650, "wdth" 100;
  border-radius          : calc(2 * var(--u));
  transition             : transform 0.25s ease, opacity 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  opacity  : 0.9;
}

/* ── Deux boutons à poids égal, côte à côte ── */
.cta-buttons {
  display    : flex;
  flex-wrap  : wrap;
  align-self : flex-start;
  gap        : calc(16 * var(--u));
}
.cta-buttons .btn {
  align-self: auto;
}

/* ── Partenaires : rangée, hauteurs modulées ── */
.partners {
  display    : flex;
  align-items: center;
  gap        : calc(44 * var(--u));
  flex-wrap  : nowrap;
  margin-bottom: calc(20 * var(--u));
}
.logo        { width: auto; display: block; opacity: 0.85; }
.logo-sota   { height: var(--logo-sota);   }
.logo-kunst  { height: var(--logo-kunst);  }
.logo-vallee { height: var(--logo-vallee); }

/* ── Footer : discret, premium, aligné à gauche, toujours visible ── */
footer {
  margin-top: 0;
  padding-top: calc(20 * var(--u));
  padding-bottom: calc(20 * var(--u));
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-inner {
  max-width: min(calc(960 * var(--u)), 92vw);
  margin-inline: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: calc(13 * var(--u));
  font-variation-settings: "ital" 0, "wght" 320, "wdth" 100;
  letter-spacing: 0.01em;
}

.footer-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.footer-inner a:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ── Contact + Instagram ── */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.ig-link:hover { opacity: 0.95; }
.ig-link svg {
  display: block;
  width: 1.45em;
  height: 1.45em;
}

.footer-inner span {
  opacity: 0.45;
}

/* ── Visibilité des langues (synced avec pages.css) ── */
.lang-fr, .lang-en, .lang-nl { display: none; }
html.show-fr .lang-fr { display: revert; }
html.show-en .lang-en { display: revert; }
html.show-nl .lang-nl { display: revert; }