/* Formulaire de contact : une question à la fois */
.cf { position: relative; gap: 0; min-height: 420px; }
.cf__top { display: none; margin-bottom: 28px; }
.cf--js .cf__top { display: block; }
.cf__bar { height: 4px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.cf__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 0.5s cubic-bezier(.16,1,.3,1); }
.cf__count { margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); letter-spacing: 0.02em; }

.cf__step { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; border: 0; padding: 0; min-width: 0; }
.cf--js .cf__step { display: none; margin-bottom: 0; }
.cf--js .cf__step.is-active { display: flex; animation: cfIn 0.45s cubic-bezier(.16,1,.3,1); }
.cf--js .cf__step.is-back { animation-name: cfInBack; }
@keyframes cfIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes cfInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.cf__q { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--black); margin: 0 0 16px; padding: 0; }
.cf__hint { font-size: 0.92rem; color: var(--gray-500); margin: -4px 0 6px; line-height: 1.5; }

.cf__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf__choice { position: relative; display: block; cursor: pointer; }
.cf__choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.cf__choice span { display: flex; align-items: center; min-height: 58px; padding: 14px 18px; border: 1.5px solid var(--gray-200); border-radius: 12px; font-weight: 600; font-size: 0.95rem; color: var(--black); background: var(--white); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.cf__choice:hover span { border-color: var(--gray-400); transform: translateY(-1px); }
.cf__choice input:checked + span { border-color: var(--accent); background: rgba(245, 182, 20, 0.1); box-shadow: 0 0 0 3px rgba(245, 182, 20, 0.15); }
.cf__choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }

.cf__nav { display: none; align-items: center; gap: 16px; margin-top: 28px; }
.cf--js .cf__nav { display: flex; }
.cf__back { background: none; border: 0; padding: 10px 4px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--gray-500); cursor: pointer; }
.cf__back:hover { color: var(--black); }
.cf__back[hidden] { display: none; }
.cf__next[disabled] { opacity: 0.4; cursor: not-allowed; }
.cf__enter { font-size: 0.78rem; color: var(--gray-400); }
.cf__error { margin-top: 14px; font-size: 0.9rem; color: #b42318; min-height: 1.2em; }
.cf__submit-nojs { margin-top: 8px; }
.cf--js .cf__submit-nojs { display: none; }
.cf__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.cf__done { display: none; text-align: left; padding: 8px 0; }
.cf.is-done .cf__done { display: block; animation: cfIn 0.5s cubic-bezier(.16,1,.3,1); }
.cf.is-done .cf__top, .cf.is-done .cf__step, .cf.is-done .cf__nav, .cf.is-done .cf__error { display: none !important; }
.cf__done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.cf__done h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--black); }
.cf__done p { color: var(--gray-600); line-height: 1.7; margin: 0 0 24px; max-width: 460px; }

@media (max-width: 560px) {
    .cf__choices { grid-template-columns: 1fr; }
    .cf__enter { display: none; }
    .cf__nav .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cf--js .cf__step.is-active, .cf.is-done .cf__done, .cf__bar span { animation: none; transition: none; }
}
