/* Formulaire « jeu » des pages guides et SEO (section #contact.contact-jeu). Habillage seulement : les champs
   et l'envoi restent ceux de main.js. Les animations sont coupées si l'appareil demande moins de mouvement. */
.contact-jeu { --jg: #02d59d; --jg2: #00b884; --ji: #04241b; }
.contact-jeu .form--steps { position: relative; background: #fff; border: 1px solid rgba(2, 213, 157, .28); border-radius: 28px; padding: 22px 20px 24px; box-shadow: 0 34px 70px -34px rgba(4, 36, 27, .38); overflow: hidden; }
.contact-jeu .form-progress { display: none; }
.contact-jeu .form-step-count { justify-self: start; display: inline-block; margin: 0 0 2px; padding: 5px 12px; border-radius: 999px; background: rgba(2, 213, 157, .12); color: var(--jg2); font-weight: 800; letter-spacing: .06em; }
.contact-jeu .field-question { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }

/* route de progression et camion */
.jeu-road { position: relative; height: 138px; margin: 2px 36px 10px; }
.jeu-road__line { position: absolute; left: 0; right: 0; top: 76px; height: 6px; border-radius: 99px; background: repeating-linear-gradient(90deg, rgba(4, 36, 27, .14) 0 14px, transparent 14px 24px); }
.jeu-road__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--jg2), var(--jg)); transition: width .7s cubic-bezier(.34, 1.3, .64, 1); }
.jeu-stop { position: absolute; top: 88px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; }
.jeu-stop i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid rgba(4, 36, 27, .16); color: rgba(4, 36, 27, .45); transition: background .3s, border-color .3s, color .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.jeu-stop svg { width: 15px; height: 15px; }
.jeu-stop b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: rgba(4, 36, 27, .45); white-space: nowrap; }
.jeu-stop.is-current i { border-color: var(--jg); color: var(--jg2); transform: scale(1.12); }
.jeu-stop.is-current b { color: var(--ji); }
.jeu-stop.is-done i { background: var(--jg); border-color: var(--jg); color: #fff; }
.jeu-stop.is-done b { color: var(--jg2); }
.jeu-van { position: absolute; top: 32px; left: 0; width: 84px; transform: translateX(-50%); transition: left .75s cubic-bezier(.34, 1.25, .64, 1), transform .75s cubic-bezier(.34, 1.25, .64, 1); filter: drop-shadow(0 8px 10px rgba(4, 36, 27, .22)); }
.jeu-van svg { display: block; width: 100%; height: auto; }
.jeu-bubble { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 6px 12px; border-radius: 12px; background: var(--ji); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; transition: left .75s cubic-bezier(.34, 1.25, .64, 1), transform .75s cubic-bezier(.34, 1.25, .64, 1); z-index: 2; }
.jeu-bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ji); transform: rotate(45deg); border-radius: 2px; }

/* cartes illustrées (vitrage, problème) */
.contact-jeu .jeu-cards { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.contact-jeu .jeu-cards .choice-btn { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 132px; padding: 14px 10px 12px; border-radius: 20px; border: 2px solid rgba(4, 36, 27, .09); background: #fff; color: var(--ji); font-weight: 800; font-size: 15px; box-shadow: 0 10px 22px -16px rgba(4, 36, 27, .45); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, box-shadow .3s, background .2s; }
.contact-jeu .jeu-cards .choice-btn:hover { transform: translateY(-5px); border-color: rgba(2, 213, 157, .55); box-shadow: 0 18px 30px -18px rgba(0, 184, 132, .55); }
.contact-jeu .jeu-cards .choice-btn:active { transform: scale(.95); }
.contact-jeu .choice-btn { position: relative; }
.contact-jeu .choice-btn.is-selected { border-color: var(--jg) !important; background: rgba(2, 213, 157, .10) !important; color: var(--ji) !important; }
.contact-jeu .choice-btn.is-selected::after { content: ""; position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--jg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; animation: jeuPop .4s cubic-bezier(.34, 1.56, .64, 1); }
.jeu-ill { width: 92px; height: 62px; overflow: visible; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.contact-jeu .choice-btn:hover .jeu-ill { transform: translateY(-3px) rotate(-3deg); }
.jeu-ill .b { fill: #fff; stroke: var(--ji); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.jeu-ill .d { fill: none; stroke: var(--ji); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jeu-ill .w { fill: var(--ji); }
.jeu-ill .g { fill: url(#jeuVerre); stroke: var(--ji); stroke-width: 2.2; stroke-linejoin: round; }
.jeu-ill .g2 { fill: #dfeef2; stroke: var(--ji); stroke-width: 2.2; stroke-linejoin: round; }
.jeu-ill .l { fill: #fff3c4; stroke: var(--ji); stroke-width: 2; }
.jeu-ill .r { fill: #ff6b5a; stroke: var(--ji); stroke-width: 2; }
.jeu-ill .gl { fill: #e9f6fb; stroke: var(--ji); stroke-width: 2.4; }
.jeu-ill .k { fill: #fff; stroke: var(--ji); stroke-width: 1.8; stroke-linejoin: round; }
.jeu-ill .cr { fill: none; stroke: var(--ji); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; }
.jeu-ill .rip { fill: none; stroke: var(--jg); stroke-width: 2.4; transform-origin: 48px 32px; transform-box: view-box; }
.jeu-ill .st { fill: url(#jeuVerre); stroke: var(--ji); stroke-width: 2.2; stroke-linejoin: round; transform-origin: 48px 32px; transform-box: view-box; }
.contact-jeu .choice-btn.is-selected .jeu-ill .g, .contact-jeu .choice-btn.is-selected .jeu-ill .st { fill: var(--jg); }

/* plaque d'immatriculation */
.jeu-plate { position: relative; display: flex; align-items: stretch; border: 2.5px solid var(--ji); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 18px -12px rgba(4, 36, 27, .5); }
.jeu-plate__eu { display: grid; place-items: center; align-content: center; gap: 1px; width: 38px; background: #1d4fbf; color: #fff; font: 800 14px/1 Sora, sans-serif; }
.jeu-plate__eu small { font-size: 8px; color: #ffd84a; letter-spacing: -1px; }
.contact-jeu .jeu-plate input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-align: center; text-transform: uppercase; font: 800 22px/1 Sora, sans-serif !important; letter-spacing: .12em; padding: 12px 40px 12px 10px !important; }
.contact-jeu .jeu-plate input::placeholder { color: rgba(4, 36, 27, .22); }

/* choix rapides */
.jeu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.jeu-chips__t { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(4, 36, 27, .5); }
.jeu-chip { padding: 8px 13px; border-radius: 999px; border: 1.5px solid rgba(4, 36, 27, .14); background: #fff; color: var(--ji); font: 700 13.5px Manrope, sans-serif; cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background .2s; }
.jeu-chip:hover { transform: translateY(-2px); border-color: var(--jg); }
.jeu-chip.is-on { background: var(--jg); border-color: var(--jg); color: #fff; animation: jeuPop .35s cubic-bezier(.34, 1.56, .64, 1); }

/* coches de validation, bouton d'envoi */
.contact-jeu .field.jeu-ok input { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2302d59d'/%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; }
.contact-jeu #form-submit.is-ready { box-shadow: 0 0 0 0 rgba(2, 213, 157, .6); }
.contact-jeu #form-submit::after { content: " →"; display: inline-block; transition: transform .3s; }
.contact-jeu #form-submit.is-ready::after { content: " 🚀"; }

/* particules et confettis */
.jeu-p, .jeu-c { position: absolute; pointer-events: none; z-index: 5; }
.jeu-p { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c); }
.jeu-c { width: 9px; height: 14px; margin-left: -4px; border-radius: 2px; background: var(--c); }
.jeu-plus { position: absolute; z-index: 6; pointer-events: none; padding: 4px 10px; border-radius: 999px; background: var(--jg); color: #fff; font: 800 12px Sora, sans-serif; white-space: nowrap; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .jeu-stop b { display: none; }
  .jeu-stop.is-current b { display: block; }
  .contact-jeu .contact-grid { display: flex; flex-direction: column; align-items: stretch; }
  .contact-jeu .contact-grid > form { width: 100%; box-sizing: border-box; }
  .contact-jeu .contact-grid > form { order: -1; }
  .contact-jeu .jeu-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-jeu .form--steps { padding: 18px 14px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-jeu .form-step.is-active { animation: jeuIn .5s cubic-bezier(.22, 1, .36, 1) backwards; }
  .contact-jeu .form-step.is-active .jeu-cards .choice-btn { animation: jeuCard .55s cubic-bezier(.34, 1.56, .64, 1) backwards; }
  .contact-jeu .form-step.is-active .jeu-cards .choice-btn:nth-child(2) { animation-delay: .06s; }
  .contact-jeu .form-step.is-active .jeu-cards .choice-btn:nth-child(3) { animation-delay: .12s; }
  .contact-jeu .form-step.is-active .jeu-cards .choice-btn:nth-child(4) { animation-delay: .18s; }
  .contact-jeu .form-step.is-active .jeu-cards .choice-btn:nth-child(5) { animation-delay: .24s; }
  .jeu-bubble.is-pop { animation: jeuPop .45s cubic-bezier(.34, 1.56, .64, 1); }
  .jeu-van.is-driving svg { animation: jeuBump .25s ease-in-out 3; }
  .jeu-van.is-driving .jeu-wheel { animation: jeuSpin .35s linear 2; }
  .jeu-van.is-gone { left: 125% !important; transition: left 1.1s cubic-bezier(.55, 0, .45, 1) .25s; }
  .jeu-ill .rip { animation: jeuRip 1.6s ease-out infinite; }
  .jeu-ill .cr { animation: jeuCrack 2.4s ease-in-out infinite; }
  .contact-jeu .choice-btn:hover .jeu-ill .st { animation: jeuShake .4s ease-in-out; }
  .contact-jeu .choice-btn.is-selected .jeu-ill .g { animation: jeuGlow 1.4s ease-in-out infinite; }
  .contact-jeu #form-submit.is-ready { animation: jeuPulse 1.6s ease-out infinite; }
  .contact-jeu #form-submit.is-ready::after { animation: jeuRocket 1.2s ease-in-out infinite; }
  .jeu-p { animation: jeuP .8s cubic-bezier(.2, .7, .3, 1) forwards; }
  .jeu-c { animation: jeuC var(--t, 2s) cubic-bezier(.25, .6, .4, 1) forwards; }
  .jeu-plus { animation: jeuPlus 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
  .contact-jeu .field.jeu-ok input { animation: jeuTick .35s cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes jeuIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes jeuCard { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes jeuPop { 0% { scale: .4; } 70% { scale: 1.12; } 100% { scale: 1; } }
.jeu-bubble.is-pop { transform-origin: 50% 100%; }
@keyframes jeuBump { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
@keyframes jeuSpin { to { transform: rotate(360deg); } }
.jeu-wheel { transform-box: fill-box; transform-origin: center; }
@keyframes jeuRip { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes jeuCrack { 0% { stroke-dashoffset: 70; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -70; } }
@keyframes jeuShake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes jeuGlow { 50% { filter: drop-shadow(0 0 6px rgba(2, 213, 157, .9)); } }
@keyframes jeuPulse { 0% { box-shadow: 0 0 0 0 rgba(2, 213, 157, .55); } 100% { box-shadow: 0 0 0 16px rgba(2, 213, 157, 0); } }
@keyframes jeuRocket { 50% { transform: translate(3px, -3px); } }
@keyframes jeuP { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes jeuC { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes jeuPlus { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
@keyframes jeuTick { from { background-size: 0; } to { background-size: 22px; } }

/* fond émeraude de la section (à la place du vert clair) : titre en blanc, cartes de contact en verre */
.contact-jeu { position: relative; background: radial-gradient(70% 45% at 92% 0%, rgba(2, 213, 157, .45), transparent 62%), radial-gradient(60% 40% at 0% 100%, rgba(125, 255, 207, .2), transparent 60%), linear-gradient(165deg, #009470 0%, #006f52 48%, #043b2c 100%); }
.contact-jeu .section-head .eyebrow { color: #c9ffeb !important; }
.contact-jeu .section-head .title { color: #fff !important; }
.contact-jeu .section-head .title em { color: #04241b !important; background: linear-gradient(transparent 58%, rgba(201, 255, 235, .9) 58%) !important; padding: 0 .06em; }
.contact-jeu .section-head .lede { color: rgba(255, 255, 255, .92) !important; }
.contact-jeu .contact-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact-jeu .contact-chip:hover { border-color: rgba(201, 255, 235, .75); }
.contact-jeu .contact-chip svg { color: #c9ffeb; }
.contact-jeu .contact-chip strong { color: #fff; }
.contact-jeu .contact-chip small { color: rgba(255, 255, 255, .78); }
.contact-jeu .form--steps { border-color: rgba(255, 255, 255, .55); box-shadow: 0 40px 80px -30px rgba(2, 20, 15, .6); }
