/* Agalma Partners — charte issue du deck Agalma Fund V13
   Typo : Lexend (Light pour le texte courant et les grands titres, SemiBold pour l'emphase)
   Couleurs : noir, blanc, rouge d'accent, dégradé pêche → bleu */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000;
  --text: #1b1b1f;
  --muted: #5d6068;
  --line: #d9dbe0;
  --paper: #fff;
  --red: #f01e1e;
  --peach: #fece98;
  --coral: #fbbd9a;
  --lilac: #a1b0ed;
  --blue: #84bdff;
  --chip: #e6eef9;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 12px 40px rgba(20, 30, 60, .08);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Échelle typographique (ratio ≈ 1,25 — resserrée pour un meilleur équilibre) */
  --fs-hero: clamp(2.5rem, 1.2rem + 5.2vw, 5rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2.1vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong, b { font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand img { width: clamp(170px, 18vw, 220px); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: .9375rem; font-weight: 400; }
.nav a { text-decoration: none; padding: 6px 0; position: relative; }
.nav a:not(.pill)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.pill):hover::after { transform: scaleX(1); }
.pill, .nav a.pill {
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 20px;
  font-weight: 500; transition: background .2s ease;
}
.pill:hover { background: #26262b; }
.nav-toggle { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 17px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Motifs communs ---------- */
.kicker, .eyebrow {
  font-size: var(--fs-small); font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
.kicker { position: relative; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.kicker::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: var(--ink); }
.kicker b { font-weight: 600; }

h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.18; letter-spacing: -.015em; }
h2 strong { font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.lead.small { font-size: 1.0625rem; color: var(--muted); }

.section { padding-block: clamp(72px, 9vw, 128px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #fff url("/assets/img/hero-gradient.webp") center / cover no-repeat;
  margin-top: -73px; padding-top: 73px;
}
.hero::after { /* fondu vers le blanc de la section suivante */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.hero-inner { padding-block: clamp(80px, 12vw, 168px) clamp(96px, 13vw, 184px); max-width: calc(980px + 2 * var(--gutter)); margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; gap: .7em; align-items: center; margin-bottom: 28px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 3px; background: var(--red); }
.eyebrow::before { margin-right: .6em; }
.eyebrow::after { margin-left: .6em; }
h1 {
  font-size: var(--fs-hero); font-weight: 300; line-height: 1.04; letter-spacing: -.03em;
}
h1 strong { display: block; font-weight: 600; }
.hero .lead { max-width: 40em; margin: 32px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ---------- Mise en page « split » (métiers, à propos) ---------- */
.split-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.split-aside { position: sticky; top: 112px; }
.item { padding-block: 36px; border-bottom: 1px solid var(--line); position: relative; }
.item::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: var(--ink); }
.item:first-child { padding-top: 0; }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:last-child::after { display: none; }
.item h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 14px; letter-spacing: -.015em; }
.item p { max-width: 62ch; }

/* ---------- Vision ---------- */
.tinted {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60% 70% at 0% 100%, rgba(254, 206, 152, .55), transparent 70%),
    radial-gradient(55% 75% at 100% 0%, rgba(132, 189, 255, .45), transparent 70%),
    radial-gradient(40% 50% at 55% 110%, rgba(161, 176, 237, .35), transparent 70%),
    #fbfbfd;
}
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .kicker { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: rgba(255, 255, 255, .92); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 3vw, 40px); }
.cards .card h3 { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; min-height: 5.2em; display: flex; align-items: flex-end; }
.cards .card h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: var(--ink); }
.card p { font-size: 1rem; color: #2c2d33; }

/* ---------- Principes ---------- */
.principles-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 36px); }
.principles-list li { position: relative; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: clamp(28px, 4vw, 56px); }
.principles-list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--ink); }
.principles-list .num { font-size: var(--fs-small); font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.principles-list .word { font-size: clamp(1.375rem, .6rem + 1.75vw, 2.125rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.principles .kicker { border-bottom: 0; padding-bottom: 0; margin-bottom: clamp(36px, 5vw, 64px); }
.principles .kicker::after { display: none; }

/* ---------- À propos ---------- */
.about { background: #f7f8fa; }
.portrait { margin: 0; max-width: 400px; }
.portrait img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.portrait figcaption { margin-top: 20px; display: grid; gap: 2px; }
.portrait .name { font-weight: 600; font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.portrait .role { color: var(--muted); font-size: .9375rem; }
.bio h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: 28px; }
.bio p { max-width: 62ch; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 60% at 100% 100%, rgba(132, 189, 255, .5), transparent 70%),
    radial-gradient(45% 60% at 0% 0%, rgba(254, 206, 152, .5), transparent 70%),
    #fff;
}
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-aside h2 { margin-bottom: 20px; }
.form { display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field label { font-size: var(--fs-small); font-weight: 500; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; display: block; padding: 0; }
.opt { color: var(--muted); font-weight: 300; letter-spacing: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { width: 100%; margin-bottom: 12px; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .9375rem; font-weight: 400; background: #fff; transition: all .15s ease;
}
.choices label:hover span { border-color: var(--ink); }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 300; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(132, 189, 255, .45); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fineprint { font-size: .8125rem; color: var(--muted); margin: 0; max-width: 36ch; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 56px; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.site-footer img { width: 200px; filter: invert(1); }
.site-footer p { margin: 0; }
.site-footer .muted { color: #a7a9b2; font-size: var(--fs-small); }
.site-footer a { text-underline-offset: 3px; }

/* ---------- Pages simples (merci, 404) ---------- */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; background: #fff url("/assets/img/hero-gradient.webp") center / cover no-repeat; padding: 40px var(--gutter); }
.simple img { width: 220px; margin: 0 auto 48px; }
.simple h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
.simple p { margin: 24px auto 36px; max-width: 34em; font-size: var(--fs-lead); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split-inner, .contact-inner { grid-template-columns: 1fr; }
  .principles-list { grid-template-columns: 1fr; }
  .principles-list li { grid-template-columns: 56px 1fr; align-items: baseline; gap: 0; padding-block: 20px; }
  .principles-list .word { font-size: 1.625rem; }
  .split-aside { position: static; }
  .cards { grid-template-columns: 1fr; }
  .cards .card h3 { min-height: 0; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); font-size: 1.0625rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav a.pill { margin-top: 10px; padding: 12px 22px; }
  .eyebrow { font-size: .75rem; letter-spacing: .1em; gap: .5em; flex-wrap: wrap; justify-content: center; }
  .eyebrow::before { flex: 0 0 100%; width: auto; height: 3px; margin: 0 0 14px; background: linear-gradient(var(--red), var(--red)) center / 36px 3px no-repeat; }
  .eyebrow::after { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
