:root {
  --bg: #fbf7f0;        /* crème */
  --alt: #f3ece0;       /* crème plus foncé */
  --paper: #fffdf9;
  --ink: #2b2622;
  --muted: #6e645b;
  --line: #e2d8c8;
  --accent: #c4552f;    /* terracotta */
  --sage: #5d7a62;
  --marker: #f6dca0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ===== En-tête ===== */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  position: relative;
  font-family: var(--serif);
  font-size: 58px; font-weight: 700; line-height: 1; color: var(--ink);
  padding-right: 14px;
}
.logo .dot {
  position: absolute; right: 0; bottom: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 15px; letter-spacing: 2.5px; color: var(--ink); }
.brand-text small { font-size: 11px; letter-spacing: 1.5px; color: var(--sage); margin-top: 6px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 14px 15px;
  font-size: 15px; color: var(--muted);
  border: 2px solid transparent; border-radius: 6px;
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.nav a.btn-contact {
  margin-left: 18px; padding: 17px 20px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 6px; font-weight: 500;
}
.nav a.btn-contact::after { display: none; }
.nav a.btn-contact:hover { background: var(--accent); }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 28px; cursor: pointer; }

/* ===== Structure ===== */
section { padding: 90px 0; }
section.alt { background: var(--alt); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; }
h2 { font-size: 36px; line-height: 1.2; margin-bottom: 36px; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; }
.intro { color: var(--muted); margin: -20px 0 36px; }

/* ===== Accueil ===== */
.hero { padding: 100px 0 110px; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 500; font-size: 15px; margin-bottom: 18px; }
h1 { font-size: 54px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
mark { background: linear-gradient(transparent 62%, var(--marker) 62%); color: inherit; padding: 0 4px; }
.lead { margin-top: 26px; max-width: 540px; color: var(--muted); font-size: 18px; }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 24px;
  font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--ink); border-radius: 6px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

.note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 20px;
  transform: rotate(1.2deg);
  box-shadow: 4px 5px 0 var(--line);
}
.note h3 { margin-bottom: 12px; }
.note div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.note dt { color: var(--muted); }
.note dd { font-weight: 500; text-align: right; }

/* ===== CV ===== */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; margin-bottom: 44px; }
.cols h3 { margin-bottom: 12px; color: var(--accent); }
.plain li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px dashed var(--line); }
.plain strong { font-weight: 500; }
.plain span { font-size: 15px; color: var(--muted); }

/* ===== Projets ===== */
.project {
  display: grid; grid-template-columns: 100px 1fr; gap: 28px;
  padding: 32px 0; border-top: 1px dashed #cfc3af;
}
.project:last-child { border-bottom: 1px dashed #cfc3af; }
.meta { display: flex; flex-direction: column; }
.ap { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.date { font-size: 14px; color: var(--muted); }
.body p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 640px; }
.body .tags { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--sage); }
.link { display: inline-block; margin-top: 12px; font-weight: 500; color: var(--accent); border-bottom: 1.5px solid var(--accent); }
.link:hover { background: var(--marker); }

/* ===== Listes à compléter ===== */
.rows { max-width: 680px; }
.rows div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-top: 1px dashed #cfc3af; }
.rows div:last-child { border-bottom: 1px dashed #cfc3af; }
.rows dt { color: var(--muted); font-size: 15px; }
.rows a { color: var(--accent); border-bottom: 1.5px solid var(--accent); }
.rows a:hover { background: var(--marker); }

/* ===== Pied de page ===== */
.footer { background: var(--ink); color: #d9cfbf; padding: 26px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; }
.footer a:hover { color: #fff; }

/* ===== Mobile ===== */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 28px 20px;
  }
  .menu-open .nav { display: flex; }
  .nav a.btn-contact { margin: 10px 0 0; text-align: center; }
  .nav a.active::after { display: none; }

  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .meta { flex-direction: row; gap: 12px; align-items: baseline; }
  .rows div { grid-template-columns: 1fr; gap: 2px; }
  section { padding: 64px 0; }
  .footer .wrap { flex-direction: column; }
}
