/* Liova Studio — Journal (pages publiques) */
:root { --bg: #F7F7F3; --paper: #FFFFFF; --ink: #111111; --mute: rgba(17,17,17,.52); --soft: rgba(17,17,17,.08);
  --cobalt: #254DFF; --gut: 16px; --r: 24px; --ease: cubic-bezier(.2,.7,.2,1); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em, .serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.glass { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 20px 60px rgba(17,17,17,.08), inset 0 1px 0 rgba(255,255,255,.95); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; font: 500 14px Inter, sans-serif; border: 0; cursor: pointer; white-space: nowrap; transition: background .3s, transform .3s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--bg); } .btn-ink:hover { background: var(--cobalt); }

/* navigation (même que l'accueil) */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gut); }
.nav-in { max-width: 1320px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(247,247,243,.62); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 10px 40px rgba(17,17,17,.05); }
.logo { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.logo b { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 24px; color: var(--cobalt); }
.logo .sq { position: relative; width: 12px; height: 12px; align-self: center; margin-right: 4px; }
.logo .sq::before, .logo .sq::after { content: ""; position: absolute; left: 0; top: 0; background: var(--cobalt); }
.logo .sq::before { width: 12px; height: 2px; } .logo .sq::after { width: 2px; height: 12px; }
.links { display: none; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mute); }
.links a:hover, .links a.on { color: var(--ink); background: rgba(255,255,255,.7); }
.nav .btn { height: 40px; padding: 0 16px; }

/* menu téléphone : un bouton rond ouvre un panneau en verre */
.menu-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; flex: none; margin: 0 8px 0 auto; border-radius: 50%; border: 1px solid rgba(17,17,17,.08); background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.menu-btn i { display: block; width: 15px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.nav.open .menu-btn i:first-child { transform: translateY(3.25px) rotate(45deg); } .nav.open .menu-btn i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 767px) {
  .nav .btn { padding: 0 14px; font-size: 13px; }
  .nav.open .links { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 76px; left: var(--gut); right: var(--gut); padding: 10px; border-radius: 24px; pointer-events: auto;
    background: rgba(247,247,243,.985); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 24px 60px rgba(17,17,17,.12); animation: menuIn .35s var(--ease); }
  .nav.open .links a { padding: 14px 16px; font-size: 18px; color: var(--ink); border-radius: 16px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 768px) { .menu-btn { display: none; } }

/* ---------- liste ---------- */
.j-head { padding: 12vh 0 6vh; text-align: center; }
.j-head h1 { margin: 18px 0 0; font-weight: 500; font-size: clamp(56px, 13vw, 168px); letter-spacing: -.065em; line-height: .9; }
.j-head h1 em { color: var(--cobalt); }
.j-head p { margin: 18px auto 0; color: var(--mute); max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.chip { height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--soft); background: transparent; font: 500 13px Inter, sans-serif; color: var(--mute); cursor: pointer; transition: all .3s; }
.chip:hover { color: var(--ink); } .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.feat { display: grid; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); margin-top: 24px; }
.feat .im { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9e4; }
.feat .im img, .post .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .im img, .post:hover .im img { transform: scale(1.04); }
.feat .tx { padding: 28px 24px 32px; display: flex; flex-direction: column; justify-content: center; }
.feat h2 { margin: 14px 0 0; font-weight: 500; font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.05em; line-height: 1; }
.feat p { margin: 16px 0 0; color: var(--mute); max-width: 40ch; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mute); }
.meta .cat { color: var(--cobalt); font-weight: 500; }
.list { display: grid; gap: 14px; margin: 14px 0 0; grid-template-columns: 1fr; }
.post { display: block; border-radius: var(--r); background: var(--paper); overflow: hidden; }
.post .im { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9e4; }
.post .tx { padding: 20px 22px 24px; }
.post h3 { margin: 10px 0 0; font-weight: 500; font-size: 24px; letter-spacing: -.035em; line-height: 1.08; }
.post p { margin: 10px 0 0; color: var(--mute); font-size: 15px; }
.empty { padding: 10vh 0; text-align: center; color: var(--mute); }

/* ---------- article ---------- */
.a-head { padding: 10vh 0 0; text-align: center; }
.a-head .meta { justify-content: center; }
.a-head h1 { margin: 22px auto 0; max-width: 16ch; font-weight: 500; font-size: clamp(42px, 8vw, 104px); letter-spacing: -.06em; line-height: .96; }
.a-head .dek { margin: 22px auto 0; max-width: 40ch; color: var(--mute); font-size: 18px; }
.a-cover { margin: 52px auto 0; max-width: 1180px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #e9e9e4; }
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 680px; margin: 64px auto 0; font-size: 19px; line-height: 1.7; letter-spacing: -.005em; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; } .prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2em 0 0; font-weight: 500; font-size: 34px; letter-spacing: -.04em; line-height: 1.1; }
.prose h3 { margin: 1.8em 0 0; font-weight: 500; font-size: 25px; letter-spacing: -.03em; }
.prose h4 { margin: 1.6em 0 0; font-weight: 600; font-size: 19px; }
.prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose mark { background: rgba(37,77,255,.12); color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose code { font: 15px ui-monospace, Menlo, monospace; background: rgba(17,17,17,.06); padding: .1em .35em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--bg); padding: 20px 22px; border-radius: 16px; overflow: auto; font: 14px/1.6 ui-monospace, Menlo, monospace; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose ul, .prose ol { padding-left: 1.2em; } .prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--cobalt); }
.prose blockquote { margin: 2em 0; padding: 0; text-align: center; }
.prose blockquote p { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 14px; font: 500 13px Inter, sans-serif; color: var(--mute); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.prose .delim { border: 0; margin: 2.4em auto; width: 26px; height: 26px; position: relative; }
.prose .delim::before, .prose .delim::after { content: ""; position: absolute; left: 0; top: 0; background: var(--cobalt); }
.prose .delim::before { width: 26px; height: 3px; } .prose .delim::after { width: 3px; height: 26px; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 18px; }
.prose figure.wide { margin-left: calc(50% - min(45vw, 560px)); margin-right: calc(50% - min(45vw, 560px)); }
.prose figure.bg { background: var(--paper); padding: 28px; border-radius: 22px; } .prose figure.bg img { max-width: 70%; margin: 0 auto; }
.prose figure.border img { box-shadow: 0 0 0 1px var(--soft); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--mute); text-align: center; }
.prose .ratio { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.prose .ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .callout { padding: 22px 24px; border-radius: 18px; background: var(--paper); border-left: 3px solid var(--cobalt); }
.a-foot { max-width: 680px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--soft); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--mute); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { padding: 6px 12px; border-radius: 99px; background: var(--paper); font-size: 12px; }
.share button { background: none; border: 0; font: 500 14px Inter, sans-serif; color: var(--ink); cursor: pointer; padding: 6px 8px; }
.share button:hover { color: var(--cobalt); }
.more { padding: 14vh 0 10vh; }
.more h2 { text-align: center; margin: 16px 0 34px; font-weight: 500; font-size: clamp(32px, 5vw, 56px); letter-spacing: -.05em; }
.more h2 em { color: var(--cobalt); }
.cta-mini { margin: 12vh auto 0; text-align: center; }
.cta-mini h2 { margin: 0 0 24px; font-weight: 500; font-size: clamp(44px, 9vw, 120px); letter-spacing: -.06em; line-height: .92; }
.cta-mini h2 em { color: var(--cobalt); }
.progress { position: fixed; left: 0; top: 0; height: 2px; background: var(--cobalt); z-index: 60; width: 0; }
.preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 500; }

.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--soft); margin-top: 12vh; }
.foot .wrap { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; font-size: 13px; color: var(--mute); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.rv { opacity: 0; transform: translateY(22px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.demo-note { position: fixed; right: 14px; bottom: 14px; z-index: 80; font-size: 12px; padding: 8px 12px; border-radius: 99px; color: var(--mute); }

@media (min-width: 768px) {
  :root { --gut: 32px; --r: 28px; }
  .links { display: flex; }
  .feat { grid-template-columns: 1.25fr 1fr; } .feat .im { aspect-ratio: auto; min-height: 520px; } .feat .tx { padding: 48px; }
  .list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .foot .wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1100px) { :root { --gut: 48px; } .list { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; filter: none; transition: none; } }
