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

/* ---------- 1. Hero « les deux mandats » ----------
   Both offers sit on one white ground with the same parts in the same type (title, gold rule, line, lead,
   button + link), the titles closed on one line. Her credentials run under both; the Lavaux band runs under both,
   never under text. The homepage holds only this: the detail lives on fiduciaires.html and entreprises.html.
   Under 768: one column, the fiduciaire offer first, a hairline between the two. */
.hero--home{ position:relative; display:grid; overflow:hidden;
  grid-template-columns:[full-start] var(--m) [c-start] minmax(0,1fr) [c-end] var(--m) [full-end];
  padding-top:48px; padding-bottom:var(--s4); background:var(--white);
  --fs-offer:clamp(2.375rem, 1.55rem + 3.4vw, 4rem); --lh-offer:48px; }
.hero--home > *{ grid-column:c-start / c-end; min-width:0; }
.hero--home > .guides,.hero--home > .regle{ grid-area:auto !important; }

.offer{ display:grid; align-content:start; }
.offer__title{ font:700 var(--fs-offer)/var(--lh-offer) var(--serif); letter-spacing:-.015em; color:var(--navy); }
.offer__dbl{ width:96px; margin-top:var(--s2); align-self:start; }
.offer__head{ margin-top:var(--s3); font:600 var(--fs-h3)/var(--lh-h3) var(--serif); color:var(--navy); max-width:26ch; text-wrap:balance; }
.offer__lead{ margin-top:var(--s2); font-size:var(--fs-lead); line-height:var(--lh-lead); color:var(--ink); max-width:46ch; }
.offer__cta{ margin-top:var(--s3); align-self:start; }
.offer--ent{ margin-top:var(--s6); padding-top:var(--s4); border-top:1px solid var(--line); }

.hero__base{ margin-top:var(--s6); padding-top:12px; border-top:1px solid var(--line); display:grid; row-gap:var(--s1); }
/* Her 20 Nov sentence (where she is based) opens the base, above the credentials, in body size and ink. */
.hero__loc{ color:var(--ink); max-width:62ch; text-wrap:balance; }
.hero__cred{ color:var(--ink); max-width:62ch; }
/* Each credential on its own line: no « · » left hanging and no line opening on a lowercase fragment. */
.hero__cred .cred__sep{ display:none; }
.hero__cred .cred__2{ display:block; }

.hero__band{ margin:var(--s4) 0 0; }
.hero__photo{ display:block; position:relative; overflow:hidden; aspect-ratio:16 / 9; background:var(--mist); }
.hero__photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 45%;
  transform:scale(1.06); transition:transform 2600ms var(--ease-out); }
html.js .hero--home.hero-go .hero__photo img,html.no-js .hero__photo img{ transform:none; }
.hero__credit{ margin-top:var(--s1); font-size:.75rem; line-height:24px; color:var(--muted); text-align:right; }

@media (min-width:600px){
  .hero--home{ padding-top:72px; --lh-offer:60px; }
}

/* >= 768: ONE grid, 12 columns (max 78 px) + bleed tracks. Each offer is a subgrid over five shared rows, so the
   two titles end on one line and every rule, line, lead and button row starts level across the gutter. */
@media (min-width:768px){
  .hero--home{
    grid-template-columns:[full-start] minmax(calc(var(--m) - var(--gutter)),1fr) repeat(12, minmax(0,78px)) minmax(calc(var(--m) - var(--gutter)),1fr) [full-end];
    grid-template-rows:[title] auto [rule] auto [head] auto [lead] auto [cta] auto [base] auto [band] auto;
    column-gap:var(--gutter);
    padding-top:96px; padding-bottom:var(--s6); }
  .hero--home > *{ grid-column:2 / -2; }
  .offer{ grid-row:title / base; }
  .offer--fid{ grid-column:2 / 8; }
  .offer--ent{ grid-column:8 / 14; margin-top:0; padding-top:0; border-top:0; }
  /* the hairline between the two offers, on the middle gutter */
  .offer--ent::before{ content:""; position:absolute; left:calc(-1 * var(--gutter) / 2); top:0; bottom:0; width:1px; background:var(--line); }
  @supports (grid-template-rows:subgrid){
    .offer{ display:grid; grid-template-rows:subgrid; }
    .offer__title{ align-self:end; }       /* « …fiduciaires » and « Entreprises » close on the same line */
  }
  .hero__base{ grid-row:base; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:var(--s1) var(--s4); }
  .hero__loc{ flex-basis:100%; max-width:none; }   /* its own row; credentials and triad share the next one */
  .hero__band{ grid-row:band; }
  .hero__photo{ aspect-ratio:3 / 1; }
  .hero__photo img{ object-position:50% 50%; }
}
@media (min-width:1024px){
  .hero--home{ --lh-offer:72px; }
}

@media (prefers-reduced-motion:reduce){
  .hero__photo img{ transform:none !important; transition:none !important; }
}
