/* Styles des pages du blog (générées par scripts/generate-blog.js). */
:root{--ink:#050505;--paper:#f5f5f2;--muted:#8a8a8a;--red:#5d1212;--line:rgba(5,5,5,.18)}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.6 'Poppins',sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.brand{font-weight:600;font-size:1rem;letter-spacing:.08em}
.brand span{font-weight:400;color:var(--muted)}

.blog-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:1rem;height:72px;padding:0 4vw;background:rgba(245,245,242,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.blog-header nav{display:flex;align-items:center;gap:2rem;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase}
.blog-header nav a{color:#666;transition:color .25s}
.blog-header nav a:hover{color:var(--ink)}
.blog-header .blog-header-cta{color:var(--red)}
.blog-header-cta span{margin-left:.3rem}

.blog-main{padding:7rem 8vw 8rem}
.kicker,.post-meta,.blog-card-meta{color:var(--muted);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase}

.blog-intro{max-width:1040px;margin:0 auto;text-align:center}
.blog-intro h1,.post h1{font-weight:600;letter-spacing:-.06em;line-height:.95;margin:1.5rem 0}
.blog-intro h1{font-size:clamp(2.4rem,5.2vw,5.2rem)}
.blog-intro h1 em{color:var(--red);font-style:normal}
.blog-intro>p:last-child{max-width:520px;margin:1.5rem auto 0;color:#666}

.blog-list{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;max-width:1040px;margin:5rem auto 0;background:var(--line);border:1px solid var(--line)}
.blog-card{position:relative;min-height:270px;display:flex;flex-direction:column;padding:1.7rem;background:var(--paper);transition:background .25s}
.blog-card:hover{background:#fff}
.blog-card-meta{display:flex;justify-content:space-between;gap:1rem;font-size:.62rem}
.blog-card h2{margin:3.5rem 0 1rem;font-size:clamp(1.35rem,2.3vw,2.4rem);font-weight:500;letter-spacing:-.05em;line-height:1}
.blog-card h2 a::after{content:"";position:absolute;inset:0}
.blog-card p{margin:0;color:#666;max-width:420px}
.blog-card-link{margin-top:auto;padding-top:2rem;color:var(--red);font-size:.72rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}

.post{max-width:720px;margin:0 auto}
.post-back{display:inline-block;margin-bottom:3rem;color:var(--red);font-size:.72rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}
.post-meta{display:flex;gap:2rem}
.post h1{font-size:clamp(2.3rem,5vw,4.4rem)}
.post-lead{font-size:1.15rem;color:#555;margin:0 0 3rem;padding-bottom:2.5rem;border-bottom:1px solid var(--line)}
.post-cover{margin:0 0 3rem}
.post-cover img{display:block;width:100%;height:auto}
.post-body{font-size:1.02rem;color:#222}
.post-body h2{margin:3rem 0 1rem;font-size:1.6rem;font-weight:600;letter-spacing:-.04em;line-height:1.1}
.post-body h3{margin:2.2rem 0 .8rem;font-size:1.25rem;font-weight:600}
.post-body p{margin:0 0 1.2rem}
.post-body ul,.post-body ol{margin:0 0 1.5rem;padding-left:1.3rem}
.post-body li{margin:.4rem 0}
.post-body li::marker{color:var(--red)}
.post-body a{color:var(--red);border-bottom:1px solid currentColor}
.post-body code{background:rgba(5,5,5,.07);padding:.1rem .4rem;font-size:.9em}
.post-body pre{background:var(--ink);color:var(--paper);padding:1.2rem;overflow-x:auto}
.post-body pre code{background:none;padding:0}
.post-body img{max-width:100%;height:auto;margin:2rem 0}

.post-cta{margin-top:5rem;padding:2rem;background:var(--ink);color:var(--paper)}
.post-cta p{margin:0 0 1rem;font-size:1.5rem;font-weight:600;letter-spacing:-.04em}
.post-cta a{color:#d79595;font-size:.75rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid currentColor;padding-bottom:.3rem}

.blog-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2.5rem 4vw;background:var(--ink);color:var(--paper)}
.blog-footer small{color:var(--muted)}

@media(max-width:700px){
  .blog-header nav{gap:1rem}
  .blog-header nav a:not(.blog-header-cta){display:none}
  .blog-main{padding:4.5rem 1.25rem 5rem}
  .blog-list{grid-template-columns:1fr;margin-top:3rem}
  .blog-card{min-height:220px}
  .blog-card h2{margin-top:2.5rem;font-size:1.8rem}
  .post-back{margin-bottom:2rem}
  .post-lead{font-size:1rem}
  .post-cta{margin-top:3.5rem;padding:1.5rem}
  .blog-footer{flex-direction:column;align-items:flex-start}
}
