/* ==========================================================================
   Portfolio — Brayan Sorgho
   Une seule feuille de style, sans framework. Mobile d'abord.
   Palette neutre et lumineuse : blanc, gris chauds, noir profond.
   ========================================================================== */

/* ---------- 1. Variables ---------- */

:root {
  --bg:       #ffffff;
  --paper:    #f5f4f0;
  --mist:     #e8e7e3;
  --ink:      #121212;
  --ink-2:    #2b2b2e;
  --text:     #3a3a3d;
  --muted:    #626266;
  --line:     rgb(18 18 18 / .12);
  --line-2:   rgb(18 18 18 / .22);
  --dark:     #141414;
  --dark-2:   #222225;
  --on-dark:  #f5f4f0;
  --on-dark-muted: rgb(245 244 240 / .64);
  --matrix:   #3cff74;

  --font:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 96px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 3px rgb(0 0 0 / .05), 0 10px 30px rgb(0 0 0 / .05);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .04), 0 30px 60px rgb(0 0 0 / .08);

  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

/* ---------- 2. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--ink); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Langues ---------- */

/* Chaque texte existe en français et en anglais ; seule la langue active est rendue. */
:root[data-lang="fr"] [lang="en"],
:root[data-lang="en"] [lang="fr"] { display: none !important; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(255 255 255 / .55);
}

.lang-switch__btn {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.lang-switch--dark { border-color: rgb(255 255 255 / .22); background: rgb(255 255 255 / .06); }
.lang-switch--dark .lang-switch__btn { color: var(--on-dark-muted); }
.lang-switch--dark .lang-switch__btn:hover { color: #fff; }
.lang-switch--dark .lang-switch__btn[aria-pressed="true"] { background: #fff; color: var(--ink); }

.is-lang-switching main { animation: lang-fade .4s ease; }
@keyframes lang-fade { from { opacity: .35; } to { opacity: 1; } }

/* ---------- 4. Boutons et liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); color: #fff; }
.btn--secondary { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--ghost { padding-inline: 6px; color: var(--ink); }
.btn--ghost .icon { transition: transform .3s var(--ease-out); }
.btn--ghost:hover .icon { transform: translateX(4px); }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: .875rem; }

/* Bouton rond : un disque se remplit depuis le bas au survol. */
.round-btn {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: clamp(132px, 12vw, 176px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: color .45s var(--ease-out), transform .4s var(--ease-out);
}
button.round-btn { padding: 0; font: inherit; cursor: pointer; }
.round-btn__fill {
  position: absolute;
  z-index: -1;
  left: -25%;
  top: 100%;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  background: #fff;
  transition: top .65s var(--ease);
}
.round-btn:hover,
.round-btn:focus-visible { color: var(--ink); }
.round-btn:hover .round-btn__fill,
.round-btn:focus-visible .round-btn__fill { top: -50%; }
.round-btn__label { position: relative; padding: 0 14px; line-height: 1.25; transition: transform .4s var(--ease-out); }

.round-btn--light { border-color: #fff; background: #fff; color: var(--ink); box-shadow: 0 0 60px rgb(255 255 255 / .18); }
.round-btn--light .round-btn__fill { background: var(--dark-2); }
.round-btn--light:hover,
.round-btn--light:focus-visible { color: #fff; }

[data-magnetic] { will-change: transform; }

/* Lien avec un point qui apparaît dessous. */
.link-dot {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.link-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform .35s var(--ease-out);
}
.link-dot:hover::after,
.link-dot.is-active::after { transform: translateX(-50%) scale(1); }

.kicker,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font);
  line-height: 1.4;
}

.section-title {
  margin-bottom: clamp(32px, 5vw, 56px);
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -.045em;
  line-height: 1;
}

/* ---------- 5. En-tête ---------- */

.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.logo__copy { display: inline-block; transition: transform .9s var(--ease-out); }
.logo:hover .logo__copy,
.logo:focus-visible .logo__copy { transform: rotate(360deg); }
.logo__roll { display: inline-grid; overflow: hidden; height: 1.5em; line-height: 1.5; }
.logo__a,
.logo__b { grid-area: 1 / 1; transition: transform .6s var(--ease-out); }
.logo__b { transform: translateY(100%); }
.logo:hover .logo__a,
.logo:focus-visible .logo__a { transform: translateY(-100%); }
.logo:hover .logo__b,
.logo:focus-visible .logo__b { transform: none; }

.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: 4px; }
.header__lang { margin-left: 12px; }

@media (max-width: 900px) {
  .js .header__nav { display: none; }
  .js .header__lang { margin-left: auto; margin-right: 68px; }
  .no-js .header__inner { flex-wrap: wrap; padding-block: 16px; }
  .no-js .header__nav ul { flex-wrap: wrap; }
}

/* ---------- 6. Bouton de menu flottant et panneau ---------- */

.menu-btn {
  position: fixed;
  top: 20px;
  right: max(16px, calc(var(--gutter) - 28px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / .18);
  cursor: pointer;
  transform: scale(0);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.no-js .menu-btn { display: none; }
.is-scrolled .menu-btn,
.menu-open .menu-btn { transform: scale(1); }
.menu-open .menu-btn { background: #fff; color: var(--ink); }

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 24px;
  height: 1.5px;
  border-radius: 2px;
  transition: transform .45s var(--ease-out);
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before,
.menu-btn__lines::after { content: ""; position: absolute; left: 0; background: currentColor; }
.menu-btn__lines::before { top: -4px; }
.menu-btn__lines::after { top: 4px; }
.menu-open .menu-btn__lines::before { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn__lines::after { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { top: 16px; width: 56px; height: 56px; transform: scale(1); }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.menu-open .menu { pointer-events: auto; }
.menu-open body { overflow: hidden; }

.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .3);
  opacity: 0;
  transition: opacity .6s;
}
.menu-open .menu__backdrop { opacity: 1; }

.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  padding: 120px clamp(28px, 6vw, 72px) 40px;
  overflow-y: auto;
  background: var(--dark);
  color: var(--on-dark);
  transform: translateX(calc(100% + 120px));
  transition: transform .9s var(--ease);
}
.menu-open .menu__panel { transform: none; }

/* Bord gauche incurvé pendant l'ouverture, qui se redresse à l'arrivée. */
.menu__curve {
  position: absolute;
  top: -10%;
  right: calc(100% - 1px);
  width: 120px;
  height: 120%;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  background: var(--dark);
  transform-origin: right;
  transition: transform .9s var(--ease);
}
.menu-open .menu__curve { transform: scaleX(0); }

.menu__label {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(255 255 255 / .16);
  color: var(--on-dark-muted);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu__links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0;
  color: var(--on-dark);
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-decoration: none;
}
.menu__links a::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: -28px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .35s var(--ease-out);
}
.menu__links a:hover::before,
.menu__links a:focus-visible::before { transform: scale(1); }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
  font-size: .9rem;
}
.menu__foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.menu__foot a { color: var(--on-dark); text-decoration: none; }
.menu__foot a:hover { text-decoration: underline; }

/* ---------- 7. Intro : pluie binaire, nom, photo ---------- */

.intro { display: none; }

.intro-on body { overflow: hidden; }

.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #030603;
  color: #fff;
  /* Filet de sécurité : l'intro disparaît d'elle-même si le script échoue. */
  animation: intro-failsafe .6s 12s forwards;
}

.intro__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .9s ease;
}
.intro.is-stopped .intro__rain { opacity: 0; }

.intro__stage {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  text-align: center;
}

.intro__name {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .95;
  opacity: 0;
  transition: opacity .4s ease;
}
.intro.is-name .intro__name { opacity: 1; }

.intro__last {
  display: block;
  margin-bottom: clamp(14px, 2vw, 24px);
  padding-left: .42em;
  color: rgb(255 255 255 / .72);
  font-size: clamp(.95rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .42em;
}
.intro__first {
  display: block;
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(2.7rem, 7.6vw, 7rem);
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}
.intro.is-name-out .intro__name { opacity: 0; transform: translateY(-28px); transition: opacity .55s ease, transform .7s var(--ease-out); }
.intro .bit { color: var(--matrix); text-shadow: 0 0 12px rgb(60 255 116 / .6); }

.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  padding: 10px 18px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 999px;
  background: rgb(255 255 255 / .04);
  color: rgb(255 255 255 / .82);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.intro__skip:hover { border-color: #fff; color: #fff; }
.intro__skip:focus-visible { outline-color: #fff; }

/* Sortie : le rideau remonte avec un bord inférieur incurvé. */
.intro.is-leaving { transform: translateY(calc(-100% - 20vh)); transition: transform 1.1s var(--ease); }
.intro::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: -10%;
  width: 120%;
  height: 20vh;
  border-radius: 0 0 50% 50%;
  background: #030603;
}

@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- 8. Rideau de transition entre les pages ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  background: var(--dark);
  pointer-events: none;
  transform: translateY(calc(100% + 18vh));
}
.is-leaving .curtain,
.curtain-in .curtain { visibility: visible; }
.curtain::before,
.curtain::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 18vh;
  background: var(--dark);
}
.curtain::before { bottom: calc(100% - 1px); border-radius: 50% 50% 0 0; }
.curtain::after { top: calc(100% - 1px); border-radius: 0 0 50% 50%; }

.is-leaving .curtain { transform: none; transition: transform .75s var(--ease); pointer-events: auto; }
.curtain-in .curtain { transform: none; animation: curtain-failsafe .01s 4s forwards; }
.curtain-in.curtain-go .curtain { transform: translateY(calc(-100% - 18vh)); transition: transform .95s var(--ease); }

@keyframes curtain-failsafe { to { transform: translateY(calc(-100% - 18vh)); } }

/* ---------- 9. Accueil : bandeau ---------- */

.hero {
  --mx: 50%;
  --my: 32%;
  --mq: clamp(4.4rem, 13vw, 13rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--mist);
}

/* Halo de lumière blanche qui suit le pointeur. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38rem 30rem at var(--mx) var(--my), rgb(255 255 255 / .95), rgb(255 255 255 / 0) 70%),
    linear-gradient(to top, rgb(0 0 0 / .05), transparent 35%);
}

.hero__photo {
  position: absolute;
  left: 50%;
  bottom: calc(3vh + var(--mq) * .5);
  width: auto;
  height: min(62svh, 540px);
  max-width: none;
  /* La photo sur fond blanc se fond dans le gris : effet détouré sans retouche. */
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(.92);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
  transform: translateX(-50%);
}

.hero__location {
  position: absolute;
  left: 0;
  top: 46%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 18px 18px clamp(20px, 4vw, 44px);
  border-radius: 0 999px 999px 0;
  background: var(--ink);
  color: #fff;
  font-size: .98rem;
  line-height: 1.35;
}
.hero__location p { margin: 0; }

.globe {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #8c8c90;
}
.globe svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.5; }
.globe .meridian { transform-box: fill-box; transform-origin: center; animation: globe-spin 5s linear infinite; }
.globe .meridian--2 { animation-delay: -2.5s; }

@keyframes globe-spin {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(0); }
  50%  { transform: scaleX(-1); }
  75%  { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.hero__role {
  position: absolute;
  right: var(--gutter);
  top: 34%;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hero__role p { margin: 0; }
.hero__arrow { width: 30px; height: 30px; margin-bottom: 22px; stroke-width: 1.5; }

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3vh;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--mq);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: .13em;
  height: .13em;
  margin: 0 .38em;
  border-radius: 50%;
  background: currentColor;
}

/* Entrée du bandeau, déclenchée à la fin de l'intro. */
/* Entrée du bandeau : le visage prend sa place d'abord, puis le reste du site apparaît. */
.is-ready .hero__photo { animation: hero-photo 1.3s var(--ease-out) var(--d-photo, .05s) both; }
.is-ready .marquee { animation: hero-slide 1.5s var(--ease-out) var(--d-rest, .45s) both; }
.is-ready .hero__location { animation: hero-left 1.1s var(--ease-out) calc(var(--d-rest, .45s) + .15s) both; }
.is-ready .hero__role { animation: hero-fade 1.1s var(--ease-out) calc(var(--d-rest, .45s) + .25s) both; }
[data-intro].is-ready .header { animation: hero-fade 1s var(--ease-out) calc(var(--d-rest, .45s) + .35s) both; }
.from-intro { --d-photo: .55s; --d-rest: 1.95s; }

@keyframes hero-photo {
  from { opacity: 0; filter: blur(10px); transform: translate(-50%, 90px) scale(.94); }
  to { opacity: 1; filter: contrast(1.04) saturate(.92); transform: translateX(-50%); }
}
@keyframes hero-slide { from { opacity: 0; transform: translateX(12vw); } to { opacity: 1; transform: none; } }
@keyframes hero-left { from { transform: translateX(-110%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { --mq: clamp(4rem, 19vw, 6rem); }
  .hero__photo { height: min(50svh, 440px); }
  .hero__role { top: 112px; right: auto; left: var(--gutter); font-size: 1.35rem; }
  .hero__arrow { width: 24px; height: 24px; margin-bottom: 12px; }
  .hero__location { top: 228px; padding: 10px 10px 10px var(--gutter); gap: 14px; font-size: .85rem; }
  .globe { width: 46px; height: 46px; }
  .globe svg { width: 26px; height: 26px; }
}

/* ---------- 10. Accueil : sections ---------- */

.section { padding-block: clamp(96px, 12vw, 180px); }
.section--paper { background: var(--paper); }
.section--tight { padding-top: 0; }

/* Déclaration */
.statement__grid { display: grid; gap: 48px; }

.statement__big {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.statement__side { max-width: 25rem; color: var(--muted); font-size: 1.05rem; }
.statement__side .round-btn { margin-top: clamp(40px, 6vw, 72px); }

@media (min-width: 960px) {
  .statement__grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .statement__side { padding-top: 10px; }
}

/* Qualités */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(32px, 4vw, 48px);
}
.service__num {
  display: block;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.service h3 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.service p { color: var(--muted); }

/* Chiffres */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
}
.number strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .95;
  /* Reflet métallique : noir profond qui s'éclaircit vers le bas. */
  background: linear-gradient(180deg, #121212 35%, #8d8d90 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.number > span { display: block; max-width: 16rem; margin-top: 18px; color: var(--muted); }

/* Projets : liste avec aperçu qui suit le pointeur */
.work-list { border-top: 1px solid var(--line); }

.work-item__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: clamp(32px, 5vw, 60px) clamp(0px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: opacity .45s;
}
.work-item__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  transition: transform .45s var(--ease-out);
}
.work-item__meta { color: var(--muted); text-align: right; }
.work-item__thumb { display: none; }

@media (max-width: 600px) {
  .work-item__link { grid-template-columns: 1fr; }
  .work-item__meta { text-align: left; }
}

@media (hover: hover) and (pointer: fine) {
  .work-list:hover .work-item__link { opacity: .3; }
  .work-list .work-item__link:hover,
  .work-list .work-item__link:focus-visible { opacity: 1; }
  .work-item__link:hover .work-item__title { transform: translateX(-14px); }
}

@media (hover: none), (pointer: coarse) {
  .work-item__thumb {
    display: block;
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    margin-bottom: 18px;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--paper);
  }
  .work-item__meta { grid-column: 1 / -1; text-align: left; }
}

.preview { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; }
.preview__inner {
  position: absolute;
  left: -200px;
  top: -150px;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  transform: scale(0);
  transition: transform .5s var(--ease-out);
}
.preview.is-active .preview__inner { transform: scale(1); }
.preview__slides { height: 100%; transform: translateY(calc(var(--slide, 0) * -100%)); transition: transform .6s var(--ease); }
.preview__slide { display: grid; place-items: center; height: 100%; }
.preview__slide img { width: 84%; border-radius: 4px; box-shadow: var(--shadow-lg); }
.preview__slide--wiiga { background: #efebe2; }
.preview__slide--yilga { background: #ece8dc; }
.preview__slide--sgkoom { background: #f3f3f1; }

[hidden] { display: none !important; }
.preview__label {
  position: absolute;
  left: -42px;
  top: -42px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  transform: scale(0);
  transition: transform .45s var(--ease-out);
}
.preview.is-active .preview__label { transform: scale(1); }

@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* Compétences : rubans qui glissent avec le défilement */
.ribbons { overflow: hidden; padding-block: clamp(24px, 4vw, 48px) clamp(96px, 12vw, 160px); }
.ribbon + .ribbon { margin-top: 18px; }
.ribbon__track { display: flex; gap: 18px; width: max-content; will-change: transform; }

.chip {
  display: flex;
  flex: none;
  align-items: center;
  height: clamp(84px, 9vw, 132px);
  padding: 0 clamp(26px, 3vw, 46px);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.chip--dark { background: var(--ink); color: #fff; }
.chip--line { border: 1px solid var(--line-2); background: transparent; }
.chip--shine {
  background: linear-gradient(135deg, #ffffff 0%, #ecebe7 100%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgb(0 0 0 / .07);
}

/* Listes : parcours et distinctions */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.row__main { color: var(--ink); font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.row__sub { color: var(--muted); }
.row__end { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 190px; gap: 32px; align-items: baseline; padding: 34px 0; }
  .row__end { text-align: right; }
}

.rows + .eyebrow { margin-top: clamp(64px, 8vw, 104px); }

/* Sous un intitulé, son filet sert de bordure haute à la liste. */
.eyebrow + .rows,
.eyebrow + .work-list { margin-top: calc(-1 * clamp(32px, 5vw, 56px)); border-top: 0; }

/* ---------- 11. Pied de page : contact ---------- */

.contact {
  --curve-bg: var(--bg);
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 16vw, 230px) 0 32px;
  background: var(--dark);
  color: var(--on-dark);
}

/* Le bas de la page claire déborde en courbe et s'aplatit pendant le défilement. */
.contact__curve { position: absolute; top: 0; left: 0; right: 0; height: var(--curve, 12vh); pointer-events: none; }
.contact__curve span {
  position: absolute;
  inset: -100% -15% 0;
  border-radius: 0 0 50% 50%;
  background: var(--curve-bg);
  box-shadow: 0 40px 60px rgb(0 0 0 / .25);
}

.contact__head { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.contact__avatar { width: clamp(64px, 7vw, 108px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.contact__title {
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(2.8rem, 7.4vw, 7.2rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.contact__line { position: relative; margin: clamp(56px, 8vw, 110px) 0; border-top: 1px solid rgb(255 255 255 / .18); }
.contact__cta { position: absolute; right: clamp(0px, 9vw, 160px); top: 0; transform: translateY(-50%); }

.contact__pills { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 999px;
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color .35s, border-color .35s, color .35s;
}
.pill:hover,
.pill:focus-visible { border-color: #fff; background: #fff; color: var(--ink); }
.contact :focus-visible,
.menu :focus-visible { outline-color: #fff; }

.contact__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 24px;
  font-size: .9rem;
}
.contact__label { margin-bottom: 8px; color: var(--on-dark-muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.contact__bottom p { margin: 0; }
.contact__socials { margin-left: auto; }
.contact__socials ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.contact__socials a,
.contact__bottom a { color: var(--on-dark); text-decoration: none; }
.contact__socials a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .contact__cta { right: 0; }
  .contact__cta .round-btn { width: 120px; }
  .contact__socials { margin-left: 0; }
}

/* ---------- 12. Pages projet ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .875rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

.page-hero__head { margin-top: clamp(28px, 4vw, 48px); }
.page-hero__title { margin: 10px 0 20px; font-size: clamp(3.4rem, 11vw, 9.5rem); letter-spacing: -.06em; line-height: .92; }
.page-hero__lead { max-width: 46rem; color: var(--text); font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.is-ready .page-hero__title { animation: hero-fade 1.1s var(--ease-out) both; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 22px 32px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.meta-grid dt { margin-bottom: 6px; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.meta-grid dd { margin: 0; color: var(--ink); font-size: 1rem; }

.cover { margin: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); }
.cover img { width: 100%; }
.cover--logo img { aspect-ratio: 21 / 9; object-fit: contain; }
.cover--yilga { background: #ece8dc; }
.cover--sgkoom { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.case { display: grid; gap: 40px; padding-block: clamp(56px, 8vw, 96px) clamp(80px, 10vw, 140px); }

.toc { display: none; }

@media (min-width: 1000px) {
  .case { grid-template-columns: 200px minmax(0, 1fr); gap: 80px; }
  .toc { position: sticky; top: 40px; display: block; align-self: start; }
}

.toc__title { margin-bottom: 14px; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { padding-left: 13px; border-left: 2px solid var(--ink); color: var(--ink); }

.prose { max-width: 760px; min-width: 0; }
.prose > section + section { margin-top: clamp(56px, 8vw, 88px); }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.035em; }
.prose h3 { margin-top: 32px; font-size: 1.25rem; }
/* :where() garde une spécificité basse : les composants internes gardent leur taille. */
.prose :where(p, li) { font-size: 1.0625rem; }
.prose .lead { color: var(--ink); font-size: 1.2rem; }

.list li { position: relative; margin-bottom: 10px; padding-left: 22px; }
.list li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.callout { margin: 28px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--paper); color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 28px 0; }
.kpi { padding: 24px; border-radius: var(--radius); background: var(--paper); }
.kpi strong { display: block; color: var(--ink); font-family: var(--display); font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.kpi > span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.ideas { display: grid; gap: 14px; margin: 28px 0; }
.idea { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.idea__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; }
.idea h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.idea p { font-size: 1rem; }

.table-wrap { margin: 28px 0 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .925rem; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
thead th { vertical-align: bottom; white-space: normal; }
tbody th { background: none; color: var(--ink); font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tr.is-highlight th,
tr.is-highlight td { background: var(--ink); color: #fff; font-weight: 600; }
.table-note { color: var(--muted); font-size: .85rem; }

.prose :not(pre) > code { padding: .1em .4em; border-radius: 5px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .88em; }

.figure { margin: 28px 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.code { margin: 20px 0; padding: 20px 22px; overflow-x: auto; border-radius: var(--radius); background: var(--dark); color: #ededeb; font-family: var(--mono); font-size: .875rem; line-height: 1.75; }
.code .c { color: #9a9a96; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .82rem; font-weight: 500; }
.section--paper .tag { background: #fff; }

.stack { display: grid; gap: 12px; margin: 24px 0; }
.stack__row { display: grid; gap: 8px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stack__row:last-child { border-bottom: 0; }
.stack__row dt { color: var(--ink); font-size: .925rem; font-weight: 600; }
.stack__row dd { margin: 0; }
@media (min-width: 640px) { .stack__row { grid-template-columns: 180px 1fr; } }

/* Schéma de fonctionnement de WIIGA */
.flow { margin: 28px 0; padding: clamp(16px, 3vw, 26px); border-radius: var(--radius-lg); background: var(--paper); }
.flow .flow__label { margin-bottom: 10px; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.flow__obs { padding: 16px; border-radius: var(--radius); background: #fff; }
.flow__obs ul { display: flex; flex-wrap: wrap; gap: 6px; }
.flow__obs li { padding: 5px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 500; }
.flow__down,
.flow__arrow { position: relative; width: 2px; height: 22px; background: var(--ink); }
.flow__down { margin: 6px auto; }
.flow__arrow { justify-self: center; margin: 4px 0 10px; }
.flow__down::after,
.flow__arrow::after { content: ""; position: absolute; bottom: -2px; left: 50%; border: 5px solid transparent; border-top: 6px solid var(--ink); transform: translate(-50%, 100%); }
.flow__row { display: grid; gap: 4px; }
.flow__col { display: grid; gap: 6px; align-content: start; }
.node { padding: 10px 12px; border-radius: var(--radius-sm); background: #fff; font-size: .85rem; line-height: 1.35; }
.node strong { display: block; font-size: .9rem; }
.node > span { display: block; color: var(--muted); font-size: .78rem; }
.node--tank { background: linear-gradient(to top, #e2e1dc 55%, #fff 55%); }
.node--action { border: 1px dashed var(--line-2); background: transparent; }
.flow__actions { display: grid; gap: 10px; margin-top: 16px; }
.flow .flow__note { margin-top: 14px; color: var(--muted); font-size: .8rem; }

@media (min-width: 760px) {
  .flow__row { grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1.15fr; align-items: start; gap: 0; }
  .flow__arrow { justify-self: stretch; align-self: center; width: auto; height: 2px; margin: 26px 6px 0 2px; }
  .flow__arrow::after { top: 50%; bottom: auto; left: auto; right: -2px; border: 5px solid transparent; border-left: 6px solid var(--ink); transform: translate(100%, -50%); }
  .flow__actions { grid-template-columns: 1fr 1fr; }
}

/* Projet suivant */
.next-project { background: var(--paper); text-align: center; }
.next-project__inner { display: grid; justify-items: center; gap: 18px; padding-block: clamp(80px, 10vw, 140px); }
.next-project__label { margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.next-project__title { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.next-project__title strong { font-weight: 500; }
.contact--after-paper { --curve-bg: var(--paper); }

/* ---------- 12 bis. Pages : projets, à propos, contact ---------- */

.page-head { padding: calc(var(--header-h) + clamp(56px, 10vw, 150px)) 0 clamp(48px, 7vw, 96px); }
.page-head .kicker { margin-bottom: 24px; }
.page-head__title { max-width: 15ch; margin: 0; font-size: clamp(2.8rem, 8vw, 7.4rem); letter-spacing: -.055em; line-height: .98; }
.page-head__lead { max-width: 34rem; margin-top: clamp(24px, 3vw, 36px); color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.is-ready .page-head__title { animation: hero-fade 1.1s var(--ease-out) both; }
.is-ready .page-head__lead { animation: hero-fade 1.1s var(--ease-out) .12s both; }

.page-head__who { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.page-head__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* Bouton pilule avec remplissage, et compteur en exposant */
.btn-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 24px 46px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn-pill .round-btn__fill { background: var(--ink); }
.btn-pill:hover,
.btn-pill:focus-visible { border-color: var(--ink); color: #fff; }
.btn-pill:hover .round-btn__fill,
.btn-pill:focus-visible .round-btn__fill { top: -50%; }
.btn-pill sup { font-size: .68em; }

.center { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* Projets : filtres, vue liste ou grille */
.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.filters,
.view-toggle { display: flex; flex-wrap: wrap; gap: 10px; }

.filter {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter sup { color: var(--muted); font-size: .68em; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter[aria-pressed="true"] sup { color: rgb(255 255 255 / .7); }

.view-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.view-btn:hover { border-color: var(--ink); }
.view-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.work-head { display: none; }

@media (min-width: 900px) {
  .work-head,
  .work-list--table .work-item__link { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 90px; gap: 24px; }
  .work-head {
    display: grid;
    padding: 0 clamp(0px, 3vw, 44px) 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .work-list--table { border-top: 0; }
  .work-list--table .work-item__meta { text-align: left; }
  .work-list--table .work-item__year { text-align: right; }
}
.work-list--table .work-item__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.work-item__year { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .work-list--table .work-item__link { grid-template-columns: 1fr; }
  .work-list--table .work-item__meta,
  .work-list--table .work-item__year { text-align: left; }
}

.work-views[data-view="list"] .work-grid,
.work-views[data-view="grid"] .work-table { display: none; }
.no-js .work-grid { display: none; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 40px);
}
.work-card { display: block; color: var(--ink); text-decoration: none; }
.work-card__media { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--paper); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.045); }
.work-card__title { margin: 22px 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.work-card__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }

/* À propos */
.about-intro { display: grid; gap: clamp(40px, 6vw, 64px); }
.about-intro__lead { margin-bottom: 1.2em; color: var(--ink); font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.025em; line-height: 1.28; }
.about-intro__text p:not(.about-intro__lead) { color: var(--text); font-size: 1.08rem; }
.about-intro .round-btn { margin-top: clamp(32px, 5vw, 56px); }

.about-photo { position: relative; margin: 0; max-width: 460px; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); }
.about-photo img {
  width: 100%;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.06);
  transition: filter 1s var(--ease-out);
}
.about-photo:hover img { filter: grayscale(0) contrast(1.04); }
.about-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
}
.about-photo figcaption .icon { width: 14px; height: 14px; }

@media (min-width: 960px) {
  .about-intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 96px; align-items: start; }
  .about-photo { justify-self: end; }
}

/* Contact */
.contact-page { display: grid; gap: clamp(56px, 8vw, 96px); }

@media (min-width: 960px) {
  .contact-page { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); }
}

.form-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 16px;
  padding: clamp(26px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: box-shadow .3s;
}
.form-field:focus-within { box-shadow: inset 0 2px 0 var(--ink); }
.form-field__num { padding-top: 6px; color: var(--muted); font-size: .85rem; }
.form-field label { display: block; margin-bottom: 10px; color: var(--ink); font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8d8d91; }

.form-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-send__note { max-width: 22rem; color: var(--muted); font-size: .9rem; }
.form-status { margin-top: 18px; color: var(--ink); font-weight: 500; }

.aside-block + .aside-block { margin-top: 40px; }
.aside-label { margin-bottom: 12px; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.aside-block p,
.aside-block li { color: var(--ink); font-size: 1.05rem; }
.aside-block a { color: var(--ink); text-decoration: none; }
.aside-block a:hover { text-decoration: underline; }
.aside-block ul { display: grid; gap: 6px; }

.contact--minimal { padding: clamp(110px, 12vw, 160px) 0 32px; }
.contact--minimal .contact__bottom { margin-top: 0; }

/* ---------- 13. Page 404 ---------- */

.not-found { display: grid; min-height: 100vh; place-items: center; padding-block: 120px 64px; text-align: center; }
.not-found__code { color: var(--ink); font-family: var(--display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.not-found__actions { margin-top: 28px; }

/* ---------- 14. Apparitions au défilement ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Mots qui montent un à un. */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word__in { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 16ms); }
.is-visible .word__in { transform: none; }

/* ---------- 15. Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal,
  .word__in { opacity: 1; transform: none; }
  .globe .meridian { animation: none; }
  .is-ready .hero__photo { filter: contrast(1.04) saturate(.92); }
}

/* ---------- 16. Impression ---------- */

@media print {
  .header,
  .menu-btn,
  .menu,
  .intro,
  .curtain,
  .preview,
  .toc,
  .next-project,
  .contact,
  .page-hero__actions { display: none !important; }
  .js .reveal,
  .word__in { opacity: 1; transform: none; }
  body { font-size: 11pt; }
  .section { padding-block: 24px; }
  .hero { min-height: 0; padding: 32px 0; }
  a { color: inherit; text-decoration: none; }
}
