/* ==========================================================================
   Contact page only (13 Nov 2026). Linked from bodies/contact.html.
   Everything else comes from sync.css (hx- classes). All classes here are
   prefixed ct- so nothing else on the site can pick them up.

   Colours: the site's own tokens, plus two greys and one text colour that
   were computed for WCAG AA on white / paper / cream:
     #4B5551 body grey (sync.css)        7.0:1 on cream, 7.5:1 on paper
     #858E8B field and chip outlines     3.4:1 on white (non-text, needs 3:1)
     #8A4B2A error text (a dark clay)    6.7:1 on white, 6.5:1 on paper
   ======================================================================= */

/* hero photo, with its credit underneath */
.ct-photo{margin:0}
.ct-photo .hx-ph img{object-position:50% 35%}
.ct-photo figcaption{margin-top:14px;font:400 13.5px/1.5 var(--sans);color:#4B5551;max-width:60ch}

/* the anchors the hero buttons jump to land below the fixed bar */
#associes,#formulaire,#ecrire{scroll-margin-top:96px}

/* ---- the contact section: words and people on the left, form on the right */
.ct-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-areas:"head card" "people card" "info card";grid-template-rows:auto auto 1fr;
  column-gap:clamp(40px,5.5vw,88px);align-items:start}
.ct-head{grid-area:head}
.ct-people{grid-area:people}
.ct-info{grid-area:info}
.ct-card{grid-area:card}
.ct-head .hx-lead{max-width:34ch}

/* small mono label, the homepage's .hx-name at label size */
.ct-label{font:500 12.5px/1.2 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--teal-txt);margin:0 0 14px}

/* the three associates */
.ct-people{margin-top:44px}
.ct-people ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ct-person{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;
  padding:10px 12px 10px 10px;border-radius:22px;background:var(--paper);border:1px solid var(--hair);
  text-decoration:none;color:var(--ink);transition:border-color .3s}
.ct-person img{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block;background:#E8E2D4}
.ct-who b{display:block;font:700 21px/1.15 var(--rec);letter-spacing:-.02em;color:var(--ink)}
.ct-who small{display:block;margin-top:5px;font:400 14.5px/1.3 var(--sans);color:#4B5551}
.ct-go{display:inline-flex;align-items:center;gap:12px;font:500 14.5px/1 var(--sans);color:var(--teal-txt)}
.ct-go i{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:#04231F;
  transition:transform .3s cubic-bezier(.2,.7,.3,1)}
.ct-go svg{width:17px;height:17px;fill:currentColor}
.ct-person:hover{border-color:var(--teal)}
.ct-person:hover .ct-go i{transform:translateX(4px)}
.ct-person:focus-visible{outline:2px solid var(--teal-txt);outline-offset:3px}

/* address and social links */
.ct-info{display:grid;grid-template-columns:1fr auto;gap:28px 40px;margin-top:36px;padding-top:30px;border-top:1px solid var(--hair)}
.ct-info address{font:400 16px/1.6 var(--sans);font-style:normal;color:var(--ink)}
.ct-soc{display:flex;gap:10px}
.ct-soc a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #858E8B;
  color:var(--ink);background:var(--paper);transition:background .3s,border-color .3s,color .3s}
.ct-soc a:hover{background:var(--teal-deep);border-color:var(--teal-deep);color:var(--paper)}
.ct-soc a:focus-visible{outline:2px solid var(--teal-txt);outline-offset:3px}
.ct-soc svg{width:18px;height:18px;fill:currentColor}
.ct-soc .ig svg{fill:none;stroke:currentColor;stroke-width:1.8}
.ct-soc .ig .dot{fill:currentColor;stroke:none}

/* ---- the form card */
.ct-card{background:var(--paper);border:1px solid rgba(20,32,30,.14);border-radius:28px;padding:clamp(24px,3.2vw,44px)}
.ct-form{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}
.ct-form[hidden]{display:none}
.ct-title,.ct-req{grid-column:1/-1}
.ct-card .hx-h3{font-size:clamp(25px,2.1vw,31px)}
.ct-req{margin:-10px 0 4px;font:400 14px/1.5 var(--sans);color:#4B5551}

.ct-f{display:flex;flex-direction:column;gap:8px;min-width:0}
.ct-f.full{grid-column:1/-1}
.ct-f label,.ct-chips legend{font:500 15px/1.3 var(--sans);color:var(--ink)}
.ct-f label b{color:var(--teal-txt);font-weight:600}
.ct-f input,.ct-f textarea{box-sizing:border-box;width:100%;margin:0;font:400 16px/1.4 var(--sans);color:var(--ink);
  background:#fff;border:1px solid #858E8B;border-radius:14px;padding:13px 16px;
  transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.ct-f textarea{min-height:148px;resize:vertical}
.ct-f input:hover,.ct-f textarea:hover{border-color:var(--ink)}
.ct-f input:focus,.ct-f textarea:focus{outline:none;border-color:var(--teal-txt);box-shadow:0 0 0 3px rgba(46,178,164,.32)}
.ct-hint{margin:0;font:400 13.5px/1.5 var(--sans);color:#4B5551}

/* errors: a dark clay, never red; an icon so colour isn't the only signal */
.ct-f [aria-invalid="true"]{border-color:#8A4B2A;border-width:2px;padding:12px 15px}
.ct-err{display:flex;gap:8px;align-items:flex-start;margin:0;font:500 14px/1.4 var(--sans);color:#8A4B2A}
.ct-err::before{content:"!";flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;
  background:#8A4B2A;color:#fff;font:700 12px/18px var(--sans);text-align:center}
.ct-err[hidden]{display:none}

/* market chips: real checkboxes, drawn as pills */
.ct-chips{grid-column:1/-1;border:0;margin:0;padding:0;min-width:0}
.ct-chips legend{padding:0;margin:0 0 10px}
.ct-chips legend small{font-weight:400;font-size:14px;color:#4B5551}
.ct-chiprow{display:flex;flex-wrap:wrap;gap:8px}
.ct-chip{position:relative;display:inline-flex}
.ct-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ct-chip span{display:inline-flex;align-items:center;gap:8px;padding:11px 17px;border-radius:999px;
  border:1px solid #858E8B;background:#fff;font:500 14.5px/1 var(--sans);color:var(--ink);
  transition:background .2s,border-color .2s,color .2s}
.ct-chip svg{display:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-chip:hover span{border-color:var(--ink)}
.ct-chip input:checked+span{background:var(--teal-deep);border-color:var(--teal-deep);color:var(--paper)}
.ct-chip input:checked+span svg{display:block}
.ct-chip input:focus-visible+span{outline:2px solid var(--teal-txt);outline-offset:2px}

.ct-consent{grid-column:1/-1;margin:2px 0 0;font:400 13.5px/1.55 var(--sans);color:#4B5551}
.ct-consent a{color:var(--teal-txt);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.ct-consent{display:flex;flex-direction:column;gap:6px}
.ct-check{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.ct-check input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--teal-deep);cursor:pointer}
.ct-check input[aria-invalid]{outline:2px solid #8A4B2A;outline-offset:2px}
.cf-slot{grid-column:1/-1}
.cf-slot:empty{display:none}
.ct-fail{grid-column:1/-1;margin:0;font:500 14.5px/1.5 var(--sans);color:#8A4B2A}
.ct-fail[hidden]{display:none}
.ct-send{grid-column:1/-1}
.ct-send .btn,.ct-done .btn{cursor:pointer}
.ct-send .btn[disabled]{opacity:.7;cursor:progress}

/* spam trap, off screen */
.ct-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* text for screen readers only */
.ct-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* thank-you state */
.ct-done{padding:clamp(8px,2vw,24px) 0;outline:none}
.ct-done[hidden]{display:none}
/* the panel takes focus so screen readers read it; it is not a control, so no ring */
.ct-done:focus,.ct-done:focus-visible{outline:none}
.ct-tick{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--teal);color:#04231F;margin-bottom:22px}
.ct-tick svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ct-done p{margin:14px 0 0;font:400 16px/1.6 var(--sans);color:#4B5551;max-width:44ch}
.ct-done p b{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.ct-done .btn{margin-top:28px}

/* ---- tablet and phone: one column, the form straight after the heading */
@media(max-width:900px){
  .ct-grid{grid-template-columns:1fr;grid-template-areas:"head" "card" "people" "info";grid-template-rows:none}
  .ct-card{margin-top:32px}
  .ct-people{margin-top:48px}
}
@media(max-width:600px){
  .ct-form{grid-template-columns:1fr;gap:18px}
  .ct-card{border-radius:22px;padding:24px 18px 26px}
  .ct-person{grid-template-columns:56px minmax(0,1fr) auto;gap:14px}
  .ct-person img{width:56px;height:56px}
  .ct-who b{font-size:19px}
  .ct-gotx{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ct-info{grid-template-columns:1fr}
  .ct-send .btn{width:100%;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){
  .ct-person,.ct-go i,.ct-chip span,.ct-soc a,.ct-f input,.ct-f textarea{transition:none}
  .ct-person:hover .ct-go i{transform:none}
}
