/* Okturn — conversation publique (home, bouton flottant) et aperçu animé du process du visiteur (01/10/2026). */
.okp { text-align: left; }
.okp-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.okp-msg { display: flex; gap: 8px; animation: okp-in .25s ease both; } .okp-me { justify-content: flex-end; }
@keyframes okp-in { from { opacity: 0; transform: translateY(6px); } }
.okp-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #fff; margin-top: auto; flex: 0 0 auto; }
.okp-bubble { max-width: min(86%, 560px); padding: 11px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.okp-ok .okp-bubble { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(60,30,10,.06); }
.okp-me .okp-bubble { background: linear-gradient(135deg, var(--fp-flame, #FF5722), #FF8A50); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 18px rgba(255,87,34,.25); }
.okp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .okp-tag { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.okp-ok .okp-tag { background: #f4f0eb; border-color: transparent; }
.okp-typing { display: inline-flex; gap: 4px; padding: 6px 2px; } .okp-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9c3bd; animation: okp-dots 1.2s infinite; }
.okp-typing i:nth-child(2) { animation-delay: .15s; } .okp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes okp-dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.okp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; }
.okp-chip { border: 1.5px solid rgba(0,0,0,.1); background: #fff; border-radius: 999px; padding: 10px 15px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; color: #18181B; }
.okp-chip.is-main { background: linear-gradient(135deg, var(--fp-flame, #FF5722), #FF8A50); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255,87,34,.28); }

.okp-card { margin-left: 38px; background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 14px 36px rgba(60,30,10,.08); animation: okp-in .3s ease both; }
@media (max-width: 480px) { .okp-card, .okp-chips, .okp-demo { margin-left: 0 !important; } .okp-chips { padding-left: 0; } }   /* la carte garde sa marge intérieure (palier à gauche corrigé, François 01/10) */
.okp-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--fp-flame, #FF5722); }
.okp-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0; } .okp-goal { color: #71717A; font-size: 13.5px; margin-bottom: 6px; }
.okp-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.okp-steps li { display: flex; gap: 10px; align-items: flex-start; }
.okp-steps .okp-n { width: 38px; height: 38px; line-height: 38px; text-align: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 15px; display: block; flex: 0 0 auto; margin-top: 1px; box-shadow: 0 4px 10px rgba(0,0,0,.12); letter-spacing: .02em; }
.okp-steps strong { display: block; font-size: 15px; } .okp-steps div > span { display: block; font-size: 14px; color: #2b2622; } .okp-steps em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; color: #0f6a44; background: #eef7f2; padding: 2px 8px; border-radius: 999px; margin-top: 3px; }

.okp-demo { margin-left: 38px; position: relative; background: #fff; border-radius: 22px; padding: 16px 14px 14px; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 16px 40px rgba(60,30,10,.1); animation: okp-in .3s ease both; }
.okp-demo ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.okp-dline { position: absolute; left: 39px; top: 0; height: 0; width: 3px; background: #ece5de; border-radius: 3px; }
.okp-dline::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0%); background: linear-gradient(180deg, #FF8A50, var(--fp-flame, #FF5722)); border-radius: 3px; transition: height .9s cubic-bezier(.3,.9,.3,1.15); }
.okp-dav.is-bounce { animation: okp-arrive .6s cubic-bezier(.2,1.4,.4,1) both; } @keyframes okp-arrive { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1.06); } }
.okp-dflame { position: absolute; left: 50%; top: var(--y, 0px); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,87,34,.35); transition: top .9s cubic-bezier(.2,.8,.2,1), opacity .2s; opacity: 0; z-index: 2; }
.okp-dflame.is-on { opacity: 1; } .okp-dflame img { width: 26px; height: 26px; }
.okp-demo li { display: flex; align-items: center; gap: 12px; }
.okp-dav { width: 52px; height: 52px; line-height: 52px; text-align: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 19px; display: block; flex: 0 0 auto; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; transition: transform .3s; }
.okp-dtxt { flex: 1; min-width: 0; position: relative; background: #FBF7F3; border-radius: 14px; padding: 9px 12px; border: 1.5px solid transparent; transition: .3s; }
.okp-dtime { position: absolute; right: 10px; top: 8px; text-align: right; font-size: 11px; line-height: 1.35; color: #8a827a; font-variant-numeric: tabular-nums; } .okp-dtime:empty { display: none; }
.okp-dtime b { display: inline-block; margin-top: 2px; color: var(--fp-flame, #FF5722); font-weight: 700; font-size: 11.5px; }
.okp-dtxt > strong { display: inline-block; max-width: calc(100% - 96px); }
.okp-dtxt > span { padding-right: 96px; }
.okp-dlaunch .okp-dav { font-size: 20px; } .okp-dlaunch .okp-dtxt { background: #fff; border: 1.5px dashed rgba(27,31,42,.18); }
.okp-dtxt strong { font-size: 15px; } .okp-dtxt span { display: block; font-size: 14px; color: #2b2622; }
.okp-dstate { display: inline-block; margin-top: 5px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #efe9e3; color: #8a827a; }
.okp-devt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 52px; line-height: 1.3; box-sizing: border-box; opacity: 0; transition: opacity .3s; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: #3a3430; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 10px; padding: 6px 9px; animation: okp-in .3s ease both; }
.okp-devt.is-on { opacity: 1; }
.okp-demo li.is-now .okp-dtxt { background: #fff; border-color: rgba(255,87,34,.45); box-shadow: 0 10px 26px rgba(255,87,34,.14); }
.okp-demo li.is-now .okp-dav { transform: scale(1.06); animation: okp-ring 1.6s infinite; }
.okp-dav::after { content: ''; position: absolute; right: -9px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; background: url(/assets/images/fire.gif) center / 28px no-repeat; filter: drop-shadow(0 3px 5px rgba(255,87,34,.35)); opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s; line-height: 24px; text-align: center; font-size: 13px; font-weight: 800; }
.okp-demo li.is-now .okp-dav::after { opacity: 1; transform: none; }
.okp-demo li.is-done .okp-dav::after { opacity: 1; transform: none; right: -5px; bottom: -5px; width: 24px; height: 24px; background: #10B981; color: #fff; content: '✓'; filter: none; box-shadow: 0 3px 8px rgba(16,185,129,.35); }
@keyframes okp-ring { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 12px rgba(255,87,34,.12); } }
.okp-demo li.is-now .okp-dstate { background: #FFF3EF; color: var(--fp-flame, #FF5722); } .okp-demo li.is-now .okp-devt { border-color: rgba(255,87,34,.3); color: #7a2e12; background: #FFF8F5; }
.okp-demo li.is-done .okp-dstate { background: #ECFDF5; color: #047857; }
.okp-demo-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.okp-activate { height: 54px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--fp-flame, #FF5722), #FF8A50); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(255,87,34,.3); }
.okp-activate:hover { filter: brightness(1.05); transform: translateY(-1px); }
.okp-demo-note { text-align: center; font-size: 12.5px; color: #71717A; }

.okp-form { background: #fff; border-radius: 22px; padding: 6px 6px 6px 4px; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(60,30,10,.1); border: 1.5px solid rgba(0,0,0,.04); }
.okp-form:focus-within { border-color: rgba(255,87,34,.5); box-shadow: 0 0 0 4px rgba(255,87,34,.12), 0 12px 32px rgba(60,30,10,.1); }
.okp-row { display: flex; align-items: flex-end; gap: 4px; }
.okp-row textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; font: inherit; font-size: 16px; line-height: 1.4; padding: 11px 6px; max-height: 140px; outline: none; color: #18181B; }
.okp-ib { width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #3a3430; flex: 0 0 auto; }
.okp-ib:hover { background: #f4efea; } .okp-mic.is-on { background: #EF4444; color: #fff; animation: okp-pulse 1.2s infinite; } .okp-mic.is-off { display: none; }
@keyframes okp-pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 100% { box-shadow: 0 0 0 14px rgba(239,68,68,0); } }
.okp-send { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--fp-flame, #FF5722); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.okp-send:disabled { background: #e6e0da; cursor: default; }
.okp-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 0; } .okp-files:empty { display: none; }
.okp-fchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 8px 5px 10px; border-radius: 999px; background: #FBF7F3; border: 1px solid rgba(0,0,0,.06); }
.okp-fchip.is-up { opacity: .6; } .okp-fchip button { border: 0; background: transparent; cursor: pointer; color: #71717A; font-size: 13px; }
.okp-hint { font-size: 12.5px; color: #B45309; padding: 4px 10px 0; min-height: 0; } .okp-hint:empty { display: none; }
.is-busy .okp-send { background: #e6e0da; }

/* ---- bouton flottant « Parler à Okturn » ---- */
.okfab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom) + var(--app-bottom-nav, 0px)); z-index: 80; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 8px; border-radius: 999px; background: #1b1f2a; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 14px 34px rgba(0,0,0,.28); border: 0; cursor: pointer; font-family: inherit; }
.okfab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #fff; }
.okfab:hover { transform: translateY(-2px); } .okfab.is-hidden { display: none; }
.okfab-panel { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 32px)); max-height: min(72vh, 640px); overflow-y: auto; background: #FBF7F3; border-radius: 22px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); z-index: 79; display: none; }
.okfab-panel.is-open { display: block; animation: okp-in .25s ease both; }
.okfab-panel h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .okfab { padding: 0 14px 0 6px; font-size: 14px; height: 50px; } .okfab-panel { right: 10px; left: 10px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); max-height: 78vh; } }

/* ---- fenêtre plein écran de la conversation (François 01/10 : « passe par-dessus tout », croix en haut à droite) ---- */
.okp-modal { position: fixed; inset: 0; z-index: 95; background: #FBF7F3; display: none; flex-direction: column; }
.okp-modal.is-open { display: flex; animation: okp-in .25s ease both; }
body.okp-modal-open { overflow: hidden; }
.okp-modal-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; background: rgba(251,247,243,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.05); }
.okp-modal-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #fff; box-shadow: 0 2px 10px rgba(255,87,34,.18); }
.okp-modal-name { font-weight: 700; font-size: 16px; } .okp-modal-sub { font-size: 12px; color: #71717A; }
.okp-modal-close { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #18181B; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.okp-modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.okp-modal-inner { max-width: 760px; margin: 0 auto; padding: 14px 14px 0; min-height: 100%; }
.okp-modal .okp { display: flex; flex-direction: column; min-height: 100%; }
.okp-modal .okp-thread { flex: 1 1 auto; padding-bottom: 14px; }
.okp-modal .okp-form { position: sticky; bottom: 0; margin: 0 -2px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(251,247,243,.9), 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(60,30,10,.1); }
body.okp-modal-open .okfab { display: none; }
