/* =============================================
   NOAH DUJEUX — Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --blue:       #2563EB;
  --blue-light: #EFF4FF;
  --blue-mid:   #BFCFF8;
  --dark:       #0D1117;
  --dark-2:     #1A2233;
  --gray-1:     #F7F8FA;
  --gray-2:     #E8ECF2;
  --gray-3:     #A0AABA;
  --gray-4:     #6B7585;
  --text:       #1A1F2E;
  --text-light: #4A5568;
  --orange:     #F97316;
  --orange-bg:  #FFF4EC;
  --green:      #16A34A;
  --green-bg:   #ECFDF5;
  --purple:     #7C3AED;
  --purple-bg:  #F5F0FF;
  --yellow:     #D97706;
  --yellow-bg:  #FFFBEC;
  --white:      #FFFFFF;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.10);
  --font:       'Inter', sans-serif;
  --nav-h:      64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
}
.nav__inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.5px;
}
.nav__logo span { color: var(--blue); }
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active {
  color: var(--blue);
}
.nav__links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
}

/* Hamburger */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.75);
  padding: 56px 48px 32px;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
}
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 56px; margin-bottom: 48px;
}
.footer__brand .logo {
  font-size: 20px; font-weight: 800; color: var(--white); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px;
}
.footer__brand .logo span { color: var(--blue); }
.footer__brand p { font-size: 13px; line-height: 1.6; }
.footer__brand .socials { display: flex; gap: 12px; margin-top: 20px; }
.footer__brand .socials a {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border-radius: 8px; color: rgba(255,255,255,0.7);
  font-size: 14px; transition: background .2s, color .2s;
}
.footer__brand .socials a:hover { background: var(--blue); color: var(--white); }
.footer__col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.65); transition: color .2s;
}
.footer__col ul li a:hover, .footer__col ul li a.active { color: var(--blue); }
.footer__col .contact-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer__col .contact-item svg { flex-shrink: 0; }
.footer__monogram {
  width: 48px; height: 48px; background: var(--dark-2); border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; font-weight: 700; position: relative; margin-left: auto;
}
.footer__monogram::after {
  content: '•'; position: absolute; bottom: 2px; right: 2px;
  color: var(--blue); font-size: 10px;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer__bottom a { color: rgba(255,255,255,0.3); transition: color .2s; }
.footer__bottom a:hover { color: rgba(255,255,255,0.6); }
.footer__bottom-links { display: flex; gap: 24px; }

/* =============================================
   SHARED COMPONENTS
   ============================================= */

/* Page header */
.page-header {
  padding: calc(var(--nav-h) + 56px) 48px 56px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start;
}
.page-header__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.page-header__eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.page-header h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.page-header p { font-size: 16px; color: var(--text-light); max-width: 480px; line-height: 1.7; }
.page-header__visual {
  width: 280px; min-width: 280px; height: 200px;
  background: var(--blue-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.page-header__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Section container */
.section { max-width: 1200px; margin: 0 auto; padding: 0 48px 64px; }
.section__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 700; margin-bottom: 24px;
}

/* Card */
.card {
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-mid); }
.card__icon {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card__body { flex: 1; }
.card__year { font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.card__meta { font-size: 13px; color: var(--text-light); }
.card__action {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; transition: background .2s, border-color .2s;
}
.card__action:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Info banner */
.info-banner {
  background: var(--blue-light); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--text);
}
.info-banner strong { display: block; font-weight: 600; }
.info-banner span { color: var(--text-light); font-size: 13px; }

/* Filter pills */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--gray-2); color: var(--text-light);
  background: var(--white); transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1D51D1; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--gray-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Tag */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-orange { background: var(--orange-bg); color: var(--orange); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }
.tag-yellow { background: var(--yellow-bg); color: var(--yellow); }

/* Dots decoration */
.dots-deco {
  position: absolute;
  background-image: radial-gradient(circle, var(--blue-mid) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.5;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--dark); padding: 16px 24px 24px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav__links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 15px; }
  .page-header { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 32px) 24px 32px; }
  .page-header__visual { width: 100%; min-width: unset; height: 160px; }
  .page-header h1 { font-size: 36px; }
  .section { padding: 0 24px 48px; }
  .footer { padding: 48px 24px 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .page-header h1 { font-size: 28px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__bottom-links { justify-content: center; }
}

/* =============================================
   UNIFIED PAGE HEADER — used on all inner pages
   ============================================= */
.page-banner {
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  padding: 56px 48px 48px;
}
.page-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-banner__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.page-banner__eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.page-banner h1 {
  font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px;
}
.page-banner p {
  font-size: 15px; color: var(--text-light); line-height: 1.7; max-width: 560px;
}
.page-banner__extras {
  margin-top: 24px;
}

/* Unified content wrapper */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 64px;
}

@media (max-width: 900px) {
  .page-banner { padding: 40px 24px 32px; }
  .page-banner h1 { font-size: 32px; }
  .page-body { padding: 24px 24px 48px; }
}
