/* =========================================================
   Page « Contact » — complements style.css + about.css
   ========================================================= */

/* ============ Hero : knight's route ============ */
.chero { position: relative; height: calc(100vh - 44px); height: calc(100svh - 44px); min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 0 var(--gutter); overflow: hidden; }
.chero__copy { position: relative; z-index: 2; }
.chero__copy .ahero__title { font-size: clamp(48px, 7vw, 88px); }
.chero__copy .ahero__sub { margin-left: 0; }
.chero__copy .hero__ctas { justify-content: flex-start; }
.chero__stage { display: flex; justify-content: center; perspective: 1400px; }
.kboard { --sz: min(64vh, 540px, 86vw); position: relative; width: var(--sz); height: var(--sz); display: grid; grid-template-columns: repeat(8, 1fr); border-radius: 18px; overflow: hidden; transform-style: preserve-3d; }
.kboard .sq { background: #f2f4f8; transition: background-color .5s var(--ease); }
.kboard .sq.d { background: #dfe6f0; }
.kboard .sq.v { background: #cfe2f7; }
.kboard .sq.d.v { background: #b8d3f1; }
.kboard__trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.kboard__trail path { fill: none; stroke: var(--color-pricing-blue); stroke-width: 0.05; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; }
.kboard__knight { z-index: 2; font-size: calc(var(--sz) / 8 * 0.8); color: var(--logo-blue); -webkit-text-stroke: 0; }
.is-loading .kboard__knight { opacity: 0; }

/* ============ Quick contact ============ */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--element-gap); padding: var(--section-gap) var(--gutter); background: var(--color-studio-mist); }
.qcard { background: #fff; border-radius: var(--radius-cards); padding: 32px var(--card-padding); display: flex; flex-direction: column; min-height: 280px; }
.qcard__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-studio-mist); display: grid; place-items: center; margin-bottom: 28px; }
.qcard__icon svg { width: 20px; height: 20px; fill: var(--logo-blue); }
.qcard__label { font-size: 14px; font-weight: 600; color: var(--color-slate); margin: 0 0 8px; letter-spacing: -0.224px; }
.qcard__value { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 auto; overflow-wrap: anywhere; transition: color .2s; }
a.qcard__value:hover { color: var(--color-apple-blue); }
.qcard__value--sm { font-size: clamp(19px, 1.8vw, 22px); }
.qcard__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.qcard__actions .pill { font-size: 14px; padding: 8px 16px; }
.pill.is-copied { background: #2e7d32; color: #fff; box-shadow: none; }

/* ============ Paiement en ligne ============ */
.payonline { padding: var(--section-gap) var(--gutter); }
.payonline[hidden] { display: none; }
.payonline__head { max-width: 720px; margin-bottom: 36px; }
.payonline__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--element-gap); }
.paycard { display: flex; flex-direction: column; gap: 8px; background: var(--color-studio-mist); border-radius: var(--radius-cards); padding: 28px; color: var(--color-ink); transition: transform .5s var(--ease); }
.paycard:hover { transform: translateY(-4px); }
.paycard b { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.paycard span { font-size: 14px; color: var(--color-slate); }
.paycard em { margin-top: auto; padding-top: 14px; font-style: normal; font-size: 14px; color: var(--color-apple-blue); }

/* ============ Form ============ */
.write { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; padding: calc(var(--section-gap) * 1.3) var(--gutter); }
.write__head { position: sticky; top: 100px; }
.xform { position: relative; background: var(--color-studio-mist); border-radius: var(--radius-cards); padding: 40px; display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.xstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.xstep legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 16px; padding: 0; }
.xstep legend .mono { width: 26px; height: 26px; border-radius: 50%; background: var(--color-ink); color: #fff; font-size: 13px; display: grid; place-items: center; }

/* segmented subject picker with sliding glider */
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 6px; background: #fff; border-radius: 22px; padding: 6px; box-shadow: var(--shadow-subtle); }
.seg__glider { position: absolute; left: 0; top: 0; border-radius: var(--radius-buttons); background: var(--color-ink); z-index: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: var(--radius-buttons); font-size: 14px; transition: color .35s var(--ease); }
.seg input:checked + span { color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--color-pricing-blue); outline-offset: 2px; }
.no-glider .seg input:checked + span { background: var(--color-ink); }

.xrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.xrow:last-child { margin-bottom: 0; }
/* floating labels */
.fl { position: relative; display: block; }
.fl input, .fl select, .fl textarea { width: 100%; font: inherit; font-size: 17px; color: var(--color-ink); background: #fff; border: 0; box-shadow: var(--shadow-subtle-2); border-radius: 14px; padding: 24px 18px 8px; outline: none; transition: box-shadow .25s var(--ease); }
.fl select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.fl textarea { resize: vertical; min-height: 160px; line-height: 1.47; }
.fl > span { position: absolute; left: 19px; top: 17px; font-size: 17px; color: var(--color-steel); pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s var(--ease); }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span,
.fl--select > span { transform: translateY(-10px) scale(.72); color: var(--color-slate); }
.fl input:focus, .fl select:focus, .fl textarea:focus { box-shadow: 0 0 0 2px var(--color-pricing-blue); }
.fl .is-invalid { box-shadow: 0 0 0 2px #d93025; }
.xcount { margin: 8px 4px 0; text-align: right; font-size: 12px; color: var(--color-steel); }
.xcount.is-near { color: var(--color-launch-orange); }
.xform__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.xform__note { font-size: 12px; color: var(--color-slate); margin: 0; max-width: 320px; }
.xform__note.is-error { color: #b3261e; }
.xsubmit { overflow: hidden; position: relative; }

.xdone { position: absolute; inset: 0; background: var(--color-studio-mist); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; z-index: 5; }
.xdone[hidden] { display: none; }
.xdone__check { width: 84px; height: 84px; margin-bottom: 24px; }
.xdone__check circle { fill: none; stroke: #2e7d32; stroke-width: 2; }
.xdone__check path { fill: none; stroke: #2e7d32; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xdone h3 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.xdone p { max-width: 420px; margin: 0 0 24px; }
.xdone a { color: var(--color-apple-blue); }

/* ============ Visit ============ */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: var(--section-gap) var(--gutter) calc(var(--section-gap) * 1.3); scroll-margin-top: 60px; }
.visit__addr { font-style: normal; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; margin: 0 0 24px; }
.visit__maps { display: flex; flex-wrap: wrap; gap: 10px; }
.mapbtn { display: inline-flex; gap: 6px; align-items: center; padding: 10px 18px; border-radius: var(--radius-buttons); box-shadow: var(--shadow-subtle-2); font-size: 14px; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s; }
.mapbtn:hover { background: var(--color-ink); color: #fff; box-shadow: none; }
.visit__visual { background: var(--color-studio-mist); border-radius: var(--radius-cards); min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.beacon { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.beacon__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--logo-blue); opacity: 0; }
.beacon__mark { width: 96px; height: auto; fill: var(--logo-blue); position: relative; overflow: visible; }
.visit__city { font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); font-weight: 600; letter-spacing: -0.03em; margin: 24px 0 0; line-height: 1; }
.visit__coords { margin: 10px 0 0; font-size: 13px; color: var(--color-slate); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, calc(100% + 40px)); opacity: 0; background: var(--color-ink); color: #fff; font-size: 14px; padding: 12px 20px; border-radius: var(--radius-buttons); z-index: 200; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .chero { grid-template-columns: 1fr; height: auto; min-height: 0; padding-top: 56px; padding-bottom: 56px; gap: 40px; text-align: center; }
  .chero__copy .ahero__sub { margin-left: auto; }
  .chero__copy .hero__ctas { justify-content: center; }
  .kboard { --sz: min(86vw, 460px); }
  .quick { grid-template-columns: 1fr; }
  .qcard { min-height: 0; }
  .write { grid-template-columns: 1fr; gap: 32px; }
  .write__head { position: static; }
  .visit { grid-template-columns: 1fr; gap: 40px; }
  .visit__visual { min-height: 380px; }
}
@media (max-width: 560px) {
  .xform { padding: 26px 18px; }
  .xrow { grid-template-columns: 1fr; }
  .seg span { padding: 8px 12px; font-size: 13px; }
}
