/* =========================================================
   Velora Management — ivoire, encre & champagne
   ========================================================= */
:root {
  --ivory: #f6f2ec;
  --paper: #fbf9f5;
  --sand: #efe9e0;
  --line: #ddd4c7;
  --line-soft: #e8e1d6;
  --ink: #141210;
  --ink-2: #2b2724;
  --stone: #6c665e;
  --taupe: #958c80;
  --gold: #a4875a;
  --gold-soft: #c7b08a;

  --dark-text: #efe9e0;
  --dark-muted: #a39a8e;
  --dark-line: rgba(239, 233, 224, .14);

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ivory); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
section[id], main[id] { scroll-margin-top: var(--header-h); }
em { font-style: italic; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- typographie ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--stone);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.kicker--light { color: var(--dark-muted); }

.title {
  margin-top: 22px;
  font: 400 clamp(38px, 4.8vw, 62px)/1.06 var(--serif);
  letter-spacing: -.01em; color: var(--ink);
}
.title em, .hero__title em { color: var(--gold); font-weight: 400; }
.title--light { color: var(--dark-text); }
.title--light em { color: var(--gold-soft); }

.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 72px; }
.section-head__lead { max-width: 580px; margin-top: 22px; color: var(--stone); }
.section-head__lead--left { text-align: left; }

/* ---------- boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 19px 36px; border-radius: 1px;
  font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--sm { padding: 14px 22px; font-size: 11px; }
.btn--full { width: 100%; }
.btn--dark { background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); }
.btn--dark:hover { background: var(--gold); border-color: var(--gold); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 15px/1.4 var(--sans); color: var(--ink);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s;
}
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.header.is-scrolled {
  background: rgba(246, 242, 236, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wordmark__name { font: 500 30px/1 var(--serif); letter-spacing: .01em; }
.wordmark__sub { margin-top: 4px; font: 400 8.5px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; padding-left: .42em; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14px; font-weight: 400; color: var(--ink-2); padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; padding: 8px 32px 32px;
  background: var(--ivory); box-shadow: 0 1px 0 var(--line-soft);
}
.mobile-menu a:not(.btn) { padding: 14px 0; font: 400 26px/1.2 var(--serif); color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 0; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1100px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(199, 176, 138, .16), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(520px, 86vw); margin-top: 18px; }
.hero__title {
  margin-top: 8px;
  font: 400 clamp(32px, 4.2vw, 54px)/1.12 var(--serif); letter-spacing: -.005em; color: var(--ink);
}
.hero__lead { max-width: 620px; margin-top: 26px; font-size: 18px; color: var(--stone); }
.hero__ctas { margin-top: 42px; display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.assurances {
  margin-top: 96px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.assurances li {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 12px; font-size: 14px; letter-spacing: .02em; color: var(--ink-2);
}
.assurances li + li { border-left: 1px solid var(--line); }
.assurances__mark { font: italic 400 18px/1 var(--serif); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 140px 0; }
.section--soft { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--dark-text); }

/* ---------- l'agence ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; align-items: end; }
.manifesto .kicker { grid-column: 1 / -1; }
.manifesto .title { margin-top: 0; }
.manifesto__text p { color: var(--dark-muted); }
.manifesto__text p + p { margin-top: 18px; }
.pillars { margin-top: 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.pillar { padding-top: 32px; border-top: 1px solid var(--dark-line); position: relative; }
.pillar::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--gold-soft); }
.pillar__num { font: italic 400 16px/1 var(--serif); color: var(--gold-soft); }
.pillar h3 { margin-top: 18px; font: 400 32px/1.15 var(--serif); color: var(--dark-text); }
.pillar p { margin-top: 12px; font-size: 15.5px; color: var(--dark-muted); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 80px; }
.service {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 6px 8px;
  padding: 40px 0 44px; border-top: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__num { grid-row: span 2; font: italic 400 20px/1.4 var(--serif); color: var(--gold); }
.service__title { font: 400 30px/1.2 var(--serif); color: var(--ink); }
.service__text { color: var(--stone); font-size: 16px; }

/* ---------- contrôle ---------- */
.control { display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; max-width: 1000px; margin: 0 auto; }
.control__col { background: var(--paper); border: 1px solid var(--line-soft); padding: 48px 44px; }
.control__title { font: 400 28px/1.2 var(--serif); color: var(--ink); }
.control__list { margin-top: 26px; }
.control__list li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line-soft); font-size: 16px; }
.control__list li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 12px; height: 1px; background: var(--gold); }
.control__sep span { font: italic 400 72px/1 var(--serif); color: var(--gold); }

/* ---------- méthode ---------- */
.method { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start; }
.method__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.method__intro .btn { margin-top: 36px; }
.steps { border-left: 1px solid var(--line); margin-left: 24px; }
.step { position: relative; display: grid; grid-template-columns: 1fr; padding: 0 0 64px 64px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: -24px; top: -6px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ivory); border: 1px solid var(--line);
  font: italic 400 18px/1 var(--serif); color: var(--gold);
  transition: border-color .5s, background .5s, color .5s;
}
.step:hover .step__num { border-color: var(--gold); background: var(--gold); color: var(--ivory); }
.step h3 { font: 400 30px/1.2 var(--serif); color: var(--ink); }
.step p { margin-top: 10px; color: var(--stone); max-width: 460px; }
.step__time { display: inline-block; margin-top: 16px; font: 500 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* ---------- rémunération ---------- */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.term {
  background: var(--paper); border: 1px solid var(--line-soft); padding: 40px 30px 44px;
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.term:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.term h3 { font: 400 26px/1.2 var(--serif); color: var(--ink); }
.term h3::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 22px; background: var(--gold); }
.term p { margin-top: 20px; font-size: 15.5px; color: var(--stone); }

/* ---------- confidentialité ---------- */
.privacy { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start; }
.privacy__lead { margin-top: 24px; color: var(--dark-muted); max-width: 400px; }
.privacy__list li { padding: 30px 0; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.privacy__list li:last-child { border-bottom: 1px solid var(--dark-line); }
.privacy__list h3 { font: 400 24px/1.25 var(--serif); color: var(--dark-text); }
.privacy__list p { font-size: 15.5px; color: var(--dark-muted); }

/* ---------- profil ---------- */
.criteria { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.criterion { padding: 44px 32px; text-align: center; }
.criterion + .criterion { border-left: 1px solid var(--line); }
.criterion__mark { display: block; width: 9px; height: 9px; margin: 0 auto; border: 1px solid var(--gold); transform: rotate(45deg); }
.criterion h3 { margin-top: 24px; font: 400 28px/1.2 var(--serif); color: var(--ink); }
.criterion p { margin-top: 10px; font-size: 15px; color: var(--stone); }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 100px; align-items: start; }
.faq-layout__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.faq-layout__intro .link-arrow { margin-top: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; text-align: left;
  font: 400 23px/1.3 var(--serif); color: var(--ink); transition: color .3s;
}
.faq__q:hover { color: var(--gold); }
.faq__icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform .5s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 30px 0; color: var(--stone); }
.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- candidature ---------- */
.apply-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start; }
.next-steps { margin-top: 40px; border-top: 1px solid var(--line); }
.next-steps li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.next-steps span { font: italic 400 20px/1 var(--serif); color: var(--gold); min-width: 14px; }
.apply { position: relative; background: var(--paper); border: 1px solid var(--line-soft); padding: 52px 48px 48px; overflow: hidden; }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; align-items: end; }
.field--full { grid-column: 1 / -1; }
.field:not(.choices) > label, .choices legend {
  display: block; font: 500 10.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--stone);
}
.field:not(.choices) > label span { color: var(--gold); }
.field input, .field textarea {
  width: 100%; margin-top: 8px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; outline: none; resize: vertical;
  font: 400 17px/1.5 var(--sans); color: var(--ink);
  transition: border-color .4s var(--ease);
}
.field input::placeholder { color: var(--taupe); font-weight: 300; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-error input { border-color: #a6402f; }
.phone { display: flex; align-items: flex-end; gap: 14px; margin-top: 8px; }
.phone input { margin-top: 0; min-width: 0; }
.phone__code {
  position: relative; flex-shrink: 0; padding: 10px 22px 12px 0;
  border-bottom: 1px solid var(--line); transition: border-color .4s var(--ease);
  font: 400 17px/1.5 var(--sans); color: var(--ink); white-space: nowrap;
}
.phone__code::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border: solid var(--stone); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none;
}
.phone__code:hover, .phone__code:focus-within { border-color: var(--ink); }
.phone__code:has(select:focus-visible) { outline: 1px solid var(--gold); outline-offset: 4px; }
.phone__flag { font-size: 18px; }
.phone__code select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  font-size: 16px; border: 0; -webkit-appearance: none; appearance: none;
}
.field.is-error .phone input { border-color: #a6402f; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.choices { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { width: 100%; margin-bottom: 14px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
  transition: border-color .3s, background .3s, color .3s;
}
.choices label:hover span { border-color: var(--taupe); }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.choices input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--stone); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { position: relative; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--taupe); transition: background .3s, border-color .3s; }
.consent__box::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--ivory); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.consent input:checked + .consent__box { background: var(--ink); border-color: var(--ink); }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent__box { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent.is-error .consent__box { border-color: #a6402f; }
.apply__error { margin-top: 24px; font-size: 14px; color: #a6402f; }
.apply .btn--full { margin-top: 36px; }
.apply .btn.is-loading { opacity: .6; pointer-events: none; }
.apply__done {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 48px; background: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.apply.is-sent .apply__done { opacity: 1; visibility: visible; }
.apply__done h3 { margin-top: 22px; font: 400 40px/1.15 var(--serif); color: var(--ink); max-width: 420px; }
.apply__done h3 em { color: var(--gold); }
.apply__done p:last-child { margin-top: 18px; color: var(--stone); max-width: 400px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--dark-muted); padding: 96px 0 36px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; flex-wrap: wrap; }
.footer__logo { width: 260px; }
.footer__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 12px; }
.footer__cols h4 { margin-bottom: 6px; font: 500 10.5px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.footer__cols a { font-size: 15px; color: var(--dark-text); opacity: .8; transition: opacity .3s; }
.footer__cols a:hover { opacity: 1; }
.footer__bottom {
  margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 12.5px;
}
.footer__bottom a:hover { color: var(--dark-text); }

/* ---------- apparition douce ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .criterion:nth-child(3) { border-left: 0; }
  .criterion:nth-child(n+3) { border-top: 1px solid var(--line); }
  .method, .privacy, .faq-layout, .apply-layout { gap: 64px; }
}
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .menu-open .mobile-menu { display: flex; }
  .menu-open .header { background: var(--ivory); }
  .section { padding: 100px 0; }
  .assurances { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .assurances li:nth-child(3) { border-left: 0; }
  .assurances li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .manifesto, .method, .privacy, .faq-layout, .apply-layout { grid-template-columns: 1fr; }
  .method__intro, .faq-layout__intro { position: static; }
  .pillars { grid-template-columns: 1fr; gap: 40px; margin-top: 72px; }
  .services { grid-template-columns: 1fr; }
  .control { grid-template-columns: 1fr; gap: 24px; }
  .control__sep { text-align: center; }
  .control__sep span { font-size: 56px; }
  .privacy__list li { grid-template-columns: 1fr; gap: 8px; }
  .section-head { margin-bottom: 56px; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .mobile-menu { padding: 8px 20px 28px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__lead { font-size: 16.5px; }
  .hero__ctas { flex-direction: column; gap: 24px; }
  .hero__ctas .btn { width: 100%; }
  .btn { padding: 18px 20px; letter-spacing: .18em; }
  .kicker { letter-spacing: .26em; }
  .hero .kicker::before { display: none; }
  .assurances { grid-template-columns: 1fr; }
  .assurances li { justify-content: flex-start; padding: 18px 4px; border-left: 0 !important; }
  .assurances li + li { border-top: 1px solid var(--line); }
  .section { padding: 84px 0; }
  .terms, .criteria { grid-template-columns: 1fr; }
  .criterion { border-left: 0 !important; padding: 36px 8px; }
  .criterion + .criterion { border-top: 1px solid var(--line); }
  .control__col { padding: 36px 26px; }
  .service { grid-template-columns: 40px 1fr; padding: 32px 0 34px; }
  .service__title, .step h3 { font-size: 26px; }
  .step { padding-left: 44px; }
  .faq__q { font-size: 20px; padding: 24px 0; }
  .faq__a p { padding-right: 0; }
  .apply { padding: 36px 22px 28px; }
  .apply__grid { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
