/* ── EasyFid Blog — blog.css ──────────────────────────────────── */
/* Thème identique au site principal : fond blanc, teal, slate    */

:root {
  --teal-50:  #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-200: #99F6E4;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --teal-800: #115E59;
  --teal-900: #134E4A;

  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background: #030a09;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Animations ───────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(3,10,9,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -.5px; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-400); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #0d1f1c; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.6);
  min-width: 200px; padding: 8px; padding-top: 16px; margin-top: 4px; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--teal-400); }
.dropdown-menu a span { font-size: 18px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--teal-600); color: #fff;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-full);
  border: none; transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--teal-700); transform: translateY(-1px); }

.mobile-toggle { display: none; background: none; border: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-toggle svg { width: 24px; height: 24px; color: var(--slate-700); }

/* ── Mobile menu ─────────────────────────────────────────────── */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: #0a1b17; border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── Blog hero ────────────────────────────────────────────────── */
.blog-hero {
  padding: 120px 0 64px;
  background: linear-gradient(160deg, #030a09 0%, #071a16 55%, #030a09 100%);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; letter-spacing: -1.5px;
  color: #fff; margin-bottom: 16px;
}
.blog-hero h1 span { color: var(--teal-400); }
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.5); max-width: 520px; margin: 0 auto; }

.blog-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; background: var(--teal-100);
  border: 1px solid var(--teal-200); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; color: var(--teal-800);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 20px;
}

/* ── Blog grid ────────────────────────────────────────────────── */
.blog-section { padding: 48px 0 96px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: none;
  transition: box-shadow .2s, border-color .2s, transform .2s, background .2s;
  text-decoration: none; color: inherit;
}
.blog-card:hover {
  background: rgba(255,255,255,0.055);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  border-color: rgba(13,148,136,0.35);
  transform: translateY(-3px);
}
.blog-card-date {
  font-size: .75rem; font-weight: 600; color: var(--teal-600);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.blog-card-date::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--teal-500); border-radius: 50%; }
.blog-card h2 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.4; }
.blog-card p { font-size: .875rem; color: rgba(255,255,255,0.48); flex: 1; margin-bottom: 20px; line-height: 1.6; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; }
.blog-card-read { font-size: .75rem; color: var(--slate-400); font-weight: 500; }
.blog-card-arrow { font-size: .85rem; font-weight: 700; color: var(--teal-600); display: flex; align-items: center; gap: 4px; }

/* ── Article hero ─────────────────────────────────────────────── */
.article-hero {
  padding: 100px 0 48px;
  background: linear-gradient(160deg, #030a09 0%, #071a16 55%, #030a09 100%);
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; color: var(--slate-400); margin-bottom: 24px;
}
.breadcrumb a { color: var(--slate-400); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal-600); }
.breadcrumb-sep { opacity: .5; }

.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900; letter-spacing: -1px;
  color: #fff; line-height: 1.2; margin-bottom: 20px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: .82rem; color: var(--slate-400); font-weight: 500;
}
.article-meta-item { display: flex; align-items: center; gap: 5px; }

/* ── Article body ─────────────────────────────────────────────── */
.article-body { padding: 48px 0 64px; background: #030a09; }

.article-body h2 {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 44px 0 16px; letter-spacing: -.4px;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.85);
  margin: 28px 0 12px;
}
.article-body p { color: rgba(255,255,255,0.58); margin-bottom: 20px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { color: rgba(255,255,255,0.58); margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: rgba(255,255,255,0.9); font-weight: 700; }
.article-body a { color: var(--teal-400); text-decoration: underline; text-underline-offset: 3px; }

/* Table of contents */
.toc {
  background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.25);
  border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 40px;
}
.toc-title {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--teal-400); margin-bottom: 12px;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: rgba(255,255,255,0.65); font-size: .9rem; transition: color .15s; }
.toc a:hover { color: var(--teal-400); }

/* Highlight box */
.highlight-box {
  background: rgba(13,148,136,0.08); border: 1px solid rgba(13,148,136,0.2);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 28px 0;
}
.highlight-box p { color: rgba(255,255,255,0.62); margin: 0; }
.highlight-box strong { color: var(--teal-400); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 28px 0; }
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
}
.stat-card .stat-val { font-size: 1.9rem; font-weight: 900; color: var(--teal-400); display: block; letter-spacing: -1px; }
.stat-card .stat-label { font-size: .78rem; color: rgba(255,255,255,0.42); margin-top: 4px; }

/* CTA article */
.article-cta {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
  border-radius: var(--radius-lg); padding: 40px; margin: 48px 0; text-align: center;
  box-shadow: 0 8px 24px rgba(13,148,136,.3);
}
.article-cta h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: #fff; color: var(--teal-700);
  font-weight: 700; font-size: .95rem; border-radius: var(--radius-full);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-list details {
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-list summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  color: rgba(255,255,255,0.85); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.04); transition: background .15s;
}
.faq-list summary:hover { background: rgba(13,148,136,0.1); }
.faq-list summary::after { content: '+'; font-size: 1.2rem; color: var(--teal-400); flex-shrink: 0; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 16px 20px; color: rgba(255,255,255,0.52); background: rgba(255,255,255,0.02); margin: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--slate-900); color: var(--slate-300);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 2fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-tagline { font-size: .875rem; color: var(--slate-400); line-height: 1.6; }
.footer-col-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--slate-400); font-size: .875rem; transition: color .15s; }
.footer-col ul a:hover { color: var(--teal-400); }
.footer-sectors { columns: 2; column-gap: 16px; }
.footer-copy { border-top: 1px solid var(--slate-700); padding-top: 24px; text-align: center; font-size: .8rem; color: var(--slate-500); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-sectors { columns: 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
