/* Man & Co · contact.html, merci.html, mentions-legales.html (loaded after base.css)
   1 page hero (shared by the three pages) · 2 contact hero cross-alignment · 3 form « La pièce à remplir »
   4 merci / mentions-légales single position. */

/* ---------- 1. Page hero: white, 96 / 48 ---------- */
.page-hero{ padding-top:var(--s6); padding-bottom:var(--s4); }
@media (min-width:768px){ .page-hero{ padding-top:var(--s8); } }

/* ---------- 2. Contact hero ---------- */
/* Under 1024: stacked. >= 1024: H1 cols 1-8, the intro line in cols 9-12 on the H1's first baseline. */
.ct-hero__h1{ margin-top:var(--s2); }
.ct-hero__sub{ margin-top:var(--s1); }
.ct-hero__intro{ margin-top:var(--s3); max-width:34ch; }
.ct-hero__dbl{ width:96px; margin-top:var(--s3); }
@media (min-width:1024px){
  .ct-hero{ grid-template-rows:auto auto auto auto; }
  .ct-hero__eyebrow{ grid-row:1; grid-column:1 / 9; }
  .ct-hero__h1{ grid-row:2; grid-column:1 / 9; }
  .ct-hero__intro{ grid-row:2; grid-column:9 / -1; margin-top:var(--s2); max-width:none; }
  .ct-hero__sub{ grid-row:3; grid-column:1 / 9; }
  .ct-hero__dbl{ grid-row:4; grid-column:1 / 9; }
}

/* ---------- 3. The form ---------- */
/* Three positions inside one <form>: the choice, the fields, the send total. Tight spacing so it reads as one sheet. */
.ct-sec{ padding-block:var(--s4) 0; }
.ct-sec--choice{ padding-top:var(--s2); }
.ct-sec--fields{ padding-top:var(--s2); }
.ct-sec--send{ padding-top:var(--s4); padding-bottom:var(--section-y); }
.ct-col{ display:grid; gap:var(--s4); align-content:start; }
.ct-fields{ gap:var(--s3); padding-top:var(--s4); border-top:1px solid var(--line); }

/* Choice: the reminder is first in the DOM (so main.js finds it before the radios), shown under the group. */
.choice__body{ display:flex; flex-direction:column; }
.choice__cards{ order:1; }
.choice__row{ order:2; }
.choice__body > .reminder{ order:3; }
.reminder:not(:empty){ padding-left:12px; box-shadow:inset 2px 0 0 var(--gold); }
.choice__card{ transition-property:transform, border-color, box-shadow, background-color; }
@media (hover:hover) and (pointer:fine){
  .choice__row:hover{ box-shadow:inset 0 -2px 0 var(--navy); }
  .choice__card:not(:has(input:checked)):hover{ transform:translateY(calc(6px * var(--k))); }
}
.choice__row{ transition:box-shadow var(--t-ui) var(--ease-out); }
.choice__row:has(input:checked){ box-shadow:inset 0 -2px 0 var(--navy); }
.choice > .field__err{ margin-top:var(--s1); }

@media (max-width:767.98px){ .choice__card{ min-height:96px; padding:var(--s2); } }
/* >= 768: the label's text sits on the field's text line (field: 48 px box, 24 px line, 12 px above it) */
@media (min-width:768px){ .ct-fields .field__label{ padding-top:12px; } }

/* Consent: in the field column (>= 768), link on its own line under it */
.consent{ color:var(--navy); }
.consent__text{ font-size:1rem; line-height:24px; }
.consent__more{ margin-top:0; }
.consent__more .lnk{ font-size:.875rem; }
@media (min-width:768px){
  .field--consent{ row-gap:var(--s1); }
  .field--consent > *{ grid-column:4 / -1; }
}

/* Send: the total of the form. From 768 it sits in the field column (cols 4-10 of the form), right-aligned. */
.ct-total{ margin-top:0; }
.ct-total .btn{ min-width:240px; }
@media (max-width:599.98px){ .ct-total .btn{ width:100%; } }
@media (min-width:768px){
  .ct-total{ width:calc(7*var(--col) + 6*var(--gutter)); max-width:100%; margin-left:auto; text-align:right; }
  .ct-total > p{ margin-left:auto; }
  .ct-total .dbl{ width:calc(4*var(--col) + 3*var(--gutter)); margin-left:auto; transform-origin:right center; }
}
.form-note{ max-width:44ch; }
.form-errors{ scroll-margin-top:calc(var(--header) + 24px); }

/* ---------- 4. Single-position pages (merci, mentions légales) ---------- */
.page-solo{ min-height:calc(72svh - var(--header)); padding-bottom:var(--section-y); }
.solo > .eyebrow + .solo__h1{ margin-top:var(--s2); }
.solo__dbl{ width:96px; margin-top:var(--s3); }
.solo__dbl--wide{ width:min(100%, calc(4*var(--col) + 3*var(--gutter))); margin-top:var(--s4); }
.solo__back{ margin-top:var(--s4); }
.solo__prose{ margin-top:var(--s4); }
.solo__prose li + li{ margin-top:var(--s1); }

/* 768-1023: the form takes the full width (cols 11-12 would only leave a gap at this size) */
@media (min-width:768px) and (max-width:1023.98px){ .ct-form .c1-10{ grid-column:1 / -1; } }
@media (max-width:1023.98px){ .solo__dbl--wide{ width:50%; } }
