/* ==========================================================================
   Arkalis · site
   Design : Claude Design « Homepage v2 » (maquette 1440px) + design system Arkalis
   ========================================================================== */

/* Hanken Grotesk auto-hébergée (aucune requête vers Google) : un fichier variable 300 à 500 */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette (kleurenkaart) */
  --gold: #9c9a6c;
  --gold-dark: #807e54;
  --brown: #565140;
  --charcoal: #3c3c3c;
  --mist: #f1f6f1;
  --white: #ffffff;

  /* Texte */
  --text: #3c3c3c;
  --text-body: #5a5a55;
  --text-muted: #6b6b66;
  --text-faint: #8a8a85;

  /* Lignes */
  --line: #eceeeb;
  --field: #c9cbc7;

  --font: "Gill Sans", "Gill Sans MT", "Hanken Grotesk", system-ui, sans-serif;

  /* Marges : 72px sur la maquette desktop, 20px sur mobile */
  --gutter: clamp(20px, 5vw, 72px);
  /* Cadre commun : largeur de la maquette, au-delà le contenu reste centré */
  --frame: 1440px;
  --frame-inset: max(0px, (100% - var(--frame)) / 2);
  --pad-lg: clamp(32px, 5vw, 72px);
  --header-h: 97px;

  /* Mouvements : lents, sans rebond */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; }
h1, h2, h3, p, ol, ul, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; touch-action: manipulation; }

::selection { background: #e6e4cf; color: var(--charcoal); }

:focus-visible {
  outline: 1px solid var(--gold-dark);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--frame) - 144px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
.h-display, .h-page, .h-section, .h-statement, .h-card, .h-name, .h-small,
.area__title, .cta-band h2 {
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}
.accent { color: var(--gold); }

.h-display {
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  max-width: 960px;
}
.h-display .accent { color: var(--gold-dark); }

.h-page {
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  max-width: 980px;
}
.h-section {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.h-statement {
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
}
.h-card {
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.h-name {
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.h-small {
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.eyebrow {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--lg { font-size: 15px; letter-spacing: 0.28em; }
.eyebrow--dark { color: var(--gold-dark); }
.eyebrow--spaced { padding-bottom: 24px; }

.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  color: #4a4a45;
  max-width: 620px;
  text-wrap: pretty;
}
.page-hero .lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--text-body); max-width: 720px; }

.body { font-size: clamp(16px, 1.2vw, 17px); line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.body--muted { color: var(--text-muted); }
.small { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

.stack { display: flex; flex-direction: column; gap: 20px; }

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 36px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    color 0.4s var(--ease-soft);
}
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--md { padding: 14px 30px; font-size: 14px; align-self: flex-start; margin-top: 8px; }
.btn--sm { min-height: 0; padding: 12px 24px; font-size: 14px; letter-spacing: 0.08em; }
.btn--block { width: 100%; }

@media (hover: hover) {
  .btn--dark:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
  .btn--ghost:hover { background: var(--charcoal); color: var(--white); }
}
.btn--dark:active { background: #4a4636; border-color: #4a4636; }
.btn--ghost:active { background: #2f2f2f; color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease-soft);
}
.text-link span { transition: transform 0.5s var(--ease); }
.text-link--sm { font-size: 13px; }
@media (hover: hover) {
  .text-link:hover { color: var(--brown); }
  .text-link:hover span { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
  view-transition-name: site-header;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 28px var(--gutter);
  transition: padding 0.5s var(--ease);
}
.header__logo img { height: 40px; width: auto; transition: height 0.5s var(--ease); }

.header.is-compact .header__inner { padding-block: 16px; }
.header.is-compact .header__logo img { height: 34px; }
.header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 44px);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { white-space: nowrap; }
/* 5 liens + bouton + langues : un peu plus serré sur les petits écrans desktop */
@media (max-width: 1320px) { .nav { gap: 22px; font-size: 14px; letter-spacing: 0.04em; } }
.nav__link {
  position: relative;
  padding: 6px 0;
  color: var(--charcoal);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__link.is-current::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.lang { display: flex; gap: 12px; font-size: 13px; letter-spacing: 0.12em; }
.lang a { color: var(--text-faint); transition: color 0.3s; }
.lang a.is-current, .lang a:hover { color: var(--charcoal); }

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 20px; }
.burger span:last-child { top: 28px; }
.menu-open .burger span:first-child { top: 24px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 24px; transform: rotate(-45deg); }

/* Menu mobile */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0s 0.45s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-soft); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.menu__link.is-current { color: var(--gold-dark); }
.menu__link::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg) scale(0);
  transition: transform 0.4s var(--ease);
}
.menu__link.is-current::after, .menu__link:active::after { transform: rotate(45deg) scale(1); }
.menu__foot { display: flex; flex-direction: column; gap: 24px; }
.menu__contact { font-size: 16px; line-height: 1.9; color: var(--text-muted); }
.menu__link, .menu__foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-soft), transform 0.8s var(--ease);
}
.menu-open .menu__link, .menu-open .menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 60ms + 120ms);
}
html.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  :root { --header-h: 81px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { padding-block: 20px; }
  .header__logo img { height: 36px; }
  .header.is-compact .header__inner { padding-block: 14px; }
  .header.is-compact .header__logo img { height: 32px; }
  .menu-open .header { transform: none; border-bottom-color: transparent; }
}
@media (min-width: 1101px) { .menu { display: none; } }
/* Sans JavaScript : navigation visible en toutes tailles */
html:not(.js) .burger { display: none; }
@media (max-width: 1100px) {
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
  html:not(.js) .header__inner { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero__img { width: 100%; height: 100%; }
.hero__img img {
  object-fit: cover;
  object-position: 58% 50%; /* garde le losange du symbole visible sur mobile */
  animation: settle 2.6s var(--ease) both;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.35) 100%);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-top: clamp(88px, 10.3vw, 148px);
  padding-bottom: clamp(80px, 9.2vw, 132px);
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 16px; }
.actions--left { justify-content: flex-start; }

@media (max-width: 600px) {
  .hero__veil { background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.66) 60%, rgba(255,255,255,0.5) 100%); }
  .hero__content { gap: 22px; }
  .hero .actions { flex-direction: column; align-self: stretch; margin-top: 8px; }
  .hero .actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Domaines (accueil)
   -------------------------------------------------------------------------- */
.areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(40px, 3.9vw, 56px) clamp(24px, 3.3vw, 48px);
  border-right: 1px solid var(--line);
  background: var(--white);
  transition: background-color 0.6s var(--ease-soft);
}
.area:last-child { border-right: 0; }
.area__num { font-size: 14px; letter-spacing: 0.2em; color: var(--gold); transition: transform 0.6s var(--ease); }
.area__title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: 0.04em; }
.area__text { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); max-width: 42ch; }
.area__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.area__line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
/* Le trait est toujours visible ; le libellé apparaît au survol (toujours visible au toucher) */
.area__more { color: transparent; transition: color 0.5s var(--ease-soft); }
@media (hover: hover) {
  .area:hover { background: var(--mist); }
  .area:hover .area__num { transform: translateX(4px); }
  .area:hover .area__line { width: 44px; }
  .area:hover .area__more { color: var(--gold-dark); }
}
@media (hover: none) {
  .area__more { color: var(--gold-dark); }
  .area:active { background: var(--mist); }
}

@media (max-width: 1100px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area:nth-child(2) { border-right: 0; }
  .area:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .areas { grid-template-columns: 1fr; }
  .area { border-right: 0; border-bottom: 1px solid var(--line); gap: 12px; padding: 36px var(--gutter); }
  .area:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Bandeau photo
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  height: clamp(200px, 21vw, 300px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.band__media { position: absolute; inset: -18% 0; will-change: transform; }
.band__media picture { height: 100%; }
.band__media img { object-fit: cover; object-position: var(--pos, 50% 50%); filter: saturate(0.7); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.3));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Chiffres
   -------------------------------------------------------------------------- */
.stats { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats + .mark, .stats + section { border-top: 0; }
.stats__inner {
  display: flex;
  justify-content: center;
  gap: clamp(48px, 8.3vw, 120px);
  padding-block: clamp(56px, 5.6vw, 80px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stat__value {
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__label { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 760px) {
  .stats__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .stats__inner--3 .stat:last-child { grid-column: 1 / -1; }
  .stat__label { font-size: 12.5px; letter-spacing: 0.14em; max-width: 18ch; }
}

/* --------------------------------------------------------------------------
   Sections en deux colonnes
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 5.6vw, 80px);
}

.mark .split { padding-block: clamp(72px, 7.8vw, 112px); }
.mark__symbol { display: flex; justify-content: center; }
.mark__symbol img { width: clamp(200px, 19.5vw, 280px); height: auto; }
.mark__text { max-width: 520px; }

.dice { border-top: 1px solid var(--line); }
.dice__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: clamp(72px, 6.7vw, 96px);
  text-align: center;
}
.dice__img { width: clamp(130px, 11.8vw, 170px); }
.dice__img img { height: auto; }
.dice p { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 640px; text-wrap: pretty; }

.office { background: var(--mist); border-top: 1px solid var(--line); }
.office .split { padding-block: clamp(64px, 6.7vw, 96px); }
.office .body { max-width: 460px; }
.office__photo { position: relative; overflow: hidden; height: clamp(260px, 26.4vw, 380px); }
.office__media { position: absolute; inset: -10% 0; will-change: transform; }
.office__media picture { height: 100%; }
.office__media img {
  object-fit: cover;
  filter: saturate(0.75);
  transition: transform 1.6s var(--ease);
}
.office__photo::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.28); pointer-events: none; }
@media (hover: hover) { .office__photo:hover img { transform: scale(1.03); } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .mark__text { max-width: 640px; }
  .mark__symbol { justify-content: flex-start; }
  .office__photo { order: -1; }
}

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */
.page-hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(64px, 7.2vw, 104px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.page-hero--border { border-bottom: 1px solid var(--line); }
.page-hero--404 .wrap { padding-bottom: clamp(96px, 12vw, 160px); }

/* Grilles à cellules bordées */
.grid-2, .grid-3, .grid-5-7 { display: grid; border-bottom: 1px solid var(--line); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5-7 { grid-template-columns: 5fr 7fr; }
.grid-5-7--top { border-top: 1px solid var(--line); border-bottom: 0; }

.cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(40px, 3.9vw, 56px) var(--gutter);
  border-right: 1px solid var(--line);
}
.cell:last-child { border-right: 0; }
.cell > * { max-width: 680px; }
.cell--lg { padding: var(--pad-lg) var(--gutter); gap: 18px; }
.cell--mist { background: var(--mist); }
.grid-2 .cell { scroll-margin-top: var(--header-h); }

/* Grand écran : les grilles bordées restent dans le cadre, les lignes horizontales
   traversent la page et deux traits verticaux ferment le cadre */
.areas, .grid-2, .grid-3, .grid-5-7 { padding-inline: var(--frame-inset); }
@media (min-width: 1441px) {
  .areas > :first-child, .grid-2 > :first-child, .grid-3 > :first-child, .grid-5-7 > :first-child { box-shadow: inset 1px 0 var(--line); }
  .areas > :last-child, .grid-2 > :last-child, .grid-3 > :last-child, .grid-5-7 > :last-child { box-shadow: inset -1px 0 var(--line); }
}

@media (max-width: 900px) {
  .grid-2, .grid-5-7 { grid-template-columns: 1fr; }
  .grid-2 .cell, .grid-5-7 .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2 .cell:last-child, .grid-5-7 .cell:last-child { border-bottom: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .cell { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 36px; }
  .grid-3 .cell:last-child { border-bottom: 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .grid-3 .cell:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .grid-3 .cell:nth-last-child(2):nth-child(even) { border-bottom: 0; }
}

/* « And beyond » */
.beyond { border-bottom: 1px solid var(--line); }
.beyond__inner {
  display: flex;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(56px, 5.6vw, 80px);
}
.beyond__intro { flex: 0 0 340px; display: flex; flex-direction: column; gap: 14px; }
.beyond__intro .h-card { line-height: 1.3; }
.beyond__list {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-content: start;
}
.beyond__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.45;
}
.diamond {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) { .beyond__list li:hover .diamond { transform: rotate(225deg) scale(1.35); } }
@media (max-width: 900px) {
  .beyond__inner { flex-direction: column; }
  .beyond__intro { flex-basis: auto; max-width: 560px; }
}
@media (max-width: 600px) { .beyond__list { grid-template-columns: 1fr; } }

/* Liste numérotée (médiation) */
.numbered li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.numbered__num { flex: 0 0 36px; font-size: 15px; letter-spacing: 0.1em; color: var(--gold); line-height: 1.5; }
.numbered__title { font-size: 18px; line-height: 1.4; margin-bottom: 6px; }
.numbered__text { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--mist); }
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: clamp(64px, 6.1vw, 88px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 2.65vw, 38px); line-height: 1.25; letter-spacing: 0.06em; max-width: 900px; }
.cta-band p { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 560px; }
.cta-band .btn { margin-top: 8px; }
.grid-3 + .stats, .grid-2 + .beyond { border-top: 0; }
.stats + .mark { border-top: 0; }
.mark + .cta-band { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-info { gap: 40px; }
.contact-info__item { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.contact-info address, .contact-info__big { font-size: 18px; line-height: 1.6; }
.contact-info__big { transition: color 0.3s var(--ease-soft); }
@media (hover: hover) { .contact-info__big:hover { color: var(--gold-dark); } }
.contact-info__house { width: clamp(180px, 18vw, 260px); height: auto; margin-top: 8px; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form__head { display: flex; flex-direction: column; gap: 8px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* 16px minimum : pas de zoom automatique sur iOS */
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #9a9a95; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9aba6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: #fdfdfb;
}
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid, .select select.is-empty { color: #9a9a95; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__error {
  min-height: 0;
  font-size: 13.5px;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--brown); }

.form__foot { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.form__note { font-size: 14px; line-height: 1.6; color: #9a9a95; }
.form__sent {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--mist);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-body);
  animation: rise 0.8s var(--ease) both;
}
.form__sent a { color: var(--gold-dark); border-bottom: 1px solid currentColor; }

@media (max-width: 600px) {
  .form__grid { grid-template-columns: 1fr; gap: 20px; }
  .form__foot .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 48px calc(48px + env(safe-area-inset-bottom));
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__brand img { height: 32px; width: auto; align-self: flex-start; }
.footer__tagline { font-size: 14px; letter-spacing: 0.14em; color: var(--gold); }
.footer__info { font-size: 15px; line-height: 1.7; color: var(--text-muted); text-align: right; }
.footer__info .dot { margin-inline: 6px; }
.footer__info a { transition: color 0.3s var(--ease-soft); }
@media (hover: hover) { .footer__info a:hover { color: var(--gold-dark); } }
@media (max-width: 900px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__info { text-align: left; }
}
@media (max-width: 600px) {
  .footer__info .dot { display: none; }
  .footer__info > span, .footer__info > a { display: block; }
  .footer__info br { display: none; }
  .footer__info { font-size: 14.5px; }
}

.footer__legal { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.04em; color: var(--text-faint); }
.footer__legal a, .footer__legal button { color: inherit; transition: color 0.3s var(--ease-soft); }
.footer__legal button { padding: 0; border: 0; background: none; cursor: pointer; font-size: inherit; letter-spacing: inherit; }
@media (hover: hover) { .footer__legal a:hover, .footer__legal button:hover { color: var(--gold-dark); } }
@media (max-width: 600px) {
  .footer__legal { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
  .footer__legal button { text-align: left; }
}

/* Mots longs (néerlandais, allemand) : césure sur petits écrans, selon la langue de la page */
@media (max-width: 600px) {
  h1, h2, h3, .stat__label { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* --------------------------------------------------------------------------
   Offre d'emploi : affiche (page Carrières + pop-up)
   -------------------------------------------------------------------------- */
.job-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 4.4vw, 64px) clamp(24px, 3.3vw, 48px);
  background: #e9f0ea;
  color: var(--charcoal);
}
/* Arcs du symbole en filigrane, comme sur le visuel */
.job-card__deco {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.job-card__deco::before, .job-card__deco::after {
  content: "";
  position: absolute;
  aspect-ratio: 2000 / 1118;
  background: url("/assets/img/symbol.svg") no-repeat center / contain;
  opacity: 0.13;
  filter: grayscale(1);
}
.job-card__deco::before { width: 120%; top: -24%; right: -62%; transform: rotate(-12deg); }
.job-card__deco::after { width: 90%; bottom: -26%; left: -48%; transform: rotate(16deg); }

.job-card__bell { color: var(--gold-dark); margin-bottom: 14px; transform-origin: 50% 10%; }
.job-card__eyebrow { font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); }
.job-card__heading {
  margin-top: 6px;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.job-card { container-type: inline-size; }
/* Le mot clé (« Lawyers », « Rechtsanwälte »…) tient toujours sur une ligne :
   taille calculée d'après sa longueur (--chars) et la largeur de l'affiche */
.job-card__role {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: min(92px, calc(100cqi / (var(--chars, 7) * 0.7)));
  white-space: nowrap;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.job-card__areas { margin-top: 18px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--charcoal); text-wrap: balance; }
.job-card__areas span { color: var(--gold-dark); }
.job-card__exp { margin-top: 4px; font-size: clamp(16px, 1.35vw, 19px); font-weight: 500; color: var(--charcoal); }
.job-card__rule { width: min(100%, 420px); height: 1px; background: var(--gold); margin: 22px 0 18px; }
.job-card__place { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: var(--charcoal); }
.job-card__place svg { color: var(--charcoal); }
.job-card__btn { margin-top: 26px; min-width: 220px; }
.job-card__note { margin-top: 18px; font-size: 15.5px; line-height: 1.6; color: var(--text-body); text-wrap: balance; }
.job-card__note a { display: inline-block; margin-top: 4px; color: var(--charcoal); letter-spacing: 0.04em; border-bottom: 1px solid var(--gold); transition: color 0.3s var(--ease-soft); }
@media (hover: hover) { .job-card__note a:hover { color: var(--gold-dark); } }

/* Clochette : petit balancement à l'apparition */
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  75% { transform: rotate(2deg); }
}
.job-pop[open] .job-card__bell { animation: ring 1.4s 0.5s var(--ease-soft) both; }
.job-card--hero .job-card__bell { animation: ring 1.4s 1.2s var(--ease-soft) both; }

/* Pop-up */
.job-pop {
  width: min(460px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}
.job-pop::backdrop { background: rgba(60, 60, 60, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.job-pop .job-card { box-shadow: 0 30px 80px rgba(40, 40, 30, 0.25); padding-top: 52px; }
.job-pop .job-card__heading { font-size: clamp(28px, 7.5vw, 36px); }
.job-pop[open] { animation: pop-in 0.7s var(--ease) both; }
.job-pop[open]::backdrop { animation: fade-in 0.5s var(--ease-soft) both; }
.job-pop.is-closing { animation: pop-out 0.3s var(--ease-soft) both; }
.job-pop.is-closing::backdrop { animation: fade-in 0.3s var(--ease-soft) reverse both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.job-pop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.job-pop__close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: var(--charcoal); transition: transform 0.5s var(--ease); }
.job-pop__close span:first-child { transform: rotate(45deg); }
.job-pop__close span:last-child { transform: rotate(-45deg); }
@media (hover: hover) { .job-pop__close:hover span:first-child { transform: rotate(135deg); } .job-pop__close:hover span:last-child { transform: rotate(45deg); } }

/* --------------------------------------------------------------------------
   Page Carrières
   -------------------------------------------------------------------------- */
.job-hero { border-bottom: 1px solid var(--line); }
.job-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(40px, 5.6vw, 88px);
  padding-block: clamp(56px, 6.4vw, 96px);
}
.job-hero__text { display: flex; flex-direction: column; gap: 24px; }
.job-hero__text .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-body); }
.job-hero__text .actions { margin-top: 8px; }
@media (max-width: 1000px) {
  .job-hero__inner { grid-template-columns: 1fr; }
  .job-card--hero { max-width: 560px; width: 100%; justify-self: center; }
}

.job-about__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5.6vw, 88px);
  padding-block: clamp(64px, 7vw, 112px);
}
.job-about__head { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.job-about__text { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.job-about__first { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--charcoal); }
@media (max-width: 900px) {
  .job-about__inner { grid-template-columns: 1fr; }
  .job-about__head { position: static; }
}
.job-about { border-bottom: 1px solid var(--line); }

.job-list { display: flex; flex-direction: column; margin-top: 8px; }
.job-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-body);
}
.job-list li:last-child { border-bottom: 0; }
.job-list .diamond { transform: translateY(-3px) rotate(45deg); }
@media (hover: hover) { .job-list li:hover .diamond { transform: translateY(-3px) rotate(225deg) scale(1.35); } }
.cell--mist .job-list li { border-color: #dfe6df; }
.job-place .job-list li { border-color: #dfe6df; }
.job-place .office__photo { height: clamp(300px, 34vw, 500px); }

/* Candidature */
.apply { scroll-margin-top: var(--header-h); }
.apply__intro { gap: 20px; }
.apply__call { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; padding-top: 24px; border-top: 1px solid #dfe6df; }
.apply__call .contact-info__big { font-size: 22px; letter-spacing: 0.02em; }
.apply__call .text-link { margin-top: 6px; }
.apply__symbol { width: clamp(160px, 16vw, 220px); height: auto; margin-top: auto; padding-top: 32px; opacity: 0.9; }

.field__req { color: var(--gold-dark); }
.apply__cv {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px dashed var(--gold);
  background: var(--mist);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-body);
}
.apply__cv svg { flex: 0 0 auto; margin-top: 1px; color: var(--gold-dark); }

/* --------------------------------------------------------------------------
   Bandeau cookies
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  padding: 28px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(60, 60, 60, 0.12);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-soft), transform 0.6s var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie__title { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.cookie__text { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }
.cookie__text a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie__actions .btn { flex: 1 1 auto; }
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 22px 20px 20px; }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal__body { max-width: 760px; color: var(--text-body); font-size: 16.5px; line-height: 1.7; }
.legal__updated { font-size: 14px; color: var(--text-faint); margin-bottom: 40px; }
.legal__body h2 { font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); margin: 48px 0 14px; }
.legal__body h3 { font-size: 17px; font-weight: 500; color: var(--charcoal); margin: 28px 0 8px; }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 14px; }
.legal__body ul { list-style: none; display: grid; gap: 6px; }
.legal__body li { position: relative; padding-left: 20px; }
.legal__body li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.legal__body a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.legal__body strong { font-weight: 500; color: var(--charcoal); }
.legal__table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 14px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 500; color: var(--charcoal); white-space: nowrap; }
.legal__table td:first-child { white-space: nowrap; color: var(--charcoal); }
.legal__scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Animations
   Discrètes et lentes : fondus et glissements de quelques pixels, pas de rebond.
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Entrée du haut de page, au chargement */
.intro { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
.header__inner { animation: header-in 0.9s var(--ease) both; }

/* Apparition au scroll (activée par site.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="mark"] { transform: scale(0.94); transition-duration: 1.4s, 1.8s; }
.js [data-reveal="dice"] { transform: translateY(20px) rotate(-10deg); transition-duration: 1s, 1.6s; }
.js [data-reveal="house"] { transform: translateY(12px); transition-duration: 1.2s, 1.6s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Photos : rideau qui s'ouvre de bas en haut */
.js [data-curtain] > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--ease-io);
}
.js [data-curtain] img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
.js [data-curtain].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-curtain].is-in img { transform: none; }
@media (hover: hover) { .js .office__photo.is-in:hover img { transform: scale(1.03); } }

/* Transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s var(--ease-soft) both vt-out; }
::view-transition-new(root) { animation: 0.55s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-curtain] > *, .js [data-curtain] img { opacity: 1; transform: none; clip-path: none; }
  @view-transition { navigation: none; }
}
