/*
 * Site vitrine de Djelify — jetons du design system (design/01-design-system/tokens.css du dépôt
 * privé), polices hébergées ici (aucune ressource externe). Aucune couleur ni marge en dur hors jetons.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --surface: #f6f7fb;
  --surface-raised: #ffffff;
  --surface-sunken: #eceef5;
  --line: #d9dce8;
  --ink: #161a2e;
  --ink-muted: #525a78;
  --indigo: #2e3a8c;
  --indigo-soft: #e4e7f7;
  --kola: #e3a21a;
  --kola-soft: #fbf0d6;
  --kola-ink: #875800;
  --bogolan: #6b3f26;
  --warning: #9c5300;
  --warning-soft: #fcebd7;
  --focus: #3d4fd6;
  --shadow-raised: 0 1px 2px rgba(22, 26, 46, 0.06), 0 2px 8px rgba(22, 26, 46, 0.06);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --content: 72rem;
  --reading: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #0f1220;
    --surface-raised: #181c2e;
    --surface-sunken: #0a0d18;
    --line: #2a2f45;
    --ink: #eef0f8;
    --ink-muted: #a3a9c2;
    --indigo: #9aa7ff;
    --indigo-soft: #262d57;
    --kola: #f2b73a;
    --kola-soft: #3a2d10;
    --kola-ink: #f2b73a;
    --bogolan: #c98b5e;
    --warning: #f2a65a;
    --warning-soft: #3a260f;
    --focus: #b3beff;
    --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a {
  color: var(--indigo);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
}
.skip:focus {
  top: var(--space-4);
}
.wrap {
  width: min(100% - 2 * var(--space-6), var(--content));
  margin-inline: auto;
}
/* Colonne de lecture alignée à gauche, comme le reste de la page. */
.reading > * {
  max-width: var(--reading);
}

/* En-tête */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

/* Accueil */
.hero {
  padding-block: var(--space-16) var(--space-12);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--kola-soft);
  color: var(--kola-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 700;
  max-width: 18ch;
}
h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  font-weight: 600;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.lead {
  max-width: 40rem;
  margin: 0 0 var(--space-8);
  color: var(--ink-muted);
  font-size: 1.1875rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--indigo);
  color: var(--surface-raised);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  text-decoration: underline;
}
.section {
  padding-block: var(--space-12);
  border-top: 1px solid var(--line);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
}
.features p {
  margin: 0;
  color: var(--ink-muted);
}
.origin {
  border-left: 4px solid var(--kola);
  padding-left: var(--space-4);
  color: var(--ink-muted);
}
.contact-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li + li {
  margin-top: var(--space-2);
}

/* Pages de texte */
.page {
  padding-block: var(--space-12) var(--space-16);
}
.page h2 {
  margin-top: var(--space-10);
}
.updated {
  color: var(--ink-muted);
}
.notice {
  margin: 0 0 var(--space-8);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--ink);
  border-left: 4px solid var(--warning);
}
dl.identity {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 0;
}
dl.identity dt {
  font-weight: 600;
}
dl.identity dd {
  margin: 0;
}
@media (max-width: 30rem) {
  dl.identity {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl.identity dd {
    margin-bottom: var(--space-3);
  }
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-8);
}
.site-footer p {
  margin: 0;
}
.site-footer .publisher {
  color: var(--ink);
  font-weight: 600;
}
.nowrap {
  white-space: nowrap;
}
.mark-bg {
  fill: var(--indigo);
}
.mark-dot {
  fill: var(--kola);
}
.mark-d {
  fill: var(--surface-raised);
}
