/* ============================================================
   ASSIST PLUS 31 — Design system partagé
   Direction : Sobre (B2B premium, navy / or / blanc)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0F2A47;
  --navy-2: #14355A;
  --navy-ink: #0A1F35;
  --navy-deep: #081A2E;
  --gold: #C9A055;
  --gold-soft: #E4C98B;
  --gold-deep: #A88542;
  --paper: #F5F2EB;
  --paper-2: #EFEAE0;
  --white: #FFFFFF;
  --ink: #0F2A47;
  --ink-80: rgba(15,42,71,0.85);
  --ink-70: rgba(15,42,71,0.74);
  --ink-60: rgba(15,42,71,0.62);
  --ink-50: rgba(15,42,71,0.52);
  --line: rgba(15,42,71,0.10);
  --line-strong: rgba(15,42,71,0.18);
  --shadow: 0 1px 2px rgba(15,42,71,0.04), 0 12px 32px -12px rgba(15,42,71,0.14);
  --shadow-lg: 0 30px 60px -30px rgba(15,42,71,0.35);
  --r: 14px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============ TYPE ============ */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
h1, h2, h3 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.08; font-weight: 500; }
h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; line-height: 1.25; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { color: var(--ink-70); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--ink-70); max-width: 56ch; }
strong { font-weight: 500; color: var(--navy); }

/* Mobile readability — secondary text bumped one notch for tired eyes */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  p { color: var(--ink-80); }
  .lead { font-size: 16.5px; line-height: 1.6; color: var(--ink-80); }
}

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(72px, 9vw, 128px) 0; }

/* ============ HEADER ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.monogram {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.monogram::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(201,160,85,0.55);
  border-radius: 6px;
  pointer-events: none;
}
.monogram-letters {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.04em;
  z-index: 1;
}
.monogram-letters .p { color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--navy); }
.logo-sub { font-size: 10px; letter-spacing: 0.18em; color: var(--gold-deep); margin-top: 4px; text-transform: uppercase; font-weight: 500; }

nav.primary { display: flex; align-items: center; gap: 4px; }
nav.primary a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
nav.primary a:hover { color: var(--navy); background: var(--paper); }
nav.primary a.active { color: var(--navy); background: var(--paper); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.header-cta:hover { background: var(--navy-2); transform: translateY(-1px); }
.header-cta .arr { width: 14px; height: 14px; stroke: currentColor; }

.menu-btn { display: none; }

@media (max-width: 920px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 1px); left: 0; right: 0;
    background: var(--white);
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  nav.primary.open a { padding: 14px 12px; border-radius: 0; border-bottom: 1px solid var(--line); }
  nav.primary.open a:last-child { border-bottom: none; }
  .menu-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    color: var(--navy);
  }
  .menu-btn svg { width: 18px; height: 18px; stroke: var(--navy); }
  .header-cta .arr { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(15,42,71,0.16), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(15,42,71,0.45); }
.btn-ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(15,42,71,0.03); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(201,160,85,0.3);
}
.btn-gold:hover { background: #d8b06a; transform: translateY(-1px); }
.btn svg.arr { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover svg.arr { transform: translateX(3px); }

/* ============ COMMON LAYOUT ============ */
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }
.section-navy {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-navy::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(201,160,85,0.10), transparent 50%),
    radial-gradient(600px 300px at 10% 100%, rgba(201,160,85,0.06), transparent 60%);
  pointer-events: none;
}
.section-navy > .container { position: relative; z-index: 1; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.80); }
.section-navy .eyebrow { color: var(--gold-soft); }
.section-navy strong { color: var(--white); }

.head-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 820px) { .head-row { grid-template-columns: 1fr; } }
.head-row .left { display: flex; flex-direction: column; gap: 16px; }

.gold-rule { width: 32px; height: 1px; background: var(--gold); }

/* ============ PAGE INTRO (sub-hero on inner pages) ============ */
.page-hero {
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(201,160,85,0.06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero .badge-pill .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-hero h1 { color: var(--navy); margin-bottom: 22px; }
.page-hero h1 .serif-em { color: var(--gold-deep); }
.page-hero .intro {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 62ch;
}
.page-hero .intro + .intro { margin-top: 14px; }
.page-hero .intro em { font-style: italic; color: var(--gold-deep); }
.page-hero .meta-row {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-60);
}
.page-hero .meta-row .meta { display: flex; align-items: center; gap: 8px; }
.page-hero .meta-row svg { width: 16px; height: 16px; stroke: var(--gold); }
.page-hero .meta-row strong { font-weight: 500; color: var(--navy); }

/* ============ FOOTER ============ */
footer.site {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer-grid a { display: block; font-size: 14px; color: rgba(255,255,255,0.78); padding: 4px 0; transition: color .15s ease; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: rgba(255,255,255,0.68); font-size: 13.5px; line-height: 1.65; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 18px; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease;
}
.footer-social a:hover { background: rgba(201,160,85,0.12); border-color: rgba(201,160,85,0.4); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--gold-soft); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
