@font-face {
  font-family: "Inter Tight";
  src: url("/polices/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/polices/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #f6f5f1;
  --encre: #121212;
  --doux: #5c5c5c;
  --filet: #dcdad3;
  --marge: clamp(16px, 5vw, 64px);
  --largeur: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* En-tête */
.tete {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 24px var(--marge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marque {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bouton {
  display: inline-block;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  background: var(--encre);
  color: var(--fond);
  padding: 12px 20px;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.bouton:hover { opacity: 0.82; }
.bouton-discret { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); padding: 9px 16px; font-size: 14px; }
.bouton:focus-visible, a:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

/* Ouverture */
main { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

.ouverture { padding: clamp(48px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--filet); }
.surtitre {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--doux);
}
h1, h2 { font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(40px, 7.4vw, 96px); font-weight: 600; max-width: 14ch; }
.chapeau { max-width: 38em; margin: 32px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--doux); }

.sommaire {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  counter-reset: s;
}
.sommaire li { counter-increment: s; }
.sommaire a { text-decoration: none; font-weight: 500; }
.sommaire a::before { content: "0" counter(s) "  "; color: var(--doux); font-variant-numeric: tabular-nums; white-space: pre; }
.sommaire a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Projets */
.projet {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--filet);
}
.projet:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.projet:nth-of-type(even) .visuel { order: 2; }

.visuel { margin: 0; border-radius: 6px; overflow: hidden; }

.texte { max-width: 30em; }
.numero {
  margin: 0 0 24px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--doux);
  padding-top: 14px;
  border-top: 2px solid var(--teinte);
  width: 48px;
}
.projet h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; }
.metier { margin: 12px 0 24px; font-size: 15px; font-weight: 500; color: var(--teinte-texte); }
.texte p:not(.numero):not(.metier) { margin: 0 0 28px; color: #2b2b2b; }

.lien {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.lien span { display: inline-block; transition: transform 0.2s; }
.lien:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .lien span, .bouton { transition: none; } }

.archimaides { --teinte: #8e87b5; --teinte-texte: #5f5791; }
.don-demeure { --teinte: #0a503b; --teinte-texte: #0a503b; }
.mission-magis { --teinte: #1c3fa0; --teinte-texte: #1c3fa0; }
.artefact-neural { --teinte: #6e56f7; --teinte-texte: #5b43e0; }

/* Clôture */
.cloture { padding: clamp(64px, 10vw, 136px) 0; text-align: left; }
.cloture h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 600; }
.cloture p { max-width: 34em; margin: 24px 0 36px; color: var(--doux); font-size: clamp(17px, 1.6vw, 19px); }

.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 32px var(--marge) 48px;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--doux);
}
.pied p { margin: 0; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .projet, .projet:nth-of-type(even) { grid-template-columns: 1fr; }
  .projet:nth-of-type(even) .visuel { order: 0; }
  .texte { max-width: none; }
}
@media (max-width: 420px) {
  .bouton-discret { padding: 8px 12px; font-size: 13px; }
}

.kindred { --teinte: #9a9a9a; --teinte-texte: #4f4f4f; }
.naera { --teinte: #c9b69c; --teinte-texte: #7d6a4c; }
.drift { --teinte: #a98a9c; --teinte-texte: #745a69; }
.strive { --teinte: #c8643c; --teinte-texte: #a24c2a; }
.le-comptoir { --teinte: #a77b35; --teinte-texte: #7e5a22; }
