/* Design Resonance — feuille de style commune
   Polices hébergées sur le site (licence SIL OFL 1.1, voir assets/fonts/). */

@font-face {
  font-family: "Archivo Expanded";
  src: url("fonts/archivo-expanded-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fond mesuré sur le bord de l'image du cercle */
  --bg-night: #16171b;
  --bg-surface: #1e1f25;
  /* Sable : du plus lumineux au plus discret */
  --sand-bright: #dfccb7;
  --sand-body: #ccb8a3;
  --sand-muted: #a08f7f;
  --sand-line: #2b2a2c;
  --todo: #e0b46a;

  --font-display: "Archivo Expanded", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: dark;
}

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

html {
  background-color: var(--bg-night);
  color: var(--sand-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 24px;
  background-color: var(--bg-night);
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

a {
  color: var(--sand-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--sand-muted);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--sand-bright);
  background-color: var(--bg-surface);
}

a:focus-visible {
  outline: 2px solid var(--sand-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* ---------- En-tête ---------- */

.hero {
  padding: clamp(16px, 4vh, 48px) 0 clamp(64px, 11vh, 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ring-stage {
  width: 100%;
  max-width: 880px;
  margin: 0 auto clamp(20px, 4vh, 44px);
  /* Le fondu vers la nuit de la page est intégré à l'image : ses bords ont
     exactement la couleur de --bg-night, sans masque CSS (qui créait des
     anneaux d'arrondi visibles). */
}

.ring-stage img {
  width: 100%;
  height: auto;
}

/* Sur téléphone, le cercle est agrandi : le halo tient dans les 2/3
   centraux de l'image, les marges vides sortent de l'écran. */
@media (max-width: 600px) {
  .ring-stage {
    overflow: hidden;
  }

  .ring-stage img {
    width: 150%;
    max-width: none;
    margin-left: -25%;
  }
}

.supertitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand-muted);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sand-bright);
  margin-bottom: 24px;
  max-width: 16ch;
  text-wrap: balance;
}

.subtitle {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.55;
  color: var(--sand-body);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- Strates ---------- */

.stratum {
  border-top: 1px solid var(--sand-line);
  padding: clamp(44px, 7vh, 80px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stratum {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: baseline;
  }
}

.stratum-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sand-muted);
  letter-spacing: 0.06em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--sand-bright);
  text-wrap: balance;
}

.stratum-body {
  font-size: 1.0625rem;
  color: var(--sand-body);
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.stratum-body p {
  text-wrap: pretty;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sand-muted);
}

/* Binôme */
.people {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 0.4em;
}

@media (min-width: 560px) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.person {
  border-left: 1px solid var(--sand-line);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--sand-bright);
}

.person-role {
  font-size: 0.9375rem;
}

.person a {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Carnet d'atelier */
.episodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.episode {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
}

.episode-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--sand-bright);
}

.episode-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sand-muted);
}

.episode a {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-top: 6px;
}

.next {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next p:last-child {
  color: var(--sand-bright);
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--sand-muted);
  padding: 28px 0 clamp(48px, 9vh, 88px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sand-muted);
}

/* Pages secondaires */
.page-header {
  padding: clamp(40px, 9vh, 96px) 0 clamp(32px, 6vh, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header a {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.page-header h1 {
  max-width: none;
  margin: 8px 0 0;
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 0;
}

.legal dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-muted);
  margin-top: 10px;
}

.legal dt:first-child {
  margin-top: 0;
}

.legal dd {
  color: var(--sand-body);
}

/* Espaces réservés à compléter avant publication */
[data-todo] {
  color: var(--todo);
  outline: 1px dashed var(--todo);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  body {
    padding: 0 16px;
  }
}

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