/* yannick-kpodzo.fr : feuille de style commune (accueil + blog) */
:root {
  --bg: #0f1411;
  --bg-2: #151c17;
  --surface: #1a221c;
  --line: #2a352d;
  --text: #ece7dc;
  --muted: #9ba59c;
  --accent: #e9a23b;
  --leaf: #6fbf8f;
  --clay: #d9774b;
  --wheat: #cdb85c;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f6c26b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow a { color: inherit; }
.timeline h3 a { color: inherit; text-decoration-color: var(--line); }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(15, 20, 17, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(233, 162, 59, .18); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav .cta { color: #14110a; background: var(--accent); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { background: #f6c26b; color: #14110a; }
@media (max-width: 640px) { .nav { gap: 14px; } .nav .opt { display: none; } }

/* Héros + arbre */
.hero { padding: 44px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 21ch; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent); white-space: nowrap; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 58ch; }
.tree-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; min-height: 36px; }
.tree-hint { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.tree-hint b { color: var(--accent); font-weight: 500; }
.btn-ghost { font: inherit; font-size: .84rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost[hidden] { display: none; }

.tree { position: relative; margin: 10px 0 0; min-height: 220px; transition: height .6s cubic-bezier(.2, .7, .2, 1); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  background: radial-gradient(circle at 1px 1px, rgba(236, 231, 220, .055) 1px, transparent 1.5px) 0 0 / 26px 26px; }
.no-js .tree, .no-js .tree-bar { display: none; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tree svg path { fill: none; stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.tree-nodes { position: absolute; inset: 0; }
.node { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; max-width: var(--node-max, 250px);
  padding: 7px 14px 7px 10px; margin: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  opacity: 0; transition: opacity .45s ease, border-color .2s, background .2s; will-change: transform; }
.node.in { opacity: 1; }
.node:hover, .node.sel { border-color: var(--c, var(--accent)); background: #202a22; }
.node .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--accent)); position: relative; }
.node.has-kids:not(.open) .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--c, var(--accent)); opacity: .6; }
.node .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.node .t { font-size: .9rem; font-weight: 600; }
.node .s { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-top: 2px; }
.node .n { font-family: var(--mono); font-size: .68rem; color: var(--c, var(--accent)); margin-left: 2px; }
.node.open .n { display: none; }
.node.d0 { padding: 10px 18px 10px 12px; }
.node.d0 .t { font-family: var(--serif); font-size: 1.08rem; }
.node.d0 .dot { width: 16px; height: 16px; }
.node.seed { padding: 14px; border-color: transparent; background: transparent; }
.node.seed .txt, .node.seed .n { display: none; }
.node.seed .dot { width: 22px; height: 22px; box-shadow: 0 0 0 0 rgba(233, 162, 59, .55); animation: pulse 2s infinite; }
.node.seed .dot::after { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, .55); } 70% { box-shadow: 0 0 0 26px rgba(233, 162, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0); } }
.seed-label { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); pointer-events: none; transition: opacity .3s; }
.seed-label.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .node.seed .dot { animation: none; } .tree { transition: none; } html { scroll-behavior: auto; } }

/* Fiche détail */
.sheet { position: fixed; left: 50%; bottom: 18px; width: min(680px, calc(100vw - 24px)); max-height: 46vh; overflow: auto; z-index: 50;
  background: #1d261f; border: 1px solid var(--line); border-top: 3px solid var(--c, var(--accent)); border-radius: 14px; padding: 20px 52px 18px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform: translate(-50%, calc(100% + 40px)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.sheet.on { transform: translate(-50%, 0); }
.sheet h3 { margin-bottom: .2em; font-size: 1.3rem; }
.sheet .meta { font-family: var(--mono); font-size: .74rem; color: var(--c, var(--accent)); margin-bottom: .8em; }
.sheet p { font-size: .95rem; margin-bottom: .8em; }
.sheet .x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.sheet .x:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 .6em; list-style: none; }
.tags li, .tag { font-family: var(--mono); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* Sections */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .9em; }
.card p:last-child { margin-bottom: 0; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline > li { position: relative; padding: 0 0 38px 34px; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 4px var(--bg); }
.timeline .when { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.timeline h3 { margin: .15em 0 .1em; font-size: 1.3rem; }
.timeline .role { color: var(--c, var(--accent)); font-size: .95rem; margin-bottom: .6em; }
.timeline p, .timeline ul { color: #cfcabf; font-size: .97rem; max-width: 72ch; }
.timeline ul { padding-left: 1.1em; margin: 0 0 .9em; }
.timeline ul li { margin-bottom: .35em; }

/* Blog */
.posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 34px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.post-card time { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.post-card h3 { font-size: 1.28rem; margin: .5em 0 .5em; }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card .more { font-family: var(--mono); font-size: .76rem; color: var(--accent); }
.page-head { padding: 70px 0 10px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px; color: var(--muted); text-align: center; margin-top: 34px; }

.article { max-width: 720px; margin: 0 auto; padding: 60px 24px 40px; }
.article .back { font-family: var(--mono); font-size: .78rem; text-decoration: none; }
.article h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: .5em 0 .4em; }
.article .meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 2.2em; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article .chapo { font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; color: #d9d3c6; margin-bottom: 1.6em; }
.article h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.article h3 { font-size: 1.22rem; margin: 1.5em 0 .4em; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; color: #dcd7cc; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.article code { font-family: var(--mono); font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.article pre { background: #0b0f0c; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow: auto; margin: 0 0 1.4em; }
.article pre code { background: none; border: 0; padding: 0; font-size: .86rem; line-height: 1.6; }
.article img { max-width: 100%; height: auto; border-radius: 10px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.author { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 48px; }
.author i { flex: none; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(233, 162, 59, .18); }
.author p { font-size: .96rem; margin: 0; color: var(--muted); }
.author strong { color: var(--text); }

/* Contact + pied */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; margin-left: auto; margin-right: auto; }
.contact p { color: var(--muted); max-width: 54ch; margin-left: auto; margin-right: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .96rem; border: 1px solid var(--line); color: var(--text); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #14110a; }
.btn.primary:hover { background: #f6c26b; color: #14110a; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .86rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Mise en avant MockWise */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.feature p { max-width: 56ch; }
.feature-mark { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 260px; padding: 34px; border-radius: 18px; text-decoration: none; color: #14110a;
  background: linear-gradient(135deg, #f2c14e 0%, #e9a23b 55%, #d9774b 100%); transition: transform .25s; }
.feature-mark:hover { transform: translateY(-4px); color: #14110a; }
.feature-mark span { font-family: var(--mono); font-size: .8rem; opacity: .75; }
.feature-mark strong { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.feature-mark em { font-size: 1rem; opacity: .85; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature-mark { min-height: 180px; } }

/* Photo */
.portrait { display: block; width: 132px; height: 132px; margin: 0 auto 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(233, 162, 59, .16); }
.author img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
