/* La Compagnie de Sully — design system
   Palette per docs/content-brief.md (navy + #EC008C pink) and
   registry/context-profiles/personal-company-de-sully.yaml.

   Font note: Proxima Nova is specified in the brief, but the only font
   files found in "Charte graphique - fichiers sources/" are corrupted
   (macOS metadata stubs, not real font binaries) — see .worklog. Using a
   system fallback stack until licensed Proxima Nova files are supplied.
   Swap the --font-* values below for @font-face declarations once
   available; nothing else in this file should need to change. */

:root {
  --color-bg: #F7F7F6;
  --color-surface: #EFF1F4;
  --color-text: #14213D;
  --color-navy: #1B2A4A;
  --color-pink: #EC008C;
  --color-grey: #5C6470;
  --color-footer-text: #E7EAF0;

  --font-heading: "Proxima Nova", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Proxima Nova", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* "Compagnie" (old) / "Sully" (modern) hero treatment — old-to-new
     passage, per the brand story. Google Fonts (real production site,
     no CDN allowlist restriction like an Artifact would have). */
  --font-old: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-modern: "Space Grotesk", var(--font-heading);

  --max-width: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

a {
  color: var(--color-pink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}
a:hover { background-size: 100% 1px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tbd {
  background: rgba(236, 0, 140, 0.08);
  padding: 0 4px;
  font-size: 0.85em;
}

.disclaimer { color: var(--color-grey); font-size: 0.85rem; }

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 2px;
  font-weight: 700;
  background-image: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-pink);
  color: #fff;
}
.btn-primary:hover { background: #c40077; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}
.btn-ghost:hover { background: var(--color-navy); color: #fff; }

.read-more { font-size: 0.9rem; display: inline-block; }

/* ---------------------------------------------------------------- */
/* Top navigation                                                     */
/* ---------------------------------------------------------------- */

.site-header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled { box-shadow: 0 2px 8px rgba(20, 33, 61, 0.08); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap; /* only the wordmark + hamburger button sit in this row below 1140px — nav itself is a position:absolute dropdown there, so it never needs to wrap */
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-navy);
  line-height: 1;
}

.wordmark .wm-text { color: var(--color-navy); white-space: nowrap; }

.wordmark .logo-canvas--header {
  height: 44px; /* the oval proportions are tuned for a large display — much smaller and they render as sub-pixel slivers, illegible as "petals" */
  width: auto;
  aspect-ratio: 5 / 7; /* matches the hero mark's proportions, so the S phase doesn't clip if this canvas ever plays the full sequence */
  align-self: center;
}

main { animation: page-fade-in 0.5s ease both; }

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* Override the sitewide currentColor-based hover underline (see the
     base `a` rule) with the brand gradient — scoped to nav links only,
     since body-copy/footer links sit on varying colors/backgrounds
     where a hardcoded 2-stop gradient wouldn't always read well. */
  background-image: linear-gradient(90deg, var(--color-navy), var(--color-pink));
}

.main-nav a[aria-current="page"] {
  color: var(--color-pink);
  border-bottom: 1px solid var(--color-pink);
  padding-bottom: 2px;
}

.nav-cta a {
  background: var(--color-navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 2px;
  background-image: none;
  font-size: 0.88rem;
}
.nav-cta a:hover { background: var(--color-pink); }
.nav-cta a[aria-current="page"] { border-bottom: none; background: var(--color-pink); color: #fff; }

.lang-toggle {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-grey);
}

.lang-toggle a { color: var(--color-grey); }

.lang-toggle a[aria-current="true"] { color: var(--color-pink); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Same navy -> pink gradient as the logo mark: top line navy, middle the
   midpoint tone, bottom pink. */
.nav-toggle span:nth-child(1) { background: var(--color-navy); }
.nav-toggle span:nth-child(2) { background: rgb(132, 21, 107); }
.nav-toggle span:nth-child(3) { background: var(--color-pink); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .site-header .container { position: relative; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    padding: 20px var(--gutter) 28px;
  }

  .main-nav.is-open { display: flex; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-cta { margin-top: 4px; }
}

/* ---------------------------------------------------------------- */
/* Hero                                                                */
/* ---------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 10vh;
  padding-bottom: 8vh;
}

.hero-text { flex: 1 1 420px; }
.hero-visual { flex: 1 1 360px; display: flex; align-items: center; justify-content: center; }

/* Animated logo mark (assets/js/logo-animation.js) — taller than wide:
   the S shape needs more vertical room than the final circle alone
   would, sized by its container. */
.logo-canvas {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 5 / 7;
  display: block;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: var(--color-pink);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 4px;
}

.hero h1 { margin-bottom: 0.3em; }
.hero h1 .brand-old { font-family: var(--font-old); font-weight: 700; }
.hero h1 .brand-modern { font-family: var(--font-modern); font-weight: 700; }
.hero-bar {
  display: inline-block;
  width: 3px;
  height: 0.7em;
  margin: 0 0.14em;
  background: var(--color-pink);
  vertical-align: baseline;
}

.strapline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-grey);
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.5em; }

.page-hero { padding: 8vh var(--gutter) 4vh; text-align: center; }
.page-hero .strapline { margin: 0 auto; }

@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6vh; }
  .hero-cta { justify-content: center; }
}

.positioning {
  max-width: 760px;
  margin: 0 auto;
  padding: 5vh var(--gutter);
  text-align: center;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--color-navy);
}

/* Reusable text+image side-by-side pattern (lighter-weight than .hero —
   no hero-specific vertical padding), used for Notre Mission's "Le nom"
   section. */
.split { display: flex; align-items: center; gap: 40px; }
.split-text { flex: 1 1 420px; }
.split-visual { flex: 1 1 320px; }
.split-visual img { width: 100%; border-radius: 4px; display: block; }
@media (max-width: 860px) { .split { flex-direction: column; } }

/* ---------------------------------------------------------------- */
/* Generic sections and grids                                         */
/* ---------------------------------------------------------------- */

.section { padding-top: 6vh; padding-bottom: 6vh; }
.section-title { text-align: center; margin-bottom: 1em; }
.section-intro { text-align: center; color: var(--color-grey); margin-top: -0.6em; margin-bottom: 2em; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.list-plain, .list-numbered {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 1.4em;
}
.list-plain li, .list-numbered li { margin-bottom: 0.6em; }

.stat-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 780px) { .stat-callouts { grid-template-columns: 1fr; } }

.callout-figure {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-pink);
  margin-bottom: 0.2em;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) { .role-grid { grid-template-columns: 1fr; } }

.role-block h3 { color: var(--color-navy); margin-bottom: 0.4em; }

.platform-band {
  background: var(--color-navy);
  color: #fff;
}
.platform-content { padding: 7vh var(--gutter); text-align: center; max-width: 820px; margin: 0 auto; }
.platform-band .section-title, .platform-band h2 { color: #fff; }
.platform-band p { color: rgba(255, 255, 255, 0.88); }
.platform-band a.read-more { color: #fff; }

.asperites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .asperites-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .asperites-grid { grid-template-columns: 1fr; } }

.asperite-card {
  background: var(--color-surface);
  padding: 28px;
  border-radius: 4px;
}
.asperite-card h3 { font-size: 1rem; margin-bottom: 0.5em; }
.roman { color: var(--color-pink); margin-right: 0.4em; font-weight: 700; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sectors-grid { grid-template-columns: 1fr; } }

.sector-card {
  border-top: 3px solid var(--color-pink);
  padding-top: 16px;
}
.sector-card h3 { margin-bottom: 0.4em; }

/* ---------------------------------------------------------------- */
/* Stats band                                                         */
/* ---------------------------------------------------------------- */

.stats-band {
  border-top: 1px solid rgba(20, 33, 61, 0.08);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  background: var(--color-surface);
}

.stats { display: flex; align-items: stretch; padding-top: 6vh; padding-bottom: 6vh; }

.stat {
  flex: 1 1 0;
  padding: 0 24px;
  border-left: 1px solid rgba(20, 33, 61, 0.1);
  text-align: center;
}
.stat:first-child { padding-left: 0; border-left: none; }

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-pink);
  line-height: 1;
  margin: 0 0 0.25em;
}

.stat-label { font-weight: 600; margin: 0; color: var(--color-navy); }

@media (max-width: 780px) {
  .stats { flex-direction: column; gap: 28px; }
  .stat { padding: 0; border-left: none; }
}

/* ---------------------------------------------------------------- */
/* Team, network, join grids                                          */
/* ---------------------------------------------------------------- */

.team-teaser { text-align: center; }
.team-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  gap: 40px;
  justify-content: center;
  margin-bottom: 1.5em;
}
.team-teaser-card img, .team-teaser-card .avatar-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.3);
  margin-bottom: 0.8em;
  font-size: 2rem;
}
.team-teaser-card h3 { margin-bottom: 0.1em; }
.team-teaser-card p { color: var(--color-grey); margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

.team-card img, .team-card .avatar-placeholder {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.3);
  margin-bottom: 1em;
  font-size: 1.5rem;
}
.team-role { color: var(--color-pink); font-weight: 600; margin-bottom: 0.6em; }
.team-card blockquote {
  margin: 1em 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--color-pink);
  font-style: italic;
  color: var(--color-navy);
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .network-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .network-grid { grid-template-columns: 1fr; } }

.network-card {
  padding: 18px 20px;
  background: var(--color-surface);
  border-radius: 4px;
}
.network-card h3 { font-size: 0.98rem; margin-bottom: 0.3em; }
.network-card p { margin: 0; color: var(--color-grey); font-size: 0.9rem; }

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .join-grid { grid-template-columns: 1fr; } }

.join-card {
  padding: 28px;
  background: var(--color-surface);
  border-radius: 4px;
  border-top: 3px solid var(--color-pink);
}
.join-card h3 { margin-bottom: 0.5em; }

.cta-band { background: var(--color-surface); padding: 6vh 0; margin-top: 4vh; }

.coming-soon { text-align: center; max-width: 640px; margin: 0 auto; }

/* ---------------------------------------------------------------- */
/* Contact form (Rejoindre / Join) — pattern ported from                */
/* personal-rk-advisory-website, re-themed to navy/pink                 */
/* ---------------------------------------------------------------- */

.contact-form { max-width: 560px; margin: 0 auto; }

.contact-form .fg { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-grey);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid rgba(20, 33, 61, 0.2);
  border-radius: 2px;
  background: #fff;
  color: var(--color-text);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .fg.has-error input,
.contact-form .fg.has-error textarea {
  border-color: var(--color-pink);
}

.contact-form .err-msg {
  display: none;
  color: var(--color-pink);
  font-size: 0.8rem;
  margin-top: 4px;
}

.contact-form .fg.has-error .err-msg { display: block; }

.honeypot { position: absolute; left: -9999px; }

/* intl-tel-input — vendored from personal-rk-advisory-website's own
   vendoring of guidecaisseenregistreuse's /devis/ pattern. */
.iti { width: 100%; }
.iti__flag { background-image: url("/assets/iti/img/flags.png"); }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .iti__flag { background-image: url("/assets/iti/img/flags@2x.png"); }
}
.iti input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px 10px 52px;
  border: 1px solid rgba(20, 33, 61, 0.2);
  border-radius: 2px;
  background: #fff;
  color: var(--color-text);
}
.fg.has-error .iti input[type="tel"] { border-color: var(--color-pink); }

.btn-submit {
  background: var(--color-pink);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}
.btn-submit:hover { background: #c40077; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.notice { margin-top: 16px; font-size: 0.9rem; }
.notice.success { color: var(--color-navy); }
.notice.error { color: var(--color-pink); }

.gdpr-notice {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--color-grey);
}

/* ---------------------------------------------------------------- */
/* Fund table and roadmap                                             */
/* ---------------------------------------------------------------- */

.fund-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
}
.fund-table th, .fund-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}
.fund-table th { color: var(--color-navy); font-weight: 600; width: 50%; }
.fund-table td { color: var(--color-pink); font-weight: 700; }

.roadmap-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.roadmap-list li {
  padding: 14px 0 14px 24px;
  border-left: 2px solid var(--color-pink);
  margin-bottom: 4px;
}
.roadmap-list li strong { color: var(--color-navy); display: block; }

/* ---------------------------------------------------------------- */
/* Footer                                                              */
/* ---------------------------------------------------------------- */

.site-footer {
  background: var(--color-navy);
  color: var(--color-footer-text);
  padding: 6vh 0 4vh;
  margin-top: 8vh;
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer a { color: var(--color-footer-text); text-decoration: underline; background-image: none; }
.site-footer p { margin: 0 0 0.6em; }
.footer-tagline { max-width: 60ch; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 1.2em 0;
}

.footer-legal {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid rgba(231, 234, 240, 0.2);
  font-size: 0.78rem;
  color: rgba(231, 234, 240, 0.8);
}

.footer-legal .tbd { background: rgba(236, 0, 140, 0.2); color: #fff; }
