/* =========================================================================
   Paul Charpentier, système visuel « clair-obscur ».

   Deux valeurs seulement, le papier et l'encre, et leurs dilutions en gris.
   Aucune couleur. Les formes viennent de la bannière LinkedIn : pastilles,
   cercles au trait, astérisque. La police aussi : DM Sans, en gras pour ce
   qui s'affirme, en italique léger pour ce qui précise.

   La structure reprend un cadre à filets : une colonne bordée, des sections
   séparées par un trait, des cellules. L'encre, elle, apparaît à trois
   endroits : le bord des aplats noirs, l'inversion au survol, et la bascule
   clair / obscur qui inonde la page.
   ========================================================================= */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-opsz-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-opsz-italic.woff2') format('woff2');
}

:root {
  --paper: #f4f3ee;
  --ink: #0b0b0c;

  /* Page claire : encre sur papier. */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #56554f; /* encre diluée, texte secondaire */
  --fg-3: #86857f; /* lavis, second ton des titres */
  --rule: #d9d7cf;

  /* Aplat inverse : noir sur page claire, papier sur page obscure. */
  --i-bg: var(--ink);
  --i-fg: var(--paper);
  --i-fg-2: #bdbcb6;
  --i-fg-3: #85847f;
  --i-rule: #2c2c2d;

  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --frame: 78rem;
  --out: 0px;
  --pad: 1.25rem;
  --gap: clamp(1.5rem, 4vw, 3.5rem);
  --sp: clamp(3.5rem, 7vw, 6rem);

  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: #bdbcb6;
  --fg-3: #85847f;
  --rule: #2c2c2d;

  --i-bg: var(--paper);
  --i-fg: var(--ink);
  --i-fg-2: #56554f;
  --i-fg-3: #86857f;
  --i-rule: #d9d7cf;

  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root { --out: 1.25rem; --pad: clamp(1.75rem, 3.2vw, 3rem); }
}

/* Deux portées de couleur réutilisables : tout composant placé dedans
   (bouton, pastille, filet) s'y adapte sans règle supplémentaire. */
.on-ink {
  --bg: var(--ink); --fg: var(--paper); --fg-2: #bdbcb6; --fg-3: #85847f; --rule: #2c2c2d;
}
.on-inverse {
  --bg: var(--i-bg); --fg: var(--i-fg); --fg-2: var(--i-fg-2); --fg-3: var(--i-fg-3); --rule: var(--i-rule);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 5.5rem; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
sup { font-size: 0.65em; line-height: 0; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap {
  width: min(100% - var(--out) * 2, var(--frame));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--flush { padding-inline: 0; }
.wrap__pad { padding-inline: var(--pad); }
@media (min-width: 48rem) {
  main .wrap, .foot .wrap { border-inline: 1px solid var(--rule); }
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--pad); top: -5rem; z-index: 60;
  background: var(--fg); color: var(--bg);
  font-size: 0.875rem; font-weight: 600; padding: 0.7em 1.1em; border-radius: 999px;
}
.skip:focus { top: 0.6rem; }

/* ---------- Titres à deux encres ----------
   Le gras porte l'affirmation, l'italique léger la précise : c'est le couple
   de la bannière (nom en gras, métier en italique). */
.title { letter-spacing: -0.035em; line-height: 1; }
.title i, .work__title i {
  font-style: italic; font-weight: 300; letter-spacing: -0.03em; color: var(--fg-3);
}
.title--2 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem); max-width: 18ch; }

.eyebrow {
  display: flex; align-items: center; gap: 0.65em;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow svg { flex: none; width: 1.05em; height: 1.05em; color: var(--fg); }
.eyebrow + .title { margin-top: 1.1rem; }

.lede { color: var(--fg-2); max-width: 30rem; }
.title + .lede { margin-top: 1.25rem; }

/* ---------- Boutons et pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; line-height: 1;
  padding: 0.95em 1.45em; border-radius: 999px;
  border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg);
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn--line { background: transparent; color: var(--fg); }
.btn--line:hover { background: var(--fg); color: var(--bg); }
.btn--sm { font-size: 0.875rem; padding: 0.75em 1.2em; }
.btn svg { width: 1em; height: 1em; flex: none; }

.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; line-height: 1.15;
  padding: 0.5em 1em; border-radius: 999px;
  border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg);
  white-space: nowrap;
}
.tag--line { background: transparent; color: var(--fg); font-weight: 600; }
.tag--dash {
  background: transparent; color: var(--fg-2); font-weight: 500;
  border-style: dashed; border-color: var(--fg-3);
}
.tags { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 0.5rem; }

/* ---------- En-tête ---------- */
.top {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.top__in {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 1rem; min-height: 3.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none;
}
.brand svg { width: 1.15rem; height: 1.15rem; }
.top__tools { display: flex; align-items: center; gap: 0.5rem; }
.top__nav {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; gap: 1.5rem;
  margin-inline: calc(var(--pad) * -1); padding: 0.7rem var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem; font-weight: 500;
}
.top__nav a { text-decoration: none; }
.top__nav a:hover, .top__nav a[aria-current='page'] {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.4em;
}
.top__lang, .theme {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 2.375rem; padding-inline: 0.85rem; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent;
  font-size: 0.8125rem; font-weight: 600; line-height: 1; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.top__lang:hover, .theme:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.theme { display: none; }
.js .theme { display: inline-flex; }
.theme svg { width: 1rem; height: 1rem; }
.theme span { display: none; }
.theme { width: 2.375rem; padding: 0; }
.top__cta { display: none; }

@media (min-width: 48rem) {
  .top {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .top__in { grid-template-columns: 1fr auto auto; column-gap: 1.75rem; min-height: 4.25rem; }
  .top__nav { grid-column: auto; grid-row: auto; margin: 0; padding: 0; border: 0; gap: 1.75rem; }
  .top__cta { display: inline-flex; }
  .theme { width: auto; padding-inline: 0.85rem; }
  .theme span { display: inline; }
}

/* ---------- Accueil : ouverture ----------
   Un aplat noir dans le cadre, quel que soit le thème. Le portrait est en
   noir et blanc sur fond noir : il s'y fond sans bord. */
.hero__slab {
  position: relative; isolation: isolate;
  display: grid;
  background: var(--bg); color: var(--fg);
}
.hero__text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(1.5rem, 4vw, 4rem);
}
.status {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.3;
  padding: 0.6em 1.1em; border-radius: 999px; border: 1px solid var(--fg-3);
}
.status svg { flex: none; width: 0.95em; height: 0.95em; }
.hero__title {
  margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
  font-size: clamp(2.6rem, 1.15rem + 6.2vw, 4.75rem);
  line-height: 0.98;
}
.hero__deck { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 33rem; color: var(--fg-2); }
.hero__deck p:first-child { color: var(--fg); font-size: 1.0625em; }
.hero__deck p + p { margin-top: 0.8em; }
.hero .acts { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* Le portrait dans son cercle, suivi des deux cercles de la bannière, coupés
   par le bord droit. Toutes les mesures dérivent du diamètre --d. */
.hero__art {
  --d: min(68vw, 19rem);
  position: relative; overflow: hidden;
  height: calc(var(--d) + 4.5rem);
}
.orbit {
  position: absolute; top: 50%; left: var(--pad);
  width: calc(var(--d) * 1.51); height: var(--d);
  translate: 0 -50%;
}
.orbit__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__rings circle, .rings circle {
  fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.orbit__face {
  position: absolute; left: 0; top: 0; width: var(--d); height: var(--d);
  border-radius: 50%; object-fit: cover; border: 1.5px solid var(--fg);
}
.orbit .tag {
  position: absolute; z-index: 2;
  font-size: clamp(0.8125rem, calc(var(--d) * 0.045), 1.125rem);
  box-shadow: 0 0 0 2px var(--bg);
}
.orbit .tag--ast { background: var(--bg); color: var(--fg); padding: 0.55em 1.05em; box-shadow: none; }
.orbit .tag--ast svg { width: 1.35em; height: 1.35em; }
.orbit .tag--1 { left: 37%; top: 1%; rotate: 12deg; }
.orbit .tag--2 { left: -1%; top: 30%; }
.orbit .tag--3 { left: 2%; top: 74%; rotate: -9deg; }
.orbit .tag--4 { left: 52%; top: 70%; rotate: -11deg; }
.orbit .tag--5 { left: 9%; top: 5%; rotate: -15deg; }
.orbit .tag--6 { left: 40%; top: 89%; rotate: -15deg; }

@media (min-width: 62rem) {
  .hero__slab { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
  .hero__art { --d: clamp(17rem, 28.5vw, 26rem); height: auto; min-height: 34rem; }
  .orbit { left: auto; right: calc(var(--d) * -0.29); }
}

/* Le bord bas de l'aplat boit dans le papier. */
.bleed::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
  height: clamp(1.75rem, 4.5vw, 3.5rem); margin-top: -1px;
  background: var(--bg);
  -webkit-mask: url('../img/ink-edge.webp') top / 100% 100% no-repeat;
  mask: url('../img/ink-edge.webp') top / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Bandes et cellules ---------- */
.band { border-top: 1px solid var(--rule); }
.band__pad { padding-block: var(--sp); }
.band__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2rem; padding-bottom: clamp(2rem, 4vw, 3rem);
}

.cells { display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.cells > * { background: var(--bg); }

/* Chiffres */
.figs__head { padding: clamp(3.75rem, 8vw, 6rem) var(--pad) 1.5rem; }
.figs { grid-template-columns: 1fr; }
.fig {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.75rem var(--pad) 1.6rem; text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.fig__v {
  font-size: clamp(2.5rem, 1.7rem + 2.5vw, 3.6rem); font-weight: 600;
  line-height: 1; letter-spacing: -0.045em; white-space: nowrap;
}
.approx { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--fg-3); }
.fig__l { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.45; color: var(--fg-2); max-width: 22rem; }
.fig__s {
  margin-top: auto; padding-top: 1.4rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.fig__l, .fig__s, .approx { transition: color 0.25s; }
a.fig:hover { background: var(--fg); color: var(--bg); }
a.fig:hover .fig__l { color: var(--bg); }
@media (min-width: 36rem) { .figs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .figs { grid-template-columns: repeat(4, 1fr); } }

/* Structures : chaque logo dans un disque clair, en niveaux de gris. */
.orgs { grid-template-columns: 1fr 1fr; }
.orgs__label { grid-column: 1 / -1; padding: 1.4rem var(--pad); display: flex; align-items: center; }
.org { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.25rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; }
.disc {
  flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--rule);
  display: grid; place-items: center; overflow: hidden;
}
.disc img { width: 70%; height: 70%; object-fit: contain; filter: grayscale(1) contrast(1.1); }
@media (min-width: 62rem) {
  .orgs { grid-template-columns: 1.15fr repeat(4, 1fr); }
  .orgs__label { grid-column: auto; }
}

/* ---------- Deux colonnes : titre à gauche, liste à droite ---------- */
.split { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 62rem) { .split { grid-template-columns: 5fr 7fr; } }

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.3rem 0.75rem;
  margin-inline: -0.9rem; padding: 1.35rem 0.9rem;
  border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.row__n { padding-top: 0.5em; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.row__t { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.row__d { grid-column: 2; font-size: 0.9375rem; color: var(--fg-2); max-width: 34rem; transition: color 0.25s; }
.row__a { grid-column: 3; grid-row: 1; align-self: center; width: 1.1rem; height: 1.1rem; }
.row:hover { background: var(--fg); color: var(--bg); }
.row:hover .row__d { color: var(--bg); }

/* ---------- Réalisations ---------- */
.works { grid-template-columns: 1fr; }
.work__link {
  display: flex; flex-direction: column; gap: 1.4rem; height: 100%;
  padding: clamp(1.25rem, 2.4vw, 2rem) var(--pad) clamp(1.5rem, 2.4vw, 2rem);
  text-decoration: none;
}
.work__body { display: flex; flex-direction: column; flex: 1; }
.work__cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.work__title {
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem); line-height: 1.08; letter-spacing: -0.03em;
}
.work__sum { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--fg-2); max-width: 30rem; }
.work__meta { display: grid; gap: 0.9rem 1.5rem; margin-top: auto; padding-top: 1.1rem; }
@media (min-width: 30rem) {
  .work__meta { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .work__meta div:nth-child(2) { text-align: right; }
}
.work__sum + .work__meta { margin-top: 1.4rem; border-top: 1px solid var(--rule); }
.work__body > .work__meta { flex: none; }
.work__body .work__sum { margin-bottom: auto; }
.work__meta dt, .meta dt, .facts h3, .crumb, .casenav span, .presslist dt, .reach__k {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.work__meta dd { margin-top: 0.2rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.work__link:hover .work__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }

@media (min-width: 46rem) {
  .works { grid-template-columns: 1fr 1fr; }
  .work--wide { grid-column: 1 / -1; }
  .work--wide .work__link { flex-direction: row; gap: var(--gap); align-items: stretch; }
  .work--wide .cover { flex: 1.35; aspect-ratio: 16 / 10; }
  .work--wide .work__body { flex: 1; justify-content: center; }
  .work--wide .work__body .work__sum { margin-bottom: 0; }
  .work--wide .work__meta { margin-top: 1.6rem; }
  .work--wide .work__title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
}

/* Couverture d'un projet : un petit format de la bannière. Aplat inverse,
   cercles au trait, pastilles d'outils, et le résultat en grand. */
.cover {
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 4 / 3; border-radius: 4px;
  background: var(--bg); color: var(--fg);
}
.rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--fg-3); }
.cover__tags {
  position: absolute; top: 8%; left: 7%; right: 30%;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.4rem;
}
.cover__tags .tag { font-size: clamp(0.6875rem, 3.1cqi, 0.9375rem); }
.cover__tags .tag:nth-child(odd) { rotate: -5deg; }
.cover__tags .tag:nth-child(even) { rotate: 4deg; translate: 0 0.3rem; }
.cover__txt { position: absolute; left: 7%; right: 7%; bottom: 8%; display: flex; flex-direction: column; gap: 0.3em; }
.cover__big {
  font-size: clamp(2rem, 13cqi, 5.5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em;
}
.cover__big--long { font-size: clamp(1.5rem, 8cqi, 3.4rem); letter-spacing: -0.04em; max-width: 12em; }
.cover__small {
  font-size: clamp(0.9375rem, 4cqi, 1.5rem); font-style: italic; font-weight: 300; line-height: 1.2;
  color: var(--fg-2);
}
.cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.06); transition: filter 0.4s;
}
.work__link:hover .cover img { filter: none; }

/* ---------- À propos ---------- */
.about { display: grid; gap: 2.5rem var(--gap); }
.about__fig { margin: 0; }
.about__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.06); }
.about__fig figcaption { margin-top: 0.7rem; font-size: 0.8125rem; color: var(--fg-2); }
.about .prose { margin-top: 2rem; }
.about .acts { margin-top: 2rem; }
@media (min-width: 62rem) {
  .about { grid-template-columns: 4fr 8fr; align-items: start; }
  .about .title { max-width: 20ch; }
  .about .prose { columns: 2; column-gap: var(--gap); }
  .about .prose > * { max-width: none; break-inside: avoid; }
}

/* ---------- Médias ---------- */
.medias { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.medias .tag { font-size: clamp(1rem, 0.85rem + 0.9vw, 1.5rem); padding: 0.5em 1.05em; }
.press__note { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 62rem) {
  .press__note { grid-template-columns: minmax(0, 34rem) auto; align-items: end; justify-content: space-between; }
}

/* ---------- Bloc de fin ----------
   Aplat inverse et cercles de la bannière, coupés par le bord gauche. */
.closing__slab {
  position: relative; isolation: isolate;
  background: var(--bg); color: var(--fg);
  padding: clamp(3rem, 8vw, 6.5rem) var(--pad);
}
.closing { padding-top: clamp(1.75rem, 4.5vw, 3.5rem); }
.closing__slab .rings { z-index: -1; top: auto; bottom: -1.5rem; height: 11rem; }
/* Le haut de l'aplat boit vers le haut : même bord d'encre, retourné. */
.closing__slab { overflow: visible; }
.closing__slab::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; z-index: 3;
  height: clamp(1.75rem, 4.5vw, 3.5rem); margin-bottom: -1px;
  background: var(--bg); scale: -1 -1;
  -webkit-mask: url('../img/ink-edge.webp') top / 100% 100% no-repeat;
  mask: url('../img/ink-edge.webp') top / 100% 100% no-repeat;
  pointer-events: none;
}
.closing__in { position: relative; }
.closing__title { font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.75rem); max-width: 13ch; }
.closing__text { margin-block: 1.5rem 2rem; max-width: 28rem; color: var(--fg-2); }
.closing__slab { padding-bottom: 11rem; }
@media (min-width: 62rem) { .closing__slab { padding-bottom: clamp(3rem, 8vw, 6.5rem); } }
@media (min-width: 62rem) {
  .closing__in { margin-left: 41.5%; }
  .closing__slab .rings { top: 0; bottom: 0; height: 100%; }
}

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--fg-2); }
.foot__in {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem 2rem; padding-block: 1.75rem 2.5rem;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- En-tête de page intérieure ---------- */
.pagehead > .wrap { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--fg); text-decoration: underline; }
.pagehead__title {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 1.35rem + 4.9vw, 5rem); max-width: 15ch;
}
.crumb + .pagehead__title { margin-top: 1.25rem; }
.pagehead__deck {
  margin-top: 1.4rem; max-width: 40rem;
  font-size: clamp(1.25rem, 1.05rem + 0.95vw, 1.75rem); line-height: 1.25;
  font-style: italic; font-weight: 300; letter-spacing: -0.015em; color: var(--fg-2);
}
.pagehead .acts { margin-top: 2rem; }
.pagehead--case > .wrap { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 62rem) {
  .pagehead--case > .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
}

.meta { grid-template-columns: 1fr; border-bottom: 0; }
.meta > div { padding: 1.25rem var(--pad) 1.4rem; }
.meta dd { margin-top: 0.45rem; font-weight: 600; }
.meta .tags { margin-top: 0.6rem; }
.meta .tag { font-size: 0.8125rem; }
@media (min-width: 46rem) { .meta { grid-template-columns: 1fr 1fr 1.6fr; } }

/* ---------- Section numérotée (pages intérieures) ---------- */
main { counter-reset: sec; }
.sec { border-top: 1px solid var(--rule); counter-increment: sec; }
.sec__grid {
  display: grid; gap: 1.5rem var(--gap);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.sec__label {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.015em;
}
.sec__label::before {
  content: counter(sec, decimal-leading-zero);
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--fg-3);
}
.sec__intro { color: var(--fg-2); max-width: 36rem; margin-bottom: 2rem; }
.sec__label--plain { counter-increment: none; gap: 0.75rem; }
.sec__label--plain::before { content: none; }
.cat__head { padding-block: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem); }
.cat__head .row__n { padding: 0; }
@media (min-width: 62rem) { .sec__grid { grid-template-columns: 4fr 8fr; } }

/* ---------- Texte courant ---------- */
.prose > * { max-width: 38rem; }
.prose > * + * { margin-top: 0.95em; }
.prose ul { list-style: disc; padding-left: 1.1em; }
.prose li + li { margin-top: 0.3em; }
.prose li::marker, .entry__what li::marker { color: var(--fg-3); }
.prose a, .fine a { text-decoration: underline; }
.prose a:hover, .fine a:hover { background: var(--fg); color: var(--bg); text-decoration: none; }

.fine { font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); max-width: 36rem; margin-top: 1.5rem; }
.more { margin-top: 2rem; }

.figs--in { border: 1px solid var(--rule); }
.figs--in .fig { padding-inline: 1.5rem; }
@media (min-width: 62rem) { .figs--in { grid-template-columns: 1fr 1fr; } }

.presslist { border-top: 1px solid var(--rule); }
.presslist > div { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.presslist dd { margin-top: 0.6rem; }

.shots { display: grid; gap: 1.75rem var(--gap); }
.shot { margin: 0; }
.shot img { border-radius: 4px; }
.shot figcaption { margin-top: 0.7rem; font-size: 0.8125rem; line-height: 1.45; color: var(--fg-2); }
@media (min-width: 36rem) { .shots { grid-template-columns: 1fr 1fr; } }

.pull {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem); line-height: 1.16; letter-spacing: -0.03em;
  font-weight: 600; max-width: 24em;
}

.casenav { grid-template-columns: 1fr 1fr; }
.casenav a {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.5rem var(--pad) 1.75rem; text-decoration: none;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  transition: background-color 0.25s, color 0.25s;
}
.casenav a:last-child { text-align: right; align-items: flex-end; }
.casenav a:hover { background: var(--fg); color: var(--bg); }

/* ---------- Parcours ---------- */
.entry { display: grid; gap: 0.75rem var(--gap); padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.sec__body > .entry:first-child { border-top: 0; padding-top: 0; }
.entry__when { font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
.entry__when b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.entry__head { display: flex; align-items: center; gap: 0.9rem; }
.entry__what h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.entry__what h3 em { font-style: italic; font-weight: 300; color: var(--fg-2); }
.entry__what ul { list-style: disc; padding-left: 1.1em; margin-top: 0.9rem; max-width: 38rem; }
.entry__what li + li { margin-top: 0.4em; }
.entry__what p { margin-top: 0.5rem; color: var(--fg-2); max-width: 38rem; }
@media (min-width: 46rem) { .entry { grid-template-columns: 11rem minmax(0, 1fr); } }

.skill { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 0.75rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.skill__n { padding-top: 0.45em; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.skill h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 0.8rem; }

.facts { grid-template-columns: 1fr; border: 1px solid var(--rule); }
.facts > div { padding: 1.25rem 1.5rem 1.5rem; }
.facts ul { margin-top: 0.6rem; }
.facts li + li { margin-top: 0.15rem; }
@media (min-width: 36rem) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.reach { border-top: 1px solid var(--rule); }
.reach li { border-bottom: 1px solid var(--rule); }
.reach li:last-child { border-bottom: 0; }
.reach__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.3rem 1rem;
  width: 100%; padding: 1.4rem var(--pad); border: 0; background: none; cursor: pointer;
  text-align: left; text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.reach__k { grid-column: 1; transition: color 0.25s; }
.reach__v {
  grid-column: 1;
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.reach__row svg { grid-column: 2; grid-row: 1 / span 2; width: 1.4rem; height: 1.4rem; }
.reach__row:hover { background: var(--fg); color: var(--bg); }
.reach__row:hover .reach__k { color: var(--bg); }
@media (min-width: 46rem) {
  .reach__row { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: baseline; }
  .reach__v { grid-column: 2; }
  .reach__row svg { grid-column: 3; grid-row: 1; align-self: center; }
}

.cv { max-width: 44rem; margin: 0; }
.cv img { border: 1px solid var(--rule); border-radius: 4px; }
.cv figcaption { margin-top: 0.8rem; font-size: 0.8125rem; line-height: 1.5; color: var(--fg-2); }

/* ---------- Page introuvable ---------- */
.lost { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--fg); padding: clamp(3rem, 9vw, 7rem) var(--pad); min-height: 70vh; }
.lost .rings { z-index: -1; }
.lost__code { font-size: clamp(5rem, 22vw, 15rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.06em; }
.lost .title { margin-top: 1.5rem; }
.lost .lede { margin-top: 1.25rem; }
.lost .acts { margin-top: 2rem; }

/* ---------- Mouvement ----------
   Un fondu entre les pages, et l'encre qui se répand à la bascule de thème. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.inking::view-transition-old(root), .inking::view-transition-new(root) {
  animation: none; mix-blend-mode: normal;
}
.inking::view-transition-new(root) { z-index: 2; }
.inking::view-transition-old(root) { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .top__nav, .top__tools, .foot__links, .closing, .casenav, .skip { display: none; }
  :root { --bg: #fff; --fg: #000; }
}
