/* 
   Direction : sobre, blanc/noir, pointe de bleu
   Sans-serif unique + monospace pour le technique
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:           #ffffff;
  --bg-subtle:    #f6f7f8;
  --text:         #15171a;   /* noir presque pur */
  --text-muted:   #5f6a72;   /* gris pour le texte secondaire */
  --text-faint:   #8b949c;   /* gris léger, méta */
  --border:       #e7eaec;   /* filets fins */
  --border-strong:#d3d8db;   /* filets au survol */
  --blue:         #2563eb;   /* l'unique accent, utilisé avec parcimonie */
  --blue-dark:    #1d4ed8;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --maxw: 1060px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-current { color: var(--text); }

/* ---------- Pied de page ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding-block: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-foot span { font-size: 0.82rem; color: var(--text-faint); }
.site-foot .stack { font-family: var(--mono); font-size: 0.78rem; }

/* ---------- Éléments partagés ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: color 0.2s var(--ease);
}
.back:hover { color: var(--blue); }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0;
}

/* ---------- Accessibilité ---------- */

a:focus-visible,
.shot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

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