/* Man & Co · tarifs.html only (loaded after base.css)
   ../../design.md § 10 tarifs: short white hero, then ONE position since her 18 Nov corrections (« le tarif concerne
   les deux propositions »): « Le relevé d'honoraires » (navy) across the container, no audience label, no second panel.
   The gold double rule under the fee figures is the page's closing total. No counter, no sum. */

/* ---------- 1. Hero (short, white, normal levelling only) ---------- */
.tf-hero{ padding-top:72px; padding-bottom:36px; }
.tf-hero__dbl{ width:96px; margin-top:var(--s2); }
.tf-hero__lead{ margin-top:var(--s3); }
@media (min-width:768px){ .tf-hero{ padding-top:96px; padding-bottom:48px; } }

/* ---------- 2. The position ---------- */
.tf-pos{ padding-top:var(--s2); }
.tf-grid{ row-gap:var(--s2); align-items:start; }
.tf-panel{ position:relative; padding:var(--s3) var(--s2); }
.tf-panel > *{ position:relative; z-index:1; }
@media (min-width:600px){ .tf-panel{ padding:var(--s4); } }

/* Panels settle onto the shared top baseline by transform only (no .35 ghosting: their rows ghost instead). */
html.js [data-level] .tf-panel.lv{ opacity:1; }

/* The section guides sit behind the opaque panels, so each panel flashes its own guides while it levels,
   on the site's column pitch, then goes fully to 0 once the section closes (never ruled paper). */
.tf-panel::before{ content:""; position:absolute; z-index:0; inset:0; pointer-events:none; opacity:0;
  background-image:linear-gradient(to bottom, var(--guide-flash) 0 1px, transparent 1px),
                   linear-gradient(to right, var(--guide-flash) 0 1px, transparent 1px);
  background-size:100% var(--row), calc(var(--col) + var(--gutter)) 100%;
  transition:opacity 600ms ease; }
.fee::before{
  background-image:linear-gradient(to bottom, var(--guide-flash-inv) 0 1px, transparent 1px),
                   linear-gradient(to right, var(--guide-flash-inv) 0 1px, transparent 1px); }
@media (max-width:767.98px){
  .tf-panel::before{ background-image:linear-gradient(to bottom, var(--guide-flash) 0 1px, transparent 1px); background-size:100% var(--row); }
  .fee::before{ background-image:linear-gradient(to bottom, var(--guide-flash-inv) 0 1px, transparent 1px); }
}
html.js .is-level .tf-panel::before{ opacity:1; transition-duration:140ms; }
html.js .is-closed .tf-panel::before{ opacity:0; transition-duration:600ms; }

.tf-panel :where(h2){ margin-top:var(--s2); }
.tf-panel > h2:first-child{ margin-top:0; }   /* no eyebrow above it since 18 Nov */

/* ---------- 2a. « Le relevé d'honoraires » (navy) ---------- */
.fee{ --fee-fig:120px; --fee-unit:84px; background:var(--navy); color:var(--on-navy-2); }
.fee__table{ width:100%; margin-top:var(--s4); border-collapse:collapse; border-spacing:0; table-layout:fixed; }
.fee__row > *{ padding:12px 0; vertical-align:baseline; box-shadow:inset 0 -1px 0 var(--line-inv); }   /* hairline as a shadow: pitch stays 72 */
.fee__row:last-child > *{ box-shadow:none; }
.fee__label{ text-align:left; font:500 1.125rem/24px var(--sans); color:var(--white); }
.fee__table col.fee__c-fig{ width:var(--fee-fig); }
.fee__table col.fee__c-unit{ width:var(--fee-unit); }
.fee__fig{ text-align:right; color:var(--white);
  font:700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/48px var(--serif); letter-spacing:0;
  font-variant-numeric:tabular-nums lining-nums; }
.fee__unit{ padding-left:12px; text-align:left; white-space:nowrap;
  font:600 .875rem/24px var(--sans); letter-spacing:.04em; color:var(--name-rev); }
@media (min-width:1024px){
  .fee__row > *{ padding-block:0; }
  .fee__fig{ line-height:72px; }               /* row pitch 72 px */
}
@media (hover:hover) and (pointer:fine){
  .fee__row > *{ transition:box-shadow var(--t-ui) var(--ease-out); }
  .fee__row:hover > *{ box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--white) 40%, transparent); }
}
/* Under 600: label and unit share the first line, the figure sits right-aligned under them.
   Explicit ARIA roles in the markup keep the table semantics when the rows become grids. */
@media (max-width:599.98px){
  .fee__table,.fee__table tbody{ display:block; }
  .fee__row{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; column-gap:12px;
    padding-block:12px; box-shadow:inset 0 -1px 0 var(--line-inv); }
  .fee__row:last-child{ box-shadow:none; }
  .fee__row > *{ padding:0; box-shadow:none !important; }
  .fee__label{ grid-column:1; grid-row:1; }
  .fee__unit{ grid-column:2; grid-row:1; padding-left:0; text-align:right; }
  .fee__fig{ grid-column:1 / -1; grid-row:2; }
}

/* The closing total: the gold double rule across the figure + unit columns, drawing right to left. */
.fee__dbl{ width:calc(var(--fee-fig) + var(--fee-unit)); margin-top:var(--s1); }
@media (max-width:599.98px){ .fee__dbl{ width:100%; } }

.fee__after{ margin-top:var(--s3); }
.fee__terms li{ color:var(--on-navy-2); }
.fee__cta{ margin-top:var(--s4); }

/* ---------- 2b. >= 1024: the figures on the left, the terms and the button on the right, one top line ---------- */
@media (min-width:1024px){
  .fee{ grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); column-gap:var(--s8); align-items:start; }
  .fee > h2,.fee > .fee__table,.fee > .fee__dbl{ grid-column:1; }
  .fee > .fee__after{ grid-column:2; grid-row:2 / span 2; margin-top:var(--s4); padding-top:12px; }
}

/* ---------- 3. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .tf-panel::before{ display:none; }
  .fee__row > *{ transition:none !important; }
}
