/* ===========================
   ComparatifVPN.fr — Global Stylesheet
   Police : Inter (Google Fonts)
   Couleurs : Bleu #2563eb, Vert CTA #16a34a, Gris foncé #1e293b
   =========================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
ul, ol { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ——— HEADER ——— */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 20px;
  height: 64px;
}
.logo { font-size: 1.35rem; font-weight: 800; color: #2563eb; }
.logo span { color: #1e293b; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: .9rem; font-weight: 500; color: #475569;
  padding: 6px 12px; border-radius: 6px; transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: #eff6ff; color: #2563eb; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #1e293b;
  margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-radius: 0; border-bottom: 1px solid #f1f5f9; width: 100%; }
}

/* ——— HERO SECTION ——— */
.hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 72px 20px 64px;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: #0f172a; }
.hero h1 .accent { color: #2563eb; }
.hero p.subtitle { font-size: 1.15rem; color: #475569; max-width: 640px; margin: 0 auto 28px; }
.hero .cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.7rem; }
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-cta { background: #16a34a; color: #fff; box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.btn-cta:hover { background: #15803d; color: #fff; }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* ——— SECTION COMMONS ——— */
section { padding: 64px 0; }
.section-title {
  font-size: 1.85rem; font-weight: 800; text-align: center;
  margin-bottom: 12px; color: #0f172a;
}
.section-subtitle {
  text-align: center; color: #64748b; max-width: 600px; margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* ——— CARDS (Top VPN) ——— */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.vpn-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 28px 24px; text-align: center;
  transition: box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.vpn-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-4px); }
.vpn-card .badge {
  position: absolute; top: 14px; left: -32px;
  background: #2563eb; color: #fff; font-size: .7rem; font-weight: 700;
  padding: 4px 40px; transform: rotate(-45deg); text-transform: uppercase; letter-spacing: .5px;
}
.vpn-card .badge.green { background: #16a34a; }
.vpn-card .badge.orange { background: #ea580c; }
.vpn-card .vpn-logo-placeholder {
  width: 72px; height: 72px; border-radius: 16px;
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
}
.vpn-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.vpn-card .price { font-size: 1.5rem; font-weight: 800; color: #16a34a; margin: 10px 0 4px; }
.vpn-card .price small { font-size: .8rem; font-weight: 400; color: #64748b; }
.vpn-card .features { margin: 14px 0; text-align: left; }
.vpn-card .features li { padding: 4px 0; font-size: .9rem; color: #475569; }
.vpn-card .features li::before { content: "✓ "; color: #16a34a; font-weight: 700; }

/* ——— STARS ——— */
.stars { color: #eab308; font-size: 1.1rem; letter-spacing: 2px; }
.stars .empty { color: #d1d5db; }

/* ——— TABLES ——— */
.table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid #e2e8f0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: #2563eb; color: #fff; padding: 14px 16px;
  text-align: left; font-weight: 600; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
tbody tr:hover { background: #f8fafc; }
tbody td { padding: 12px 16px; vertical-align: middle; }
tbody td .rank { font-weight: 800; color: #2563eb; }
.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }

/* ——— WHY VPN / FEATURES ——— */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.feature-item {
  text-align: center; padding: 32px 20px;
  border-radius: 12px; border: 1px solid #e2e8f0;
  transition: box-shadow .2s;
}
.feature-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.6rem;
}
.feature-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-item p { font-size: .9rem; color: #64748b; }

/* ——— FAQ ——— */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: inherit; font-size: 1rem; font-weight: 600;
  color: #0f172a; text-align: left;
}
.faq-question::after { content: "+"; font-size: 1.4rem; color: #2563eb; transition: transform .2s; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 0 20px; color: #475569; font-size: .95rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ——— TRUST BAR ——— */
.trust-bar {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 24px 0; color: #64748b; font-size: .9rem;
}
.trust-bar span { display: flex; align-items: center; gap: 6px; }
.trust-bar .icon { font-size: 1.1rem; }

/* ——— FOOTER ——— */
.site-footer { background: #0f172a; color: #94a3b8; padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  text-align: center; font-size: .82rem; color: #64748b;
}

/* ——— BREADCRUMBS ——— */
.breadcrumb {
  margin-top: 64px; padding: 14px 0;
  font-size: .85rem; color: #64748b; background: #f8fafc;
}
.breadcrumb a { color: #2563eb; }
.breadcrumb span { margin: 0 6px; }

/* ——— ARTICLE / BLOG ——— */
.article-header { padding: 40px 0 24px; text-align: center; }
.article-header h1 { font-size: 2rem; font-weight: 800; max-width: 780px; margin: 0 auto 12px; }
.article-meta { color: #64748b; font-size: .88rem; margin-bottom: 24px; }
.article-body { max-width: 780px; margin: 0 auto; padding: 0 20px 60px; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; color: #0f172a; border-left: 4px solid #2563eb; padding-left: 14px; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: #334155; }
.article-body ul, .article-body ol { margin: 12px 0 20px 24px; }
.article-body li { margin-bottom: 8px; color: #475569; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body .cta-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 24px; text-align: center; margin: 28px 0;
}
.article-body .cta-box p { margin-bottom: 12px; font-weight: 600; color: #0f172a; }
.article-body .info-box {
  background: #f0fdf4; border-left: 4px solid #16a34a;
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0;
}

/* Quick comparison mini-table in articles */
.quick-compare { margin: 24px 0; }
.quick-compare table { font-size: .88rem; }

/* ——— FILTER BUTTONS ——— */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 20px; border-radius: 20px; border: 2px solid #e2e8f0;
  background: #fff; font-family: inherit; font-size: .88rem; font-weight: 500;
  cursor: pointer; color: #475569; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ——— VPN DETAIL SECTION (comparatif) ——— */
.vpn-detail {
  padding: 32px 0; border-bottom: 1px solid #e2e8f0;
}
.vpn-detail:last-child { border-bottom: none; }
.vpn-detail h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.vpn-detail .meta-row {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
  font-size: .9rem; color: #64748b;
}
.vpn-detail .meta-row strong { color: #0f172a; }

/* ——— ADMIN DASHBOARD ——— */
.admin-container { max-width: 1000px; margin: 80px auto 40px; padding: 0 20px; }
.admin-container h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.admin-stats {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0;
}
.stat-card {
  flex: 1; min-width: 140px; padding: 20px; border-radius: 12px;
  background: #eff6ff; text-align: center;
}
.stat-card .number { font-size: 2rem; font-weight: 800; color: #2563eb; }
.stat-card .label { font-size: .85rem; color: #64748b; }

.admin-cluster { margin-bottom: 32px; }
.admin-cluster h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #2563eb; }
.admin-cluster table { font-size: .85rem; }
.admin-cluster td a { color: #2563eb; font-weight: 500; }
.status-done { color: #16a34a; font-weight: 600; }
.status-todo { color: #ea580c; font-weight: 600; }

/* ——— INTERNAL LINKS SECTION ——— */
.related-articles { background: #f8fafc; border-radius: 12px; padding: 24px; margin: 32px 0; }
.related-articles h3 { font-size: 1.1rem; margin-bottom: 14px; }
.related-articles a { display: block; padding: 6px 0; font-size: .92rem; }

/* ——— UTILITIES ——— */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ——— RESPONSIVE ——— */
@media (max-width: 480px) {
  .section-title { font-size: 1.45rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 20px; }
  table { font-size: .8rem; }
  thead th, tbody td { padding: 10px 8px; }
}
