/* ==========================================================================
   Thirdslot — page Contact (/contact/)
   Maquette : 2026-10-29 Thirdslot-contact (1920 px de large). « y » = position dans la maquette
   (le bandeau promo s'ajoute au-dessus ; le header passe sur le hero, comme dans la maquette).
   Colonne : x 240 → 1680 (1440 px). Accordéon : css/faq-acc.css. Images : assets/contact/.
   Le formulaire garde les id de js/contact.js (contact-form, cf-*).
   ========================================================================== */

.page-contact { --ct-ink: #1a1a2e; --ct-text: #4f4f4f; }
.page-contact .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.ct { position: relative; overflow-x: clip; }
.ct h1, .ct-wrap h2, .ct-wrap h3 { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ct-ink); }
.ct-hero p, .ct-wrap p { margin: 0; }

/* ---------- Hero (y 0 → 1066) ---------- */
.ct-hero { position: relative; height: 1066px; margin-top: -88px; }
.ct-deco { position: absolute; inset: 0; pointer-events: none; }
.ct-deco img { position: absolute; max-width: none; height: auto; }
.ct-hero-bg { position: absolute; inset: 0; background: url(/assets/contact/hero-bg.webp) center top / max(1920px, 100%) auto no-repeat; }
.ct-hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 90%); }
.ct-orb { left: calc(50% - 257.5px); top: 41.5px; width: 515px; }
.ct-hand-l { left: calc(50% - 1115.2px); top: 185.4px; width: 704px; }
.ct-hand-r { left: calc(50% + 355.8px); top: 310.4px; width: 736.4px; }

.ct-hero-inner { position: relative; z-index: 1; padding-top: 497.7px; text-align: center; }
.ct-pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 37.3px; padding: 0 20px 0 11px;
  border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #4a46d3 0%, #d085c2 30%, #ddd 80%) border-box;
  box-shadow: 0 8px 16px rgba(218, 218, 232, 0.5);
  font-weight: 500; font-size: 14px; color: var(--ct-ink);
}
.ct-pill img { width: 18px; height: 18px; }
.ct .ct-h1 { max-width: 640px; margin: 19.15px auto 0; font-size: 74px; line-height: 74px; font-weight: 600; }
/* soulignement dégradé sous « Conversation » : 464.3 × 6, y 692.5 */
.ct-h1 .u { position: relative; display: inline-block; }
.ct-h1 .u::after {
  content: ""; position: absolute; left: 0.08em; top: 0.87em;
  width: 6.274em; height: 0.081em;
  background: var(--grad-underline);
  transform-origin: left center;
}
.ct .ct-sub { margin-top: 21.85px; font-size: 19px; line-height: 28px; color: #505056; }
.ct-scroll { position: absolute; left: calc(50% - 9.8px); top: 837.6px; z-index: 1; width: 19.7px; }
.ct-scroll img { display: block; width: 100%; height: auto; }

/* ---------- Corps ---------- */
.ct-wrap { position: relative; z-index: 1; width: 1440px; margin: 0 0 0 calc(50% - 720px); }
/* fond lavande derrière le formulaire (y 1066 → 1989) */
.ct-wrap::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 960px); width: 1920px; top: 0; height: 923px; background: url(/assets/contact/section-bg.webp) 0 0 / 100% 100% no-repeat; }
.ct-h2 { font-size: 50px; line-height: 62px; }
.ct-lead { font-size: 18px; line-height: 28px; color: var(--ct-text); }

/* ---- Colonne gauche + formulaire (carte x 809.1, y 1117.6, 870.9 × 667.9) ---- */
.ct-write { display: flex; align-items: flex-start; padding-top: 51.6px; scroll-margin-top: 90px; }
.ct-side { width: 569.1px; flex: none; padding-top: 15.7px; }
.ct-side .ct-lead { max-width: 440px; margin-top: 18.8px; }
.ct-info { display: flex; align-items: flex-start; gap: 24px; }
.ct-info + .ct-rule { margin-top: 33px; }
.ct-side .ct-lead + .ct-info { margin-top: 69px; }
.ct-ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #fff; border-radius: 14px; background: #e1e0f8; }
.ct-ic img { display: block; }
.ct-info h3 { margin-top: -0.55px; font-size: 22px; line-height: 27px; }
.ct-info .ct-link { margin-top: 10.4px; font-weight: 500; font-size: 20px; line-height: 24px; color: #4a46d3; }
.ct-info .ct-link a { color: inherit; }
.ct-info .ct-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-info .ct-note { margin-top: 17.75px; font-size: 16px; line-height: 20px; color: var(--ct-text); }
.ct-info .ct-addr { margin-top: 18.35px; line-height: 24px; }
.ct-rule { width: 422.4px; height: 0; margin: 0 0 0 1.6px; border: 0; border-top: 1px solid rgba(199, 199, 226, 0.68); }
.ct-rule + .ct-info { margin-top: 34.6px; }
.ct-rule + .ct-info h3 { margin-top: 3.35px; }

.ct-card-form {
  flex: none; width: 870.9px; min-height: 667.9px; padding: 68.75px 54.4px 59.4px 54.5px; /* cotes de la maquette moins la bordure */
  border: 1px solid #e8e8ed; border-radius: 27.39px; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 30px rgba(198, 197, 216, 0.35);
}
.ct-card-form #contact-form { margin-top: 0; }
.ct-card-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 23.5px; }
.ct-card-form .cf-row + .cf-row { margin-top: 32.95px; }
.ct-card-form .cf-field { margin: 0; }
.ct-card-form .cf-field label { display: block; margin: 0 0 12.25px; font-family: var(--font-head); font-weight: 400; font-size: 18px; line-height: 21px; color: var(--ct-ink); }
.ct-card-form .cf-field .opt { font-size: 16px; color: #bdbdc6; }
.ct-card-form .cf-field input, .ct-card-form .cf-field select, .ct-card-form .cf-field textarea {
  display: block; width: 100%; height: 52px; padding: 0 19.8px;
  border: 1px solid #e1e1e5; border-radius: 9.13px; background: #fff;
  font-family: var(--font-head); font-size: 16px; color: var(--ct-ink);
}
.ct-card-form .cf-field select { padding-right: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' fill='none' stroke='%234a46d3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m.8.8 4.7 4.4L10.2.8'/%3E%3C/svg%3E") no-repeat right 20.4px center; }
.ct-card-form .cf-msg { margin-top: 35.85px; }
.ct-card-form .cf-msg label { margin-bottom: 14.95px; }
.ct-card-form .cf-field textarea { height: 178px; min-height: 120px; padding: 14.9px 15.2px; line-height: 21px; resize: vertical; }
.ct-card-form .cf-field input::placeholder, .ct-card-form .cf-field textarea::placeholder { color: #8a8a94; }
.ct-card-form #cf-error { margin: 20px 0 0; }
.cf-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 32.5px; }
.ct-card-form .cf-legal { margin: 3.75px 0 0; font-family: var(--font-head); font-size: 16px; line-height: 21px; color: var(--ct-text); }
.ct-card-form .cf-legal a { color: #4a46d3; font-weight: 500; }
.ct-card-form #cf-submit { flex: none; width: 192.3px; gap: 13px; padding: 0; }
.ct-card-form #cf-submit .arrow { width: 13.2px; height: 9.4px; }
.ct-card-form .cf-done { padding: 40px 0 20px; text-align: center; }
/* Écran après envoi (recette n110) : récapitulatif adresse / sujet / délai + actions */
.ct-card-form .cf-done h3 { margin-top: 22px; font-size: 30px; line-height: 36px; }
.ct-card-form .cf-done .cf-done-lead { margin: 12px auto 0; max-width: 520px; font-size: 17px; line-height: 25px; color: var(--ct-text); }
.cf-done-recap { max-width: 520px; margin: 32px auto 0; padding: 6px 24px; border: 1px solid #ececf3; border-radius: 16px; background: #f7f7fb; text-align: left; }
.cf-done-recap > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-size: 16px; line-height: 22px; }
.cf-done-recap > div + div { border-top: 1px solid #e6e6ef; }
.cf-done-recap dt { flex: none; color: var(--ct-text); }
.cf-done-recap dd { margin: 0; min-width: 0; font-weight: 600; color: var(--ct-ink); text-align: right; overflow-wrap: anywhere; }
.ct-card-form .cf-done .cf-done-note { margin: 20px auto 0; max-width: 520px; font-size: 14.5px; line-height: 21px; color: var(--ct-text); }
.cf-done-note a { color: #4a46d3; font-weight: 500; }
.cf-done-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 699px) {
  .cf-done-recap { padding: 4px 16px; }
  .cf-done-recap > div { flex-direction: column; gap: 2px; }
  .cf-done-recap dd { text-align: left; }
  .cf-done-acts .btn { width: 100%; }
}

/* ---- Raccourcis (titre y 2021.7, cartes y 2143.5 → 2455.8) ---- */
.ct-specific { margin-top: 236.2px; text-align: center; }
.ct-specific .ct-h2 { line-height: 60px; }
.ct-cards { display: grid; grid-template-columns: 719.4px 720.6px; margin-top: 61.8px; border-radius: 22px; background: #f7f7fb; text-align: left; }
.ct-card { position: relative; display: block; height: 312.3px; border-radius: 22px; color: inherit; isolation: isolate; }
/* carte mise en avant (dégradé + bouton violet) : la première par défaut, celle survolée sinon */
.ct-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid #fff; border-radius: 22.34px; background: url(/assets/contact/card-l.webp) 0 0 / 100% 100% no-repeat; opacity: 0; transition: opacity 0.4s ease; }
.ct-cards:not(:hover) .ct-card-a::before, .ct-card:hover::before, .ct-card:focus-visible::before { opacity: 1; }
.ct-ill { position: absolute; height: auto; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ct-card-a .ct-ill { left: 50.2px; top: 58.5px; width: 129.2px; }
.ct-card-b .ct-ill { left: 87.6px; top: 53.7px; width: 113.4px; }
.ct-card:hover .ct-ill { transform: translateY(-6px) rotate(-3deg); }
.ct-card-text { position: absolute; top: 63.05px; display: block; max-width: 345px; }
.ct-card-a .ct-card-text { left: 228.5px; }
.ct-card-b .ct-card-text { left: 258.7px; }
.ct-card-title { display: block; font-family: var(--font-head); font-weight: 500; font-size: 32px; line-height: 38px; color: var(--ct-ink); white-space: nowrap; }
.ct-card-sub { display: block; margin-top: 19px; font-size: 17px; line-height: 24px; color: #5f5d77; }
.ct-card-link { display: block; margin-top: 40.25px; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 24px; color: #4a46d3; }
.ct-go { position: absolute; right: 63.5px; top: 207.2px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #4a46d3; transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.ct-go svg { width: 14.4px; height: 14.4px; }
.ct-cards:not(:hover) .ct-card-a .ct-go, .ct-card:hover .ct-go, .ct-card:focus-visible .ct-go { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 24px rgba(74, 70, 211, 0.35); }
.ct-card:hover .ct-go { transform: translate(3px, -3px); }
.ct-card:focus-visible { outline: 2px solid #4a46d3; outline-offset: 2px; }

/* ---- Questions fréquentes (titre y 2708.6, accordéon x 800.1 y 2712.1) ---- */
.ct-faq { display: grid; grid-template-columns: 560.1px 878.9px; align-items: start; margin-top: 252.8px; }
.ct-faq-intro { padding-top: 0; }
.ct-faq-intro .ct-lead { margin-top: 32.5px; color: #565656; }
.ct-faq-intro .btn { margin-top: 36px; width: 182px; justify-content: flex-start; gap: 10.6px; padding: 0 0 0 28px; }
.ct-faq .fq-acc { margin-top: 3.5px; }
.ct-wrap + .site-cta { margin-top: 95.7px; }

/* ==========================================================================
   Animations (html.anim ; ?noanim les coupe — js/contact-page.js retire alors la classe anim)
   ========================================================================== */
@keyframes ctRise   { from { opacity: 0; transform: translateY(28px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ctFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctWord   { from { transform: translateY(135%) rotate(4deg); } to { transform: none; } }
@keyframes ctDraw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* les deux mains glissent l'une vers l'autre, puis « respirent » sans jamais se toucher */
@keyframes ctHandL  { from { opacity: 0; transform: translate(-160px, 40px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes ctHandR  { from { opacity: 0; transform: translate(160px, 30px) rotate(5deg); } to { opacity: 1; transform: none; } }
@keyframes ctHandLIdle { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, -6px) rotate(0.8deg); } }
@keyframes ctHandRIdle { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-10px, -5px) rotate(-0.8deg); } }
@keyframes ctOrbIn  { 0% { opacity: 0; transform: scale(0.4); filter: blur(10px); } 70% { opacity: 1; transform: scale(1.06); filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes ctOrbIdle { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.06); } }
@keyframes ctScroll { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.6; } }

.ct-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ct-split .w > span { display: inline-block; }
.anim .ct-split .w > span { transform: translateY(135%); }

.anim .ct-deco > *, .anim .ct-pill, .anim .ct-sub, .anim .ct-scroll { opacity: 0; }
.anim .ct-h1 .u::after { transform: scaleX(0); }
.anim .ct-ready .ct-hero-bg { animation: ctFade 1.2s ease both; }
.anim .ct-ready .ct-orb { animation: ctOrbIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both, ctOrbIdle 5s ease-in-out 1.6s infinite; }
.anim .ct-ready .ct-hand-l { animation: ctHandL 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both, ctHandLIdle 6s ease-in-out 1.8s infinite; }
.anim .ct-ready .ct-hand-r { animation: ctHandR 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both, ctHandRIdle 6s ease-in-out 1.9s infinite; }
.anim .ct-ready .ct-pill { animation: ctRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
.anim .ct-ready .ct-h1 .w > span { animation: ctWord 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) calc(0.6s + var(--i) * 0.07s) both; }
.anim .ct-ready .ct-h1 .u::after { animation: ctDraw 1s cubic-bezier(0.65, 0, 0.2, 1) 1.15s both; }
.anim .ct-ready .ct-sub { animation: ctRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both; }
.anim .ct-ready .ct-scroll { animation: ctFade 0.8s ease 1.5s both; }
.anim .ct-ready .ct-scroll img { animation: ctScroll 1.8s ease-in-out 2.3s infinite; }

.anim .ct-side > :not(h2), .anim .ct-card-form, .anim .ct-card, .anim .ct-faq-intro > :not(h2), .anim .ct-faq .fq-acc { opacity: 0; }
.anim .is-in .ct-h2 .w > span, .anim .ct-h2.is-in .w > span { animation: ctWord 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) calc(0.05s + var(--i) * 0.05s) both; }
.anim .ct-write.is-in .ct-side > :not(h2) { animation: ctRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.3s + var(--i) * 0.1s) both; }
.anim .ct-write.is-in .ct-card-form { animation: ctRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.anim .ct-specific.is-in .ct-card { animation: ctRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.25s + var(--i) * 0.14s) both; }
.anim .ct-faq.is-in .ct-faq-intro > :not(h2) { animation: ctRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.3s + var(--i) * 0.1s) both; }
.anim .ct-faq.is-in .fq-acc { animation: ctRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }

.no-anim .ct-deco > *, .no-anim .ct-pill, .no-anim .ct-sub, .no-anim .ct-scroll, .no-anim .ct-side > *, .no-anim .ct-card-form, .no-anim .ct-card,
.no-anim .ct-faq-intro > *, .no-anim .ct-faq .fq-acc { opacity: 1 !important; animation: none !important; }
.no-anim .ct-split .w > span, .no-anim .ct-h1 .u::after { transform: none !important; animation: none !important; }

/* ==========================================================================
   Écrans plus étroits (variables posées par js/contact-page.js :
   --k = (largeur − 48) / 1440 entre 1300 et 1499 px ; --kh = réduction du décor du hero)
   ========================================================================== */
@media (max-width: 1499px) and (min-width: 1300px) {
  .ct-wrap { zoom: var(--k, 1); }
}
@media (max-width: 1299px) {
  .ct-wrap { width: auto; margin: 0 24px; }
  .ct-wrap::before { left: -24px; right: -24px; width: auto; }
  .ct-deco { zoom: var(--kh, 1); }
  .ct-write { gap: 48px; }
  .ct-side { flex: 0 0 380px; width: auto; min-width: 0; }
  .ct-side .ct-h2 { font-size: 42px; line-height: 52px; }
  .ct-card-form { flex: 1 1 auto; width: auto; min-width: 0; padding: 48px 40px 44px; min-height: 0; }
  .ct-rule { width: 100%; max-width: 422.4px; }
  .ct-cards { grid-template-columns: 1fr 1fr; }
  .ct-card { height: auto; min-height: 312.3px; padding: 56px 110px 48px 40px; }
  .ct-card .ct-ill, .ct-card-a .ct-ill, .ct-card-b .ct-ill { position: static; display: block; width: auto; height: 84px; margin-bottom: 24px; }
  .ct-card-text, .ct-card-a .ct-card-text, .ct-card-b .ct-card-text { position: static; max-width: none; }
  .ct-card-title { white-space: normal; font-size: 28px; line-height: 34px; }
  .ct-go { right: 32px; top: auto; bottom: 40px; }
  .ct-faq { grid-template-columns: minmax(260px, 1fr) minmax(0, 878.9px); column-gap: 48px; }
}
@media (max-width: 1099px) {
  .ct-hero { height: auto; padding-bottom: 150px; }
  .ct-hero-inner { padding-top: calc(497.7px * var(--kh, 1)); padding-left: 20px; padding-right: 20px; }
  .ct .ct-h1 { font-size: clamp(40px, 7vw, 74px); line-height: 1; }
  .ct .ct-sub { max-width: 560px; margin: 24px auto 0; font-size: 18px; line-height: 27px; }
  .ct-scroll { top: auto; bottom: 64px; }
  .ct-h2 { font-size: clamp(32px, 5.4vw, 50px); line-height: 1.22; }
  .ct-specific .ct-h2 { line-height: 1.22; }
  .ct-write { flex-direction: column; align-items: stretch; gap: 56px; padding-top: 24px; }
  .ct-side { padding-top: 0; }
  .ct-side .ct-lead { max-width: 560px; }
  .ct-side .ct-lead + .ct-info { margin-top: 44px; }
  .ct-card-form { flex: none; }
  .ct-specific { margin-top: 140px; }
  .ct-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .ct-faq { display: block; margin-top: 140px; }
  .ct-faq-intro { margin-bottom: 36px; }
  .ct-faq .fq-acc { margin-top: 0; }
  .ct-wrap + .site-cta { margin-top: 96px; }
}
@media (max-width: 699px) {
  .ct-wrap { margin: 0 16px; }
  .ct-wrap::before { left: -16px; right: -16px; }
  .ct-card-form { padding: 32px 20px 28px; border-radius: 20px; }
  .ct-card-form .cf-row { grid-template-columns: 1fr; }
  .ct-card-form .cf-row .cf-field + .cf-field, .ct-card-form .cf-row + .cf-row { margin-top: 24px; }
  .ct-card-form .cf-msg { margin-top: 24px; }
  .cf-foot { flex-direction: column; }
  .ct-card-form #cf-submit { width: 100%; justify-content: center; }
  .ct-card { padding: 36px 24px 104px; }
  .ct-go { left: 24px; right: auto; bottom: 28px; }
  .ct-card-title { font-size: 25px; line-height: 31px; }
  .ct-info .ct-link { font-size: 18px; }
}
