/* =====================================================================
   Summit Training — « Comment s'inscrire dans ResaWOD » (installer-resawod.html)
   Vidéo explicative en 3 scènes : vraies captures de l'application (installation, connexion) dans des téléphones,
   l'e-mail reçu à côté de la page de connexion, et un écran d'illustration pour la réservation. Préfixe .iv-
   La scène est dessinée à une taille fixe (« canevas » 760x540, ou 420x820 sur téléphone) puis mise à l'échelle par le script.
   ===================================================================== */

.iv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 30px; align-items: start; }
.iv-phonewrap { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; width: 100%; max-width: 860px; margin: 0 auto; }

/* Scène (zone d'animation) */
.iv-stage { position: relative; width: 100%; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #e8f0ff 0%, #f8fafc 52%, #e3f2ff 100%); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .35); }
.iv-canvas { position: absolute; left: 0; top: 0; width: 760px; height: 540px; transform-origin: 0 0; }
.iv-canvas.tall { width: 420px; height: 820px; }
.iv-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease; font-family: var(--font-body, Inter, sans-serif); color: #0f172a; }
.iv-scene.active { opacity: 1; visibility: visible; }
.iv-scene [data-at] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.iv-scene [data-at].on { opacity: 1; transform: none; }
.iv-row3 { height: 100%; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 14px 22px; }
.iv-canvas.tall .iv-row3 { flex-direction: column; gap: 16px; padding: 12px 14px; }

/* Téléphone */
.iv-dev { --pw: 236px; position: relative; flex: 0 0 auto; width: var(--pw); aspect-ratio: 921 / 2000; padding: 7px; border-radius: 36px; box-sizing: border-box;
    background: linear-gradient(145deg, #323c50, #0b1220 42%, #1b2437); box-shadow: 0 32px 50px -14px rgba(15, 23, 42, .5), 0 0 0 1.5px #3b4558; }
.iv-dev::after { content: ""; position: absolute; right: -3px; top: 20%; width: 3px; height: 8%; background: #2b3446; border-radius: 2px; }
.iv-screenwrap { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fafafa; }
.iv-screenwrap > img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* Repères sur les captures */
.iv-ring { position: absolute; border-radius: 12px; border: 2.5px solid #2563eb; box-shadow: 0 0 0 5px rgba(37, 99, 235, .22); pointer-events: none; animation: iv-pulse 1.3s ease-in-out infinite; }
@keyframes iv-pulse { 50% { box-shadow: 0 0 0 9px rgba(37, 99, 235, .08); } }
.iv-tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(37, 99, 235, .3); border: 2px solid rgba(37, 99, 235, .8); pointer-events: none; z-index: 7; }
.iv-scene .iv-tap[data-at] { transform: scale(.4); }
.iv-scene .iv-tap[data-at].on { transform: scale(1); }

/* Zone de texte à côté du téléphone */
.iv-callout { width: 300px; display: grid; gap: 10px; align-content: center; }
.iv-canvas.tall .iv-callout { width: 380px; text-align: center; justify-items: center; }
.iv-kicker { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #1d4ed8; background: #dbeafe; padding: 5px 11px; border-radius: 999px; }
.iv-canvas.tall .iv-kicker { justify-self: center; }
.iv-callout h3 { margin: 0; font-family: var(--font-display, Montserrat, sans-serif); font-weight: 800; font-size: 25px; line-height: 1.15; letter-spacing: -.01em; }
.iv-callout h3 b { background: linear-gradient(135deg, #2563eb, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iv-callout p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #475569; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-chips span { font-size: 13px; font-weight: 700; background: #0f172a; color: #fff; border-radius: 10px; padding: 8px 13px; }
.iv-hint { font-size: 13.5px; line-height: 1.45; color: #1e3a8a; background: #fff; border: 1.5px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 16px rgba(37, 99, 235, .1); }
.iv-done { font-size: 13.5px; font-weight: 700; color: #166534; background: #dcfce7; border-radius: 12px; padding: 10px 12px; }
.iv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.iv-checks li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: #1e293b; background: #fff; border-radius: 12px; padding: 9px 12px; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); text-align: left; }
.iv-checks i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #2563eb; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.iv-illus { font-size: 11.5px; color: #94a3b8; }

/* Scène 2 : e-mail + page de connexion */
.iv-mail { width: 372px; flex: 0 0 auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 44px -16px rgba(15, 23, 42, .4), 0 0 0 1px rgba(15, 23, 42, .08); }
.iv-canvas.tall .iv-mail { width: 392px; }
.iv-mail-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.iv-mail-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.iv-mail-bar .dot:nth-child(1) { background: #f87171; } .iv-mail-bar .dot:nth-child(2) { background: #fbbf24; } .iv-mail-bar .dot:nth-child(3) { background: #4ade80; }
.iv-mail-bar em { margin-left: 8px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #64748b; }
.iv-mail-meta { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #eef2f7; }
.iv-mail-meta img { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; object-fit: contain; padding: 3px; }
.iv-mail-meta b { display: block; font-size: 13px; }
.iv-mail-meta small { display: block; font-size: 12px; color: #64748b; }
.iv-mail-body { padding: 14px; font-size: 13px; line-height: 1.5; color: #1e293b; }
.iv-mail-body p { margin: 8px 0; }
.iv-mail-hello { font-size: 13px; }
.iv-cred { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 6px 0; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #f8fafc; transition: background .25s, border-color .25s, box-shadow .25s; }
.iv-cred span { width: 96px; flex: 0 0 auto; color: #64748b; font-weight: 600; font-size: 12.5px; }
.iv-cred b { font-family: Consolas, Menlo, monospace; font-size: 14px; letter-spacing: .02em; flex: 1; }
.iv-cred .iv-badge { opacity: .35; transition: opacity .25s, transform .25s; }
.iv-cred.hl { background: #fffbeb; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.iv-cred.hl .iv-badge { opacity: 1; transform: scale(1.15); }
.iv-mail-next { color: #64748b; font-size: 12px; }
.iv-badge { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; line-height: 1; }
.iv-arrow { flex: 0 0 auto; width: 42px; color: #2563eb; }
.iv-arrow svg { display: block; width: 100%; }
.iv-canvas.tall .iv-arrow { transform: rotate(90deg); width: 34px; }
.iv-canvas.tall .iv-arrow[data-at] { transform: rotate(90deg) translateY(8px); }
.iv-canvas.tall .iv-arrow[data-at].on { transform: rotate(90deg); }

/* Texte tapé par-dessus les champs de la vraie capture */
.iv-ov { position: absolute; display: flex; align-items: center; padding: 0 3.5%; border-radius: 3px; background: #f4f4f4; color: #0f172a; font-weight: 600; font-size: calc(var(--pw) * .047); opacity: 0; transition: opacity .25s, box-shadow .25s; box-sizing: border-box; overflow: hidden; }
.iv-ov.show { opacity: 1; }
.iv-ov.hl { box-shadow: inset 0 0 0 2px #f59e0b, 0 0 0 4px rgba(245, 158, 11, .25); }
.iv-ov .iv-badge { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: 1.6em; height: 1.6em; font-size: calc(var(--pw) * .04); opacity: 0; transition: opacity .25s; }
.iv-ov.hl .iv-badge { opacity: 1; }
.iv-typed { font-style: normal; }
.iv-typed.cursor::after { content: "|"; margin-left: 1px; animation: iv-blink 1s steps(2) infinite; }
@keyframes iv-blink { 50% { opacity: 0; } }
.iv-btnflash .iv-ring { animation: none; }
.iv-welcome { position: absolute; inset: 0; z-index: 8; background: rgba(255, 255, 255, .97); display: grid; place-content: center; justify-items: center; gap: 7px; text-align: center; }
.iv-welcome .ok { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 28px; font-weight: 800; }
.iv-welcome b { font-family: var(--font-display, Montserrat, sans-serif); font-size: 20px; }
.iv-welcome small { font-size: 12.5px; line-height: 1.45; color: #64748b; padding: 0 14px; }

/* Scène 3 : écran d'illustration de l'application */
.iv-draw { background: #f8fafc; padding: 36px 12px 12px; font-family: var(--font-body, Inter, sans-serif); }
.iv-island { position: absolute; top: 9px; left: 50%; width: 36%; height: 14px; margin-left: -18%; background: #000; border-radius: 10px; z-index: 6; }
.iv-statusbar { position: absolute; top: 9px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: #0f172a; z-index: 5; }
.iv-appbar { margin: 0 -12px 10px; padding: 10px 14px; background: #22425c; color: #fff; font-family: var(--font-display, Montserrat, sans-serif); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.iv-h { font-family: var(--font-display, Montserrat, sans-serif); font-weight: 800; font-size: 17px; margin: 2px 0 10px; }
.iv-days { display: flex; gap: 5px; margin-bottom: 10px; }
.iv-day { flex: 1; text-align: center; background: #e2e8f0; border-radius: 9px; padding: 5px 0; font-size: 9.5px; color: #475569; line-height: 1.2; }
.iv-day b { display: block; font-size: 13px; color: #0f172a; }
.iv-day.sel { background: #22425c; color: #dbeafe; }
.iv-day.sel b { color: #fff; }
.iv-rowc { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 11px; padding: 9px; margin-bottom: 7px; border: 1.5px solid transparent; box-shadow: 0 3px 10px rgba(15, 23, 42, .05); transition: border-color .2s, background .2s; }
.iv-rowc .t { font-weight: 800; font-size: 12px; color: #22425c; }
.iv-rowc b { display: block; font-size: 12px; }
.iv-rowc small { color: #64748b; font-size: 10.5px; }
.iv-rowc.pick { border-color: #22425c; background: #eef3f8; }
.iv-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 14px 14px 18px; box-shadow: 0 -10px 30px rgba(15, 23, 42, .2); z-index: 4; }
.iv-sheet b { font-size: 13.5px; }
.iv-sheet p { margin: 2px 0 11px; font-size: 11px; color: #64748b; }
.iv-btn { display: grid; place-items: center; height: 40px; border-radius: 11px; background: #22425c; color: #fff; font-weight: 800; font-size: 13px; transition: transform .15s, background .2s; }
.iv-btn.press { transform: scale(.96); background: #16324a; }
.iv-btn.ok { background: #16a34a; }
.iv-scene .iv-sheet[data-at] { transform: translateY(100%); opacity: 1; }
.iv-scene .iv-sheet[data-at].on { transform: none; }
.iv-toast { position: absolute; left: 12px; right: 12px; top: 46px; background: #0f172a; color: #fff; border-radius: 11px; padding: 10px 12px; font-size: 12px; font-weight: 700; text-align: center; z-index: 6; }

/* Commandes */
.iv-controls { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; }
.iv-play { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--color-blue-600, #2563eb), var(--color-cyan-400, #38bdf8)); color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.iv-bars { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.iv-bar { height: 6px; border-radius: 3px; background: var(--color-gray-200, #e2e8f0); overflow: hidden; cursor: pointer; border: 0; padding: 0; }
.iv-bar i { display: block; height: 100%; width: 0; background: var(--color-blue-600, #2563eb); }
.iv-bar.done i { width: 100%; }
.iv-caption { width: 100%; max-width: 520px; min-height: 48px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--color-gray-700, #334155); }
.iv-caption b { color: var(--color-gray-900, #0f172a); }

/* Texte à côté */
.iv-side { max-width: 940px; margin: 0 auto; width: 100%; }
.iv-side h2 { font-family: var(--font-display, Montserrat, sans-serif); font-size: 1.25rem; margin: 0 0 16px; color: var(--color-gray-900, #0f172a); }
.iv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iv-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--color-gray-200, #e2e8f0); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.iv-steps li:hover { border-color: var(--color-blue-500, #3b82f6); }
.iv-steps li.cur { border-color: var(--color-blue-600, #2563eb); background: #eff6ff; }
.iv-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--color-blue-600, #2563eb), var(--color-cyan-400, #38bdf8)); }
.iv-steps b { display: block; font-size: 15px; color: var(--color-gray-900, #0f172a); margin-bottom: 2px; }
.iv-steps span { font-size: 13.5px; color: var(--color-gray-600, #475569); line-height: 1.5; }
.iv-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.iv-note { margin-top: 18px; font-size: 12px; color: var(--color-gray-400, #94a3b8); line-height: 1.5; }

@media (max-width: 900px) {
    .iv-grid { padding: 22px 14px; gap: 26px; }
    .iv-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .iv-scene, .iv-scene [data-at], .iv-sheet, .iv-cred, .iv-ov { transition: none; }
    .iv-ring { animation: none; }
}
