/* ============================================================
   AEVITA — Design System "Slate & Sapphire"
   Font      : Inter (Google Fonts)
   Palette   : Navy #1C2B3A · Bleu roi #1A4E8F · Blanc · Gris
   Layout    : max-width 1100px · 2 colonnes (main + 300px sidebar)
   ============================================================ */

:root {
  --teal:        #1A4E8F;
  --teal-dark:   #133C71;
  --teal-light:  #EEF3FB;
  --teal-border: #C2D4F0;
  --navy:        #1C2B3A;
  --navy-dark:   #141F2B;
  --white:       #ffffff;
  --bg:          #f5f5f3;
  --text:        #1a1a1a;
  --text-sec:    #555;
  --text-muted:  #888;
  --border:      #e5e5e5;
  --sidebar-w:   300px;
  --max-w:       1100px;
  --r:           8px;
  --r-sm:        4px;
}

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

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: #93BAF5; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sec);
}
.trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  padding: 96px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,30,0.55) 0%, rgba(10,18,30,0.78) 100%);
  z-index: 1;
}

.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,78,143,0.25);
  color: #93BAF5;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(26,78,143,0.40);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 580px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--r);
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.09);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.15s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); color: var(--white); }

/* ── Silos Bar ───────────────────────────────────────────── */
.silos-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.silos-bar::-webkit-scrollbar { height: 0; }

.silos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.silo-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.silo-pill:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ── Silo Hero ───────────────────────────────────────────── */
.silo-hero {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 56px 20px 48px;
}

.silo-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.silo-hero .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.silo-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.silo-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Main Layout ─────────────────────────────────────────── */
.main-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 32px;
  align-items: start;
}

/* ── Section Label ───────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--teal);
  margin-bottom: 16px;
}

/* ── Featured Article ────────────────────────────────────── */
.featured-article {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  padding: 24px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s;
}
.featured-article:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.article-img-wrap {
  width: 100px;
  height: 100px;
  background: var(--teal-light);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-border);
}

.article-body { flex: 1; min-width: 0; }

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--teal-border);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid #a7f3d0;
}

.featured-article h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.featured-article h2 a:hover { color: var(--teal); }

.article-excerpt {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 12px;
}

.article-meta-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Articles List ───────────────────────────────────────── */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.article-card:hover {
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-color: var(--teal);
}

.article-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-thumb.amber { background: #fffbeb; border-color: #fde68a; }
.article-thumb.blue  { background: #eff6ff; border-color: #bfdbfe; }
.article-thumb.coral { background: #fef2f2; border-color: #fecaca; }

.card-img-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: calc(var(--r) - 2px);
  flex-shrink: 0;
}
@media (max-width: 480px) { .card-img-thumb { width: 56px; height: 56px; } }

.card-content { flex: 1; min-width: 0; }

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Newsletter Box — The Longevity Club */
.newsletter-box {
  background: linear-gradient(148deg, rgba(11,25,41,0.85) 0%, rgba(28,43,58,0.78) 55%, rgba(22,34,56,0.85) 100%), url('/images/Aevita-longevity-club.webp') center/cover no-repeat;
  color: var(--white);
  border-radius: var(--r);
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(147,186,245,0.10) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #93BAF5 0%, rgba(147,186,245,0.2) 60%, transparent 100%);
}
.newsletter-club-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #93BAF5;
  margin-bottom: 10px;
}
.newsletter-box p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.62;
  margin-bottom: 18px;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.38); }
.newsletter-input:focus { border-color: var(--teal); }

.newsletter-btn {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.newsletter-btn:hover { background: var(--teal-dark); }

/* Sidebar Title */
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Top List */
.top-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.top-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.top-item:last-child { border-bottom: none; }

.top-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  min-width: 22px;
  line-height: 1.4;
}

.top-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}
.top-item-title a:hover { color: var(--teal); }

.top-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Engagement Box */
.engagement-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

.engagement-item {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-sec);
  line-height: 1.55;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.engagement-item:last-child { border-bottom: none; padding-bottom: 0; }
.engagement-item svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.footer-logo span { color: var(--teal); }

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.50);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.affiliate-disclosure {
  margin-top: 20px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.30);
  line-height: 1.65;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 16px; min-height: 320px; }
  .hero p { font-size: 15px; }
  .main-layout { padding: 20px 16px; }
  .featured-article { flex-direction: column; }
  .article-img-wrap { width: 100%; height: 120px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; text-align: center; }
  .trust-inner { gap: 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-inner { padding: 36px 16px 20px; }
}
