/* ============================================================
   ALPHA Component Solutions — Vitrine (holding page)
   Layout & components. Design tokens live in colors_and_type.css.
   ============================================================ */

/* ---------- base ---------- */
* { box-sizing: border-box }
html, body { margin: 0 }
html { scroll-behavior: smooth }

body {
  font-family: var(--font-sans);
  color: var(--fg1);
  background: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--alpha-navy); text-decoration: none }
a:hover { color: var(--alpha-red) }

img { max-width: 100%; height: auto; display: block }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px }

/* Sticky header would otherwise hide the top of an anchored section. */
section[id] { scroll-margin-top: 96px }

/* Keyboard focus, using the --focus-ring token from the foundation. */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--alpha-navy);
  color: #fff;
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0 }
.skip-link:hover { color: #fff }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--w-bold);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--alpha-red);
  margin: 0 0 18px;
}
.eyebrow .rule { width: 26px; height: 2px; background: currentColor; border-radius: 2px }
.eyebrow.on-dark { color: #fff }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.hbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.hbar .brand { flex: none }

/* ---------- brand lockup (horizontal) ----------
   Composed from three tight crops of the master logo so every part stays
   legible at header size. --lk drives the whole lockup; the word and tagline
   are locked to it, preserving the master artwork's proportions. */
.brand { --lk: 48px; display: inline-flex; align-items: center; gap: calc(var(--lk) * .25) }
.brand img { display: block; width: auto }
.brand-text { display: flex; flex-direction: column; align-items: center; gap: calc(var(--lk) * .104) }
.brand-mark { height: var(--lk) }
.brand-word { height: calc(var(--lk) * .583) }
.brand-tag  { height: calc(var(--lk) * .208) }

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: var(--w-semibold);
  color: var(--fg2);
}
nav a { color: var(--fg2) }
nav a:hover { color: var(--alpha-red) }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--slate-500) 1.3px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: .16;
}
.hero .cartouche {
  position: absolute;
  right: -140px;
  bottom: -110px;
  width: 620px;
  height: 340px;
  background: var(--grad-apex);
  transform: rotate(-12deg);
  opacity: .5;
  border-radius: 120px 24px 120px 24px;
  filter: blur(2px);
}
.hero .mark {
  position: absolute;
  right: 40px;
  top: 60px;
  width: 340px;
  opacity: .06;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding: 96px 32px 104px; max-width: 1080px }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: var(--w-extrabold);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 18ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: var(--w-medium);
  color: #fff;
  margin: 22px 0 0;
  max-width: 34ch;
}
.hero p.sub {
  font-size: var(--t-body-lg);
  line-height: 1.6;
  color: var(--fg-on-dark-soft);
  margin: 16px 0 0;
  max-width: 52ch;
}
.hero .backers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px }

.chip {
  white-space: nowrap;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: var(--w-semibold);
  color: rgba(255, 255, 255, .9);
}

/* ---------- sections ---------- */
section.band { padding: 88px 0; border-top: 1px solid var(--border) }
section.band.subtle { background: var(--bg-page) }

h2 {
  font-size: var(--t-h2);
  font-weight: var(--w-bold);
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0 0 20px;
}

.body {
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--fg3);
  max-width: 66ch;
  margin: 0;
  text-wrap: pretty;
}

.body p { margin: 0 0 16px }
.body p:last-child { margin-bottom: 0 }
.body ul { margin: 0 0 16px; padding-left: 22px }
.body li { margin: 0 0 6px }

.about2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center }
.about2 figure { position: relative; margin: 0 }
.about2 figure::before {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 70%;
  height: 60%;
  background: var(--grad-apex);
  border-radius: var(--r-xl) var(--r-xs) var(--r-xl) var(--r-xs);
}
.about2 img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: var(--r-xl) var(--r-xs) var(--r-xl) var(--r-xs);
  box-shadow: var(--shadow-md);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 56px;
  align-items: start;
}

/* ---------- news ---------- */
.news { display: grid; gap: 16px; margin-top: 8px }

.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-xs) var(--r-lg) var(--r-xs);
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
  transition: all .2s cubic-bezier(.2, .7, .2, 1);
}
.item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.item .src {
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--alpha-red);
  margin: 0 0 8px;
}
.item .ttl {
  font-size: var(--t-h4);
  font-weight: var(--w-semibold);
  color: var(--fg1);
  line-height: 1.35;
  margin: 0;
  max-width: 60ch;
}
.item .meta { font-size: var(--t-small); color: var(--fg4); margin: 10px 0 0 }
.item .arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--mist-200);
  color: var(--alpha-navy);
  display: grid;
  place-items: center;
  transition: all .2s;
}
.item:hover .arrow { background: var(--alpha-navy); color: #fff }

/* ---------- contacts ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}
.card .role {
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--alpha-red);
  margin: 0 0 14px;
}
.card .name { font-size: var(--t-h4); font-weight: var(--w-semibold); color: var(--fg1); margin: 0 }
.card .mail {
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  word-break: break-word;
  display: inline-block;
  margin-top: 4px;
}
.card .person + .person { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border) }

/* ---------- footer ---------- */
footer { background: var(--bg-inverse); color: var(--fg-on-dark-soft); padding: 48px 0 }
.fbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.fbar .brand { --lk: 42px }
.flinks {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: var(--t-small);
  font-weight: var(--w-medium);
}
footer a { color: #fff }
footer a:hover { color: var(--alpha-red) }
.copy { font-size: var(--t-small) }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .brand { --lk: 44px }
  .fbar .brand { --lk: 40px }
  .split { grid-template-columns: 1fr; gap: 24px }
  .about2 { grid-template-columns: 1fr; gap: 48px }
  .about2 figure { margin-left: 16px }
  .about2 figure::before { left: -16px; bottom: -16px }
  .hero .mark { right: -60px; top: auto; bottom: -40px; width: 280px }
  section.band { padding: 64px 0 }
  .hero .wrap { padding: 72px 24px 80px }
  .wrap { padding: 0 24px }
}

@media (max-width: 560px) {
  .hbar { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; padding-bottom: 12px }
  .brand { --lk: 38px }
  .fbar .brand { --lk: 36px }
  nav { gap: 18px; font-size: 13px; flex-wrap: wrap }
  .hero h1 { max-width: none }
  .hero .cartouche { right: -200px; bottom: -140px }
  .item { padding: 20px }
  .item .arrow { width: 34px; height: 34px }
  .fbar { flex-direction: column; align-items: flex-start; gap: 20px }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important }
  html { scroll-behavior: auto }
}

/* Below ~400px the tagline crop can no longer hold its own; the full company
   name still reaches assistive tech via the lockup's aria-label. */
@media (max-width: 400px) {
  .brand-tag { display: none }
}

/* ============================================================
   INTERIOR PAGES (legal notice / mentions légales)
   ============================================================ */

.page-head { position: relative; overflow: hidden; background: var(--grad-navy); color: #fff }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--slate-500) 1.3px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: .16;
}
.page-head .wrap { position: relative; z-index: 2; padding: 56px 32px 60px }
.page-head h1 {
  font-size: var(--t-h1);
  font-weight: var(--w-extrabold);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
}
.page-head .updated { font-size: var(--t-small); color: var(--fg-on-dark-soft); margin: 14px 0 0 }

.lang-switch { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-size: var(--t-small) }
.lang-switch a, .lang-switch span {
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-weight: var(--w-semibold);
  color: rgba(255, 255, 255, .9);
}
.lang-switch a:hover { border-color: #fff; color: #fff }
.lang-switch [aria-current="true"] { background: #fff; color: var(--alpha-navy); border-color: #fff }

/* ---------- legal prose ---------- */
.legal { max-width: 76ch }
.legal > section + section { margin-top: 44px }
.legal h2 {
  font-size: var(--t-h3);
  font-weight: var(--w-semibold);
  line-height: 1.25;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal h2 .num { color: var(--alpha-red); margin-right: 10px; font-variant-numeric: tabular-nums }
.legal h3 { font-size: var(--t-body-lg); font-weight: var(--w-semibold); color: var(--fg2); margin: 26px 0 8px }
.legal p, .legal li { font-size: var(--t-body); line-height: 1.7; color: var(--fg3) }
.legal p { margin: 0 0 14px; text-wrap: pretty }
.legal ul { margin: 0 0 14px; padding-left: 22px }
.legal li { margin: 0 0 8px }
.legal a { text-decoration: underline; text-underline-offset: 2px }
.legal .lead { font-size: var(--t-body-lg); color: var(--fg2) }

/* identity table */
.legal dl {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.legal dt, .legal dd {
  margin: 0;
  padding: 13px 18px;
  font-size: var(--t-small);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.legal dt { font-weight: var(--w-semibold); color: var(--fg2); background: var(--bg-page) }
.legal dd { color: var(--fg3); word-break: break-word }
.legal dt:first-of-type, .legal dt:first-of-type + dd { border-top: 0 }

/* “to be completed” marker — must be impossible to publish by accident */
.todo {
  display: inline-block;
  background: var(--status-watch-bg);
  border: 1px dashed var(--status-watch);
  border-radius: var(--r-xs);
  padding: 1px 8px;
  font-size: .92em;
  font-weight: var(--w-semibold);
  font-style: normal;
  color: #7a4d06;
}

/* advisory callout */
.note {
  border-left: 3px solid var(--alpha-red);
  background: var(--status-aog-bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 0 0 14px;
}
.note p { margin: 0 }
.note p + p { margin-top: 10px }
.note strong { color: var(--fg1) }

@media (max-width: 560px) {
  .page-head .wrap { padding: 40px 24px 44px }
  .legal dl { grid-template-columns: 1fr }
  .legal dt { border-top: 1px solid var(--border); padding-bottom: 4px }
  .legal dd { padding-top: 4px; border-top: 0 }
  .legal dt:first-of-type + dd { border-top: 0 }
}
