/* naviguer.ca — Styles principaux */
:root {
  --primary: #1a4a2e;
  --primary-light: #2d7a4f;
  --accent: #00d4aa;
  --accent-dark: #00a882;
  --bg: #ffffff;
  --bg-alt: #f5f9f7;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0ece7;
  --shadow: rgba(26, 74, 46, 0.12);
  --radius: 12px;
  --max-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─── Layout ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ─── Header / Nav ─── */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.logo span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 1px;
}

nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

nav a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ─── Hero ─── */
.hero {
  background: #0d2b1a !important;
  color: #fff !important;
  padding: 72px 20px 64px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 1; color: rgba(255,255,255,.92); max-width: 660px; margin: 0 auto 32px; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }

.btn-accent { background: var(--accent); color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ─── Honest Notice ─── */
.notice-box {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 40px 0;
  font-size: .97rem;
}
.notice-box strong { color: #92400e; }

/* ─── Section ─── */
section { padding: 56px 0; }
section:nth-child(even) { background: var(--bg-alt); }

h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--primary); margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }

.section-intro { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin-bottom: 36px; }

/* ─── Why VPN cards ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 32px; }

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card .icon { font-size: 2rem; margin-bottom: 14px; }

/* ─── Comparison Table ─── */
.vpn-table-wrap { overflow-x: auto; margin-top: 32px; }
.vpn-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px var(--shadow); }
.vpn-table th { background: var(--primary); color: #fff; padding: 14px 18px; text-align: left; font-size: .9rem; font-weight: 600; }
.vpn-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: .97rem; }
.vpn-table tr:last-child td { border-bottom: none; }
.vpn-table tr:hover td { background: var(--bg-alt); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 800; font-size: .9rem;
}
.rank-1 { background: #f59e0b; color: #fff; }
.rank-2 { background: #9ca3af; color: #fff; }
.rank-3 { background: #cd7c2f; color: #fff; }

.stars { color: #f59e0b; letter-spacing: 2px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .78rem; font-weight: 600; margin: 1px;
}
.tag-green { background: #d1fae5; color: #065f46; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-purple { background: #ede9fe; color: #5b21b6; }

.affil-note { font-size: .75rem; color: var(--text-muted); display: block; margin-top: 2px; }

.vpn-btn { display: inline-block; padding: 9px 18px; background: var(--accent); color: var(--primary); border-radius: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.vpn-btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ─── VPN Cards (detail) ─── */
.vpn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 32px; }

.vpn-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 12px var(--shadow);
}
.vpn-card.featured { border-color: var(--accent); }
.vpn-card .badge-top {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary);
  font-size: .78rem; font-weight: 800; padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
}
.vpn-card .name { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.vpn-card .price { font-size: .95rem; color: var(--text-muted); margin-bottom: 12px; }
.vpn-card ul { margin: 14px 0; padding-left: 0; list-style: none; }
.vpn-card ul li { padding: 4px 0; font-size: .95rem; }
.vpn-card ul li::before { content: "✓ "; color: var(--accent-dark); font-weight: 700; }
.vpn-card .card-btn { display: block; text-align: center; margin-top: 20px; padding: 12px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 700; }
.vpn-card .card-btn:hover { background: var(--primary-light); text-decoration: none; }

/* ─── FAQ ─── */
.faq-list { margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 0 18px; color: var(--text-muted); }
.faq-item .faq-body a { color: var(--primary-light); }

/* ─── Steps ─── */
.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 28px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  box-shadow: 0 1px 6px var(--shadow);
}
.step-num {
  min-width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.step-body h3 { margin-bottom: 6px; }

/* ─── Pros/Cons ─── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pros-cons .col { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.pros-cons .col h3 { margin-bottom: 12px; }
.pros-cons .col ul { list-style: none; padding: 0; }
.pros-cons .col ul li { padding: 5px 0; font-size: .97rem; }
.pros-cons .col.pros ul li::before { content: "✅ "; }
.pros-cons .col.cons ul li::before { content: "❌ "; }

/* ─── Alert box ─── */
.alert {
  border-radius: 8px; padding: 18px 22px; margin: 24px 0; font-size: .97rem;
}
.alert-warning { background: #fef3c7; border-left: 4px solid #f59e0b; }
.alert-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.alert-success { background: #d1fae5; border-left: 4px solid #10b981; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; text-align: center; padding: 56px 20px; border-radius: var(--radius);
  margin: 40px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 28px; }

/* ─── Footer ─── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 40px 20px;
  font-size: .9rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 6px; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { margin: 0; }
.footer-affil { font-size: .8rem; opacity: .7; margin-top: 8px; }

/* ─── Breadcrumb ─── */
.breadcrumb { font-size: .88rem; color: var(--text-muted); padding: 14px 0; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #0d2b1a 0%, #1a4a2e 100%) !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 52px 20px 44px;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { opacity: .9; max-width: 680px; }

/* ─── Mobile hamburger menu ─── */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  background: none;
  border: none;
  transition: background .15s;
}
.hamburger:hover { background: rgba(255,255,255,.12); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ─── Table wrapper for mobile scroll ─── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
  }
  nav a { font-size: .92rem; padding: 8px 12px; width: 100%; }
  nav.nav-open { display: flex; }
  /* Animate hamburger to X when open */
  .hamburger.nav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.nav-open span:nth-child(2) { opacity: 0; }
  .hamburger.nav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pros-cons { grid-template-columns: 1fr; }
  .vpn-table th, .vpn-table td { padding: 10px 12px; font-size: .88rem; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

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