/* ============================================================
   BTP 360 — Formulaire de candidature (v5)
   Porté depuis la v4.5 Systeme.io — design conservé
   ============================================================ */

/* Neutralise les styles génériques de main.css sur cette page */
section.tf3 { padding: 0; }
.consent { z-index: 1000001; }

.tf3, .tf3 * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.tf3 {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #050505;
    color: white;
    color-scheme: dark;
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tf3.tf3-live-mode {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    margin: 0 !important; padding: 0 !important;
    overflow: hidden !important;
}

/* HEADER */
.tf3-topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 40px; position: relative; z-index: 10; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: #0a0a0a;
}
.tf3-logo-img { height: 44px; border-radius: 8px; filter: brightness(0.9) saturate(0.85); }

.tf3-step {
    font-size: 12px; font-weight: 700;
    color: rgba(255,245,235,0.45);
    background: rgba(232,101,74,0.06);
    padding: 6px 14px; border-radius: 50px;
    border: 1px solid rgba(232,101,74,0.12);
    letter-spacing: 0.5px;
}

/* PROGRESS */
.tf3-progress { height: 2px; background: rgba(232,101,74,0.08); width: 100%; position: relative; z-index: 10; flex-shrink: 0; }
.tf3-bar { height: 100%; background: linear-gradient(90deg, #E8654A, #FF7A5C); width: 0%; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 12px rgba(232,101,74,0.3); }

.tf3-main { flex: 1; display: flex; position: relative; z-index: 10; width: 100%; overflow: hidden; }

/* CONTENT */
.tf3-content {
    width: 60%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 40px 40px;
    position: relative; z-index: 5;
    height: 100%; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tf3-content::-webkit-scrollbar { display: none; }

.tf3-slides-wrap {
    position: relative; width: 100%; max-width: 600px;
    display: grid; grid-template-columns: 1fr;
    align-items: flex-start; margin: 0 auto;
}

.tf3-slide {
    grid-area: 1 / 1;
    opacity: 0; transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none; visibility: hidden;
    display: flex; flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}
.tf3-slide.tf3-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.tf3-slide.tf3-up { opacity: 0; transform: translateY(-30px); }

/* MOBILE IMAGE */
.tf3-mobile-img { display: none; }

/* INTRO */
.tf3-intro-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 6px 14px; border-radius: 50px;
    color: #22C55E; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px; width: fit-content;
}
.tf3-intro-badge-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; animation: tf3Pulse 2s infinite; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
@keyframes tf3Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.tf3-intro-title { font-family: 'Satoshi', sans-serif; font-size: clamp(30px, 3.5vw, 46px); font-weight: 900; line-height: 1.1; margin: 0 0 14px 0; letter-spacing: -0.02em; }
.tf3-intro-sub { font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.6; margin: 0 0 28px 0; max-width: 480px; }

.tf3-intro-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

/* QUESTIONS */
.tf3-qnum { display: flex; align-items: center; gap: 10px; color: #FF5443; font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.tf3-q { font-family: 'Satoshi', sans-serif; font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; line-height: 1.2; margin: 0 0 8px 0; }
.tf3-qsub { font-size: 14px; color: rgba(255,255,255,0.4); margin: 0 0 22px 0; line-height: 1.5; }

/* ANTI-AUTOFILL */
.tf3 input:-webkit-autofill,
.tf3 input:-webkit-autofill:hover,
.tf3 input:-webkit-autofill:focus,
.tf3 input:-webkit-autofill:active,
.tf3 textarea:-webkit-autofill,
.tf3 textarea:-webkit-autofill:hover,
.tf3 textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #141414 inset !important;
    box-shadow: 0 0 0px 1000px #141414 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* INPUTS */
.tf3-input-row { width: 100%; display: flex; gap: 12px; margin-bottom: 14px; }
.tf3-input-col { flex: 1; }

.tf3-input, .tf3-other-input {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    width: 100%; padding: 16px 18px; font-size: 17px;
}

.tf3-input:focus, .tf3-other-input:focus {
    outline: none;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 1px #ffffff !important;
    background: #1a1a1a;
}
.tf3-input::placeholder, .tf3-other-input::placeholder { color: rgba(255,255,255,0.35); }

/* OPTIONS — un seul scroll (celui de .tf3-content). Pas de scroll interne
   sur la liste, sinon double scroll (on scrolle la liste PUIS le bouton). */
.tf3-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }

.tf3-opt {
    padding: 15px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer;
    border-radius: 10px;
    background: #141414; border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s ease;
}
.tf3-opt:hover { background: #1a1a1a; border-color: rgba(255,255,255,0.25); }
.tf3-opt:active { transform: scale(0.98); }
.tf3-opt.tf3-sel { border-color: #FF5443; background: rgba(255,84,67,0.1); }
.tf3-opt.tf3-sel:hover { background: rgba(255,84,67,0.14); border-color: rgba(255,84,67,0.5); }

.tf3-opt-key {
    width: 26px; height: 26px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.3);
    flex-shrink: 0; transition: all 0.2s ease;
}
.tf3-opt.tf3-sel .tf3-opt-key { background: #FF5443; border-color: #FF5443; color: white; }
.tf3-opt-txt { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.8); }
.tf3-opt.tf3-sel .tf3-opt-txt { color: #fff; }

.tf3-multi-hint {
    font-size: 12px; color: rgba(255,255,255,0.35);
    margin-top: 12px; display: flex; align-items: center; gap: 6px;
}

.tf3-opts[data-multi="true"] .tf3-opt-key { border-radius: 5px; }
.tf3-opts[data-multi="true"] .tf3-opt.tf3-sel .tf3-opt-key::after { content: '✓'; font-size: 13px; font-weight: 900; }

/* "AUTRE" */
.tf3-other-input-wrap {
    margin-top: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, margin 0.3s ease;
    pointer-events: none;
}
.tf3-other-input-wrap.tf3-other-visible {
    max-height: 80px; opacity: 1; margin-top: 15px;
    pointer-events: auto;
}

/* PHONE */
.tf3-phone-row {
    display: flex; align-items: stretch;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px;
    background: #141414; overflow: hidden; margin-bottom: 14px; width: 100%;
}
.tf3-phone-prefix-wrap { border-right: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; }
.tf3-phone-prefix { border: none; background: transparent; padding: 0 14px; color: rgba(255,255,255,0.8); font-weight: 600; cursor: pointer; height: 100%; outline: none; -webkit-appearance: none; font-size: 15px; }
.tf3-phone-prefix option { background: #141414; color: white; }
.tf3-phone-row .tf3-input { border: none !important; background: transparent; border-radius: 0; padding-left: 14px; }

.tf3-phone-row:focus-within {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 1px #ffffff !important;
    background: #1a1a1a;
}

/* CTA */
.tf3-cta { margin-top: 20px; }
.tf3-btn {
    background: #FF5443; color: white; border: none;
    padding: 16px 28px; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; display: inline-flex; justify-content: center; align-items: center;
    gap: 10px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none; width: 100%; max-width: 380px;
    position: relative; overflow: hidden;
}
.tf3-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,84,67,0.3); }
.tf3-btn:active { transform: scale(0.97); }
.tf3-btn:disabled { opacity: 0.6; cursor: wait; transform: none !important; box-shadow: none !important; }
.tf3-btn-arr { transition: transform 0.25s ease; font-size: 16px; }
.tf3-btn:hover .tf3-btn-arr { transform: translateX(3px); }

/* SPINNER */
.tf3-spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: tf3Spin 0.6s linear infinite;
}
@keyframes tf3Spin { to { transform: rotate(360deg); } }

/* ERRORS */
.tf3-err, .tf3-submit-err { color: #ef4444; font-size: 13px; font-weight: 500; margin: 8px 0 12px 0; display: none; }
.tf3-submit-err { text-align: center; margin-top: 16px; }
.tf3-err.tf3-show, .tf3-submit-err.tf3-show { display: block; animation: tf3Shake 0.4s ease; }
@keyframes tf3Shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-5px);} 40%{transform:translateX(4px);} 60%{transform:translateX(-3px);} 80%{transform:translateX(2px);} }

.tf3-legal { font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 16px; line-height: 1.5; }
.tf3-legal a { color: rgba(255,255,255,0.45); }

/* SUCCESS */
.tf3-success { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 30px; width: 100%; height: 100%; }
.tf3-success-icon { font-size: 56px; margin-bottom: 16px; animation: tf3ScaleIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
@keyframes tf3ScaleIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tf3-success h2 { font-family: 'Satoshi', sans-serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; margin: 0 0 12px 0; line-height: 1.1; }
.tf3-sname { color: #FF5443; text-transform: capitalize; }
.tf3-success p { color: rgba(255,255,255,0.5); font-size: 16px; line-height: 1.6; margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }

.tf3-btn-massive {
    font-size: 16px; padding: 20px 36px; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 84, 67, 0.25); width: 100%; max-width: 400px;
    animation: tf3PulseBtn 2s infinite; margin: 0 auto;
}
@keyframes tf3PulseBtn { 0% { box-shadow: 0 0 0 0 rgba(255, 84, 67, 0.35); } 70% { box-shadow: 0 0 0 12px rgba(255, 84, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 84, 67, 0); } }
.tf3-success-secure { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tf3-calendar-container { width: 100%; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: tf3ScaleIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; display: flex; flex-direction: column; transition: opacity 0.4s ease, transform 0.4s ease; }

/* BARRE AU-DESSUS DU CALENDRIER */
.tf3-cal-topbar { background: #111; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.tf3-cal-topbar-text { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tf3-cal-topbar-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; animation: tf3Pulse 2s infinite; }
.tf3-booked-btn {
    background: #22C55E; color: white; border: none; padding: 10px 20px; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25); white-space: nowrap;
}
.tf3-booked-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35); }
.tf3-booked-btn:active { transform: scale(0.97); }
.tf3-booked-hidden { opacity: 0; pointer-events: none; transform: scale(0.9); }
@keyframes tf3BtnAppear { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
.tf3-booked-btn:not(.tf3-booked-hidden) { animation: tf3BtnAppear 0.4s cubic-bezier(0.25,0.8,0.25,1) forwards; }

.tf3-cal-iframe-wrap { flex: 1; min-height: 0; }
.tf3-cal-iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* POPUP OVERLAY */
.tf3-popup-overlay {
    position: fixed; inset: 0; z-index: 1000000;
    background: rgba(0,0,0,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.tf3-popup-overlay.tf3-popup-active { opacity: 1; pointer-events: auto; background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.tf3-popup {
    background: #111; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 48px 36px; max-width: 480px; width: 90%;
    text-align: center; position: relative; transform: scale(0.8) translateY(30px); opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.tf3-popup-overlay.tf3-popup-active .tf3-popup { transform: scale(1) translateY(0); opacity: 1; }

.tf3-popup-confetti { font-size: 64px; margin-bottom: 16px; animation: tf3PopBounce 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
@keyframes tf3PopBounce { 0% { transform: scale(0) rotate(-10deg); } 50% { transform: scale(1.2) rotate(5deg); } 100% { transform: scale(1) rotate(0deg); } }

.tf3-popup h2 { font-family: 'Satoshi', sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 0 0 8px 0; line-height: 1.15; }
.tf3-popup-name { color: #22C55E; }
.tf3-popup p { color: rgba(255,255,255,0.5); font-size: 15px; line-height: 1.6; margin: 0 0 28px 0; }
.tf3-popup-checklist { text-align: left; margin: 0 auto 28px; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.tf3-popup-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 500; }
.tf3-popup-check-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, 0.15); color: #22C55E; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.tf3-popup-close { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 14px 28px; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; width: 100%; max-width: 280px; }
.tf3-popup-close:hover { background: rgba(255,255,255,0.1); color: white; }

@media (max-width: 768px) {
    .tf3-popup { padding: 36px 24px; }
    .tf3-popup-confetti { font-size: 52px; }
    .tf3-booked-btn { font-size: 14px; padding: 15px 24px; }
}

/* IMAGE PANEL */
.tf3-img-wrap { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; z-index: 1; pointer-events: none; overflow: hidden; }
.tf3-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.tf3-img-bg::before { content:''; position: absolute; inset: 0; background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.5) 40%, transparent 100%); }
.tf3-img-active { opacity: 1; }

/* Overlay réassurance */
.tf3-reassurance { position: absolute; bottom: 40px; left: 30px; right: 30px; z-index: 5; pointer-events: none; opacity: 0; transform: translateY(10px); transition: all 0.5s ease; }
.tf3-img-bg.tf3-img-active .tf3-reassurance { opacity: 1; transform: translateY(0); }
.tf3-reassurance-card { background: rgba(0,0,0,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px 22px; }
.tf3-reassurance-quote { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; font-style: italic; margin-bottom: 12px; }
.tf3-reassurance-author { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 600; }
.tf3-reassurance-stat { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.tf3-reassurance-stat-num { color: #FF5443; font-weight: 800; font-size: 22px; }

/* NAV — dans le flux (dernier enfant flex de .tf3), pas en overlay, sinon
   au scroll max le bouton Suivant passe DERRIÈRE la barre (bug bouton coupé). */
.tf3-nav { padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 10; border-top: 1px solid rgba(255,255,255,0.04); background: transparent; flex-shrink: 0; transition: opacity 0.3s ease; }
.tf3-nav.tf3-nav-hidden { display: none; }
.tf3-nav-btns { display: flex; gap: 8px; }
.tf3-nav-btn { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.tf3-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.tf3-nav-btn:disabled { opacity: 0.15; cursor: not-allowed; }
.tf3-nav-brand { font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.1); letter-spacing: 1.5px; text-transform: uppercase; }

.tf3.is-success-view .tf3-content { padding-top: 5vh; }

/* ============================================ */
/* MOBILE                                       */
/* ============================================ */
@media (max-width: 768px) {
    .tf3-img-wrap { display: none; }
    .tf3-content { padding: 24px 20px 28px 20px; align-items: flex-start; width: 100%; }
    .tf3-slides-wrap { margin: 0 auto; align-items: flex-start; }
    .tf3-slide { justify-content: flex-start; }
    .tf3-mobile-img { display: block; width: 100%; height: 140px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 20px; position: relative; flex-shrink: 0; }
    .tf3-mobile-img::after { content:''; position: absolute; inset: 0; background: linear-gradient(to top, #050505 0%, transparent 60%); border-radius: 12px; }
    .tf3-topbar { padding: 14px 18px; }
    .tf3-logo-img { height: 38px; }
    .tf3-intro-title { font-size: 26px; }
    .tf3-intro-sub { font-size: 14px; margin-bottom: 22px; }
    .tf3-q { font-size: 22px; margin-bottom: 12px; }
    .tf3-qsub { font-size: 13px; margin-bottom: 18px; }
    .tf3-nav { padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: #050505; border-top: 1px solid rgba(255,255,255,0.06); }
    .tf3-input-row { flex-direction: column; gap: 10px; margin-bottom: 12px; }
    .tf3-input { font-size: 16px; padding: 15px 16px; }
    .tf3-phone-prefix { font-size: 14px; }
    .tf3-opts { gap: 8px; }
    .tf3-opt { padding: 14px 16px; gap: 12px; }
    .tf3-opt-txt { font-size: 15px; }
    .tf3-opt-key { width: 24px; height: 24px; font-size: 10px; }
    .tf3-btn { max-width: 100%; font-size: 14px; padding: 15px 24px; }
    .tf3-cta { margin-top: 16px; }
    .tf3-slide[data-s="8"] .tf3-cta { margin-top: 16px; padding-bottom: 20px; }
    .tf3-success { padding: 0; justify-content: flex-start; margin-top: 10px; }
    .tf3-success p { font-size: 15px; }
    .tf3-btn-massive { font-size: 15px; padding: 18px; }
    .tf3-calendar-container { height: 85vh; }
    .tf3-cal-topbar { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
    .tf3-cal-topbar-text { font-size: 12px; }
    .tf3-booked-btn { font-size: 12px; padding: 9px 16px; }
    .tf3-other-input { font-size: 16px; padding: 13px 14px; }
}

@media (max-width: 374px) {
    .tf3-content { padding: 16px 16px 24px 16px; }
    .tf3-mobile-img { height: 100px; margin-bottom: 14px; }
    .tf3-intro-title { font-size: 22px; }
    .tf3-q { font-size: 19px; }
    .tf3-opt { padding: 12px 14px; }
    .tf3-opt-txt { font-size: 13.5px; }
    .tf3-btn { font-size: 13px; padding: 14px 20px; }
    .tf3-nav-btn { width: 36px; height: 36px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .tf3-img-wrap { width: 35%; }
    .tf3-content { width: 65%; padding: 8vh 32px 40px; }
}

@media (min-width: 1440px) {
    .tf3-img-wrap { width: 42%; }
    .tf3-content { width: 58%; padding: 10vh 60px 40px; }
    .tf3-slides-wrap { max-width: 640px; }
    .tf3-intro-title { font-size: 48px; }
    .tf3-q { font-size: 32px; }
    .tf3-opt { padding: 18px 22px; }
    .tf3-opt-txt { font-size: 16px; }
    .tf3-input { font-size: 19px; padding: 18px 20px; }
}

/* Source hors tunnel : picker optionnel sur l'écran de succès */
.tf3-source-post { width: 100%; max-width: 460px; margin: 22px auto 0; text-align: center; animation: tf3ScaleIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tf3-source-post-q { color: rgba(255,255,255,0.4); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px 0; }
.tf3-source-post-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tf3-source-chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: all 0.18s ease; }
.tf3-source-chip:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); color: #fff; }
.tf3-source-chip-on { background: rgba(255, 84, 67, 0.16); border-color: rgba(255, 84, 67, 0.55); color: #fff; }
.tf3-source-done .tf3-source-chip:not(.tf3-source-chip-on) { opacity: 0.4; pointer-events: none; }
.tf3-source-post-thanks { color: #22C55E; font-size: 13px; font-weight: 600; margin-top: 12px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.25s ease, max-height 0.25s ease; }
.tf3-source-thanks-on { opacity: 1; max-height: 30px; }

/* Écran combiné métier + effectif : sous-question + pastilles compactes */
.tf3-q-sub2 { font-size: clamp(17px, 2vw, 21px); margin: 26px 0 10px 0; }
.tf3-opts-inline { flex-direction: row; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; padding-right: 0; }
.tf3-opts-inline .tf3-opt { flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; }
.tf3-opts-inline .tf3-opt-key { display: none; }
.tf3-opts-inline .tf3-opt-txt { font-size: 13.5px; white-space: nowrap; }
@media (max-width: 374px) {
    .tf3-opts-inline .tf3-opt { padding: 9px 13px; }
    .tf3-opts-inline .tf3-opt-txt { font-size: 12.5px; }
}
