/* Man & Co · fiduciaires.html only (loaded after base.css) */

/* ---------- 1. Hero: her flyer cover, navy full bleed ---------- */
.hero--fid{ position:relative; overflow:hidden; background:var(--navy); color:var(--on-navy-2); padding-block:48px 72px; }
@media (min-width:600px){ .hero--fid{ padding-top:72px; } }
@media (min-width:1024px){ .hero--fid{ padding-block:96px 72px; } }
.fh{ row-gap:var(--s6); }
.fh__h1{ margin-top:var(--s2); color:var(--white); }
.fh__dbl{ width:96px; margin-top:var(--s2); }
.fh__lead{ margin-top:var(--s3); color:var(--on-navy-2); }
.fh__cta{ margin-top:var(--s4); }
@media (min-width:768px){ .fh__h1{ max-width:15ch; } }
@media (min-width:1024px){
  .fh{ align-items:end; }
  .fh__main{ grid-column:1 / 9; }
  .fh__h1{ max-width:none; }
  .toc{ grid-column:9 / -1; }
}

/* In-page contents of the mandate (her flyer's panels, in order). */
.toc ul{ border-top:1px solid var(--line-inv); }
.toc a{ display:grid; grid-template-columns:36px 1fr 16px; align-items:center; column-gap:var(--s1); min-height:48px;
  border-bottom:1px solid var(--line-inv); color:var(--white); font:500 1rem/24px var(--sans); text-decoration:none;
  transition:box-shadow var(--t-ui) var(--ease-out); }
.toc__n{ color:var(--gold); font:600 .8125rem/24px var(--sans); letter-spacing:.12em; font-variant-numeric:tabular-nums lining-nums; }
.toc a:focus-visible{ outline:2px solid var(--gold); outline-offset:-2px; }
@media (hover:hover) and (pointer:fine){
  .toc a:hover{ box-shadow:inset 0 -2px 0 var(--white); }
  .toc a:hover .ar{ transform:translateY(3px); }
}

/* ---------- 2. « 01 · Ce que l’on fait »: six rows, two columns of three ---------- */
@media (min-width:1024px){
  .fid-six{ display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3, auto); grid-auto-flow:column; column-gap:var(--gutter); }
  .fid-six > li:nth-child(4){ border-top:1px solid var(--line); }
}
/* The exclusion is the section's total: set apart by a hairline, full strength, never softened. */
.total--excl{ border-top:1px solid var(--line); padding-top:var(--s2); }
.total--excl .total__line{ text-align:left; }
/* The label reads inline, in the same line, so her sentence stays one sentence. */
.excl__label{ display:inline; font-family:var(--sans); font-weight:600; font-size:inherit; line-height:inherit; letter-spacing:0; text-transform:none; color:var(--navy); }

/* ---------- 3. « 02 · La méthode »: the staircase ---------- */
/* Each step carries its own segment of the shared top rule (extended across the gutter), so while the steps
   stand as a staircase the rule is broken into steps, and once they level it reads as one line. */
.stairs-sec{ --t-stagger:60ms; }
.stairs{ display:grid; row-gap:0; }
.stair{ position:relative; display:grid; grid-template-columns:48px 1fr; column-gap:var(--s2); align-items:baseline;
  padding-block:var(--s2); }
.stair::before{ content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--line-inv); }
.stair:last-child{ border-bottom:1px solid var(--line-inv); }
.stair__n{ grid-row:1 / span 2; font:700 clamp(2rem, 1.6rem + 1.6vw, 3rem)/48px var(--serif); color:var(--white);
  font-variant-numeric:tabular-nums lining-nums; }
.stair__t{ grid-column:2; color:var(--white); }
.stair__d{ grid-column:2; margin-top:var(--s1); color:var(--on-navy-2); }
@media (min-width:768px){
  .stairs{ grid-template-columns:repeat(3, minmax(0,1fr)); column-gap:var(--gutter); row-gap:var(--s4); }
  .stair{ grid-template-columns:none; grid-template-rows:auto auto 1fr; padding-block:var(--s2) 0; }
  .stair::before{ right:calc(-1 * var(--gutter)); }
  .stair:nth-child(3n)::before{ right:0; }
  .stair:last-child{ border-bottom:0; }
  .stair__n{ grid-row:auto; }
  .stair__t,.stair__d{ grid-column:auto; }
  .stair__t{ margin-top:var(--s1); }
}
@media (min-width:1024px){
  /* six columns of 2/12 on one top rule; subgrid keeps numerals, titles and lines on shared rows */
  .stairs{ grid-template-columns:repeat(6, minmax(0,1fr)); grid-template-rows:auto auto auto; row-gap:0; }
  .stair{ grid-row:span 3; grid-template-rows:subgrid; row-gap:0; }
  .stair:nth-child(3n)::before{ right:calc(-1 * var(--gutter)); }
  .stair:last-child::before{ right:0; }
}

/* ---------- 4. « 03 · Ce que vous recevez »: four rows, two columns ---------- */
@media (min-width:768px){
  .fid-four{ display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(2, auto); grid-auto-flow:column; column-gap:var(--gutter); }
  .fid-four > li:nth-child(3){ border-top:1px solid var(--line); }
}

/* ---------- 5. « Le cadre du mandat »: term | text on one baseline ---------- */
.term{ padding-block:var(--s2); border-bottom:1px solid var(--line); row-gap:var(--s1); }
.term:first-child{ border-top:1px solid var(--line); }
.term dt{ font-weight:600; color:var(--navy); }
.term dd{ max-width:66ch; }
@media (min-width:768px){
  .term dt{ grid-column:1 / 5; }
  .term dd{ grid-column:5 / -1; }
}
.terms__close{ margin-top:var(--s2); }
.terms__close .dbl{ width:50%; }
@media (min-width:1024px){ .terms__close .dbl{ grid-column:9 / -1; width:auto; } }

/* ---------- 6. « La mandataire »: name and credentials share the first baseline ---------- */
.mand{ row-gap:var(--s4); }
.mand__name{ margin-top:var(--s2); }
.mand__title{ margin-top:var(--s1); font-weight:600; color:var(--navy); }
.mand__dbl{ margin-top:var(--s2); width:50%; }
@media (min-width:1024px){
  /* the credentials span a trailing 1fr row, so their height never stretches the name and title rows */
  .mand{ grid-template-rows:auto auto auto 1fr; row-gap:0; align-items:baseline; }
  .mand__head{ display:contents; }
  .mand__head > .eyebrow{ grid-column:1 / -1; grid-row:1; }
  .mand__name{ grid-column:1 / 6; grid-row:2; align-self:baseline; }
  .mand__title{ grid-column:1 / 6; grid-row:3; margin-top:var(--s1); }
  .mand__body{ grid-column:7 / -1; grid-row:2 / span 3; align-self:baseline; }
  .mand__body .rows--first > li:first-child{ border-top:0; padding-top:0; }
  .mand__body .rows > li:first-child::before{ top:8px; }
  .mand__body .rows > li:first-child::after{ top:10px; }
  .mand__dbl{ width:calc(4*var(--col) + 3*var(--gutter)); margin-left:auto; transform-origin:right center; }
}

/* ---------- 7. CTA band [navy] ---------- */
.fcta__g{ row-gap:var(--s2); }
.fcta__p{ color:var(--on-navy-2); max-width:46ch; }
.fcta__total{ margin-top:var(--s4); }
@media (min-width:768px){
  .fcta__h{ grid-column:1 / 8; }
  .fcta__p{ grid-column:8 / -1; }
}
@media (min-width:1024px){ .fcta__row{ justify-content:flex-end; } }
