/* ============================================================
   souslescieux* — feuille de style unique
   Vanilla CSS, aucune dépendance.
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg:        #f4f4f4;
  --ink:       #000000;
  --grey:      #d6d6d6;
  --grey-deep: #b4b4b4;
  --sans: "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
  --mono: "JetBrains Mono", "Courier New", Courier, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.25;
  padding: var(--pad);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GRILLE — 12 colonnes, tout est aligné, rien n'a l'air aligné
   ============================================================ */
.grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ============================================================
   TYPO UTILITAIRE
   ============================================================ */
.mono{
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

a{
  color: inherit;
  text-decoration: none;
}
a:focus-visible{
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

[aria-disabled="true"]{ opacity: 0.35; cursor: default; }

/* ============================================================
   EN-TÊTE — pas de logo, pas de menu à droite. Des coordonnées.
   ============================================================ */
.head{ align-items: start; }

.head__idx  { grid-column: 1 / 3; }
.head__stat { grid-column: 4 / 8; }
.head__nav  { grid-column: 10 / 13; text-align: right; }

.head__nav ul{ list-style: none; }
.head__nav a{ display: inline-block; }
.head__nav a:hover,
.head__nav a:focus-visible{ text-decoration: line-through; }

/* Point de battement piloté par classList (jamais par style inline,
   afin de rester compatible avec une CSP sans 'unsafe-inline'). */
.blink        { opacity: 1; transition: opacity 80ms linear; }
.blink.is-off { opacity: 0; }

/* ============================================================
   TITRE — masse typographique, calé à gauche, déborde presque
   ============================================================ */
.hero{ margin-top: clamp(4rem, 18vh, 12rem); }

.hero__title{
  grid-column: 1 / 12;
  font-size: clamp(3.25rem, 15.5vw, 15rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-indent: -0.06em; /* alignement optique du s */
}

.star{
  display: inline-block;
  font-weight: 400;
  transform-origin: 50% 55%;
  animation: turn 24s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

.hero__meta{
  grid-column: 1 / 5;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   MANIFESTE — poussé à droite, aligné à droite, colonne étroite
   ============================================================ */
.manifest{ margin-top: clamp(6rem, 22vh, 14rem); }

.manifest__num{
  grid-column: 1 / 2;
  align-self: start;
}

.manifest__text{
  grid-column: 8 / 13;
  text-align: right;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.45;
}
.manifest__text p + p{ margin-top: 1.25em; }

/* ============================================================
   TRAVAUX — grille décalée, chaque item tombe à sa hauteur
   ============================================================ */
.works{ margin-top: clamp(6rem, 24vh, 16rem); }

.works__label{
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(2.5rem, 7vw, 6rem);
}

/* nth-of-type (et non nth-child) : .works__label est le premier enfant
   de .works, un nth-child décalerait tous les projets d'un cran et
   laisserait le quatrième sans placement. */
.work{ display: block; }
a.work:nth-of-type(1){ grid-column: 1 / 6; }
a.work:nth-of-type(2){ grid-column: 8 / 12; margin-top: clamp(3rem, 12vw, 9rem); }
a.work:nth-of-type(3){ grid-column: 2 / 7;  margin-top: clamp(3rem, 10vw, 8rem); }
a.work:nth-of-type(4){ grid-column: 9 / 13; margin-top: clamp(3rem, 6vw, 4rem); }

.work__plate{
  border: 1px solid var(--ink);
  background: var(--grey);
  width: 100%;
  transition: background-color 120ms linear;
}
a.work:nth-of-type(1) .work__plate{ aspect-ratio: 4 / 5; }
a.work:nth-of-type(2) .work__plate{ aspect-ratio: 1 / 1; background: var(--grey-deep); }
a.work:nth-of-type(3) .work__plate{ aspect-ratio: 16 / 10; }
a.work:nth-of-type(4) .work__plate{ aspect-ratio: 3 / 4; background: var(--ink); }

.work:hover .work__plate,
.work:focus-visible .work__plate{ background: var(--ink); }

.work__title{
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 2.1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.work:hover .work__title{ text-decoration: underline; text-underline-offset: 0.18em; }

.work__data{
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ============================================================
   PIED — en bas à gauche, et rien d'autre
   ============================================================ */
.foot{
  margin-top: auto;
  padding-top: clamp(6rem, 20vh, 14rem);
  align-items: end;
}

.foot__left{ grid-column: 1 / 6; }
.foot__right{ grid-column: 11 / 13; text-align: right; }

.foot__mail{
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.75rem;
}
a.foot__mail:hover,
a.foot__mail:focus-visible{ text-decoration: underline; text-underline-offset: 0.2em; }

.foot__right a:hover,
.foot__right a:focus-visible{ text-decoration: underline; }

/* ============================================================
   RESPONSIVE — tout s'empile, rien ne se déforme
   ============================================================ */
@media (max-width: 860px){
  .head__idx  { grid-column: 1 / 7; }
  .head__stat { grid-column: 7 / 13; text-align: right; }
  .head__nav  { grid-column: 1 / 13; text-align: left; margin-top: 2.5rem; }
  .head__nav ul{ display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

  .hero{ margin-top: clamp(3rem, 12vh, 6rem); }
  .hero__title{ grid-column: 1 / 13; }
  .hero__meta { grid-column: 1 / 13; }

  .manifest{ margin-top: clamp(4rem, 14vh, 8rem); }
  .manifest__num { grid-column: 1 / 13; margin-bottom: 1rem; }
  .manifest__text{ grid-column: 1 / 13; text-align: left; }

  .works{ margin-top: clamp(4rem, 14vh, 8rem); }
  a.work:nth-of-type(n){
    grid-column: 1 / 13;
    margin-top: 0;
  }
  .work + .work{ margin-top: clamp(2.5rem, 8vw, 4rem); }
  .work__plate{ aspect-ratio: 4 / 3 !important; }

  .foot{ padding-top: clamp(4rem, 14vh, 8rem); }
  .foot__left { grid-column: 1 / 13; }
  .foot__right{ grid-column: 1 / 13; text-align: left; margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .star{ animation: none; }
  *{ transition-duration: 0ms !important; }
}
