/* Juste Valeur Apports — feuille de style
   Direction : cabinet institutionnel. Fond ivoire, texte et aplats bleu nuit, filets fins,
   détails bronze. Titres en Cormorant Garamond, textes en Source Sans 3.
   Compositions éditoriales asymétriques, aucune ombre, aucun dégradé, rayons nuls.
   Thème clair unique, choisi délibérément (identité ivoire). */
:root {
  --ivory: #f7f4ee;
  --paper: #fcfbf8;
  --sand: #efe9dd;
  --line: #ddd6c9;
  --line-strong: #c4b9a6;
  --night: #14233a;
  --night-2: #22385a;
  --ink: #1d2633;
  --ink-2: #3d4654;
  --muted: #646a72;
  --bronze: #a07f52;
  --bronze-ink: #7a5f37;
  --on-night: #f3efe6;
  --on-night-muted: #b9bfc9;
  --ok: #2f6b4a;
  --ok-bg: #e6eee7;
  --ko: #93392c;
  --ko-bg: #f4e5e0;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ivory); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--night); color: var(--on-night); }

a { color: var(--night); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--bronze-ink); text-decoration-color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- Typographie ---------- */
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--night); margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3vw, 2.45rem); line-height: 1.12; }
h3, h4 { font-family: var(--sans); font-weight: 600; color: var(--ink); margin: 0; font-size: 1.06rem; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.93rem; }
.label, .eyebrow {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bronze-ink); display: block;
}
.ref { font-size: 0.84em; color: var(--bronze-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ref::before { content: "("; } .ref::after { content: ")"; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.65rem, 2.6vw, 2.05rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.15em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--bronze); }
.placeholder { background: var(--sand); color: var(--bronze-ink); padding: 0 6px; font-size: 0.92em; }

/* ---------- Structure ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); border-top-color: transparent !important; }
.section--soft { background: var(--paper); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 720px; }
.stack { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

/* Colonnes asymétriques : titre à gauche, contenu à droite */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 104px); align-items: start; }
.split-head { display: grid; gap: 16px; position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-head { position: static; } }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 0.94rem; letter-spacing: 0.01em;
  padding: 15px 26px; border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--night); color: var(--on-night); }
.btn--primary:hover { background: var(--night-2); color: var(--on-night); }
.btn--ghost { border-color: var(--night); color: var(--night); background: transparent; }
.btn--ghost:hover { background: var(--night); color: var(--on-night); }
.btn--light { background: var(--on-night); color: var(--night); }
.btn--light:hover { background: #fff; color: var(--night); }
.btn .arrow { font-size: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.link-arrow { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--night); display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.link-arrow:hover { border-bottom-color: var(--bronze); color: var(--bronze-ink); }
.link-arrow .arrow { transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.sr-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--night); color: var(--on-night); padding: 10px 16px; font-weight: 600; }
.sr-skip:focus { left: 16px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--night); color: var(--on-night-muted); font-size: 0.82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 9px; flex-wrap: wrap; }
.topbar a { color: var(--on-night); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--bronze); }
@media (max-width: 640px) { .topbar .topbar-text { display: none; } .topbar .wrap { justify-content: flex-end; } }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ivory); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--night); flex-shrink: 0; line-height: 1; }
.logo:hover { color: var(--night); }
.logo-text { display: grid; gap: 6px; }
.logo-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: 0.005em; color: var(--night); }
.logo-text span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-ink); padding-top: 6px; border-top: 1px solid var(--bronze); justify-self: start; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button {
  font-family: var(--sans); font-size: 0.94rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 13px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative;
  transition: color .2s var(--ease);
}
.nav > a:not(.btn)::after, .nav .dd > button::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:not(.btn):hover::after, .nav > a[aria-current="page"]::after, .nav .dd > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav > a:hover, .nav .dd > button:hover { color: var(--night); }
.nav > a[aria-current="page"] { color: var(--night); }
.nav .chev { font-size: 0.7em; color: var(--bronze-ink); }
.nav > a.btn { margin-left: 16px; padding: 12px 20px; background: var(--night); color: var(--on-night); }
.nav > a.btn:hover { background: var(--night-2); color: var(--on-night); }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 22px); left: -24px; width: 600px; background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--night); padding: 28px 32px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px;
}
.dd-panel a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.dd-panel a:hover { color: var(--bronze-ink); padding-left: 4px; }
.dd-panel .dd-title { grid-column: 1 / -1; margin-bottom: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--night); padding: 10px 16px; color: var(--night); cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 72px; }
  .logo-text strong { font-size: 1.35rem; }
  .nav {
    position: fixed; inset: 0; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 96px) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto; z-index: 40;
  }
  .nav > a, .nav .dd > button { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--night); padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav > a:not(.btn)::after, .nav .dd > button::after { display: none; }
  .dd-panel { position: static; width: auto; border: 0; background: transparent; padding: 4px 0 12px; grid-template-columns: 1fr; }
  .dd-panel .dd-title { display: none; }
  .dd-panel a { font-size: 1rem; padding: 10px 0 10px 4px; }
  .nav > a.btn { margin: 28px 0 0; font-family: var(--sans); font-size: 1rem; padding: 16px; border: 0; justify-content: center; }
  .site-header .wrap { position: relative; z-index: 45; }
}
@media (min-width: 1081px) { .nav[hidden] { display: flex !important; } }
@media (max-width: 400px) { .logo-text strong { font-size: 1.2rem; } .logo-text span { letter-spacing: 0.18em; } }

/* ---------- Accueil : en-tête ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 104px); padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); align-items: end; }
.hero-main { display: grid; gap: 26px; }
.hero h1 { max-width: 19ch; }
.hero .lead + .lead { font-size: 1.02rem; color: var(--muted); }
.hero .btn-row { margin-top: 10px; }
.brief { border-left: 1px solid var(--line-strong); padding-left: clamp(24px, 3vw, 40px); display: grid; gap: 0; margin: 0; }
.brief > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.brief > div:first-child { padding-top: 0; }
.brief > div:last-child { border-bottom: 0; padding-bottom: 0; }
.brief dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-ink); }
.brief dd { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.brief dd b { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--night); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .brief { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
  .brief > div:first-child { padding-top: 0; }
}

/* ---------- En-tête des pages internes ---------- */
.page-hero { border-bottom: 1px solid var(--line); background: var(--ivory); }
.page-hero .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 88px); align-items: end; }
.page-hero .crumbs, .page-hero .label { grid-column: 1 / -1; }
.page-hero .label { margin-top: 12px; }
.page-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); max-width: 24ch; hyphens: manual; }
.page-hero .lead { font-size: 1.06rem; padding-bottom: 6px; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: 0.84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--night); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* ---------- Index des opérations ---------- */
.op-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night); }
.op-list li { border-bottom: 1px solid var(--line); }
.op-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 24px; gap: 8px 28px; align-items: baseline; padding: 20px 0; text-decoration: none; color: var(--ink); transition: padding .25s var(--ease), color .2s var(--ease); }
.op-list a:hover { padding-left: 10px; color: var(--night); }
.op-list .op-title { font-family: var(--serif); font-size: 1.42rem; font-weight: 500; color: var(--night); line-height: 1.2; }
.op-list .op-desc { color: var(--muted); font-size: 0.96rem; }
.op-list .arrow { color: var(--bronze); justify-self: end; transition: transform .25s var(--ease); }
.op-list a:hover .arrow { transform: translateX(4px); }
@media (max-width: 640px) { .op-list a { grid-template-columns: minmax(0, 1fr) 20px; } .op-list .op-desc { grid-column: 1; grid-row: 2; } .op-list .arrow { grid-row: 1 / span 2; align-self: center; } }

/* ---------- Principes (liste éditoriale sans icônes) ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.principle { padding: 26px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.principle h3 { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--night); }
.principle p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Anciennes grilles conservées pour compatibilité */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.feature { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Barème des honoraires ---------- */
.bareme { width: 100%; border-collapse: collapse; background: transparent; }
.bareme caption { text-align: left; padding-bottom: 14px; }
.bareme th, .bareme td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; background: transparent; }
.bareme thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-ink); padding: 0 0 12px; border-bottom: 1px solid var(--night); }
.bareme thead th:last-child, .bareme td.fee { text-align: right; }
.bareme tbody th { font-weight: 400; color: var(--ink); font-size: 1.02rem; padding-right: 24px; }
.bareme tbody th small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.bareme td.fee { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--night); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.bareme td.fee small { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0.06em; }
.bareme td.fee.quote { font-size: 1.35rem; font-style: italic; font-weight: 500; }
.bareme-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Tableaux génériques ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--night); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--bronze-ink); font-weight: 600; }

/* ---------- Étapes (séquences réelles) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, upper-roman) "."; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--bronze-ink); line-height: 1.25; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Encadrés ---------- */
.callout { border-left: 2px solid var(--bronze); padding: 4px 0 4px 22px; color: var(--ink-2); max-width: 66ch; }
.callout strong { color: var(--night); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--night); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.3; color: var(--night); transition: color .2s var(--ease); }
.faq summary:hover { color: var(--bronze-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1px; background: var(--bronze-ink); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Bandeau final ---------- */
.cta-band { background: var(--night); color: var(--on-night); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 { color: var(--on-night); }
.cta-band p { color: var(--on-night-muted); margin-top: 14px; max-width: 56ch; }
.cta-band .cta-actions { display: grid; gap: 16px; justify-items: start; border-left: 1px solid rgba(244, 245, 247, .2); padding-left: 32px; }
.cta-band .cta-actions a:not(.btn) { color: var(--on-night); text-decoration-color: var(--bronze); font-size: 0.95rem; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .cta-actions { border-left: 0; padding-left: 0; } }

/* ---------- Simulateur (accueil) ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.ledger { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); display: grid; gap: 0; font-size: 0.98rem; }
.ledger-head { font-size: 0.72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-ink); padding-bottom: 12px; border-bottom: 1px solid var(--night); }
.ledger-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-row span { flex: 0 1 auto; color: var(--ink-2); }
.ledger-row i { flex: 1 1 auto; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 16px; }
.ledger-row b { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.ledger-row.total b { font-family: var(--serif); font-size: 1.3rem; color: var(--night); }
.ledger .verdict { margin-top: 18px; justify-self: start; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

.verdict { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; padding: 9px 14px; border: 1px solid currentColor; }
.verdict::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: 0 0 7px; }
.verdict--ok { color: var(--ok); background: var(--ok-bg); }
.verdict--ko { color: var(--ko); background: var(--ko-bg); }

/* ---------- Groupement : fiches des commissaires ---------- */
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--night); }
.member { padding: 24px 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.member-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--night); line-height: 1.2; }
.member-role { font-size: 0.72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-ink); }
.member address { font-style: normal; color: var(--ink-2); font-size: 0.96rem; margin-top: 6px; }
.member .member-reg { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .members { grid-template-columns: 1fr; } }

/* ---------- L'essentiel (texte de référence) ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.note { display: grid; gap: 10px; align-content: start; }
.note h3 { font-size: 1rem; padding-top: 14px; border-top: 1px solid var(--bronze); }
.note p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 960px) { .notes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .notes { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mise en page avec colonne latérale ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.aside { position: sticky; top: 120px; display: grid; gap: 28px; }
.aside-box { border-top: 1px solid var(--night); padding-top: 20px; display: grid; gap: 12px; }
.aside-box--tint { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--night); padding: 24px; }
.aside-box h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-ink); }
.aside-box .big { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.05; color: var(--night); font-variant-numeric: tabular-nums lining-nums; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.95rem; transition: color .2s var(--ease); }
.aside-box li a:hover { color: var(--bronze-ink); }
.aside-box .btn { justify-self: stretch; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Formulaires ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 26px; }
.form-section { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--night); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > legend, .field-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); padding: 0; }
.field .hint { font-size: 0.86rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 11px 2px; min-width: 0;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
textarea { border: 1px solid var(--line-strong); padding: 12px 14px; min-height: 130px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--night); box-shadow: inset 0 -1px 0 var(--night); }
textarea:focus { box-shadow: inset 0 0 0 1px var(--night); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 0.94rem; background: var(--paper); color: var(--ink-2); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.choice span:hover { border-color: var(--night); color: var(--night); }
.choice input:checked + span { background: var(--night); border-color: var(--night); color: var(--on-night); }
.choice input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--night); flex-shrink: 0; }
.form-error { color: var(--ko); font-size: 0.93rem; border-left: 2px solid var(--ko); padding-left: 12px; }
.success { border-top: 2px solid var(--ok); background: var(--paper); padding: 28px; display: grid; gap: 10px; }
.success h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--night); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .panel { padding: 22px 18px; margin-left: -4px; margin-right: -4px; } .form .btn { width: 100%; } }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .sim { grid-template-columns: 1fr; } }
.apports { display: grid; gap: 6px; }
.apport-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 14px; align-items: end; }
.apport-row button { height: 42px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.3rem; transition: color .2s var(--ease); }
.apport-row button:hover { color: var(--ko); }
.add-apport { justify-self: start; margin-top: 6px; background: none; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--night); padding: 4px 0; font-family: var(--sans); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: border-color .2s var(--ease); }
.add-apport:hover { border-color: var(--bronze); }
.result { position: sticky; top: 120px; display: grid; gap: 20px; border-top: 2px solid var(--night); padding-top: 24px; }
.result-head { display: grid; gap: 14px; }
.result-head .verdict { justify-self: start; }
.conds { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.conds li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-2); }
.conds .mark { width: 20px; height: 20px; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; margin-top: 2px; border: 1px solid currentColor; }
.conds .yes { color: var(--ok); }
.conds .no { color: var(--ko); }
.conds .na { color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night); }
.totals div { padding: 14px 12px 4px 0; display: grid; gap: 4px; }
.totals div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.totals small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--bronze-ink); font-weight: 600; }
.totals b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--night); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 520px) { .totals { grid-template-columns: 1fr; } .totals div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .apport-row { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) 32px; gap: 10px; } }
.result .ref::before, .result .ref::after { content: none; }

/* ---------- Villes ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 44px; }
.region h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--bronze-ink); padding-bottom: 10px; border-bottom: 1px solid var(--night); margin-bottom: 4px; }
.region ul { list-style: none; padding: 0; margin: 0; }
.region li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); font-size: 0.93rem; }
.site-footer .wrap { padding-block: 72px 32px; display: grid; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer h4 { color: var(--on-night); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--bronze); }
.site-footer .logo-text strong { color: var(--on-night); }
.site-footer .logo-text span { color: var(--on-night-muted); border-top-color: var(--bronze); }
.footer-about { display: grid; gap: 22px; align-content: start; }
.footer-about p { max-width: 42ch; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(244, 245, 247, .16); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.84rem; }
.footer-cities { font-size: 0.88rem; line-height: 1.9; }

/* ---------- Logo à carrés ---------- */
.logo { align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex: 0 0 38px; color: var(--night); }
.logo-text { gap: 3px; }
.logo-text strong { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.005em; line-height: 1.1; }
.logo-text span { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; color: var(--muted); padding-top: 0; border-top: 0; }
.site-footer .logo-mark { color: var(--on-night); }
.site-footer .logo-text span { color: var(--on-night-muted); }
@media (max-width: 1080px) { .logo-text strong { font-size: 1rem; } }
@media (max-width: 400px) { .logo-mark { width: 32px; height: 32px; flex-basis: 32px; } .logo-text strong { font-size: 0.95rem; } .logo-text span { letter-spacing: 0.12em; } }

/* ---------- Réponse directe et date de mise à jour ---------- */
.page-hero-side { display: grid; gap: 16px; align-content: end; }
.page-hero-side .lead { padding-bottom: 0; }
.direct-answer { font-size: 1.08rem; line-height: 1.6; color: var(--ink); max-width: 70ch; border-left: 2px solid var(--bronze); padding: 2px 0 2px 18px; }
.updated { font-size: 0.84rem; color: var(--muted); }

/* ---------- Rubrique Articles ---------- */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night); max-width: 900px; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: grid; gap: 6px; padding: 26px 0; text-decoration: none; color: var(--ink); transition: padding .25s var(--ease); }
.article-list a:hover { padding-left: 8px; }
.article-list a:hover .article-title { color: var(--bronze-ink); }
.article-date { font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-ink); }
.article-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.25; color: var(--night); transition: color .2s var(--ease); }
.article-desc { color: var(--muted); font-size: 0.98rem; }
.article-empty { display: grid; gap: 16px; max-width: 760px; }
.article-empty h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.article-ops { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-ops a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink-2); font-size: 0.94rem; transition: border-color .2s var(--ease), color .2s var(--ease); }
.article-ops a:hover { border-color: var(--night); color: var(--night); }

/* Ajustements : menu sur une ligne, en-tête des pages aligné en haut */
.nav > a, .nav .dd > button { white-space: nowrap; padding-left: 11px; padding-right: 11px; font-size: 0.92rem; }
.nav > a:not(.btn)::after, .nav .dd > button::after { left: 11px; right: 11px; }
.nav > a.btn { white-space: nowrap; margin-left: 12px; padding: 12px 18px; }
@media (max-width: 1240px) and (min-width: 1081px) { .logo-text span { display: none; } .nav > a, .nav .dd > button { padding-left: 9px; padding-right: 9px; } }
.page-hero .wrap { align-items: start; }
.page-hero h1 { align-self: start; }

/* Logo en bleu marine */
.logo-mark .lm-fill { fill: var(--night); }
.logo-mark .lm-core { fill: #4a6a96; }
.site-footer .logo-mark .lm-fill { fill: var(--on-night); }
.site-footer .logo-mark .lm-core { fill: #8fa6c4; }

/* Une seule police sur tout le site : celle du logo (Source Sans 3) */
:root { --serif: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif; }
h1, h2 { font-weight: 600; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.05rem, 3.7vw, 2.95rem); line-height: 1.12; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.15rem); line-height: 1.18; }
.page-hero h1 { font-size: clamp(1.95rem, 3.3vw, 2.6rem); }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.principle h3 { font-size: 1.1rem; }
.op-list .op-title { font-size: 1.15rem; font-weight: 600; }
.faq summary { font-size: 1.08rem; }
.member-name { font-size: 1.25rem; }
.form-section { font-size: 1.3rem; font-weight: 600; }
.success h3 { font-size: 1.35rem; font-weight: 600; }
.article-title { font-size: 1.28rem; font-weight: 600; }
.article-empty h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.bareme td.fee { font-size: 1.6rem; font-weight: 700; }
.bareme td.fee.quote { font-size: 1.2rem; font-weight: 600; }
.aside-box .big { font-size: 1.85rem; font-weight: 700; }
.brief dd b { font-size: 1.3rem; font-weight: 700; }
.totals b, .ledger-row.total b { font-size: 1.2rem; font-weight: 700; }
.steps li::before { font-size: 1.1rem; }
@media (max-width: 1080px) { .nav > a, .nav .dd > button { font-size: 1.25rem; font-weight: 600; } }

/* Fonds gris clair et blanc cassé à la place du beige */
:root {
  --ivory: #f4f5f7;
  --paper: #fbfbfc;
  --sand: #e9ecf0;
  --line: #dde1e6;
  --line-strong: #c3cad3;
  --on-night: #f4f5f7;
  --on-night-muted: #b4bdca;
  --bronze: #8a9bb0;
  --bronze-ink: #4a5f7a;
}

/* Accueil : titre sur toute la largeur, plus large et moins haut */
.hero .wrap { align-items: start; row-gap: clamp(28px, 4vw, 48px); }
.hero-head { grid-column: 1 / -1; display: grid; gap: 20px; }
.hero-head h1 { max-width: 24ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
.hero .brief { align-self: start; }
@media (max-width: 900px) { .hero-head h1 { font-size: clamp(2rem, 7vw, 2.6rem); } }
.hero-head h1 { max-width: none; text-wrap: pretty; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.hero .wrap { padding-top: clamp(40px, 5.5vw, 76px); }

/* Menu déroulant « Le groupement » */
.dd-panel--small { width: 300px; grid-template-columns: 1fr; padding: 18px 24px 16px; }
@media (max-width: 1080px) { .dd-panel--small { width: auto; padding: 4px 0 12px; } }
