/* Blog J.Legoff Photografie — même charte que l'accueil (brand-philosophy.md) */
:root {
  --bg: #050505;
  --bg-card: #111111;
  --text: #f4f4f6;
  --text-soft: #c9c9cd;
  --text-muted: #8a8a90;
  --accent: #3d7a52;
  --accent-hover: #4a9362;
  --accent-soft: #5fa074;
  --border-accent: #2a4a35;
  --line: #1a1a1a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.eyebrow { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); line-height: 1.6; }
.rule { width: 44px; height: 2px; background: var(--accent); margin: 1.25rem 0; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.in .rule, .rule.in { transform: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.7rem; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; background-repeat: no-repeat; background-size: 0% 100%; background-position: left; transition: background-size .6s var(--ease), color .4s, border-color .4s; }
.btn:hover { background-size: 100% 100%; }
.btn-primary { background-color: var(--accent); background-image: linear-gradient(var(--accent-hover), var(--accent-hover)); color: #fff; }
.btn-ghost { border-color: rgba(244,244,246,.35); background-image: linear-gradient(var(--text), var(--text)); }
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem var(--gutter); background: rgba(5,5,5,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-accent); }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; }
nav ul { list-style: none; display: flex; gap: 2.2rem; align-items: center; }
nav ul a:not(.btn) { font-size: .85rem; color: var(--text-muted); background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat right bottom / 0 1px; padding-bottom: 2px; transition: color .2s, background-size .5s var(--ease); }
nav ul a:not(.btn):hover, nav ul a[aria-current] { color: var(--text); background-size: 100% 1px; background-position: left bottom; }
nav ul .btn { color: #fff; padding: .6rem 1.2rem; }

/* Typo cinétique */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin-right: -.06em; }
.w > * { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d0, 0s) + var(--i) * 55ms); }
.split.in .w > * { transform: none; }

/* Révélation d'image (volet vert) */
.media { position: relative; overflow: hidden; background: var(--bg-card); }
.media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--accent); transform: scaleY(0); pointer-events: none; }
.media img { opacity: 0; }
.media.in::before { animation: wipe 1.2s var(--ease) var(--d, 0s) forwards; }
.media.in img { animation: imgIn 1.6s var(--ease-out) calc(var(--d, 0s) + .55s) forwards; }
@keyframes wipe { 0% { transform: scaleY(0); transform-origin: bottom; } 46% { transform: scaleY(1); transform-origin: bottom; } 54% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }
@keyframes imgIn { from { opacity: 1; transform: scale(1.2); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }

/* Emplacement de photo à venir (visible tant que la photo n'est pas fournie) */
.placeholder { display: grid; place-items: center; text-align: center; padding: 2rem; aspect-ratio: 3/2; border: 1px dashed var(--border-accent); background: repeating-linear-gradient(135deg, #0b100c 0 14px, #0d140f 14px 28px); color: var(--accent-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ===== Liste du blog ===== */
.blog-head { padding: clamp(4rem, 9vw, 7rem) var(--gutter) 3rem; max-width: 52rem; }
.blog-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.blog-head p { color: var(--text-muted); margin-top: 1rem; max-width: 36rem; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.5rem 1.5rem; padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem); }
.post-card .media, .post-card .placeholder { aspect-ratio: 3/2; }
.post-card img { width: 100%; height: 100%; object-fit: contain; transition: scale 1.1s var(--ease-out); }
.post-card:hover img { scale: 1.05; }
.post-card .meta { margin-top: 1.1rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.post-card h2 { font-size: 1.9rem; margin: .4rem 0 .5rem; transition: color .3s; }
.post-card:hover h2 { color: var(--accent-soft); }
.post-card p { color: var(--text-soft); font-size: .95rem; }
.badge { display: inline-block; margin-left: .6rem; padding: .1rem .5rem; border: 1px solid #8a6d2b; color: #d4b062; font-size: .65rem; letter-spacing: .12em; }

/* ===== Article ===== */
.post-hero { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2.5rem; max-width: 60rem; margin: 0 auto; }
.crumbs { font-size: .78rem; color: var(--text-muted); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--text); }
.post-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.post-hero .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; color: var(--text-soft); margin-top: 1.4rem; max-width: 44rem; }
.post-hero .meta { margin-top: 1.6rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.post-cover { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.post-cover .media img { width: 100%; max-height: 80vh; object-fit: contain; } /* photo entière, filigrane compris */
.prose figure img { max-height: 85vh; width: 100%; object-fit: contain; }

.prose { max-width: 42rem; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; font-size: 1.06rem; color: var(--text-soft); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--text); margin-top: 3.5rem; }
.prose h2::before { content: ""; display: block; width: 44px; height: 2px; background: var(--accent); margin-bottom: 1.2rem; }
.prose h3 { font-size: 1.6rem; color: var(--text); margin-top: 2.4rem; }
.prose h3 + p { margin-top: .6rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--accent); transition: color .2s; }
.prose a:hover { color: var(--accent-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--accent-soft); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--text); }
.prose figure { margin: 2.4rem calc(-1 * min(8vw, 6rem)); }
.prose figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .7rem; padding-left: min(8vw, 6rem); }
.prose .astuce { background: #0b140e; border: 1px solid var(--border-accent); padding: 1.3rem 1.5rem; font-size: .98rem; }
.prose .astuce::before { content: "Astuce de photographe"; display: block; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: .5rem; }

.cta { max-width: 42rem; margin: 2rem auto clamp(4rem, 9vw, 7rem); padding: 2.4rem var(--gutter); border-top: 1px solid var(--border-accent); border-bottom: 1px solid var(--border-accent); text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta p { color: var(--text-muted); margin: .8rem 0 1.6rem; }
.cta .btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border-accent); padding: 3rem var(--gutter); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: var(--text-muted); font-size: .85rem; }
footer .logo { color: var(--text); }
footer ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  nav ul li:not(:last-child) { display: none; }
  .prose figure { margin-inline: 0; }
  .prose figcaption { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w > *, .rule { transform: none !important; }
  .rise { opacity: 1; transform: none; }
  .media img { opacity: 1; } .media::before { display: none; }
}
