﻿:root {
  --bg: #f3f2ee;
  --text: #111111;
  --muted: #5f5d58;
  --line: rgba(17, 17, 17, .14);
  --card: rgba(255, 255, 255, .84);
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* =========================================================
   HOME — one fixed screen, no page scroll
   ========================================================= */
html.home, html.home body { height: 100%; overflow: hidden; overflow: clip; }

.stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #0b0b0b; }
.stage-media { position: absolute; inset: -7%; }
.stage-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;          /* keep the bridge tower in frame */
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.12);
  will-change: transform;
}
/* light veil top-left so the logo reads, dark veil bottom so the words read */
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,0) 65%);
}

/* ---------- Logo (top-left) ---------- */
.brand {
  position: absolute; top: var(--gutter); left: var(--gutter); z-index: 3;
  text-decoration: none;
}
.wordmark {
  position: relative;
  width: clamp(240px, 34vw, 560px);
  aspect-ratio: 1780 / 189;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.4));
}
/* each letter is a shape (mask) filled with a colour, so its colour can change */
.wordmark .ltr {
  position: absolute; top: 0; height: 100%;
  background-color: #fff;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transform-origin: 50% 55%;
  will-change: transform;
}
.wordmark .ltr[data-l="a"] { transform-origin: 50% 60%; }
body[data-logo="black"] .wordmark .ltr { background-color: #111; }
body[data-logo="black"] .wordmark { filter: none; }
body[data-logo="red"] .wordmark .ltr { background-color: #d51717; }
/* light logos sit on a dark veil instead of a light one */
body[data-logo="white"] .stage-shade,
body[data-logo="red"] .stage-shade {
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(0,0,0,.45), rgba(0,0,0,0) 70%),
    linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,0) 65%);
}
.tagline {
  margin-top: 14px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: #111;
}
body[data-logo="white"] .tagline { color: #fff; }

/* ---------- Discreet legal button (bottom-right) ---------- */
.legal-mini {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 3;
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 6px 2px;
  font: 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.legal-mini:hover, .legal-mini:focus-visible { color: #fff; }
.textlink {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline;
}

/* ---------- Card extras ---------- */
.soon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.soon span {
  padding: 8px 12px;
  border: 1px solid rgba(17,17,17,.35);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #111;
}
.card .mail { margin-top: 16px; }
.card .mail a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Floating words (bottom-left) ---------- */
.phrases {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 3;
  width: min(820px, calc(100vw - 2 * var(--gutter)));
  text-align: right;
  height: clamp(150px, 26vh, 260px);
  color: #fff;
  cursor: pointer;
}
.phrase {
  position: absolute; left: 0; bottom: 0; right: 0;
  text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45);
}
.phrase .k {
  display: block; margin-bottom: 16px;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase;
  opacity: .9;
}
.phrase .t {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.6vw, 92px);
  line-height: 1.02;
}
.phrase .w { display: inline-block; white-space: pre; }
.js .phrase { visibility: hidden; }
.js .phrase.on { visibility: visible; }
.no-js-hide { display: none; }

/* ---------- Card slider (unused, kept for reference) ---------- */
.deck {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 3;
  width: min(460px, calc(100vw - 2 * var(--gutter)));
}
.track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: clamp(260px, 35vh, 320px);
  overflow-y: auto;
  padding: 26px 30px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text);
}
.card .kicker {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08;
  margin-bottom: 14px;
}
.card h2 em { font-style: italic; }
.card p { color: #2b2a27; }
.card dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin-top: 4px; }
.card dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.card dd a { text-decoration: none; border-bottom: 1px solid var(--line); }

.deck-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.dots { display: flex; gap: 8px; }
.dot {
  width: 26px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
}
.dot[aria-current="true"] { background: #fff; }
.arrows { display: flex; gap: 8px; }
.arrow {
  width: 40px; height: 40px; border: 0; cursor: pointer;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 18px; color: var(--text);
}
.arrow:hover { background: #fff; }
.arrow:disabled { opacity: .45; cursor: default; }

/* ---------- Pop-ups ---------- */
dialog {
  margin: auto;
  width: min(680px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  border: 0; padding: 0;
  background: #0b0b0b; color: #f2f0eb;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  scrollbar-color: #444 #0b0b0b;
}
dialog::backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog a, dialog .textlink { color: #fff; }
.dialog-head {
  position: sticky; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; background: #0b0b0b; border-bottom: 1px solid rgba(255,255,255,.14);
}
.dialog-head h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.close {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; padding: 4px 8px; color: #f2f0eb;
}
.dialog-body { padding: 8px 28px 30px; font-size: 15px; }
.dialog-body h3 {
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 26px 0 8px;
}
.dialog-body p { margin-bottom: 10px; color: rgba(255,255,255,.88); }
.dialog-body .updated { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 16px; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .stage-media img { object-position: 52% 50%; }
  .wordmark { width: min(300px, 62vw); }
  .tagline { font-size: 9px; letter-spacing: .26em; }
  .legal-mini { bottom: 12px; left: 12px; }
  /* on phones the logo sits on the bright sky: darken the top a little */
  body[data-logo="white"] .stage-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%),
      linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,0) 60%);
  }
  .phrases { bottom: 48px; height: 34vh; }
  .phrase .t { font-size: clamp(32px, 10vw, 46px); }
  .phrase .k { font-size: 10px; letter-spacing: .3em; margin-bottom: 12px; }
  .deck { left: 0; right: 0; width: 100%; bottom: 0; padding: 0 12px 44px; }
  .card { height: 34vh; height: 34svh; min-height: 220px; padding: 24px 22px; }
  .card h2 { font-size: 26px; }
  .deck-nav { justify-content: center; margin-top: 12px; }
  .arrows { display: none; }
}

/* =========================================================
   Standalone legal pages (mentions-legales.html, confidentialite.html)
   ========================================================= */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
header { border-bottom: 1px solid rgba(17,17,17,.12); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { height: 20px; width: auto; }
nav a {
  margin-left: 28px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
nav a:hover { color: var(--text); }
.legal { padding: 80px 28px 110px; max-width: 860px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 48px; font-size: 14px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { margin-bottom: 12px; }
footer { border-top: 1px solid rgba(17,17,17,.12); padding: 36px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 22px; }
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  nav a { margin-left: 14px; font-size: 11px; letter-spacing: .12em; }
  .legal { padding: 56px 18px 80px; }
  footer a { margin-left: 0; margin-right: 18px; }
}
