*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--nav-height);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; line-height: 1.15; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.section--dark h2 em { color: var(--accent-on-dark); }
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); max-width: 22ch; }
h3 { font-size: var(--size-h3); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--width-max); margin: 0 auto; padding: 0 48px; }

.label {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--size-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 18px;
}
.label::before { content: ""; display: block; width: 26px; height: 1px; background: currentColor; }
.label--dark { color: var(--accent-on-dark); }

/* [à confirmer] */
.tbc { background: var(--tbc-bg); color: var(--tbc-ink); padding: 0 0.25em; font-style: normal; }
.tbc--block { display: inline-block; margin-top: var(--space-2); padding: var(--space-1) var(--space-2); }

/* Boutons */
.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-ink);
  font: 700 0.81rem/1.2 var(--font-text);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 15px 30px;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-2px); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.btn--small { padding: 10px 22px; font-size: 0.75rem; }
.btn--block { display: block; width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; font: inherit; font-size: var(--size-small); cursor: pointer; }

/* Menu, identique au site */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-height); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-gold); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.nav__brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.nav__name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; color: var(--gold-text); letter-spacing: 0.05em; line-height: 1.1; }
.nav__sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(15, 28, 46, 0.5); }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-text); }
.nav__links a[aria-current="page"] { font-weight: 600; }

/* Hero */
.hero { padding: var(--space-5) 0 var(--space-6); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: start; }
.hero__text { padding-top: var(--space-3); }
.hero__lead { margin-top: var(--space-3); font-size: 1.05rem; color: var(--ink-soft); max-width: var(--width-read); }
.hero__facts { list-style: none; padding: 0; margin: var(--space-4) 0 0; border-top: var(--rule); }
.hero__facts li { padding: var(--space-2) 0; border-bottom: var(--rule); color: var(--ink-soft); }
.hero__facts strong { color: var(--ink); font-weight: 600; }

/* Calculateur */
.calc { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line-gold); border-radius: 20px; padding: var(--space-4); }
.calc__title { font-family: var(--font-title); font-size: 1.65rem; font-weight: 500; }
.calc__note { font-size: var(--size-small); color: var(--ink-soft); margin-top: var(--space-1); }
.calc__legal { font-size: 0.75rem; color: var(--ink-soft); margin-top: var(--space-3); line-height: 1.5; }
.calc__form { display: grid; gap: var(--space-2); }
.calc__form .calc__note { margin: 0 0 var(--space-1); }
.field { display: grid; gap: 0.35rem; font-size: var(--size-small); font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-soft); line-height: 1.4; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field input, .field select {
  width: 100%;
  font: 400 1rem var(--font-text);
  color: var(--ink);
  background: var(--field);
  border: var(--rule);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.field__unit { position: relative; display: block; }
.field__unit input { padding-right: 4.5rem; }
.field__unit em { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input[aria-invalid="true"] { border-color: #a33a1c; }
.calc__form .btn { margin-top: var(--space-1); }

.calc__result { display: grid; gap: var(--space-2); }
.result__big { font-family: var(--font-title); font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); color: var(--accent-text); line-height: 1.1; margin-top: var(--space-1); }
.result__sub { color: var(--ink-soft); }
.result__table { margin: 0; border-top: var(--rule); }
.result__table div { display: flex; justify-content: space-between; gap: var(--space-2); padding: 0.7rem 0; border-bottom: var(--rule); font-size: var(--size-small); }
.result__table dt { color: var(--ink-soft); }
.result__table dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* Sections */
.section { padding: var(--space-6) 0; }
.section--dark { background: var(--night); color: var(--night-ink); }
.section--deep { background: var(--paper-deep); }

.law { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); }
.law li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--night-line); }
.law__n { font-family: var(--font-title); color: var(--accent-on-dark); font-size: 1.4rem; font-weight: 600; }
.law p { color: var(--night-soft); margin-top: var(--space-1); }

.steps { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 12%; height: 1px; background: var(--line-gold); }
.steps li { position: relative; }
.steps__n { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-title); font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; position: relative; }
.steps p { color: var(--ink-soft); margin-top: var(--space-1); font-size: 0.98rem; }

.advisor { max-width: 46rem; }
.advisor__photo { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: var(--radius); }
.advisor h2 { max-width: 26ch; }
.advisor__text { margin-top: var(--space-3); color: var(--ink-soft); max-width: var(--width-read); }
.advisor__ids { margin-top: var(--space-3); font-size: var(--size-small); color: var(--ink-soft); }
.advisor__alt { margin-top: var(--space-2); }

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-5); }
.faq__list { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-3) var(--space-4) var(--space-3) 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: var(--space-3); font-family: var(--font-title); font-size: 1.6rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 var(--space-3); color: var(--ink-soft); max-width: var(--width-read); }

.relaunch { text-align: left; }
.relaunch .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

.steps__note { margin: var(--space-4) 0 0; max-width: var(--width-read); color: var(--ink-soft); font-size: var(--size-body); line-height: 1.7; }
.foot { background: var(--night-2); color: var(--night-soft); padding: var(--space-5) 0 var(--space-4); font-size: 0.78rem; line-height: 1.7; border-top: 1px solid rgba(29, 79, 140, 0.15); }
.foot a { color: var(--accent-on-dark); text-decoration: none; }
.foot strong { color: var(--night-ink); font-weight: 600; }
.foot .label { margin-bottom: var(--space-3); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); max-width: 62rem; }
.foot__grid p { margin: 0; }
.foot .tbc { color: var(--tbc-ink); }
.bar { background: var(--night); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.bar a { color: inherit; text-decoration: none; }
.bar__brand { font-family: var(--font-title); font-size: 1rem; color: var(--accent-on-dark); font-weight: 600; }

/* Mobile */
.nav__brand { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1280px) {
  .nav { gap: 20px; padding: 0 28px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 0.76rem; }
  .nav__sub { display: none; }
}
@media (max-width: 1200px) {
  .nav__links { display: none; }
}
@media (max-width: 960px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .wrap { padding: 0 20px; }
  .bar { padding: 28px 20px; flex-direction: column; text-align: center; }
  .foot__grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: var(--space-4); }
  .hero__grid, .faq, .advisor { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero__text { padding-top: 0; }
  .law { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
  .advisor__photo { max-width: 220px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--space-2); }
  .calc { padding: var(--space-3) var(--space-2); }
  .steps { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .steps li { padding: var(--space-3) 0; border-bottom: var(--rule); }
  .nav__name { font-size: 1rem; letter-spacing: 0.02em; }
  .nav .btn--small { white-space: nowrap; flex-shrink: 0; font-size: 0.62rem; padding: 8px 10px; letter-spacing: 0.03em; }
  .nav__sub { display: none; }
  .nav .btn--small { padding: 9px 14px; letter-spacing: 0.05em; }
  .hero__facts { display: none; }
  .section { padding: var(--space-5) 0; }
}

/* Prise de contact */
.lead { display: grid; gap: var(--space-2); border-top: var(--rule); padding-top: var(--space-3); margin-top: var(--space-1); }
.lead__title { font-family: var(--font-title); font-size: 1.4rem; font-weight: 600; }
.lead .calc__note { margin: 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: var(--size-small); color: var(--ink-soft); line-height: 1.45; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; accent-color: var(--accent); }
.consent input[aria-invalid="true"] { outline: 2px solid #a33a1c; outline-offset: 2px; }
.lead__error { font-size: var(--size-small); color: #a33a1c; font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Comparateur */
.compare__intro { margin-top: var(--space-3); color: var(--ink-soft); max-width: var(--width-read); }
.compare__frame { margin-top: var(--space-4); background: var(--card); border: 1px solid var(--line-gold); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.compare__frame iframe { display: block; width: 100%; height: 1100px; border: 0; }
@media (max-width: 560px) {
  .compare__frame { margin-left: calc(var(--space-2) * -1); margin-right: calc(var(--space-2) * -1); border-left: 0; border-right: 0; border-radius: 0; }
  .compare__frame iframe { height: 1300px; }
}

/* Chemin en autonomie */
.solo { border-top: var(--rule); padding-top: var(--space-2); font-size: var(--size-small); color: var(--ink-soft); display: grid; gap: 0.25rem; }
.solo .link { justify-self: start; color: var(--ink); }

/* Honoraires et petits dossiers */
.result__table .result__net dt, .result__table .result__net dd { color: var(--ink); font-weight: 700; }
.result__table .result__net dd { color: var(--accent-text); }
.small-case { background: var(--paper-deep); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; padding: var(--space-2); font-size: var(--size-small); }
.calc__result.is-small { display: flex; flex-direction: column; }
.calc__result.is-small .solo { order: 1; border-top: 0; padding-top: 0; }
.calc__result.is-small .lead { order: 2; }
.calc__result.is-small #r-back { order: 3; }
