/* =========================================================
   Lavictoire Financière — redesign
   Palette drawn from the portrait: stone paper, ink, burgundy.
   ========================================================= */

:root {
  --paper: #f2eee7;
  --paper-2: #e8e2d7;
  --stone: #cfc7b9;
  --ink: #1a1714;
  --ink-2: #3b3631;
  --muted: #6f675d;
  --wine: #6b1d2b;
  --wine-2: #8a2a3b;
  --wine-soft: #f0dfe0;
  --line: rgba(26, 23, 20, .14);
  --line-light: rgba(242, 238, 231, .18);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #e6b7bd; }

.h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; }
.h2 em { color: var(--wine); }
.h2--light { color: var(--paper); }
.h2--light em { color: #e6b7bd; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); }

.link {
  font-weight: 600; text-decoration: none; color: var(--wine);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--wine); }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--line-light); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--wine); color: var(--paper);
  font: italic 22px/1 var(--serif); letter-spacing: -.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand__text span { font: italic 16px/1.1 var(--serif); color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__phone { color: var(--muted); font-variant-numeric: tabular-nums; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px);
  align-items: end; position: relative; z-index: 2;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
.hero__title { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; }
.hero__title em { color: var(--wine); }
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; color: var(--ink-2); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-bottom: clamp(40px, 9vw, 140px); }

.hero__portrait { margin: 0; position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero__portrait img {
  width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 12%;
  border-radius: 220px 220px var(--radius) var(--radius);
  background: var(--stone);
}
.tag {
  position: absolute; left: -36px; bottom: 56px;
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 20px 14px 16px; box-shadow: 0 20px 40px -24px rgba(26, 23, 20, .45);
}
.tag__num { font: italic 44px/1 var(--serif); color: var(--wine); }
.tag__label { font-size: 13px; line-height: 1.35; color: var(--ink-2); }

.wordmark {
  position: relative; z-index: 1; margin-top: clamp(-120px, -8vw, -40px);
  font-weight: 700; letter-spacing: -.06em; line-height: .78;
  font-size: clamp(90px, 23vw, 340px);
  color: transparent; -webkit-text-stroke: 1px rgba(26, 23, 20, .16);
  white-space: nowrap; text-align: center; user-select: none; pointer-events: none;
  transform: translateY(14%);
}

/* ---------- ribbon ---------- */
.ribbon { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; position: relative; z-index: 3; }
.ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon ul { display: flex; flex-shrink: 0; }
.ribbon li {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font: italic clamp(22px, 2.4vw, 30px)/1 var(--serif); white-space: nowrap;
}
.ribbon li::after { content: "✦"; font: normal 14px/1 var(--sans); color: #e6b7bd; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.services__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.services__intro { position: sticky; top: 120px; }
.services__intro .muted { margin: 26px 0 30px; max-width: 40ch; }

.svc { border-top: 1px solid var(--line); counter-reset: svc; }
.svc__item {
  display: grid; grid-template-columns: 64px 1fr 56px; gap: 20px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), background .35s var(--ease);
}
.svc__num { font: italic 30px/1 var(--serif); color: var(--wine); padding-top: 4px; }
.svc__body h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; }
.svc__body p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.svc__cta {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); text-decoration: none; font-size: 20px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.svc__item:hover .svc__cta, .svc__cta:focus-visible { background: var(--wine); border-color: var(--wine); color: #fff; transform: rotate(-45deg); }
@media (hover: hover) {
  .svc__item:hover { padding-inline: 20px; background: #fff; border-radius: var(--radius); border-bottom-color: transparent; }
}

/* ---------- quote ---------- */
.quote { background: var(--wine); color: var(--paper); padding-block: clamp(80px, 12vw, 170px); position: relative; overflow: hidden; }
.quote::before {
  content: "«"; position: absolute; right: -2vw; top: -14vw;
  font: italic clamp(260px, 40vw, 560px)/1 var(--serif); color: rgba(255, 255, 255, .06);
}
.quote blockquote { margin: 0; position: relative; }
.quote p { font: clamp(34px, 5.6vw, 76px)/1.08 var(--serif); letter-spacing: -.015em; max-width: 20ch; }
.quote p em { color: #f4c9ce; }
.quote footer { margin-top: 32px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e6b7bd; }

/* ---------- parcours ---------- */
.section-head { display: flex; flex-direction: column; margin-bottom: clamp(48px, 6vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat__num, .stat__plus { font-size: clamp(64px, 9vw, 128px); font-weight: 600; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat__plus { color: var(--wine); font-family: var(--serif); font-weight: 400; font-style: italic; }
.stat p { margin-top: 14px; color: var(--muted); max-width: 24ch; }

.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: clamp(56px, 7vw, 96px); position: relative;
}
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); opacity: .25; }
.timeline li { position: relative; padding: 36px 20px 0 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.timeline__step { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.timeline h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.15; }
.timeline p { margin-top: 6px; font: italic 18px/1.3 var(--serif); color: var(--ink-2); }
.timeline__now::before { background: var(--wine) !important; border-color: var(--wine) !important; box-shadow: 0 0 0 6px var(--wine-soft); }
.timeline__now h3 { color: var(--wine); }

/* ---------- about ---------- */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: 110px; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%;
  border-radius: var(--radius); filter: grayscale(.15) contrast(1.02);
}
.about__copy .h2 { margin-bottom: 34px; }
.about__copy p + p { margin-top: 20px; color: var(--ink-2); }

.ledger { margin: 48px 0 0; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); padding-top: 4px; }
.ledger dd { margin: 0; font-weight: 500; }

.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.values span { font: italic 24px/1 var(--serif); padding: 14px 22px; border-radius: 999px; border: 1px solid var(--ink); }
.values span:nth-child(2) { background: var(--ink); color: var(--paper); }
.values span:nth-child(3) { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(80px, 11vw, 150px); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }

.steps { margin: 40px 0 48px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 16px; color: rgba(242, 238, 231, .82); }
.steps span {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-light); font: italic 18px/1 var(--serif); color: #e6b7bd;
}

.coords { border-top: 1px solid var(--line-light); }
.coords li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.coords__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 238, 231, .55); padding-top: 5px; }
.coords a { text-decoration: none; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.coords a:hover { color: #e6b7bd; }

.form {
  background: var(--paper); color: var(--ink); border-radius: 24px;
  padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px;
}
.form__head { margin-bottom: 8px; }
.form__head h3 { font-size: clamp(26px, 2.6vw, 34px); }
.form__head p { margin-top: 8px; color: var(--wine); font-size: 14px; font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field em { font-size: 15px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
.field input[aria-invalid="true"] { border-color: #b3261e; }

.field--chips legend { margin-bottom: 10px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-block; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; transition: all .2s var(--ease);
}
.pick label:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.form__status { font-size: 14px; min-height: 1.2em; text-align: center; color: var(--ink-2); }
.form__status.is-error { color: #b3261e; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 0 0 36px; }
.footer__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 56px 0 40px; border-top: 1px solid var(--line-light);
}
.footer__big { font-size: clamp(44px, 9vw, 132px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.footer__big em { color: #e6b7bd; font-weight: 400; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding-top: 24px; border-top: 1px solid var(--line-light);
  font-size: 14px; color: rgba(242, 238, 231, .6);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 22px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__phone { display: block; color: var(--wine); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__actions { padding-bottom: 0; }
  .hero__portrait { max-width: 420px; justify-self: center; width: 100%; margin-top: 8px; }
  .tag { left: 12px; bottom: 24px; }
  .wordmark { margin-top: 0; }

  .services__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__intro, .about__photo { position: static; }
  .about__photo { max-width: 480px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text span { display: none; }
  .svc__item { grid-template-columns: 1fr 44px; gap: 14px; }
  .svc__num { grid-column: 1 / -1; font-size: 24px; }
  .svc__cta { width: 44px; height: 44px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 28px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 8px; }
  .timeline::before { display: block; left: 15px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline li { padding: 0 0 32px 40px; }
  .timeline li::before { left: 0; }
  .ledger div, .coords li { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .values span { font-size: 20px; padding: 12px 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__portrait img { aspect-ratio: 4 / 4.6; object-position: 50% 6%; border-radius: 180px 180px var(--radius) var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
