/* ===== SEEKR — Design tokens ===== */
:root {
  --bg: #1a1a26;
  --bg-alt: #1e1e2c;
  --bg-deep: #0a0a0f;

  --gold: #c9a84c;
  --gold-10: rgba(201, 168, 76, 0.10);
  --gold-15: rgba(201, 168, 76, 0.15);
  --gold-20: rgba(201, 168, 76, 0.20);
  --gold-30: rgba(201, 168, 76, 0.30);
  --gold-35: rgba(201, 168, 76, 0.35);
  --gold-40: rgba(201, 168, 76, 0.40);
  --gold-50: rgba(201, 168, 76, 0.50);
  --gold-80: rgba(201, 168, 76, 0.80);

  --grey: #8c8c9e;
  --grey-60: rgba(140, 140, 158, 0.60);
  --grey-70: rgba(140, 140, 158, 0.70);

  --white-08: rgba(255, 255, 255, 0.08);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-90: rgba(255, 255, 255, 0.90);

  --dark-on-gold: #14141a;
  --black-30: rgba(0, 0, 0, 0.30);

  --container: 1440px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--white-90);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 inherit;
  padding: 0 80px;
  margin-left: auto;
  margin-right: auto;
}

section { position: relative; }

/* ===== Typography ===== */
.overline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  color: var(--gold-80);
}
.h1 { font-size: 68px; font-weight: 800; line-height: 1.12; color: #fff; }
.h2 { font-size: 40px; font-weight: 800; line-height: 1.15; color: #fff; }
.h3 { font-size: 36px; font-weight: 700; line-height: 1.2; color: #fff; }
.lead { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--grey); }
.muted { color: var(--grey); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--dark-on-gold);
  font-weight: 700;
}
.btn-primary:hover { background: #d4b454; }
.btn-secondary {
  background: transparent;
  color: var(--white-70);
  border: 1px solid var(--white-20);
  font-weight: 500;
}
.btn-secondary:hover { border-color: var(--gold-50); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 15px; border-radius: 8px; }
.btn-pill { border-radius: 999px; }

/* ===== Badge / Chip ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.36px;
  color: var(--gold);
  background: var(--gold-10);
  border: 1px solid var(--gold-40);
  border-radius: var(--radius-xl);
}

/* ===== Nav header ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: 72px;
  border-bottom: 1px solid var(--gold-10);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}
.nav-logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1.76px;
  color: var(--gold);
  justify-self: start;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  font-weight: 500;
  color: var(--gold);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--dark-on-gold);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  justify-self: end;
}
.nav-cta:hover { background: #d4b454; }

/* ===== Nav sticky widgets (search + chatbot) — iso Figma 25:17 ===== */
.nav-widgets {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: center;
}
.nav.is-scrolled .nav-links { display: none; }
.nav.is-scrolled .nav-widgets { display: flex; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: 280px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-search:hover {
  border-color: var(--gold-50);
  background: rgba(255, 255, 255, 0.07);
}
.nav-search-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--grey);
}
.nav-search-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--grey);
  text-align: left;
}
.nav-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 10px;
  color: var(--grey);
  font-family: var(--font);
}

.nav-chatbot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  width: 160px;
  padding: 0 14px;
  background: var(--gold-10);
  border: 1px solid var(--gold-30);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-chatbot:hover {
  background: var(--gold-15);
  border-color: var(--gold-50);
}
.nav-chatbot-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: nav-chatbot-pulse 2s infinite;
}
@keyframes nav-chatbot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.nav-chatbot-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}

/* ===== Search Modal (démo plein écran) ===== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 24px 24px;
}
.search-modal.is-open { display: flex; }
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: search-modal-fade 0.18s ease;
}
.search-modal-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: search-modal-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes search-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes search-modal-pop {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gold-15);
  border-radius: 8px;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.search-modal-close:hover {
  color: #fff;
  border-color: var(--gold-50);
  background: var(--gold-10);
}
.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold-30);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.search-modal-bar .nav-search-icon { width: 18px; height: 18px; color: var(--gold); }
.search-modal-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 17px;
  font-family: var(--font);
  caret-color: var(--gold);
}
.search-modal-input::placeholder { color: var(--grey-60); }
.search-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--gold-10);
  border: 1px solid var(--gold-30);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.4px;
  opacity: 0;
  transition: opacity 0.25s;
}
.search-modal-badge.is-visible { opacity: 1; }
.search-modal-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-modal-result {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--gold-15);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: search-result-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.search-modal-result:nth-child(1) { animation-delay: 0.05s; }
.search-modal-result:nth-child(2) { animation-delay: 0.13s; }
.search-modal-result:nth-child(3) { animation-delay: 0.21s; }
@keyframes search-result-in {
  to { opacity: 1; transform: translateY(0); }
}
.search-modal-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-30), var(--gold-10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold);
}
.search-modal-result-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-modal-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-modal-result-meta { font-size: 12px; color: var(--grey); }
.search-modal-result-score {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  padding: 4px 8px;
  border: 1px solid var(--gold-30);
  border-radius: 999px;
  background: var(--gold-10);
}
.search-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--grey);
  padding: 4px 6px;
}
.search-modal-footer kbd {
  font-family: var(--font);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--grey);
}
body.has-modal-open { overflow: hidden; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-10);
  padding: 64px 0 32px;
  color: var(--grey);
  font-size: 13px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-logo { font-size: 20px; }
.footer-brand p {
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 24px 80px 0;
  border-top: 1px solid var(--gold-10);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey-70);
}

/* ===== Generic cards ===== */
.card {
  background: var(--gold-10);
  border: 1px solid var(--gold-15);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ===== Decorative gold traits ===== */
.gold-trait {
  position: absolute;
  height: 1.5px;
  background: var(--gold-10);
  pointer-events: none;
}

/* ===== Scroll indicator ===== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 36px;
  background: var(--gold-35);
}

/* ===== Responsive (tablet/mobile basics) ===== */
@media (max-width: 1100px) {
  .nav-inner, .footer-inner, .container, .footer-bottom { padding-left: 32px; padding-right: 32px; }
  .nav-links { gap: 20px; }
  .h1 { font-size: 48px; }
  .h2 { font-size: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 24px; }
  .container { padding: 0 20px; }

  .nav.is-scrolled .nav-widgets { gap: 8px; }
  .nav-search { width: auto; max-width: 220px; }
  .nav-search-placeholder { font-size: 12px; }
  .nav-chatbot { display: none; }

  .search-modal { padding: 8vh 16px 16px; }
  .search-modal-container { gap: 14px; }
  .search-modal-close { top: -42px; }
  .search-modal-bar { height: 56px; padding: 0 16px; gap: 10px; }
  .search-modal-input { font-size: 15px; }
  .search-modal-badge { font-size: 10px; padding: 4px 8px; }
  .search-modal-result { padding: 12px 14px; gap: 10px; grid-template-columns: 32px 1fr auto; }
  .search-modal-result-thumb { width: 32px; height: 32px; }
}
