/* Blog & pages secondaires — style Instagram */
@import url('site-footer.css');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{line-height:1.5;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Nav : assets/site-nav.css (#navbar) */

/* Blog listing */
.blog-page{padding-top:60px;background:var(--ig-bg)}
.blog-hero{position:relative;padding:3rem 1.25rem 2rem;border-bottom:1px solid var(--border);background:var(--ig-surface)}
.blog-hero::before,.blog-hero::after{display:none}
.blog-hero-inner{max-width:935px;margin:0 auto}
.blog-hero .label{font-size:.8125rem;color:var(--ig-blue);font-weight:600;margin-bottom:.5rem}
.blog-hero h1{font-size:clamp(1.75rem,5vw,2.5rem);font-weight:600;line-height:1.15;margin-bottom:.75rem;max-width:560px}
.blog-hero .intro{font-size:.9375rem;color:var(--muted);max-width:480px;line-height:1.5}

.blog-body{max-width:935px;margin:0 auto;padding:1.5rem 1.25rem 4rem;width:100%}

/* Feed Instagram */
.ig-feed{display:flex;flex-direction:column;gap:1.5rem}
.ig-feed--blog{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem;
  align-items:start;
}
.ig-feed--blog .ig-post--featured{grid-column:1 / -1}
.ig-feed--compact{max-width:470px;margin:0 auto}
.ig-post{background:var(--ig-surface);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.ig-post-header{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--border)}
.ig-post-header--sticky{position:sticky;top:0;background:var(--ig-surface);z-index:2;border-bottom:1px solid var(--border)}
.ig-post-avatar{
  width:32px;height:32px;flex-shrink:0;
  border-radius:50%;padding:2px;
  background:var(--ig-gradient);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.ig-post-avatar img{
  width:100%;height:100%;border-radius:50%;
  object-fit:cover;display:block;
  border:2px solid var(--ig-surface);
  background:var(--ig-surface);
}
.ig-post-header-text{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.ig-post-author{font-size:.875rem;font-weight:600;color:var(--text)}
a.ig-post-author:hover{opacity:.7}
.ig-post-sub{font-size:.6875rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.ig-post-badge{font-size:.6875rem;color:var(--ig-blue);font-weight:600}
.ig-post-media{display:block;aspect-ratio:1/1;background:var(--s2);overflow:hidden}
.ig-post-media img{width:100%;height:100%;object-fit:cover;display:block}
.ig-post-media.is-low-res img{object-fit:contain;background:var(--ig-bg)}
.ig-post-placeholder{width:100%;height:100%;min-height:280px;background:var(--ig-bg)}
.ig-post-actions{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem .25rem}
.ig-post-actions-left{display:flex;align-items:center;gap:.85rem}
.ig-like-btn,.ig-action-btn{display:inline-flex;align-items:center;justify-content:center;padding:0;background:none;border:none;color:var(--text);cursor:pointer;line-height:0;transition:opacity .15s,transform .15s}
.ig-like-btn:hover,.ig-action-btn:hover:not(:disabled){opacity:.6}
.ig-action-btn:disabled{opacity:.35;cursor:default}
.ig-heart{display:block}
.ig-heart--filled{fill:#ed4956;stroke:none}
.ig-like-btn.is-liked .ig-heart--filled{fill:#ed4956}
.ig-like-pop{animation:ig-like-pop .35s ease}
@keyframes ig-like-pop{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
.ig-post-likes{padding:0 1rem .35rem;font-size:.875rem;font-weight:600;color:var(--text);line-height:1.3}
.ig-post-caption{padding:0 1rem .5rem;font-size:.875rem;line-height:1.45;color:var(--text)}
.ig-post-caption-text .strong,.ig-post-caption-text strong{font-weight:600;margin-right:.25rem}
.ig-post-more{display:block;padding:0 1rem .35rem;font-size:.8125rem;color:var(--muted);font-weight:500}
.ig-post-more:hover{color:var(--ig-blue)}
.ig-post-time{display:block;padding:0 1rem .75rem;font-size:.625rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.ig-post-time--footer{padding:.35rem 1rem .75rem}

.blog-empty{text-align:center;padding:3rem 1.5rem;background:var(--ig-surface);border-radius:8px;border:1px solid var(--border)}
.blog-empty p{color:var(--muted);margin-bottom:1rem}
.blog-empty a{color:var(--ig-blue);font-weight:600}

.pagination{display:flex;gap:.35rem;margin-top:2rem;justify-content:center;flex-wrap:wrap}
.pagination a,.pagination span{min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;font-size:.8125rem;font-weight:500;color:var(--muted);transition:all .15s}
.pagination a:hover{border-color:#a8a8a8;color:var(--text)}
.pagination a.active{background:var(--ig-blue);color:#fff;border-color:var(--ig-blue)}

/* Article — vue post Instagram (desktop) */
.article-page{padding-top:60px;background:var(--ig-bg)}
.article-main{
  width:100%;max-width:935px;margin:0 auto;
  padding:1.5rem 1.25rem 4rem;
  display:flex;flex-direction:column;gap:1.5rem;
}
.article-breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--muted);flex-wrap:wrap}
.article-breadcrumb a{color:var(--ig-blue);font-weight:600}
.article-breadcrumb a:hover{opacity:.7}
.article-breadcrumb span{color:var(--border)}

.article-ig{
  width:100%;
  background:var(--ig-surface);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.article-ig-layout{
  display:grid;
  grid-template-columns:minmax(260px,42%) minmax(0,58%);
  align-items:stretch;
}
.article-ig-media{
  position:relative;
  min-height:360px;
  height:100%;
  background:var(--s2);
  border-right:1px solid var(--border);
  overflow:hidden;
}
.article-ig-media img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.article-ig-media .ig-post-placeholder{
  position:absolute;inset:0;
  min-height:100%;
}
.article-ig-panel{display:flex;flex-direction:column;min-width:0}
.article-ig-scroll{flex:1;padding:1.25rem 1.5rem 1rem}
.article-ig-caption{margin-bottom:1.25rem}
.article-ig-caption .article-title{
  font-size:clamp(1.25rem,2.5vw,1.625rem);
  font-weight:600;line-height:1.25;
  margin:0 0 .65rem;
  letter-spacing:-.02em;
}
.article-ig-caption .article-lead{
  color:var(--muted);
  font-size:.9375rem;line-height:1.55;margin:0;
}
.article-ig-meta{padding-top:1.25rem;margin-top:1.25rem;border-top:1px solid var(--border);font-size:.75rem;color:var(--muted);text-transform:capitalize}
.article-ig-footer{border-top:1px solid var(--border);background:var(--ig-surface);flex-shrink:0}
.article-ig-footer .ig-post-actions{padding-top:.65rem}
.article-ig-footer .ig-post-likes{padding-bottom:.15rem}

.article-content{font-size:.9375rem;line-height:1.6;color:var(--text)}
.article-content > *:first-child{margin-top:0}
.article-content h2{font-size:1rem;font-weight:600;margin:1.5rem 0 .5rem}
.article-content h3{font-size:.9375rem;font-weight:600;margin:1.25rem 0 .35rem}
.article-content p{margin-bottom:.85rem}
.article-content ul,.article-content ol{margin:.75rem 0 1rem 1.15rem}
.article-content li{margin-bottom:.25rem}
.article-content a{color:var(--ig-blue);font-weight:600;text-decoration:none}
.article-content a:hover{opacity:.7}
.article-content blockquote{margin:1rem 0;padding:.75rem 1rem;background:var(--ig-bg);border-left:2px solid var(--ig-blue);border-radius:0 6px 6px 0;color:var(--muted);font-size:.875rem}
.article-content img{border-radius:4px;margin:1rem 0;border:1px solid var(--border);max-width:100%}

.article-below{width:100%;display:flex;flex-direction:column;gap:1rem}

.article-cta{
  width:100%;
  padding:1.5rem 1.75rem;
  background:linear-gradient(135deg,var(--ig-surface) 0%,rgba(0,149,246,.07) 100%);
  border:1px solid var(--border);
  border-radius:12px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:1rem 2rem;
}
.article-cta-copy{min-width:0}
.article-cta h3{font-size:clamp(1rem,2vw,1.125rem);font-weight:600;margin:0 0 .35rem;line-height:1.3}
.article-cta p{color:var(--muted);font-size:.875rem;margin:0;line-height:1.45}
.article-cta-btn{
  flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ig-blue);color:#fff;
  padding:.625rem 1.35rem;border-radius:8px;
  font-weight:600;font-size:.875rem;white-space:nowrap;
  transition:background .2s;
}
.article-cta-btn:hover{background:var(--ig-blue-hover)}

.article-nav-links{
  width:100%;
  display:flex;justify-content:space-between;align-items:center;
  gap:1rem;flex-wrap:wrap;
  padding:0 .25rem;
}
.article-nav-links a{font-size:.875rem;font-weight:600;color:var(--ig-blue)}
.article-nav-links a:hover{opacity:.7}

.article-related{
  width:100%;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
}
.article-related .label{
  font-size:.8125rem;color:var(--ig-blue);font-weight:600;
  margin-bottom:1.25rem;
}
/* Grille 3 vignettes — page article */
.ig-feed--grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.25rem;
  max-width:none;width:100%;
}
.related-thumb{
  display:flex;flex-direction:column;
  background:var(--ig-surface);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  transition:border-color .2s,box-shadow .2s;
  color:inherit;
}
.related-thumb:hover{
  border-color:#c7c7c7;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.related-thumb-media{
  display:block;
  aspect-ratio:1/1;
  background:var(--s2);
  overflow:hidden;
}
.related-thumb-media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.related-thumb:hover .related-thumb-media img{transform:scale(1.03)}
.related-thumb-media.is-low-res img{object-fit:contain;background:var(--ig-bg)}
.related-thumb-placeholder{
  width:100%;height:100%;
  min-height:120px;
  background:var(--ig-bg);
}
.related-thumb-body{
  padding:.85rem 1rem 1rem;
  display:flex;flex-direction:column;gap:.35rem;
  flex:1;
}
.related-thumb-title{
  font-size:.9375rem;font-weight:600;line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-thumb-excerpt{
  font-size:.8125rem;color:var(--muted);line-height:1.45;margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.related-thumb-date{
  font-size:.6875rem;color:var(--muted);
  text-transform:uppercase;letter-spacing:.04em;
  margin-top:auto;padding-top:.25rem;
}

/* Pages légales */
.legal-page{background:var(--ig-bg)}
.legal-main{padding:5.5rem 1.25rem 2rem;min-height:60vh}
.legal-card{max-width:680px;margin:0 auto;background:var(--ig-surface);border:1px solid var(--border);border-radius:12px;padding:2rem 1.75rem}
.legal-head{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}
.legal-head .label{font-size:.75rem;color:var(--ig-blue);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.35rem}
.legal-head h1{font-size:clamp(1.5rem,4vw,1.875rem);font-weight:600;line-height:1.2}
.legal-body section{margin-bottom:1.5rem}
.legal-body h2{font-size:1rem;font-weight:600;margin-bottom:.5rem;color:var(--text)}
.legal-body p,.legal-body li{font-size:.875rem;line-height:1.6;color:var(--muted)}
.legal-body ul{margin:.5rem 0 .75rem 1.25rem}
.legal-body a{color:var(--ig-blue);font-weight:500;text-decoration:none}
.legal-body a:hover{opacity:.85}
.legal-body strong{color:var(--text)}
.legal-back{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border);font-size:.8125rem}
.legal-back a{color:var(--ig-blue);font-weight:600;text-decoration:none}

/* Page remerciement */
.merci-page{background:var(--ig-bg)}
.merci-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:6rem 1.25rem 3rem}
.merci-card{position:relative;width:100%;max-width:480px;background:var(--ig-surface);border:1px solid var(--border);border-radius:8px;padding:2rem 1.75rem;box-shadow:none;overflow:hidden}
.merci-card-bar{display:none}
.merci-icon{width:48px;height:48px;border-radius:50%;background:rgba(0,149,246,.1);color:var(--ig-blue);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.merci-icon svg{width:24px;height:24px}
.merci-label{font-size:.8125rem;color:var(--ig-blue);font-weight:600;margin-bottom:.35rem}
.merci-card h1{font-size:clamp(1.5rem,5vw,1.875rem);font-weight:600;line-height:1.2;margin-bottom:.5rem}
.merci-lead{color:var(--muted);font-size:.875rem;line-height:1.5;margin-bottom:1.25rem}
.merci-lead strong{color:var(--text);font-weight:600}
.merci-summary{background:var(--ig-bg);border:1px solid var(--border);border-radius:8px;padding:.875rem 1rem;margin-bottom:1.5rem}
.merci-summary-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.8125rem}
.merci-summary-row span{color:var(--muted)}
.merci-summary-row strong{text-align:right;font-weight:600;color:var(--text);font-size:.8125rem}
.merci-steps{margin-bottom:1.5rem}
.merci-steps h2{font-size:.9375rem;font-weight:600;margin-bottom:.75rem}
.merci-steps ol{list-style:none;display:flex;flex-direction:column;gap:.875rem}
.merci-steps li{display:flex;gap:.75rem;align-items:flex-start}
.merci-step-num{flex-shrink:0;font-size:.75rem;font-weight:600;color:var(--ig-blue);padding-top:.1rem}
.merci-steps li strong{display:block;font-size:.8125rem;margin-bottom:.15rem;color:var(--text)}
.merci-steps li p{font-size:.8125rem;line-height:1.45;margin:0}
.merci-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.merci-btn{display:inline-flex;align-items:center;justify-content:center;padding:.5625rem 1.25rem;border-radius:8px;font-weight:600;font-size:.875rem;transition:background .2s,opacity .2s}
.merci-btn-primary{background:var(--ig-blue);color:#fff}
.merci-btn-primary:hover{background:var(--ig-blue-hover);transform:none;box-shadow:none}
.merci-btn-secondary{background:transparent;border:1px solid var(--border);color:var(--text)}
.merci-btn-secondary:hover{border-color:#a8a8a8;color:var(--ig-blue)}
.merci-note{font-size:.75rem;color:var(--muted);text-align:center;margin:0}
.merci-note a{color:var(--ig-blue);font-weight:600;text-decoration:none}
.merci-note a:hover{opacity:.7}
.reveal-in{animation:merci-in .5s ease both}
@keyframes merci-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

@media(max-width:1024px){
  .article-ig-layout{grid-template-columns:1fr}
  .article-ig-media{
    border-right:none;border-bottom:1px solid var(--border);
    aspect-ratio:1/1;
    min-height:0;
    height:auto;
  }
}
@media(max-width:768px){
  .blog-body{padding:1rem 1rem 3rem}
  .ig-feed--blog{grid-template-columns:1fr;gap:1.5rem}
  .article-main{padding:1rem 1rem 2.5rem;gap:1.25rem}
  .article-ig{border-radius:8px}
  .article-ig-scroll{padding:1rem 1.125rem .75rem}
  .article-cta{
    grid-template-columns:1fr;
    text-align:center;
    padding:1.25rem 1.25rem;
  }
  .article-cta-btn{width:100%}
  .article-nav-links{flex-direction:column;align-items:stretch;text-align:center;gap:.75rem}
  .ig-feed--grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
}
@media(max-width:520px){
  .ig-feed--grid{grid-template-columns:1fr}
  .merci-main{padding:5rem 1rem 2rem}
  .merci-card{padding:1.5rem 1.25rem}
  .merci-actions{flex-direction:column}
  .merci-btn{width:100%}
  .merci-summary-row{flex-direction:column;align-items:flex-start;gap:.25rem}
  .merci-summary-row strong{text-align:left}
}
