/* ============================================
   A²studio — Blog static pages stylesheet
   Brand: navy #0A1E3D, orange #FF9800, font Outfit
   ============================================ */
:root {
  --navy: #0A1E3D;
  --navy-700: #132D5E;
  --orange: #FF9800;
  --orange-light: #FFB74D;
  --orange-dark: #E65100;
  --orange-600: #F57C00;
  --orange-glow: rgba(255, 152, 0, 0.35);
  --ink: #1a2236;
  --muted: #5b6478;
  --bg: #ffffff;
  --bg-soft: #F5F7FA;
  --line: #e6e9f0;
  --radius: 16px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.blog-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Force long unbreakable strings (URLs, mots collés) to wrap instead of
   overflowing and deforming the layout */
.blog-article-body,
.blog-article-header h1,
.blog-card-body h2,
.blog-card-body p,
.blog-index-header h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-article-inner { min-width: 0; }

a { color: var(--orange-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar (matches A²studio main site, "scrolled" state) ---- */
.blog-nav {
  background: rgba(10, 30, 61, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.blog-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-logo { display: inline-flex; align-items: center; text-decoration: none; }
.blog-logo:hover { text-decoration: none; }
.blog-logo-svg { height: 36px; width: auto; display: block; }

.blog-nav-links { display: flex; align-items: center; gap: 36px; }
.blog-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}
.blog-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange-light);
  transition: width 0.25s ease;
}
.blog-nav-links a:hover { color: #fff; text-decoration: none; }
.blog-nav-links a:hover::after { width: 100%; }

/* CTA = same as Button variant="primary" with the navbar size override */
.blog-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
  text-decoration: none;
}

@media (max-width: 860px) {
  .blog-nav-links { display: none; }
}

/* ---- Blog index ---- */
.blog-index { padding: 64px 0 40px; }
.blog-index-header { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.blog-eyebrow {
  color: var(--orange-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.blog-index-header h1 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}
.blog-index-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 30, 61, 0.12); }
.blog-card-link { color: inherit; display: block; }
.blog-card-link:hover { text-decoration: none; }
.blog-card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-img--placeholder { height: 190px; overflow: hidden; }
.blog-card-img--placeholder svg { width: 100%; height: 100%; display: block; }
.blog-card-body { padding: 22px 24px 26px; }
.blog-card-date { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }
.blog-card-body h2 { color: var(--navy); font-size: 1.25rem; line-height: 1.3; margin: 10px 0 10px; }
.blog-card-body p { color: var(--muted); font-size: 0.96rem; margin: 0 0 16px; }
.blog-card-more { color: var(--orange-600); font-weight: 600; font-size: 0.92rem; }
.blog-empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 60px 0; }

/* ---- Article ---- */
.blog-article { padding: 40px 0 20px; background: var(--bg); }
.blog-article-inner { max-width: 760px; }
.blog-breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.blog-breadcrumb a { color: var(--muted); }
.blog-breadcrumb span { color: var(--ink); }

.blog-article-header h1 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 18px;
}
.blog-article-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 28px;
}
.blog-article-cover {
  width: 100%; border-radius: var(--radius); margin: 8px 0 32px;
  border: 1px solid var(--line);
}

.blog-article-body { font-size: 1.08rem; color: #2a3043; }
.blog-article-body h2 {
  color: var(--navy); font-size: 1.7rem; line-height: 1.25;
  margin: 44px 0 16px; padding-top: 8px;
}
.blog-article-body h3 { color: var(--navy); font-size: 1.3rem; margin: 32px 0 12px; }
.blog-article-body p { margin: 0 0 20px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 22px; padding-left: 24px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body a { color: var(--orange-600); font-weight: 600; text-decoration: underline; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.blog-article-body blockquote {
  border-left: 4px solid var(--orange);
  background: var(--bg-soft);
  margin: 24px 0; padding: 16px 22px; border-radius: 0 12px 12px 0;
  color: var(--ink); font-style: italic;
}
.blog-article-body pre {
  background: var(--navy); color: #e6edf7; padding: 18px 20px;
  border-radius: 12px; overflow-x: auto; font-size: 0.92rem;
}
.blog-article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 0.92em; }
.blog-article-body pre code { background: none; padding: 0; }
.blog-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.blog-article-body th, .blog-article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.blog-article-body th { background: var(--bg-soft); color: var(--navy); }

/* ---- CTA block ---- */
.blog-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff; text-align: center; padding: 64px 0; margin-top: 60px;
}
.blog-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 12px; color: #fff; }
.blog-cta p { color: #cdd5e4; max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.blog-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-600));
  color: #fff; padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
}
.blog-btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-2px); }

/* ---- Footer (matches A²studio main site) ---- */
.blog-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 80px 0 30px; }
.blog-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 50px;
}
.blog-footer-brand .blog-logo { margin-bottom: 16px; }
.blog-footer-brand p { margin: 0; font-size: 0.9rem; line-height: 1.8; max-width: 300px; }
.blog-footer-col h4 {
  color: #fff; font-size: 0.9rem; font-weight: 700;
  margin: 0 0 20px; text-transform: uppercase; letter-spacing: 1px;
}
.blog-footer-col a {
  display: block; padding: 4px 0; font-size: 0.95rem;
  color: rgba(255,255,255,0.6); transition: color 0.2s ease, padding-left 0.2s ease;
}
.blog-footer-col a:hover { color: var(--orange); padding-left: 6px; text-decoration: none; }

.blog-footer-seo {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.blog-seo-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.3); flex-shrink: 0;
}
.blog-seo-list { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.blog-seo-list a { font-size: 0.75rem; color: rgba(255,255,255,0.35); padding: 2px 0; }
.blog-seo-list a::after { content: '·'; margin-left: 8px; color: rgba(255,255,255,0.15); }
.blog-seo-list a:last-child::after { content: ''; }
.blog-seo-list a:hover { color: var(--orange); text-decoration: none; }

.blog-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px; font-size: 0.88rem; text-align: center;
}

@media (max-width: 1024px) { .blog-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .blog-footer-grid { grid-template-columns: 1fr; gap: 30px; } }
