/* ─────────────────────────────────────────────────────────────────────────────
   TRIADS — Design System · v1.0 · Validé AGORA 26/03/2026
   Palette officielle : Void · Nuit · Iris · Lune · Azur · Ocre · Givre
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ── Tokens ── */
:root {
  --void:  #0a0618;
  --nuit:  #12101e;
  --nuit2: #1a1729;
  --iris:  #6b42b8;
  --iris2: #7c3aed;
  --lune:  #e8e4f4;
  --azur:  #60a5fa;
  --ocre:  #e8c84a;
  --givre: #f0edf8;

  --dim:    rgba(232,228,244,.55);
  --muted:  rgba(232,228,244,.32);
  --subtle: rgba(232,228,244,.14);

  --border:  rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.13);
  --border3: rgba(107,66,184,.28);

  --iris-glow: rgba(107,66,184,.22);
  --ocre-glow: rgba(232,200,74,.18);

  --r:  8px;
  --r2: 14px;
  --r3: 20px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-h: 68px;
  --max-w: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--lune);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azur); text-decoration: none; transition: color .15s; }
a:hover { color: var(--lune); }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Typography ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--lune);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--lune);
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--lune);
}
.text-ocre   { color: var(--ocre); }
.text-iris   { color: var(--iris2); }
.text-azur   { color: var(--azur); }
.text-dim    { color: var(--dim); }
.text-muted  { color: var(--muted); }

.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ocre);
  margin-bottom: .75rem;
  display: block;
}
.lead {
  font-size: 1.05rem;
  color: var(--dim);
  line-height: 1.75;
  max-width: 580px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  transition: all .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--iris2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124,58,237,.4), 0 4px 18px rgba(124,58,237,.25);
}
.btn-primary:hover {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124,58,237,.5), 0 6px 24px rgba(124,58,237,.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: var(--iris2);
  color: var(--lune);
}
.btn-ocre {
  background: transparent;
  color: var(--ocre);
  border: 1px solid rgba(232,200,74,.35);
}
.btn-ocre:hover {
  background: var(--ocre-glow);
  color: var(--ocre);
}

/* ── Cards ── */
.card {
  background: var(--nuit);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border3);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.card-accent {
  border-top: 2px solid var(--iris);
}
.card-accent-ocre {
  border-top: 2px solid var(--ocre);
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,6,24,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
}
.nav-links a {
  padding: .45rem .8rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--lune);
  background: var(--subtle);
}
.nav-links a.active {
  color: var(--ocre);
}
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lune);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--nuit);
  z-index: 99;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: .5rem;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: .8rem 1rem;
  border-radius: var(--r);
  font-size: 1rem;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
}
.nav-mobile a:hover, .nav-mobile a.active {
  background: var(--subtle);
  color: var(--lune);
  border-color: var(--border2);
}
.nav-mobile a.active { color: var(--ocre); }
.nav-mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* ── Footer ── */
.site-footer {
  background: var(--nuit);
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: .82rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand-col p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
  margin: .75rem 0 1rem;
  max-width: 260px;
}
.footer-trust {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.footer-trust-item {
  font-size: .7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-trust-item::before {
  content: '·';
  color: var(--ocre);
  font-size: .9rem;
  line-height: 1;
}
.footer-col-title {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .9rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  color: var(--dim);
  font-size: .78rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--lune); }
.footer-eco-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}
.footer-eco-item:last-child { border-bottom: none; }
.eco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.eco-live { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.eco-dev  { background: var(--ocre); }
.footer-eco-item span { font-size: .74rem; color: var(--dim); }
.footer-eco-item a   { font-size: .74rem; color: var(--azur); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.1rem 1.5rem;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-copy {
  font-size: .68rem;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: .67rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom-links a:hover { color: var(--dim); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 1rem; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Badge / pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .22rem .65rem;
  border-radius: 99px;
  border: 1px solid;
}
.badge-iris  { background: var(--iris-glow); color: #a78bfa; border-color: rgba(107,66,184,.35); }
.badge-ocre  { background: var(--ocre-glow); color: var(--ocre); border-color: rgba(232,200,74,.3); }
.badge-green { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.25); }
.badge-azur  { background: rgba(96,165,250,.1); color: var(--azur); border-color: rgba(96,165,250,.25); }

/* ── Quote block ── */
.blockquote {
  border-left: 2px solid var(--ocre);
  padding: 1.25rem 1.5rem;
  background: rgba(232,200,74,.04);
  border-radius: 0 var(--r) var(--r) 0;
}
.blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--lune);
  line-height: 1.65;
}
.blockquote cite {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  margin-top: .7rem;
  font-style: normal;
}

/* ── Responsive ── */
@media(max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media(max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .display-xl { font-size: 2.2rem; }
}
