/* ============================================================
   Founders Sprint — shared site chrome (nav + scroll bar + footer).

   Loaded by every page that should display the same top nav, the
   gradient scroll-progress bar above it, and the dark footer with
   the FR/EN switch. Lifted verbatim from index.html so the page
   chrome stays identical across landing, pourquoi.html, waitlist.html,
   and the legal pages.

   Pages that inherit this file should also :
     - load `assets/i18n-landing.js` (gives the footer lang switch
       its click binding + does data-i18n translation on demand) ;
     - load `assets/chrome.js` (scroll progress wiring, plus a
       small no-op shim if the page hasn't already defined the
       motion / fade-up libs).

   Token assumptions (provided by either the page :root or the
   landing's :root if chrome.css is loaded after) :
     --navy / --navy-deep / --cream / --orange / --orange-soft /
     --cyan / --line-light.
   ============================================================ */

/* Universal box-sizing reset. Without this, inputs with padding +
   width:100% inside a CSS grid cell push past their cell width and
   overlap their neighbours (waitlist/postuler row 'Prénom' + 'email'
   touched each other on 1440 px viewports — the email started 18 px
   inside the Prénom right edge). border-box makes padding count
   inside the declared width, eliminating the overflow. */
*, *::before, *::after { box-sizing: border-box; }

/* Sticky-footer scaffolding applied to every chrome page. Body is a
   flex column ; main fills the gap so the footer always sits at the
   viewport bottom on short pages (legal pages, /waitlist, /postuler
   when a form is collapsed, etc.).

   `margin: 0` on html + body kills the 8 px browser default — without
   it, every chrome-using page (pourquoi, waitlist, postuler, legal)
   sits 8 px inset from each viewport edge and the footer never touches
   the bottom of the screen. The landing nukes the default in its own
   <style> block ; chrome.css owns the reset for everyone else. */
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* Fallbacks (hex equivalents) so chrome.css works on a page that
   forgot to declare the tokens. The landing / legal page :root
   blocks override these to keep token-level customization possible. */
:root {
  --navy: #0A0E27;
  --navy-deep: #060912;
  --cream: #FAF7F0;
  --orange: #FF5F1F;
  --orange-soft: #FF7A40;
  --cyan: #00D4FF;
  --line-light: rgba(250, 247, 240, 0.08);
}

/* ============ A11y skip link ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--orange);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--cream); outline-offset: 3px; }

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  z-index: 999;
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
}
nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.logo .logo-wordmark { color: var(--cream); display: inline; }
.logo .logo-wordmark > span { color: var(--orange); }
.logo-subtitle {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  margin-top: 2px;
  line-height: 1;
}
a.logo, a.logo:hover, a.logo:visited { text-decoration: none; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(250, 247, 240, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  padding: 10px 22px;
  background: var(--orange);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover,
.nav-cta:focus,
.nav-cta:active,
.nav-cta:visited { text-decoration: none !important; }
.nav-cta:hover { background: var(--orange-soft); transform: translateY(-1px); }

.nav-founders {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(250,247,240,0.22);
  border-radius: 999px;
  color: var(--cream) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(255,95,31,0.08) 0%, rgba(0,212,255,0.06) 100%);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-founders::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  animation: chromePulse 2s ease-in-out infinite;
  margin-right: 2px;
}
.nav-founders svg { opacity: 0.9; }
.nav-founders:hover,
.nav-founders:focus,
.nav-founders:active,
.nav-founders:visited { text-decoration: none !important; }
.nav-founders:hover {
  border-color: rgba(255,95,31,0.55);
  background: linear-gradient(135deg, rgba(255,95,31,0.16) 0%, rgba(0,212,255,0.1) 100%);
  transform: translateY(-1px);
}
@keyframes chromePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,95,31,0.6), 0 0 0 0 rgba(255,95,31,0.4); }
  50%      { box-shadow: 0 0 14px rgba(255,95,31,0.8), 0 0 0 8px rgba(255,95,31,0); }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta):not(.nav-founders) { display: none; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 240, 0.5);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-light);
}
/* Footer columns now fill 100 % of the page width on every page,
   with horizontal padding that scales (32 px on phones, up to 96 px
   on wide desktops). User asked for the footer to feel page-wide
   instead of marooned in the center. */
.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 4vw, 96px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo {
  font-size: 24px;
  margin-bottom: 16px;
  /* Stack wordmark over subtitle in the footer too — the global .logo
     uses inline-flex column ; the previous `display: block` override
     collapsed the children back to inline flow ('Founders SprintBY
     CLOUD SKUNKWORKS' all on one line). */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  color: rgba(250, 247, 240, 0.5);
}
.footer-col h5 {
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(250, 247, 240, 0.5);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  width: 100%;
  max-width: none;
  margin: 60px 0 0;
  padding: 24px clamp(32px, 4vw, 96px) 0;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 247, 240, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(250, 247, 240, 0.7);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lang-switch:hover {
  color: var(--cream);
  border-color: rgba(250, 247, 240, 0.4);
  background: rgba(250, 247, 240, 0.04);
}
.lang-switch svg { opacity: 0.8; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Reserve space below the fixed nav for in-page anchors so they
   don't land hidden under the bar. The landing already accounts for
   this with its hero section ; chrome-only pages need this fallback. */
main[data-chrome="true"] {
  padding-top: 88px;
}
