/* À propos — refonte du 1er octobre 2026. */
/* Les objets papier restent clairs ; leurs seuls jetons de couleur locaux littéraux. */
:root {
  --apx-paper-accent: #69598f;
  --apx-paper-back: #e9e6df;
  --apx-muted: color-mix(in srgb, var(--muted) 90%, var(--text));
  --apx-wall-top: color-mix(in srgb, var(--surface) 45%, var(--stage));
  --apx-wall: var(--stage);
  --apx-plinth: color-mix(in srgb, var(--stage) 85%, var(--text));
  --apx-floor: color-mix(in srgb, var(--stage) 94%, var(--text));
  --apx-frame: color-mix(in srgb, var(--surface) 80%, var(--stage));
}

/* ---------- 1. Le mur d’entrée ---------- */
/* L’en-tête se fond dans le mur tant que la page n’a pas défilé */
.site-nav a { color: var(--apx-muted); }
.site-header .lang a { color: var(--text); }
.site-header { transition: border-color .2s, background-color .25s; }
.site-header:not(.is-scrolled):not(.nav-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.apx-hero {
  --apx-head: 76px;
  position: relative; isolation: isolate; overflow-x: clip;
  margin-top: calc(-1 * var(--apx-head));
  padding-block: calc(var(--apx-head) + clamp(40px, 6vw, 96px)) 0;
  background:
    radial-gradient(42% 60% at 74% 0%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%),
    radial-gradient(30% 46% at 20% 0%, color-mix(in srgb, var(--surface) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--apx-wall-top), var(--apx-wall) 88%);
}
:root[data-theme="dark"] .apx-hero {
  background:
    radial-gradient(42% 60% at 74% 0%, color-mix(in srgb, var(--text) 9%, transparent), transparent 70%),
    radial-gradient(30% 46% at 20% 0%, color-mix(in srgb, var(--text) 5%, transparent), transparent 70%),
    linear-gradient(180deg, var(--apx-wall-top), var(--apx-wall) 88%);
}
.apx-hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 104px); align-items: end;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.apx-hero-copy { display: grid; gap: 28px; justify-items: start; padding-bottom: clamp(0px, 2vw, 24px); }
.apx-hero-copy .kicker { margin-bottom: -6px; }
/* Le titre comme un lettrage adhésif posé sur le mur : grand, serré, sans ombre */
.apx-hero h1 {
  font-size: clamp(44px, 6.2vw, 92px); line-height: .98; letter-spacing: -0.025em;
  max-width: 12.5em;
}
/* Le texte de salle : une colonne étroite, précédée d’un filet */
.apx-hero-lede {
  max-width: 34em; padding-left: 20px; border-left: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  color: var(--apx-muted);
}

/* L’œuvre accrochée et son cartel */
.apx-hung { position: relative; display: grid; justify-items: end; }
.apx-hung-frame {
  width: min(100%, 440px); aspect-ratio: 4 / 5; overflow: hidden;
  outline: 10px solid var(--apx-frame); outline-offset: -1px;
  box-shadow: var(--shadow-art); margin-right: 10px; animation: rise .9s cubic-bezier(.2,.7,.2,1) .18s both;
}
.apx-hung-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%; }
.apx-cartel {
  position: absolute; left: 0; bottom: 14%; width: min(220px, 48%);
  background: var(--paper); color: var(--ink); border-radius: 2px; padding: 14px 16px 13px;
  box-shadow: var(--shadow-paper);
  display: grid; gap: 2px; font-size: 12.5px; line-height: 1.4; animation: hang .7s cubic-bezier(.2,.7,.2,1) .7s both;
}
.apx-cartel-title { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.15; }
.apx-cartel-meta { font-size: 11.5px; color: var(--ink-muted); }
.apx-cartel-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ink-line); }

/* La plinthe et le sol, en bas du mur */
.apx-floor { height: clamp(28px, 4vw, 52px); background: linear-gradient(180deg, var(--apx-plinth) 0 2px, var(--apx-floor) 2px); }

/* ---------- 2. Ce que c’est ---------- */
.apx-what { background: var(--surface); border-bottom: 1px solid var(--line); }
.apx-what-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }

.apx-definition { position: relative; padding: clamp(8px, 2vw, 24px) 0; }
.apx-definition::before { /* une pile de fiches sous le cartel */
  content: ''; position: absolute; inset: clamp(8px, 2vw, 24px) 8% clamp(8px, 2vw, 24px) 4%;
  background: var(--paper); border: 1px solid var(--ink-line); border-radius: 3px; transform: rotate(2.6deg);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="dark"] .apx-definition::before { background: var(--apx-paper-back); }
.apx-def-card {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 3px;
  padding: clamp(26px, 3.4vw, 44px); box-shadow: var(--shadow-paper); transform: rotate(-1deg);
}
.apx-def-word { font-family: var(--serif); font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -0.02em; }
html[lang="en"] .apx-def-word { font-size: clamp(42px, 4.2vw, 60px); }
.apx-def-gram { font-size: 14px; font-style: italic; color: var(--ink-muted); margin-top: 10px; }
.apx-def-senses { counter-reset: sens; margin-top: 22px; border-top: 1.5px solid var(--ink); display: grid; }
.apx-def-senses li {
  counter-increment: sens; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 15.5px; line-height: 1.55;
}
.apx-def-senses li:last-child { border-bottom: 0; padding-bottom: 0; }
.apx-def-senses li::before { content: counter(sens) '.'; font-family: var(--serif); font-size: 19px; color: var(--apx-paper-accent); line-height: 1.3; }
.apx-def-senses b { font-weight: 600; }

/* Trois étages, chacun avec un petit signe qui dit ce qu’il contient */
.apx-floors { display: grid; gap: 24px; justify-items: start; }
.apx-floor-list { width: 100%; display: grid; }
.apx-floor-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.apx-floor-row:first-child { border-top: 2px solid var(--text); }
.apx-floor-row:last-child { border-bottom: 1px solid var(--line); }
.apx-floor-row b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.3vw, 30px); line-height: 1.1; margin-bottom: 6px; }
.apx-floor-row span:not(.apx-glyph) { display: block; color: var(--apx-muted); font-size: 16px; line-height: 1.55; }

.apx-glyph { display: grid; gap: 5px; padding-top: 6px; }
.apx-glyph i { display: block; border-radius: 3px; }
/* Le cœur : six éléments, tous compris */
.apx-glyph-core { grid-template-columns: repeat(3, 1fr); width: 76px; gap: 4px; }
.apx-glyph-core i { aspect-ratio: 1; background: var(--accent); }
/* Les modules : seize cases, quelques-unes choisies */
.apx-glyph-mods { grid-template-columns: repeat(8, 1fr); gap: 4px; }
.apx-glyph-mods i { aspect-ratio: 1; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 2px; }
.apx-glyph-mods i.on { background: var(--accent); border-color: var(--accent); }
/* L’accompagnement : quatre temps sur une ligne */
.apx-glyph-care { grid-template-columns: repeat(4, 1fr); position: relative; align-items: center; height: 24px; padding-top: 0; margin-top: 6px; }
.apx-glyph-care::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.apx-glyph-care i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); justify-self: center; }
.apx-glyph-care i:first-child { justify-self: start; background: var(--accent); }
.apx-glyph-care i:last-child { justify-self: end; }

/* ---------- 3. Pour qui : trois places dans la galerie ---------- */
.apx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.apx-role { display: grid; gap: 18px; }
.apx-role:nth-child(2) { margin-top: clamp(40px, 6vw, 88px); } /* accrochage décalé, comme un mur de salon */
.apx-role-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow-soft); background: var(--stage); }
.apx-role-photo img { width: 100%; height: 100%; object-fit: cover; }
.apx-role:nth-child(1) .apx-role-photo img { object-position: 64% 50%; }
.apx-role:nth-child(2) .apx-role-photo img { object-position: 50% 40%; }
.apx-role:nth-child(3) .apx-role-photo img { object-position: 40% 40%; }
.apx-role-cartel { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--text); max-width: 34ch; }
.apx-role-cartel b { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.apx-role-cartel b svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.apx-role-cartel span { color: var(--apx-muted); font-size: 15.5px; line-height: 1.5; }

.apx-capital {
  margin: clamp(64px, 8vw, 112px) auto 0; max-width: 24em; text-align: center; text-wrap: balance;
  font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.01em;
  position: relative; padding-top: 40px;
}
.apx-capital::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 24px; background: var(--accent); }

/* ---------- 4. Cinq règles ---------- */
.apx-principles { background: var(--wash); }
.apx-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.apx-rule {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 20px; align-content: start;
  padding: 34px 40px 38px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.apx-rule:nth-child(even) { padding: 34px 0 38px 40px; border-left: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.apx-k { font-family: var(--serif); font-size: 64px; line-height: .86; color: var(--accent); grid-row: span 2; font-variant-numeric: lining-nums; }
.apx-rule h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.12; }
.apx-rule p { color: var(--apx-muted); font-size: 16.5px; margin-top: 6px; max-width: 34em; }

/* La cinquième : l’équipe, sur une bande sombre */
.apx-team {
  margin-top: clamp(36px, 4vw, 56px); border-radius: 24px; background: var(--band); color: var(--band-text);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px); align-items: start;
}
.apx-team-main { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; }
.apx-team .apx-k { color: var(--band-accent); }
.apx-team h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; margin-bottom: 12px; }
.apx-team p { color: var(--band-muted); font-size: 16.5px; }
.apx-team-q { display: grid; gap: 10px; justify-items: start; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--band-line); }
.apx-team-q b { color: var(--band-text); font-weight: 500; }
.apx-team .text-link { color: var(--band-accent); scroll-margin-block: 112px; }
.apx-team :focus-visible { outline-color: var(--band-accent); }

/* La photographie de la réserve reste lisible sans affaiblir le texte superposé. */
.cta::before {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--band) 92%, transparent) 0%,
    color-mix(in srgb, var(--band) 90%, transparent) 58%,
    color-mix(in srgb, var(--band) 72%, transparent) 100%);
}

/* ---------- Mouvement ---------- */
.apx-hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.apx-hero-copy > :nth-child(2) { animation-delay: .06s; }
.apx-hero-copy > :nth-child(3) { animation-delay: .14s; }
.apx-hero-copy > :nth-child(4) { animation-delay: .2s; }

/* ---------- Adaptations ---------- */
@media (max-width: 1020px) {
  .apx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .apx-hung { justify-items: end; max-width: 620px; width: 100%; margin-left: auto; }
  .apx-hung-frame { width: min(72%, 440px); }
  .apx-cartel { left: 0; bottom: 10%; }
  .apx-what-grid { grid-template-columns: minmax(0, 1fr); }
  .apx-definition { max-width: 560px; }
  .apx-team { grid-template-columns: minmax(0, 1fr); }
  .apx-team-q { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--band-line); }
}

@media (max-width: 860px) {
  .apx-roles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .apx-role, .apx-role:nth-child(2) {
    margin-top: 0; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: center;
    padding: 18px 0; border-top: 1px solid var(--line);
  }
  .apx-role:last-child { border-bottom: 1px solid var(--line); }
  .apx-role-cartel { border-top: 0; padding-top: 0; }
  .apx-rules { grid-template-columns: minmax(0, 1fr); }
  .apx-rule, .apx-rule:nth-child(even) { padding: 28px 0 30px; border-left: 0; }
}

@media (max-width: 720px) {
  .apx-hero { --apx-head: 64px; padding-top: calc(var(--apx-head) + 28px); }
  .apx-hero-copy { gap: 22px; }
  .apx-hero-copy .actions { width: 100%; }
  .apx-hero-copy .actions .btn { flex: 1 1 auto; }
  .apx-hero-lede { padding-left: 14px; }
  .apx-hung-frame { width: 78%; outline-width: 7px; margin-right: 7px; }
  .apx-cartel { width: min(200px, 54%); bottom: 8%; padding: 12px 13px; }
  .apx-cartel-title { font-size: 16.5px; }

  .apx-def-card { transform: none; padding: 24px 20px; }
  .apx-definition::before { transform: rotate(2deg); inset-inline: 6% 2%; }
  .apx-floor-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .apx-glyph-core { width: 64px; }
  .apx-glyph-care { width: 96px; }
  .apx-glyph-mods { width: 160px; }

  .apx-role, .apx-role:nth-child(2) { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .apx-role-cartel b { font-size: 21px; gap: 8px; }
  .apx-role-cartel b svg { width: 18px; height: 18px; }
  .apx-role-cartel span { font-size: 15px; }
  .apx-capital { text-align: left; margin-top: 56px; padding-top: 0; padding-left: 18px; border-left: 2px solid var(--accent); }
  .apx-capital::before { display: none; }

  .apx-rule { grid-template-columns: 56px minmax(0, 1fr); gap: 2px 14px; }
  .apx-k { font-size: 44px; }
  .apx-team { border-radius: 20px; padding: 26px 20px; }
  .apx-team-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .apx-team .apx-k { grid-row: auto; }
  .apx-team h3 { font-size: 27px; }
}
