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

:root {
  --bg:         #010914;
  --bg-1:       #040D1A;
  --bg-2:       #070E1C;
  --card:       #080F1D;
  --card-2:     #0B1424;
  --gold:       #e0c484;
  --gold-2:     #f0d9a0;
  --gold-3:     #c9ad6a;
  --gold-glow:  rgba(224,196,132,.13);
  --gold-border:rgba(224,196,132,.18);
  --white:      #F4F6FA;
  --grey-mid:   #8A9AB0;
  --grey-hi:    rgba(244,246,250,.72);
  --border:     rgba(255,255,255,.06);
  --border-2:   rgba(255,255,255,.1);
  --r-sm: 8px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;
  --max-site: 1160px;
  --text-body:  rgba(244,246,250,.82);
  --text-dim:   rgba(244,246,250,.50);
  --max-w:      720px;
  --font: 'General Sans', 'Outfit', system-ui, sans-serif;
  --cockpit-cyan: #6bc9d4;
  --cockpit-violet: #b9a8ff;
  --glass-bg: linear-gradient(165deg, rgba(14, 22, 40, 0.78) 0%, rgba(5, 10, 22, 0.92) 100%);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; }

body.solide-whitepaper {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(185, 168, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(107, 201, 212, 0.04) 0%, transparent 45%),
    var(--bg);
  color: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.brand {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

/* ─── GRAIN ──────────────────────────────────── */
body.solide-whitepaper::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--max-site);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ─── NAV (aligné landing) ────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.stuck {
  background: rgba(1, 9, 20, 0.82);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(224, 196, 132, 0.12), 0 18px 48px rgba(0, 0, 0, 0.35);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--grey-mid);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav__link--active { color: var(--white); }
.nav__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__wp {
  font-size: .84rem;
  font-weight: 600;
  color: var(--grey-mid);
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.nav__wp:hover { color: var(--gold); border-color: var(--gold-border); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  font-size: .875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-cta:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--gold-glow);
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__wp { display: none; }
}

/* ─── HERO ────────────────────────────────────── */
.wp-hero {
  padding: 140px 24px 80px;
  max-width: var(--max-w);
  margin-inline: auto;
  position: relative;
}
.wp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: -24px;
  border-radius: 28px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(224, 196, 132, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(107, 201, 212, 0.05) 0%, transparent 50%);
}

.wp-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 32px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.wp-hero__tag::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.wp-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.wp-hero__title span {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

.wp-hero__subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}

.wp-hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.wp-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wp-hero__meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.wp-hero__meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
}
.wp-hero__meta-value.brand {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}
.wp-hero__meta-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── DIVIDER ─────────────────────────────────── */
.divider {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── CONTENT ─────────────────────────────────── */
.wp-content {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 72px 24px 100px;
}

.wp-content__opening {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

.wp-content p {
  font-size: 1.03rem;
  color: var(--text-body);
  line-height: 1.88;
  margin-bottom: 28px;
}
.wp-content p:last-of-type { margin-bottom: 0; }

/* Pull quotes */
.wp-pull {
  margin: 48px 0;
  padding: 26px 32px;
  background: linear-gradient(135deg, rgba(224,196,132,.09) 0%, rgba(107, 201, 212, 0.04) 45%, transparent 100%);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wp-pull p {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--white) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* Transformation table */
.wp-transform {
  margin: 48px 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.wp-transform__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.wp-transform__header span:last-child { color: var(--gold); }
.wp-transform__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .2s;
}
.wp-transform__row:last-child { border-bottom: none; }
.wp-transform__row:hover { background: rgba(224,196,132,.05); }
.wp-transform__from {
  font-size: 0.93rem;
  color: var(--text-dim);
}
.wp-transform__arrow {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.wp-transform__to {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
}

/* Four pillars */
.wp-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 48px 0;
}
.wp-pillar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.wp-pillar:hover {
  border-color: rgba(224, 196, 132, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42), 0 0 32px rgba(185, 168, 255, 0.06), var(--glass-inset);
}
.wp-pillar__icon { font-size: 1.4rem; margin-bottom: 12px; }
.wp-pillar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.wp-pillar__desc { font-size: 0.85rem; color: var(--grey-mid); line-height: 1.6; }

/* Section labels */
.wp-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  margin-top: 56px;
}
.wp-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Closing */
.wp-closing {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.wp-closing__headline {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.wp-closing__headline span { color: var(--gold); }
.wp-closing__sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.01em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224,196,132,.35);
}
.btn-arr {
  display: inline-flex;
  margin-left: 2px;
  font-size: 1.05em;
  line-height: 1;
  opacity: .92;
}

/* ─── FOOTER (aligné landing) ─────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer__logo { margin-bottom: 12px; }
.footer__logo img { height: 24px; width: auto; display: block; }
.footer__tag  { font-size: .84rem; color: var(--grey-mid); max-width: 230px; }
.fh { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 16px; }
.flinks { display: flex; flex-direction: column; gap: 9px; }
.flink  { font-size: .87rem; color: var(--grey-mid); transition: color .2s; }
.flink:hover { color: var(--white); }
.footer__bot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: .8rem; color: var(--grey-mid); }
.footer__socials { display: flex; gap: 8px; }
.footer__soc {
  width: 33px; height: 33px;
  border-radius: var(--r-sm);
  background: rgba(8, 15, 29, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-mid);
  transition: background .2s, color .2s, border-color .2s;
}
.footer__soc:hover { background: rgba(224,196,132,.1); border-color: var(--gold-border); color: var(--gold); }
.footer__soc .icon-emoji {
  font-size: 1rem;
  line-height: 1;
  font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bot { flex-direction: column; gap: 13px; text-align: center; }
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
  .wp-transform__row { grid-template-columns: 1fr; gap: 4px; }
  .wp-transform__header { grid-template-columns: 1fr; }
  .wp-transform__arrow { display: none; }
  .wp-pillars { grid-template-columns: 1fr; }
  .wp-hero__meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wp-hero__meta-sep { display: none; }
}

body.solide-whitepaper #main.site-main {
  min-height: 0;
}
