/* ═══════════════════════════════════════════════════
   GRTI — Styles partagés (v2)
   ═══════════════════════════════════════════════════ */

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

:root {
  --navy:       #0a182f;
  --navy-deep:  #061122;
  --navy-mid:   #0f2141;
  --blue:       #1558a8;
  --blue-br:    #2272d8;
  --blue-sky:   #7ab5f0;
  --blue-glow:  #4a9eff;
  --blue-pale:  #eaf2fc;
  --surface:    #f6f9fd;
  --paper:      #fafbfd;
  --white:      #ffffff;
  --text:       #0d1829;
  --muted:      #5a6a80;
  --hush:       #8a96a8;
  --border:     #e1e8f0;
  --hair:       rgba(13,30,56,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2.5rem;
  background: rgba(10,24,47,.55);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .35s;
}
nav.scrolled { background: rgba(10,24,47,.92); }

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  margin-right: auto;
  margin-left: 1.5rem;
}
.nav-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .855rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--blue-sky);
}
.nav-links a:not(.active)::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 1px;
  background: var(--blue-sky);
  transition: width .3s, left .3s;
}
.nav-links a:not(.active):hover::after { width: 100%; left: 0; }

.nav-btn {
  flex-shrink: 0;
  background: var(--blue-br);
  color: #fff;
  padding: .55rem 1.25rem;
  border-radius: 7px;
  font-size: .855rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .25s;
}
.nav-btn:hover {
  background: #2c7fe6;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(74,158,255,.55);
}

/* ── PAGE HERO ────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 9rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34,114,216,.14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000 30%, transparent 75%);
}

.page-hero-bg-glow {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34,114,216,.18), transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.32);
  font-size: .8rem;
  margin-bottom: 1.75rem;
}
.ph-breadcrumb a {
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color .2s;
}
.ph-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.ph-breadcrumb span { color: rgba(255,255,255,.6); }

.ph-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.ph-title .serif { color: var(--blue-sky); font-size: 1.05em; }

.ph-sub {
  color: rgba(255,255,255,.55);
  font-size: 1.1rem;
  max-width: 56ch;
  line-height: 1.65;
}
.ph-sub strong { color: rgba(255,255,255,.85); font-weight: 500; }

/* ── ATOMS ────────────────────────────────────────────── */
.s-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-br);
  margin-bottom: 1.25rem;
}
.s-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--blue-br);
}
.s-label-light { color: var(--blue-sky); }
.s-label-light::before { background: var(--blue-sky); }

.s-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: var(--text);
}
.s-title-white { color: #fff; }
.s-title .serif { color: var(--blue-br); font-size: 1.05em; }
.s-title-white .serif { color: var(--blue-sky); }

.s-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 60ch;
}
.s-desc-light { color: rgba(255,255,255,.6); }

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--blue-br);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .25s;
  box-shadow: 0 8px 24px -10px rgba(74,158,255,.55);
}
.btn-main:hover {
  background: #2c7fe6;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(74,158,255,.65);
}
.btn-main svg { transition: transform .25s; }
.btn-main:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: .85rem 1.6rem;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: rgba(255,255,255,.03);
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 4rem 2.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand img {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: rgba(255,255,255,.4);
  font-size: .87rem;
  line-height: 1.65;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-col a {
  color: rgba(255,255,255,.42);
  text-decoration: none;
  font-size: .87rem;
  transition: color .2s;
}
.footer-col a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom small {
  color: rgba(255,255,255,.25);
  font-size: .78rem;
}
.footer-meta { display: flex; gap: 1.5rem; }
.footer-meta a {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  font-size: .78rem;
  transition: color .2s;
}
.footer-meta a:hover { color: rgba(255,255,255,.6); }

/* ── FADE-UP ──────────────────────────────────────────── */
.fu {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.fu.vis { opacity: 1; transform: none; }
.fu-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.fu-stagger.vis > *:nth-child(1) { opacity: 1; transform: none; }
.fu-stagger.vis > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.fu-stagger.vis > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.fu-stagger.vis > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  nav { padding: 0 1.25rem; gap: .75rem; }
  .nav-links { display: none; }
  .page-hero { padding: 7rem 1.5rem 4rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
