/* ============================================================
   blog.css — FIX72 Support — Styles partagés blog
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fc;
  color: #111827;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 100vh;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */

.left {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0b1528;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(77,142,240,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.left-logo-text em {
  font-style: normal;
  color: #4d8ef0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,164,.12);
  border: 1px solid rgba(45,212,164,.3);
  border-radius: 999px;
  padding: 6px 14px;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #2dd4a4;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: #2dd4a4;
  letter-spacing: 0.3px;
}

.left-sub {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

.left-phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.phone-icon {
  flex-shrink: 0;
}

.phone-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.phone-hint {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.left-location {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.left-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.left-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .15s;
}

.left-badge:hover { opacity: .8; }

.left-badge--green {
  background: rgba(45,212,164,.15);
  color: #2dd4a4;
  border: 1px solid rgba(45,212,164,.25);
}

.left-badge--blue {
  background: rgba(77,142,240,.15);
  color: #4d8ef0;
  border: 1px solid rgba(77,142,240,.25);
}

.left-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
}

.left-footer a {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
}

.left-footer a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   RIGHT PANEL
   ============================================================ */

.right {
  background: #f8f9fc;
  padding: 60px 48px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */

.article-content {
  max-width: 720px;
  width: 100%;
}

/* --- Breadcrumb --- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  transition: color .15s;
}

.breadcrumb a:hover { color: #4d8ef0; }

.breadcrumb span { color: #6b7280; }

/* --- Tags --- */

.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tag-pill {
  background: #eff6ff;
  color: #4d8ef0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Article meta --- */

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
  margin: 12px 0 28px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Prose --- */

.article-content h1 {
  font-size: 36px;
  font-weight: 900;
  color: #0b1528;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}

.article-lede, .page-lede {
  font-size: 17px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0b1528;
  border-bottom: 2px solid #f0f4ff;
  padding-bottom: 8px;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0b1528;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: #374151;
}

.article-content li {
  line-height: 1.8;
  margin-bottom: 6px;
  font-size: 16px;
}

.article-content a {
  color: #4d8ef0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: #2563eb; }

.article-content .cta-mid-btn,
.article-content .cta-mid-btn:hover {
  color: #fff;
  text-decoration: none;
}

.article-content strong {
  font-weight: 700;
  color: #0b1528;
}

.article-content code {
  background: #f0f4ff;
  color: #4d8ef0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

/* --- Tableau comparatif --- */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-content th {
  background: #0b1528;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.article-content tr:nth-child(even) td { background: #f8f9fc; }

/* --- Callouts --- */

.callout-info,
.callout-warn,
.callout-ok {
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

.callout-info {
  background: #eff6ff;
  border-left: 4px solid #4d8ef0;
}

.callout-warn {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.callout-ok {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.callout-info p,
.callout-warn p,
.callout-ok p {
  margin-bottom: 0;
  font-size: 15px;
}

.callout-info strong,
.callout-warn strong,
.callout-ok strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.callout-info strong { color: #4d8ef0; }
.callout-warn strong { color: #d97706; }
.callout-ok strong { color: #16a34a; }

/* --- CTA Mid --- */

.cta-mid {
  background: linear-gradient(135deg, #0b1528, #0f2040);
  border-left: 4px solid #4d8ef0;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 44px 0;
}

.cta-mid-label {
  font-size: 12px;
  font-weight: 700;
  color: #4d8ef0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cta-mid h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 0;
  margin-bottom: 8px;
}

.cta-mid p {
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
  font-size: 15px;
}

.cta-mid-btn {
  display: inline-block;
  background: #4d8ef0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.cta-mid-btn:hover {
  background: #3b7de0;
  color: #fff;
  transform: translateY(-1px);
}

/* --- FAQ --- */

.faq-section {
  margin-top: 56px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.faq-q::before {
  content: 'Q';
  color: #4d8ef0;
  font-weight: 900;
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

.faq-a {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  padding-left: 22px;
}

/* --- Related articles --- */

.related-articles {
  margin-top: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}

.related-card:hover {
  border-color: #4d8ef0;
  box-shadow: 0 4px 16px rgba(77,142,240,.1);
}

.related-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: #4d8ef0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0b1528;
  line-height: 1.4;
}

/* ============================================================
   BLOG INDEX
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.blog-card-thumb {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: #4d8ef0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0b1528;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #4d8ef0;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.blog-card-link:hover { color: #2563eb; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left {
    position: static;
    height: auto;
  }

  .right {
    padding: 24px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-content h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .article-content h2 {
    font-size: 19px;
  }

  .cta-mid {
    padding: 20px;
  }
}

/* ============================================================
   BLOG FOOTER
   ============================================================ */

.blog-footer {
  background: #070e1c;
  color: rgba(255,255,255,.55);
  margin-top: 0;
  position: relative;
}

.blog-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #4d8ef0 0%, #7ab8ff 45%, rgba(77,142,240,.1) 100%);
}

/* CTA strip */
.bfooter-strip {
  background: linear-gradient(135deg, #0d1e3a 0%, #111f3c 100%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bfooter-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bfooter-dot {
  width: 10px;
  height: 10px;
  background: #2dd4a4;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(45,212,164,.2);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.bfooter-strip-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.bfooter-strip-sub {
  font-size: 12px;
  color: rgba(255,255,255,.42);
  margin-top: 2px;
}

.bfooter-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4d8ef0;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.bfooter-strip-btn:hover {
  background: #3b7de0;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Grid */
.blog-footer-inner {
  padding: 44px 48px 28px;
}

.blog-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

/* Brand column */
.bfcol-brand {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.bfcol-brand em {
  color: #4d8ef0;
  font-style: normal;
}

.bfcol-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.38);
  margin-bottom: 18px;
}

.bfcol-desc strong {
  color: rgba(255,255,255,.6);
  font-weight: 600;
}

.bfcol-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bfcol-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.04);
}

.bfcol-badge--green {
  color: #2dd4a4;
  border-color: rgba(45,212,164,.28);
  background: rgba(45,212,164,.07);
}

/* Column titles & links */
.bfcol-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
  display: block;
}

.blog-footer-grid a {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .15s, transform .12s;
  line-height: 1.4;
}

.blog-footer-grid a:hover {
  color: #7ab8ff;
  transform: translateX(3px);
}

/* Hours */
.bfcol-hours {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 14px;
}

.bfcol-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
}

.bfcol-hours-row span:last-child {
  font-weight: 600;
  color: rgba(255,255,255,.52);
}

/* Bottom bar */
.blog-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,.22);
}

.blog-footer-bottom a {
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color .15s;
}

.blog-footer-bottom a:hover { color: #7ab8ff; }

/* Responsive */
@media (max-width: 900px) {
  .bfooter-strip  { padding: 18px 24px; }
  .blog-footer-inner { padding: 32px 24px 20px; }
  .blog-footer-grid  { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .blog-footer-grid { grid-template-columns: 1fr; }
  .bfooter-strip    { flex-direction: column; align-items: flex-start; gap: 12px; }
}
