/* Twinstars Works — feuille de style unique, sans dépendance externe. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #14202e;
  --muted: #566170;
  --line: #e3e0d8;
  --accent: #9a6b1f;
  --accent-ink: #7a5212;
  --header-bg: #14202e;
  --header-ink: #f4f1ea;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --surface: #16212f;
    --ink: #e9e6df;
    --muted: #a3acb8;
    --line: #26323f;
    --accent: #d9a85a;
    --accent-ink: #e6bb74;
    --header-bg: #0b111a;
    --header-ink: #f4f1ea;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--ink); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* En-tête */
.site-header { background: var(--header-bg); color: var(--header-ink); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--header-ink); text-decoration: none;
  font-weight: 650; letter-spacing: .02em; font-size: 1.125rem;
}
.brand img { width: 30px; height: 30px; display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem;
}
.site-nav a {
  color: var(--header-ink); text-decoration: none; font-size: .975rem;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: #d9a85a; }
.site-nav .lang a {
  border: 1px solid rgba(244, 241, 234, .45); border-radius: 4px;
  padding: .15rem .5rem; font-size: .85rem; letter-spacing: .06em;
}
.site-nav .lang a:hover { border-color: #d9a85a; }

/* Contenu */
.hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; margin: 0 0 1.25rem;
  letter-spacing: -.01em;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin: 0; }

.prose { max-width: 46rem; }
.section { padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
.page-title { padding: 3rem 0 1rem; }
.page-title h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 .75rem; }
.page-title p { color: var(--muted); margin: 0; max-width: 44rem; }

.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; font-weight: 650; color: var(--accent); margin-bottom: .35rem;
}

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.5rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .6rem; }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .95rem; }

.activity { padding: 2.5rem 0; scroll-margin-top: 1rem; }
.activity + .activity { border-top: 1px solid var(--line); }
.activity h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.activity .ext { font-weight: 600; }

.contact-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem 1.75rem; margin: 1.5rem 0 3rem; max-width: 34rem;
}
.contact-block h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.contact-block address { font-style: normal; margin-bottom: 1.25rem; }
.contact-block p { margin: 0; }

.legal dl { margin: 0; }
.legal dt { font-weight: 650; margin-top: .9rem; }
.legal dd { margin: .1rem 0 0; color: var(--muted); }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; }
.legal { padding-bottom: 3rem; }

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted);
  font-size: .9rem; padding: 1.75rem 0; margin-top: 2rem;
}
.site-footer p { margin: 0; }
.site-footer .sep { margin: 0 .4rem; opacity: .6; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero { padding: 2.75rem 0 2rem; }
  .site-footer .sep { display: none; }
  .site-footer span.item { display: block; }
}
