/* aelworks — atelier sobre : fond clair chaud, noir chaud du logo, orange en touches rares. */
:root {
  --bg: #f7f5f0;
  --surface: #fdfcf9;
  --ink: #1d1d1b;
  --ink-2: #4a4945;
  --muted: #6b6963;
  --line: rgba(29, 29, 27, .14);
  --accent: #f39200;     /* orange du logo : filets, puces, survols */
  --accent-ink: #9a5c00; /* même teinte, assez foncée pour le texte (WCAG AA) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px;
}
.logo { display: block; }
.logo img { width: 180px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* Accroche */
.hero { padding: 80px 0 64px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15;
  letter-spacing: -.015em; font-weight: 650; max-width: 24ch;
}
.hero h1 .verbs { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-skip-ink: none; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.section-title h2 { font-size: 24px; letter-spacing: -.01em; }
.section-title h2::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 12px;
  transform: rotate(45deg) translateY(-3px); background: var(--accent);
}

/* Établi */
.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.piece {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 22px;
}
.piece.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.45fr; gap: 28px; align-items: center; }
.piece.lead .text { display: flex; flex-direction: column; gap: 10px; }
.piece figure img { border: 1px solid var(--line); border-radius: 6px; }
.piece figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status {
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
}
.status.prototype { border-color: var(--accent); color: var(--accent-ink); }
.piece h3 { font-size: 20px; }
.piece p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.piece .go { font-size: 15px; font-weight: 600; }

/* Réflexions */
.notes { list-style: none; display: grid; gap: 18px; }
.notes .empty { color: var(--muted); }

/* Contact */
.contact p { color: var(--ink-2); max-width: 60ch; }
.contact .mail { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 18px; }

/* Pages simples */
.page { padding: 64px 0; max-width: 68ch; }
.page h1 { font-size: 32px; margin-bottom: 24px; }
.page p { color: var(--ink-2); margin-bottom: 16px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

@media (max-width: 860px) {
  .bench { grid-template-columns: 1fr; }
  .piece.lead { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .logo img { width: 150px; }
  .nav { gap: 14px; }
}
.piece h3 .icone { display: inline-block; width: 28px; height: 28px; vertical-align: -6px; border-radius: 7px; margin-right: 8px; }

/* Onglets : une seule page, une vue par entrée du menu */
.js .panel { border-top: 0; padding-top: 0; }
.js .panel:not(#outils) { padding-top: 56px; }
.panel[hidden] { display: none; }
.tabs { align-items: center; }
.tabs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tabs .cta {
  background: var(--accent); color: var(--ink); font-weight: 600;
  padding: 6px 14px; border-radius: 6px;
}
.tabs .cta:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.panel .page { padding: 0; }
.js .panel#outils { padding-top: 56px; }
.page .pitch {
  color: var(--ink); font-size: clamp(22px, 3vw, 28px); line-height: 1.3;
  font-weight: 650; letter-spacing: -.01em; margin-bottom: 28px;
}
.page .pitch .verbs { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-skip-ink: none; }

/* Application : états vides, liste des pensées, page d'une pensée */
.vide { color: var(--muted); }
.piece h3 .icone.initiale {
  display: inline-grid; place-items: center; font-size: 14px; font-weight: 650;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.piece.lead-seul { display: flex; }
.notes .note { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 20px; text-decoration: none; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--line); }
.notes li:first-child .note { border-top: 0; }
.notes .note time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; grid-row: span 2; }
.notes .note-titre { font-size: 19px; font-weight: 600; }
.notes .note:hover .note-titre { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.notes .note-resume { color: var(--ink-2); font-size: 15.5px; }
.bandeau-apercu { background: #fff4dc; color: #6b4800; font-size: 14px; padding: 8px 24px; text-align: center; border-bottom: 1px solid var(--line); }

.pensee { padding-top: 56px; padding-bottom: 72px; }
.pensee-tete { max-width: 68ch; margin-bottom: 26px; }
.pensee-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pensee-meta a { color: var(--muted); }
.pensee h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.pensee-actions:empty { display: none; }
.onglets-pensee { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; max-width: 68ch; }
.onglets-pensee a { flex: none; padding: 9px 14px 8px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.onglets-pensee a:hover { color: var(--ink); }
.onglets-pensee a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin-top: 36px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; font-size: 19px; color: var(--ink); }
.prose pre { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.prose code { font-family: var(--mono); font-size: .92em; }
.prose pre.mermaid { background: none; border: 0; text-align: center; }
.prose img { border-radius: 6px; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

@media (max-width: 520px) {
  .notes .note { grid-template-columns: 1fr; }
  .notes .note time { grid-row: auto; }
}
