/* ============================================================
   AUDITUM MEMORIA — SHARED STYLESHEET
   Version: 2.1.0
   Updated: 2026-07-08 — lang-switch merged into meta-bar (front-matter)
   Usage: <link rel="stylesheet" href="css/style.css"> (adjust ../ per depth)
   ============================================================ */

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

/* Valeurs synchronisées avec offcityhike-blog/style.css (:root) —
   ne pas dériver, recopier depuis la source si le blog change. */
:root {
  --ref-bg: #0a0e24;
  --ref-subtitle: #8fa3c4;
  --ref-text: #c7cbd6;
  --ref-live-bg: rgba(99, 201, 140, 0.15);
  --ref-live-text: #63c98c;
}

body {
  background: var(--ref-bg);
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: clamp(0.82em, calc(0.766em + 0.015vw), 0.88em);
  color: #7a8296;
  border-bottom: 1px solid #1e2340;
  padding-bottom: 18px;
  margin-bottom: 40px;
  font-family: 'SF Mono', Consolas, monospace;
}
.meta-bar .meta-left,
.meta-bar .meta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.meta-bar span.category { color: #4a90e2; font-weight: 600; }
.meta-bar span.sep { color: #33395c; }

h1 {
  font-size: clamp(1.7em, calc(1.5875em + 0.0312vw), 1.825em);
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
}

h2 {
  color: var(--ref-subtitle);
  font-size: clamp(1.15em, calc(1.0735em + 0.0212vw), 1.235em);
  font-weight: 500;
  margin: 36px 0 14px;
}

.subtitle {
  color: #7a8296;
  margin-bottom: 44px;
  font-size: clamp(0.95em, calc(0.887em + 0.0175vw), 1.02em);
}

.exec-def {
  font-size: clamp(1.1em, calc(1.028em + 0.02vw), 1.18em);
  color: #f0f0f5;
  border-left: 3px solid #4a90e2;
  padding-left: 20px;
  margin-bottom: 40px;
}

p { margin-bottom: 20px; color: var(--ref-text); }

.concept {
  background: #10142e;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.concept .term {
  color: #4a90e2;
  font-weight: 600;
  margin-bottom: 6px;
}

.summary-box {
  background: #16311f;
  border-radius: 6px;
  padding: 20px;
  margin: 32px 0;
  border-left: 3px solid #6bcf7f;
}
.summary-box p { color: #c8f0d0; margin-bottom: 10px; }
.summary-box p:last-child { margin-bottom: 0; }

.branch {
  margin-bottom: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #161a33;
}
.branch:last-child { border-bottom: none; }

.branch-title {
  color: #fff;
  font-size: clamp(1.05em, calc(0.978em + 0.02vw), 1.13em);
  font-weight: 600;
  margin-bottom: 4px;
}
.branch-title a { color: #fff; text-decoration: none; }
.branch-title a:visited { color: #fff; }
.branch-title a:hover { color: #4a90e2; }

summary.branch-title {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
summary.branch-title::-webkit-details-marker { display: none; }
summary.branch-title::before {
  content: "▸";
  display: inline-block;
  color: #7a8296;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
details[open] > summary.branch-title::before {
  transform: rotate(90deg);
}

.branch-desc {
  color: #8a90a8;
  font-size: clamp(0.88em, calc(0.8215em + 0.0163vw), 0.945em);
  margin-bottom: 10px;
}

.children {
  margin-left: 20px;
  padding-left: 16px;
  border-left: 1px solid #232849;
}

.child {
  padding: 6px 0;
  font-size: clamp(0.92em, calc(0.857em + 0.0175vw), 0.99em);
}
.child a { color: #b8bcd8; text-decoration: none; }
.child a:visited { color: #b8bcd8; }
.child a:hover { color: #4a90e2; text-decoration: underline; }
.child .note { color: #5a6080; font-size: clamp(0.85em, calc(0.7915em + 0.0163vw), 0.915em); margin-left: 8px; }
.child-desc { color: #5a6080; font-size: clamp(0.85em, calc(0.7915em + 0.0163vw), 0.915em); margin-top: 3px; }

.status-tag {
  display: inline-block;
  font-size: clamp(0.72em, calc(0.6705em + 0.0137vw), 0.775em);
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 8px;
  font-family: 'SF Mono', Consolas, monospace;
}
.status-live { background: var(--ref-live-bg); color: var(--ref-live-text); }
.status-draft { background: #332412; color: #e0a94a; }
.status-planned { background: #241832; color: #a888d0; }
.status-ready { background: #0d2b33; color: #4ac8e0; }
.status-concept { background: #2a1a2e; color: #d47fc9; }
.status-research { background: #16233d; color: #6bb3f0; }
.status-project { background: #16233d; color: #6bb3f0; }
.status-reference { background: #16233d; color: #6bb3f0; }
.status-tentative { background: #241832; color: #a888d0; }
.status-waiting { background: #16233d; color: #5a6080; }
.status-shaping { background: #241832; color: #a888d0; }
.status-polishing { background: #0d2b33; color: #4ac8e0; }

a.link-internal {
  color: #a888d0;
  text-decoration: none;
  border-bottom: 1px dotted #a888d0;
}
a.link-internal:visited { color: #a888d0; }
a.link-internal:hover { color: #c4aee8; border-bottom-style: solid; }

a.link-external {
  color: #6bcf7f;
  text-decoration: none;
  border-bottom: 1px solid #6bcf7f;
}
a.link-external:visited { color: #6bcf7f; }
a.link-external:hover { color: #8fe89f; }
a.link-external::after {
  content: " ↗";
  font-size: clamp(0.85em, calc(0.7915em + 0.0163vw), 0.915em);
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-switch a {
  font-size: clamp(0.78em, calc(0.726em + 0.015vw), 0.84em);
  font-family: 'SF Mono', Consolas, monospace;
  color: #7a8296;
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid #232849;
  border-radius: 4px;
}
.lang-switch a:hover { color: #4a90e2; border-color: #4a90e2; }
.lang-switch a.active { color: #fff; background: #1e2340; border-color: #1e2340; }

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #4a90e2;
  text-decoration: none;
  font-size: clamp(0.9em, calc(0.8415em + 0.0163vw), 0.965em);
}
.back-link:visited { color: #4a90e2; }
.back-link:hover { text-decoration: underline; }

.frontmatter {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: clamp(0.85em, calc(0.7915em + 0.0163vw), 0.915em);
  margin-bottom: 40px;
}
.fm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #161a33;
}
.fm-key-col {
  flex: 0 0 160px;
  text-align: right;
}
.fm-key {
  display: inline-block;
  background: #16233d;
  color: #6bb3f0;
  padding: 2px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.fm-value {
  flex: 1;
  color: #c8cce0;
  text-align: left;
}
.fm-value a.link-internal { font-family: 'SF Mono', Consolas, monospace; }

.placeholder-message {
  color: #8a90a8;
  font-size: clamp(1.05em, calc(0.978em + 0.02vw), 1.13em);
  margin-top: 24px;
}


/* ---- Nav home icon + back-link (replaces bottom back-link + static "Portfolio" label) ---- */

.home-icon { color: #7a8296; text-decoration: none; font-size: clamp(1.05em, calc(0.978em + 0.02vw), 1.13em); line-height: 1; }
.home-icon:hover { color: #4a90e2; }
.home-icon-active { color: #4a90e2; font-size: clamp(1.05em, calc(0.978em + 0.02vw), 1.13em); line-height: 1; }
.nav-back { color: #4a90e2; text-decoration: none; }

/* ---- Portfolio anchor (right-aligned, distinct from the left home-icon-active
   which points at this site's own home) — violet to match link-internal,
   not the blue used for this site's own home/nav-back/site-link. ---- */
.home-icon-right { color: #a888d0; text-decoration: none; font-size: clamp(1.05em, calc(0.978em + 0.02vw), 1.13em); line-height: 1; }
.home-icon-right:hover { text-decoration: underline; }

/* ---- Cross-site links (portfolio / blog / doctrine) ---- */
.site-link { color: #4a90e2; text-decoration: none; }
.site-link:hover { text-decoration: underline; }
