@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #24221f;
  --muted: #6f6b64;
  --line: #e8e4dc;
  --soft: #f3efe7;
  --accent: #9a6a3f;
  --accent-soft: #f4ebdf;
  --shadow: 0 1px 2px rgba(36, 34, 31, .04), 0 8px 24px rgba(36, 34, 31, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514; --surface: #1e1d1b; --text: #ecebe7; --muted: #a4a09a; --line: #312f2b;
    --soft: #24221f; --accent: #d2a77a; --accent-soft: #2b251e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: var(--accent-soft); }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 14px; padding: 12px 20px; white-space: nowrap; overflow-x: auto;
}
.topbar a { text-decoration: none; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.topbar a:hover { background: var(--soft); color: var(--text); }
.topbar a:last-child { color: var(--text); font-weight: 600; }
.topbar .sep { color: var(--line); margin: 0 2px; }

/* Bannière */
.cover {
  width: 100%; height: 38vh; min-height: 200px; max-height: 400px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.page { max-width: 720px; margin: 0 auto; padding: 0 24px 104px; }
.icon {
  width: 96px; height: 96px; display: grid; place-items: center; font-size: 52px; line-height: 1;
  margin-top: -64px; position: relative; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow);
}
.page.no-cover .icon { margin-top: 72px; }

h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; font-weight: 600; margin: 24px 0 28px; letter-spacing: -0.025em; }
h2 {
  font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em;
  margin: 72px 0 16px; padding-top: 32px; border-top: 1px solid var(--line);
}
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin: 28px 0 6px; letter-spacing: -0.005em; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; letter-spacing: -0.01em; }
strong { font-weight: 600; }

/* Encadré de présentation */
.callout {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 14px; padding: 24px 26px; margin: 8px 0 28px; box-shadow: var(--shadow);
}
.callout .emoji { font-size: 24px; line-height: 1.5; }
.callout .lead { margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }

/* Images */
figure { margin: 24px 0; }
figure img { border-radius: 14px; box-shadow: var(--shadow); }
.portrait { margin: 32px 0 8px; }
.portrait img { width: 100%; max-width: 360px; border-radius: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: 14px; overflow: hidden; background: var(--soft); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Parcours en frise */
.timeline { position: relative; padding-left: 28px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline h3 { position: relative; color: var(--text); }
.timeline h3::before {
  content: ""; position: absolute; left: -28px; top: .38em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline h3:first-child { margin-top: 12px; }

/* Projets */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.columns > section {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.columns > section h3 { margin-top: 0; font-size: 22px; letter-spacing: .02em; }
.columns > section h3 + p { color: var(--accent); margin-bottom: 4px; }
.columns figure { margin: 16px 0; }
.columns figure img { box-shadow: none; border-radius: 12px; }
@media (max-width: 720px) {
  .columns { grid-template-columns: 1fr; gap: 16px; }
  .icon { width: 80px; height: 80px; font-size: 44px; margin-top: -52px; }
  h2 { margin-top: 56px; }
  .callout { padding: 20px; gap: 12px; }
}

/* Listes */
ul { padding-left: 0; margin: 8px 0 16px; list-style: none; }
ul li { position: relative; padding: 4px 0 4px 22px; }
ul li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.links li { padding-left: 0; color: var(--muted); }
.links li::before { content: none; }
.links li a { color: var(--text); }

/* Lien vers le blog */
.page-link {
  display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 600;
  padding: 18px 20px; margin: 32px 0 24px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.page-link::after { content: "→"; margin-left: auto; color: var(--accent); }
.page-link:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }

/* Blog */
.meta { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; color: var(--muted); margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 10px; font-size: 13px; }
article p { font-size: 18px; line-height: 1.75; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; display: block;
  background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.card strong { display: block; margin-bottom: 10px; line-height: 1.4; }
.card small { color: var(--muted); }

footer {
  max-width: 720px; margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; text-align: center;
}
footer a { color: var(--muted); }

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