/* ================================================================
   ADMINLY BLOG — Shared stylesheet
   Matches index.html design system exactly
   ================================================================ */

:root {
  --violet: #6d28d9;
  --violet-dark: #4c1d95;
  --violet-mid: #7c3aed;
  --violet-light: #ede9fe;
  --violet-soft: #f5f3ff;
  --ink: #111827;
  --ink-soft: #374151;
  --ink-muted: #6b7280;
  --surface: #f9fafb;
  --white: #ffffff;
  --border: rgba(17,24,39,0.08);
  --r: 12px;
  --rl: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Syne', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 64px;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%; height: 64px;
  display: flex; align-items: center;
}
.nav-logo {
  flex: 1; display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--violet);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; fill: white; }
.nav-logo-name { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.nav-logo-name span { color: var(--violet); }
.nav-center { flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: .85rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-active { color: var(--violet); font-weight: 600; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  font-size: .85rem; color: var(--ink-soft); font-weight: 500;
  background: none; border: none; cursor: pointer;
  font-family: 'Syne', sans-serif; padding: 0; line-height: 1;
  display: flex; align-items: center; gap: 4px; transition: color .2s;
}
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { color: var(--ink); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  background: white; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(17,24,39,.12), 0 0 0 1px rgba(17,24,39,.06);
  padding: 8px; min-width: 240px; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; animation: navSlideDown .18s ease both; }
@keyframes navSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdown-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background .15s;
}
.dropdown-item:hover { background: var(--surface); }
.dropdown-icon { font-size: 1.05rem; line-height: 1.5; flex-shrink: 0; }
.dropdown-text { display: flex; flex-direction: column; gap: 1px; }
.dropdown-label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.dropdown-desc { font-size: .73rem; color: var(--ink-muted); }
.nav-right {
  flex: 1; display: flex; align-items: center; gap: 1rem; justify-content: flex-end;
}
.nav-right .nav-login {
  font-size: .85rem; color: var(--ink-soft); text-decoration: none;
  font-weight: 500; transition: color .2s; white-space: nowrap;
}
.nav-right .nav-login:hover { color: var(--ink); }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  font-size: .75rem; font-weight: 600; padding: 4px 8px;
  border-radius: 6px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-muted);
  font-family: 'Syne', sans-serif; transition: all .15s;
}
.lang-btn.active { background: var(--violet-light); color: var(--violet); }
.nav-cta {
  background: var(--violet); color: white !important;
  padding: 9px 20px; border-radius: var(--r);
  font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: background .2s;
  font-family: 'Syne', sans-serif; white-space: nowrap;
}
.nav-cta:hover { background: var(--violet-dark); color: white !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .2s;
}
.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 6%; flex-direction: column; gap: 0; z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: .92rem; color: var(--ink-soft); text-decoration: none;
  font-weight: 500; padding: .6rem 0;
  border-bottom: 1px solid var(--border); transition: color .15s;
}
.nav-mobile-menu a:hover { color: var(--ink); }
.nav-mobile-menu .nav-cta {
  color: white !important; background: var(--violet);
  padding: 12px 20px; border-radius: var(--r);
  text-align: center; border-bottom: none !important;
  margin-top: .5rem; width: 100%; display: block;
}
.nav-mobile-menu .nav-cta:hover { background: var(--violet-dark); }
@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-right .nav-login { display: none; }
  .nav-right .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── FOOTER (identical to index.html) ────────────────────────── */
footer { background: var(--ink); color: rgba(255,255,255,.45); padding: 3rem 6%; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: start; margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 700; color: white; margin-bottom: .4rem;
}
.footer-logo span { color: #a78bfa; }
.footer-tagline { font-size: .78rem; line-height: 1.6; }
.footer-swiss { font-size: .72rem; color: rgba(255,255,255,.25); margin-top: .4rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .78rem; color: rgba(255,255,255,.35);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem;
  font-size: .75rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}

/* ================================================================
   BLOG LISTING PAGE (blog/index.html)
   ================================================================ */

/* Hero */
.blog-hero {
  padding: 72px 6% 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 90% 50%, rgba(109,40,217,.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5% 80%, rgba(124,58,237,.03) 0%, transparent 60%);
}
.blog-hero-dots {
  position: absolute; inset: 0; opacity: .025;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 28px 28px;
}
.blog-hero-inner { position: relative; max-width: 680px; }
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet-light); color: var(--violet);
  padding: 5px 14px; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  border: 1px solid rgba(109,40,217,.15);
  margin-bottom: 1.5rem;
  animation: fadeUp .4s ease both;
}
.blog-hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--violet-mid); border-radius: 50%;
}
.blog-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400; line-height: 1.2; color: var(--ink);
  margin-bottom: 1rem;
  animation: fadeUp .4s .08s ease both;
}
.blog-hero h1 em { font-style: italic; color: var(--violet); }
.blog-hero-sub {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; max-width: 480px;
  animation: fadeUp .4s .15s ease both;
}

/* Grid section */
.blog-section {
  padding: 64px 6% 80px;
  background: var(--surface);
}
.blog-section-label {
  font-size: .72rem; font-weight: 700; color: var(--violet);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 2rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.blog-card:hover {
  border-color: var(--violet);
  box-shadow: 0 8px 32px rgba(109,40,217,.1);
  transform: translateY(-3px);
}

/* Card image/color band */
.blog-card-img {
  height: 148px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.blog-card-img::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  opacity: .12;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 18px 18px;
}
.blog-card-img span { position: relative; z-index: 1; }

.cat-prevoyance { background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%); }
.cat-impots     { background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%); }
.cat-tva        { background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%); }
.cat-demenagement { background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%); }

/* Card body */
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.blog-tag {
  display: inline-block;
  font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: .75rem;
}
.tag-prevoyance { background: var(--violet-light); color: var(--violet); }
.tag-impots     { background: #dbeafe; color: #1d4ed8; }
.tag-tva        { background: #d1fae5; color: #065f46; }
.tag-demenagement { background: #fef3c7; color: #92400e; }

.blog-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: .97rem; font-weight: 700;
  color: var(--ink); line-height: 1.4;
  margin-bottom: .5rem;
}
.blog-card p {
  font-size: .84rem; color: var(--ink-soft);
  line-height: 1.65; flex: 1; margin-bottom: .75rem;
}
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .74rem; color: var(--ink-muted); font-weight: 500;
  margin-top: auto; padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.read-more { color: var(--violet); font-weight: 600; }

/* Blog page CTA */
.blog-cta {
  background: var(--violet);
  padding: 72px 6%;
  text-align: center;
}
.blog-cta h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; color: white; margin-bottom: .75rem;
}
.blog-cta h2 em { font-style: italic; color: rgba(255,255,255,.65); }
.blog-cta p {
  color: rgba(255,255,255,.7);
  font-size: .95rem; margin-bottom: 2rem;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--violet);
  padding: 14px 32px; border-radius: var(--r);
  font-size: .95rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
  font-family: 'Syne', sans-serif;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }

/* ================================================================
   ARTICLE PAGES
   ================================================================ */

/* Breadcrumb */
.breadcrumb {
  padding: .75rem 6%;
  font-size: .78rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap; background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 98;
}
.breadcrumb a {
  color: var(--ink-muted); text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb-sep { color: rgba(17,24,39,.2); }
.breadcrumb-current { color: var(--ink-soft); font-weight: 500; }

/* Article hero */
.article-hero {
  padding: 64px 6%;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
  border-bottom: 1px solid var(--border);
  min-height: 320px;
  display: flex; align-items: center;
}
.article-hero-inner { max-width: 720px; margin: 0 auto; width: 100%; }
.article-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 16px; border-radius: 99px;
  background: var(--white); color: var(--violet);
  margin-bottom: 1.25rem;
  border: 1.5px solid rgba(109,40,217,.35);
}
.article-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 700; line-height: 1.15;
  color: #111827; margin-bottom: 1rem;
}
.article-chapeau {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.article-meta {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; font-size: .82rem;
  color: var(--ink-muted); font-weight: 500;
}
.article-meta-dot {
  width: 3px; height: 3px; background: currentColor;
  border-radius: 50%; flex-shrink: 0;
}

/* Article body */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 3rem 6% 4rem; }

.article-wrap > p,
.article-wrap > ul,
.article-wrap > ol {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.article-wrap > ul,
.article-wrap > ol { padding-left: 1.5rem; }
.article-wrap li { margin-bottom: .5rem; }
.article-wrap strong { color: var(--ink); }

.article-wrap h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink);
  margin: 2.75rem 0 .9rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--violet-light);
}

/* Lang-specific body content wrappers */
.article-wrap [data-lang] > p,
.article-wrap [data-lang] > ul,
.article-wrap [data-lang] > ol {
  font-family: 'Lora', serif;
  font-size: 1.125rem; color: var(--ink-soft);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.article-wrap [data-lang] > ul,
.article-wrap [data-lang] > ol { padding-left: 1.5rem; }
.article-wrap [data-lang] li { margin-bottom: .5rem; }
.article-wrap [data-lang] strong { color: var(--ink); }
.article-wrap [data-lang] > h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--ink);
  margin: 2.75rem 0 .9rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--violet-light);
}

/* Tables */
.article-wrap table {
  width: 100%; border-collapse: collapse;
  margin: 1.75rem 0; font-size: .9rem;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 2px 8px rgba(17,24,39,.06);
}
.article-wrap thead tr { background: var(--violet); }
.article-wrap th {
  color: white; font-weight: 600;
  font-family: 'Syne', sans-serif;
  padding: .8rem 1rem; text-align: left;
  font-size: .82rem; letter-spacing: .03em;
}
.article-wrap td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-family: 'Lora', serif;
  font-size: .95rem;
}
.article-wrap tr:last-child td { border-bottom: none; }
.article-wrap tbody tr:nth-child(even) td { background: var(--surface); }
.article-wrap tbody tr:hover td { background: var(--violet-soft); }

/* CTA card */
.article-cta {
  background: var(--violet);
  border-radius: var(--rl);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(109,40,217,.2);
}
.article-cta h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem; font-weight: 400;
  color: white; margin-bottom: .75rem;
}
.article-cta p {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65; margin-bottom: 1.5rem;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--violet);
  padding: 12px 28px; border-radius: var(--r);
  font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
  font-family: 'Syne', sans-serif;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* Related articles */
.related-section {
  background: var(--surface);
  padding: 52px 6% 60px;
  border-top: 1px solid var(--border);
}
.related-inner { max-width: 720px; margin: 0 auto; }
.related-eyebrow {
  font-size: .72rem; font-weight: 700;
  color: var(--violet); text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--violet); transform: translateY(-1px); }
.related-tag {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--violet); margin-bottom: .5rem;
  display: block;
}
.related-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: .88rem; font-weight: 600;
  color: var(--ink); line-height: 1.4;
}

/* ── KEY STATS CARDS ─────────────────────────────────────────── */
.key-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}
.key-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--violet-soft);
  border-radius: 12px;
  border: 1px solid var(--violet-light);
}
.key-stat-icon { font-size: 1.6rem; display: block; margin-bottom: .65rem; }
.key-stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--violet);
  display: block;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.key-stat-label { font-size: .78rem; color: var(--ink-muted); line-height: 1.4; }

/* ── ARTICLE SOURCES ──────────────────────────────────────────── */
.article-sources {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--violet);
}
.article-sources h3 {
  font-family: 'Syne', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #888;
  margin: 0 0 .75rem;
}
.article-sources ul { margin: 0; padding-left: 1.25rem; }
.article-sources li { font-size: .82rem; color: #555; margin-bottom: .4rem; line-height: 1.5; }
.article-sources a { color: var(--violet); text-decoration: none; }
.article-sources a:hover { text-decoration: underline; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { margin-top: .5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero, .blog-section, .blog-cta,
  .related-section, .article-hero { padding-left: 5%; padding-right: 5%; }
  .article-wrap { padding-left: 5%; padding-right: 5%; }
  .breadcrumb { padding-left: 5%; padding-right: 5%; }
  footer { padding-left: 5%; padding-right: 5%; }
  .article-cta { padding: 1.75rem; }
  .article-hero h1 { font-size: 2rem; }
  .article-hero { padding: 48px 5% 52px; min-height: 0; }
  .key-stats { grid-template-columns: repeat(2, 1fr); }
  .key-stat-value { font-size: 1.5rem; }
  .key-stat { padding: 1rem .75rem; }
}

/* TABLE DES MATIÈRES */
.toc {
  position: static;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  background: var(--violet-soft);
  border: 1px solid var(--violet-light);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  display: block;
  z-index: auto;
}
.toc-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--violet); margin-bottom: 0.75rem; }
.toc-list { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.toc-list a { color: var(--violet-mid); text-decoration: none; font-size: 0.95rem; }
.toc-list a:hover { text-decoration: underline; }

/* POUR ALLER PLUS LOIN */
.further-reading { background: var(--surface); border-radius: var(--r); padding: 1.5rem; margin: 2rem 0; }
.further-reading h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; }
.further-reading ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.further-reading ul li::before { content: "→ "; color: var(--violet); font-weight: 700; }
.further-reading ul a { color: var(--violet-mid); text-decoration: none; }
.further-reading ul a:hover { text-decoration: underline; }
