/* ============================================
   JPM — Site web officiel
   Charte : bleu marine #0d2c54 + dégradé vert + accent orange
   ============================================ */

:root {
  /* Palette OFFICIELLE JPM */
  --c-navy: #0d2c54;            /* bleu marine principal du logo & fond */
  --c-navy-deep: #08203f;       /* bleu marine plus profond */
  --c-navy-soft: #1a4078;       /* bleu marine plus clair */
  --c-green: #3cb371;           /* vert pharmacien */
  --c-green-light: #7dcea0;     /* vert clair du dégradé logo */
  --c-green-pale: #d9efe2;      /* vert très pâle */
  --c-orange: #f39237;          /* accent orange */
  --c-paper: #ffffff;
  --c-paper-warm: #f6f7f9;
  --c-paper-cool: #eef2f7;
  --c-ink-mute: rgba(13, 44, 84, 0.62);
  --c-line: rgba(13, 44, 84, 0.12);
  --c-line-strong: rgba(13, 44, 84, 0.22);

  /* Espacements */
  --density: 1;
  --space-1: calc(4px * var(--density));
  --space-2: calc(8px * var(--density));
  --space-3: calc(16px * var(--density));
  --space-4: calc(24px * var(--density));
  --space-5: calc(40px * var(--density));
  --space-6: calc(64px * var(--density));
  --space-7: calc(96px * var(--density));
  --space-8: calc(140px * var(--density));

  /* Typo */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale */
  --fs-micro: 11px;
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-lead: 19px;
  --fs-h4: 24px;
  --fs-h3: 32px;
  --fs-h2: 48px;
  --fs-h1: 72px;

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 880px;
  --radius: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--c-navy);
  background: var(--c-paper);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 500; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============================================
   NAV — sombre par défaut sur fond clair, transparente sur hero sombre
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--c-line);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav--dark {
  background: rgba(13, 44, 84, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.nav--dark .nav__brand,
.nav--dark .nav__links a { color: #fff; }
.nav--dark .nav__cta {
  background: #fff; color: var(--c-navy); border-color: #fff;
}
.nav--dark .nav__cta:hover { background: transparent; color: #fff; }

.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.nav__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
}
.nav__brand-text span:first-child { font-weight: 600; }
.nav__brand-text span:last-child { font-weight: 400; opacity: 0.85; }

.nav__links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
  opacity: 0.78;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.active { opacity: 1; }
.nav__links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--c-green);
}
.nav__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--c-navy);
  border-radius: 999px;
  background: var(--c-navy);
  color: #fff;
  transition: all 0.2s;
}
.nav__cta:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* ============================================
   GENERIC SHELLS
   ============================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

section { padding: var(--space-8) 0; }
section.tight { padding: var(--space-7) 0; }

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--space-4);
}
.eyebrow--orange { color: var(--c-orange); }
.eyebrow--white { color: var(--c-green-light); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-ink-mute);
  max-width: 60ch;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--c-navy);
  color: #fff;
}
.btn--primary:hover { background: var(--c-green); }
.btn--green {
  background: var(--c-green);
  color: #fff;
}
.btn--green:hover { background: var(--c-navy); }
.btn--ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-light:hover { background: #fff; color: var(--c-navy); border-color: #fff; }
.btn--text {
  padding: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--c-green);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn--text:hover { color: var(--c-navy); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================
   FOOTER
   ============================================ */
.foot {
  padding: var(--space-7) 0 var(--space-5);
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.foot > * { position: relative; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.foot__brand img { width: 44px; height: 44px; border-radius: 50%; }
.foot__brand-text {
  display: flex; flex-direction: column;
  font-weight: 600; line-height: 1.2;
  color: #fff;
}
.foot__brand-text span:last-child { font-weight: 400; opacity: 0.85; }
.foot__about {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 32ch;
}
.foot h5 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--c-green-light);
  margin-bottom: var(--space-3);
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.foot a:hover { color: var(--c-green-light); }
.foot__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s cubic-bezier(.2,.7,.3,1), transform 0.95s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============================================
   PLACEHOLDERS
   ============================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      rgba(13,44,84,0.05) 0,
      rgba(13,44,84,0.05) 1px,
      transparent 1px, transparent 14px),
    var(--c-paper-cool);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  overflow: hidden;
}

/* ============================================
   HERO MARSEILLE — fond image vieux port
   ============================================ */
.hero-mars {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}
.hero-mars > .hero-mars__bg {
  position: absolute;
  inset: -12% 0;
  background-image: url('hero-equipe-web.jpg');
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
  will-change: transform;
}
.hero-mars::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,44,84,0.55) 0%, rgba(13,44,84,0.78) 70%, rgba(13,44,84,0.92) 100%);
  z-index: 1;
}
.hero-mars > * { position: relative; z-index: 2; }

/* ============================================
   LOGO BADGE — recree le logo dégradé vert
   ============================================ */
.logo-badge {
  display: inline-block;
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-green-light) 0%, var(--c-green) 60%, #2e8b57 100%);
  padding: 0;
  box-shadow: 0 10px 40px rgba(60, 179, 113, 0.3);
}
.logo-badge img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   PARTNER / LOGO STRIP
   ============================================ */
.logo-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 0;
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root {
    --fs-h1: 48px;
    --fs-h2: 36px;
    --fs-h3: 26px;
  }
  .nav__links { gap: var(--space-3); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__brand-text { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
  section { padding: var(--space-7) 0; }
}
