:root {
  color-scheme: light;
  --papier: #fbf7f0;
  --encre: #101010;
  --trait: #686764;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--papier); }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }

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

.univers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.13fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: min(1.45vw, 30px);
  width: 79%;
  max-width: 1660px;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 4svh;
}

.portrait {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: min(100%, 78svh);
  aspect-ratio: 1;
  border: clamp(1px, .11vw, 2px) solid var(--trait);
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
}

.visage {
  position: absolute;
  width: 75%;
  height: auto;
  top: 11.25%;
  left: 12.5%;
  overflow: visible;
  mix-blend-mode: multiply;
}

.carte {
  --illustration-height: clamp(72px, 7.2vw, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 1.25;
  padding: clamp(10px, .85vw, 18px) 10px clamp(11px, .9vw, 19px);
  border: 1px solid var(--trait);
  color: inherit;
  text-decoration: none;
  text-align: center;
  background: var(--papier);
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.carte h2, .carte p { position: relative; z-index: 1; margin: 0; font-size: clamp(16px, 1.24vw, 26px); line-height: 1.1; }
.carte h2 { font-weight: 700; }
.carte p { font-weight: 400; }
.illustration { display: grid; place-items: center; width: 100%; flex: 1; min-height: 0; margin-block: 4px; }
.illustration img { display: block; width: auto; height: min(var(--illustration-height), 17svh); max-width: 84%; object-fit: contain; transition: transform 260ms ease; }
.carte-patate { grid-column: 1; grid-row: 1; align-self: start; }
.carte-emizot { grid-column: 3; grid-row: 1; align-self: start; }
.carte-songwriting { grid-column: 1; grid-row: 2; align-self: end; }
.carte-projets { --illustration-height: clamp(68px, 6.9vw, 142px); grid-column: 3; grid-row: 2; align-self: end; }
.carte:focus-visible { outline: 3px solid #235f83; outline-offset: 6px; }

@media (hover: hover) and (pointer: fine) {
  .carte:hover { transform: translateY(-4px); border-color: var(--encre); box-shadow: 0 6px 0 rgb(20 20 20 / 5%); }
  .carte:hover .illustration img { transform: scale(1.025); }
}

@media (max-width: 900px) {
  .univers {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: calc(100% - 40px);
    max-width: 520px;
    min-height: 100svh;
    padding-block: 28px 36px;
  }
  .portrait { width: min(84%, 380px); margin: 0 auto 12px; flex: none; }
  .carte { --illustration-height: clamp(82px, 32vw, 170px); flex: none; padding: 18px 20px; aspect-ratio: 1.28; }
  .carte h2, .carte p { font-size: clamp(19px, 5.3vw, 25px); }
  .illustration { margin-block: 8px; }
  .illustration img { height: var(--illustration-height); }
  .carte-projets { --illustration-height: clamp(78px, 30vw, 156px); }
}

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