/* ===================================================================
   ONBOARDING TUNNEL — styles
   Porté du mockup validé (mockup-onboarding-tunnel-signup.html).
   TOUT est scopé sous #ob-tunnel-root pour éviter toute collision
   avec style.css / onboarding-rentabilite.css de l'app.
   Un seul conteneur responsive plein écran (overlay).
   =================================================================== */

/* ============ OVERLAY plein écran ============ */
#ob-tunnel-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;          /* au-dessus de tout */
  background: #fff;
  display: none;                /* affiché via .ob-open */
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0F172A;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#ob-tunnel-root.ob-open { display: block; animation: ob-overlay-in .22s ease; }
@keyframes ob-overlay-in { from { opacity: 0; } to { opacity: 1; } }
#ob-tunnel-root *, #ob-tunnel-root *::before, #ob-tunnel-root *::after { box-sizing: border-box; margin: 0; padding: 0; }
#ob-tunnel-root button { font-family: inherit; cursor: pointer; }

/* ============ MODAL (carte plein écran) ============ */
#ob-tunnel-root .ob-modal {
  background: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}

/* Header (retiré du rendu, conservé pour compat — la progression est en bas) */
#ob-tunnel-root .ob-head {
  width: 100%; max-width: 700px; margin: 0 auto;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex; flex-direction: column; gap: 12px;
}
#ob-tunnel-root .ob-head-row1 { display: flex; align-items: center; gap: 12px; }
#ob-tunnel-root .ob-head-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #0F172A;
  flex: 1 1 auto; min-width: 0;
}
#ob-tunnel-root .ob-head-dot { width: 10px; height: 10px; border-radius: 50%; background: #4F46E5; flex-shrink: 0; }
#ob-tunnel-root .ob-progress { display: flex; gap: 6px; width: 100%; }
#ob-tunnel-root .ob-progress-seg { flex: 1; height: 4px; background: #E2E8F0; border-radius: 99px; transition: background .25s; }
#ob-tunnel-root .ob-progress-seg.active { background: #4F46E5; }
#ob-tunnel-root .ob-progress-seg.done   { background: #4F46E5; }
#ob-tunnel-root .ob-step-count { font-size: 11px; font-weight: 600; color: #64748B; white-space: nowrap; }
#ob-tunnel-root .ob-close {
  width: 26px; height: 26px; border-radius: 8px; border: 0;
  background: #F1F5F9; color: #64748B;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s;
}
#ob-tunnel-root .ob-close:hover { background: #E2E8F0; color: #0F172A; }

/* Body */
#ob-tunnel-root .ob-body { width: 100%; max-width: 700px; margin: 0 auto; padding: 28px 24px; flex: 1; overflow-y: auto; }
#ob-tunnel-root .ob-body-h2 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 6px;
  display: inline-block;
  background: linear-gradient(120deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
#ob-tunnel-root .ob-body-sub { font-size: 14px; color: #64748B; line-height: 1.55; margin-bottom: 20px; }

/* Footer */
#ob-tunnel-root .ob-foot-wrap { width: 100%; max-width: 700px; margin: 0 auto; border-top: 1px solid #F1F5F9; }
#ob-tunnel-root .ob-foot-progress { display: flex; align-items: center; gap: 12px; padding: 14px 24px 0; }
#ob-tunnel-root .ob-foot-progress .ob-progress { flex: 1; }
#ob-tunnel-root .ob-foot { padding: 14px 24px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#ob-tunnel-root .ob-foot-spacer { flex: 1; }
#ob-tunnel-root .ob-skip { background: transparent; border: 0; font-size: 13px; color: #64748B; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; cursor: pointer; }
#ob-tunnel-root .ob-skip:hover { color: #64748B; }
#ob-tunnel-root .ob-btn {
  border: 0; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: all .15s;
}
#ob-tunnel-root .ob-btn-primary { background: #4F46E5; color: #fff; }
#ob-tunnel-root .ob-btn-primary:hover { background: #4338CA; }
#ob-tunnel-root .ob-btn-primary:disabled { background: #CBD5E1; color: #fff; cursor: not-allowed; }
#ob-tunnel-root .ob-btn-ghost { background: transparent; color: #4F46E5; border: 1.5px solid #C7D2FE; }
#ob-tunnel-root .ob-btn-ghost:hover { background: #EEF2FF; }
#ob-tunnel-root .ob-btn-block { width: 100%; justify-content: center; margin-bottom: 10px; }
#ob-tunnel-root .ob-linkbtn { display: block; width: 100%; text-align: center; background: transparent; border: 0; color: #4F46E5; font-weight: 600; font-size: 13px; padding: 10px; }
#ob-tunnel-root .ob-linkbtn:hover { text-decoration: underline; }

/* ============ Boutons ronds de navigation (fleche violette, Suivant / Retour) ============ */
#ob-tunnel-root .ob-nav-btn {
  width: 52px; height: 52px; flex-shrink: 0; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: #4F46E5; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
#ob-tunnel-root .ob-nav-btn svg { width: 28px; height: 28px; }
#ob-tunnel-root .ob-nav-btn:hover { background: #EEF2FF; }
#ob-tunnel-root .ob-nav-btn:active { transform: scale(.92); }
#ob-tunnel-root .ob-nav-btn:disabled { background: transparent; color: #C7D2FE; cursor: not-allowed; }
/* CTA final (dernier ecran) : garde un libelle clair, en pilule */
#ob-tunnel-root .ob-cta-pill { border-radius: 99px; padding: 14px 30px; box-shadow: 0 8px 20px rgba(79,70,229,.34); }
#ob-tunnel-root .ob-cta-pill:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79,70,229,.44); }

/* ============ Effet machine a ecrire (titres ecrans 1 & 2) ============ */
#ob-tunnel-root .ob-h2-type { background: none; -webkit-text-fill-color: #7C3AED; color: #7C3AED; min-height: 1.2em; }
#ob-tunnel-root .ob-type-cursor { display: inline-block; width: 3px; height: .92em; background: #7C3AED; margin-left: 3px; vertical-align: -2px; border-radius: 1px; animation: ob-blink .7s step-end infinite; }
@keyframes ob-blink { 50% { opacity: 0; } }
#ob-tunnel-root .ob-after-type { opacity: 0; pointer-events: none; }
#ob-tunnel-root .ob-after-type.ob-revealed { animation: ob-subfade .6s ease forwards; pointer-events: auto; }
@keyframes ob-subfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Ecran 0 — Bienvenue (page blanche facon Apple) ============ */
#ob-tunnel-root .ob-intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; padding: 24px; background: #fff;
  position: relative; overflow: hidden;
}
#ob-tunnel-root .ob-intro::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 1000px; height: 780px; transform: translate(-50%, -54%);
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(124,58,237,.26) 0%, rgba(124,58,237,.14) 32%, rgba(124,58,237,.05) 55%, rgba(124,58,237,0) 72%);
}
#ob-tunnel-root .ob-intro > * { position: relative; z-index: 2; }
#ob-tunnel-root .ob-intro-title {
  font-size: 44px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  color: #0F172A; margin: 0 0 24px; max-width: 640px;
}
#ob-tunnel-root .ob-intro-title .one { color: #7C3AED; }
#ob-tunnel-root .ob-intro-grp { white-space: nowrap; }
#ob-tunnel-root .ob-intro-title .ob-rl {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(12px); transform: translateY(18px);
  animation: ob-reveal .62s cubic-bezier(.21,.7,.25,1) forwards;
}
@keyframes ob-reveal { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
#ob-tunnel-root .ob-intro-sub {
  font-size: 18px; color: #64748B; margin: 0 0 36px; font-weight: 500;
  opacity: 0; animation: ob-introfade .85s ease forwards; animation-delay: 1.5s;
}
#ob-tunnel-root .ob-intro-next {
  font-size: 15px; padding: 14px 34px; border-radius: 99px;
  box-shadow: 0 10px 26px rgba(79,70,229,.42);
  opacity: 0; animation: ob-introfade .85s ease forwards; animation-delay: 2s;
}
@keyframes ob-introfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Focus clavier visible (WCAG 2.4.7) ============ */
#ob-tunnel-root :focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; border-radius: 8px; }
#ob-tunnel-root .ob-card:focus-visible { outline-offset: 3px; }
#ob-tunnel-root .ob-cdd-option:focus-visible { outline-offset: -2px; border-radius: 0; }
#ob-tunnel-root .ob-input:focus-visible { outline: none; }

/* ============ Cartes métier / sous-métier ============ */
#ob-tunnel-root .ob-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#ob-tunnel-root .ob-card {
  background: #fff; border: 1.5px solid #E2E8F0; border-radius: 14px;
  padding: 16px; text-align: left;
  display: flex; align-items: center; gap: 14px;
  transition: all .15s; cursor: pointer; position: relative;
}
#ob-tunnel-root .ob-card:hover { border-color: #C7D2FE; background: #FAFBFF; }
#ob-tunnel-root .ob-card.selected { border-color: #4F46E5; border-width: 2px; background: #EEF2FF; padding: 15px; }
#ob-tunnel-root .ob-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: #EEF2FF; color: #4F46E5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s;
}
#ob-tunnel-root .ob-card.selected .ob-card-icon { background: #4F46E5; color: #fff; }
#ob-tunnel-root .ob-card-text { flex: 1; min-width: 0; }
#ob-tunnel-root .ob-card-title { font-size: 14px; font-weight: 700; color: #0F172A; margin-bottom: 3px; transition: color .15s; }
#ob-tunnel-root .ob-card.selected .ob-card-title { color: #4F46E5; }
#ob-tunnel-root .ob-card-desc { font-size: 12px; color: #64748B; line-height: 1.45; }
#ob-tunnel-root .ob-card.full-width { grid-column: 1 / -1; }
#ob-tunnel-root .ob-card.selected::after {
  content: ''; position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: #4F46E5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* ============ Champs ============ */
#ob-tunnel-root .ob-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
#ob-tunnel-root .ob-label { font-size: 11px; font-weight: 800; color: #4F46E5; letter-spacing: .06em; text-transform: uppercase; }
#ob-tunnel-root .ob-label-row { display: flex; align-items: center; gap: 8px; }
#ob-tunnel-root .ob-accent { color: #4F46E5; font-weight: 700; }
#ob-tunnel-root .ob-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #E2E8F0; border-radius: 10px;
  font-size: 14px; color: #0F172A; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
#ob-tunnel-root .ob-input:focus { outline: 0; border-color: #4F46E5; box-shadow: 0 0 0 4px rgba(79,70,229,.10); }

/* "?" aide + bulle */
#ob-tunnel-root .ob-help-btn {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #C7D2FE; background: #EEF2FF; color: #4F46E5;
  font-size: 11px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s;
}
#ob-tunnel-root .ob-help-btn:hover { background: #4F46E5; color: #fff; border-color: #4F46E5; }
#ob-tunnel-root .ob-help-box { background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 10px; padding: 11px 13px; font-size: 12px; color: #3730A3; line-height: 1.55; margin-top: 8px; }

/* Menu déroulant personnalisé (encadré violet + survol/sélection violet) */
#ob-tunnel-root .ob-cdd { position: relative; }
#ob-tunnel-root .ob-cdd-trigger {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1.5px solid #E2E8F0; border-radius: 10px;
  background: #fff; color: #0F172A; font-size: 14px; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
#ob-tunnel-root .ob-cdd-trigger:hover { border-color: #C7D2FE; }
#ob-tunnel-root .ob-cdd-trigger[aria-expanded="true"] { border-color: #4F46E5; box-shadow: 0 0 0 4px rgba(79,70,229,.10); }
#ob-tunnel-root .ob-cdd-label { flex: 1; min-width: 0; white-space: normal; line-height: 1.4; }
#ob-tunnel-root .ob-cdd-chev { flex-shrink: 0; color: #64748B; transition: transform .2s; }
#ob-tunnel-root .ob-cdd-trigger[aria-expanded="true"] .ob-cdd-chev { transform: rotate(180deg); }
#ob-tunnel-root .ob-cdd-menu {
  display: none; margin-top: 8px;
  box-sizing: border-box; width: 100%; max-width: 100%;
  border: 2px solid #4F46E5; border-radius: 10px;
  background: #fff; overflow: hidden; box-shadow: 0 10px 28px rgba(79,70,229,.16);
}
#ob-tunnel-root .ob-cdd-menu.open { display: block; animation: ob-cdd-in .15s ease; }
@keyframes ob-cdd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
#ob-tunnel-root .ob-cdd-option {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 0; border-bottom: 1px solid #F1F5F9;
  background: #fff; color: #0F172A; font-size: 13px; text-align: left;
  cursor: pointer; transition: background .12s, color .12s;
}
#ob-tunnel-root .ob-cdd-option:last-child { border-bottom: 0; }
#ob-tunnel-root .ob-cdd-option:hover { background: #EEF2FF; color: #4338CA; }
#ob-tunnel-root .ob-cdd-option.selected { background: #EEF2FF; color: #4F46E5; font-weight: 600; }
#ob-tunnel-root .ob-cdd-option-label { flex: 1; min-width: 0; white-space: normal; line-height: 1.45; }
#ob-tunnel-root .ob-cdd-tick { flex-shrink: 0; color: #4F46E5; opacity: 0; margin-top: 1px; }
#ob-tunnel-root .ob-cdd-option.selected .ob-cdd-tick { opacity: 1; }

/* Cases à cocher */
#ob-tunnel-root .ob-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1.5px solid #E2E8F0; border-radius: 10px;
  cursor: pointer; transition: all .15s; margin-bottom: 10px;
}
#ob-tunnel-root .ob-checkbox-row:hover { border-color: #C7D2FE; background: #FAFBFF; }
#ob-tunnel-root .ob-checkbox-row.checked { border-color: #4F46E5; background: #EEF2FF; }
#ob-tunnel-root .ob-checkbox-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px;
  border: 1.5px solid #CBD5E1; border-radius: 5px; margin-top: 1px;
  flex-shrink: 0; position: relative; cursor: pointer; transition: all .15s;
}
#ob-tunnel-root .ob-checkbox-row.checked input[type="checkbox"] { background: #4F46E5; border-color: #4F46E5; }
#ob-tunnel-root .ob-checkbox-row.checked input[type="checkbox"]::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
#ob-tunnel-root .ob-checkbox-label { font-size: 13px; font-weight: 600; color: #0F172A; line-height: 1.45; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Date : 2 modes */
#ob-tunnel-root .ob-date-modes { display: flex; gap: 10px; flex-wrap: wrap; }
#ob-tunnel-root .ob-date-mode {
  flex: 1 1 140px; padding: 12px; border: 1.5px solid #E2E8F0; border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 600; color: #475569; transition: all .15s;
}
#ob-tunnel-root .ob-date-mode:hover { border-color: #C7D2FE; }
#ob-tunnel-root .ob-date-mode.active { border-color: #4F46E5; background: #EEF2FF; color: #4F46E5; }

/* Lignes RGPD */
#ob-tunnel-root .ob-rgpd {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: #475569; line-height: 1.5;
  background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}
#ob-tunnel-root .ob-rgpd svg { color: #10B981; flex-shrink: 0; margin-top: 1px; }
#ob-tunnel-root .ob-rgpd-mini { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #64748B; line-height: 1.5; margin: 16px 2px 0; }
#ob-tunnel-root .ob-rgpd-mini svg { color: #64748B; flex-shrink: 0; margin-top: 1px; width: 12px; height: 12px; }
#ob-tunnel-root .ob-rgpd-mini .ob-link { color: #6366F1; font-weight: 600; }
#ob-tunnel-root .ob-link { color: #4F46E5; font-weight: 600; text-decoration: none; }
#ob-tunnel-root .ob-link:hover { text-decoration: underline; }

/* SIRET : résultat trouvé / récap */
#ob-tunnel-root .ob-found, #ob-tunnel-root .ob-summary, #ob-tunnel-root .ob-config {
  border: 1.5px solid #E2E8F0; border-radius: 12px; overflow: hidden; margin-bottom: 16px;
}
#ob-tunnel-root .ob-found-row, #ob-tunnel-root .ob-summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid #F1F5F9; font-size: 13px;
}
#ob-tunnel-root .ob-found-row:last-child, #ob-tunnel-root .ob-summary-row:last-child { border-bottom: 0; }
#ob-tunnel-root .ob-found-row span, #ob-tunnel-root .ob-summary-row span { color: #64748B; flex-shrink: 0; }
#ob-tunnel-root .ob-found-row strong, #ob-tunnel-root .ob-summary-row strong { color: #0F172A; text-align: right; font-weight: 600; }

/* Récap config (écran 4) */
#ob-tunnel-root .ob-section-title { font-size: 12px; font-weight: 800; color: #4F46E5; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
#ob-tunnel-root .ob-config-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #F1F5F9; font-size: 13px; }
#ob-tunnel-root .ob-config-row:last-child { border-bottom: 0; }
#ob-tunnel-root .ob-config-row .lab { color: #4F46E5; font-weight: 600; flex-shrink: 0; width: 130px; }
#ob-tunnel-root .ob-config-row .val { color: #0F172A; font-weight: 600; flex: 1; min-width: 0; }
#ob-tunnel-root .ob-config-modify { background: transparent; border: 0; color: #4F46E5; font-weight: 600; font-size: 12px; flex-shrink: 0; }
#ob-tunnel-root .ob-config-modify:hover { text-decoration: underline; }

#ob-tunnel-root .ob-hint { font-size: 12px; color: #64748B; line-height: 1.5; margin: 6px 2px 0; padding: 0; }

/* ============ Récap — hero ============ */
#ob-tunnel-root .ob-hero-success { background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%); border-radius: 16px; padding: 30px 24px; text-align: center; color: #fff; margin-bottom: 20px; }
#ob-tunnel-root .ob-hero-dash { display: block; margin: 0 auto 16px; filter: drop-shadow(0 8px 18px rgba(15,23,42,.22)); }
#ob-tunnel-root .ob-hero-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
#ob-tunnel-root .ob-hero-sub { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.55; }
#ob-tunnel-root .ob-confirm-list { display: flex; flex-direction: column; gap: 10px; }
#ob-tunnel-root .ob-confirm-item { display: flex; gap: 12px; background: #F8FAFC; border-radius: 12px; padding: 14px 16px; align-items: flex-start; }
#ob-tunnel-root .ob-confirm-check { width: 22px; height: 22px; border-radius: 50%; background: #10B981; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#ob-tunnel-root .ob-confirm-text { font-size: 13px; color: #0F172A; line-height: 1.55; }
#ob-tunnel-root .ob-confirm-text strong { font-weight: 700; }

/* ============ États / sections / récompense / lancement ============ */
#ob-tunnel-root .ob-screen { display: flex; flex-direction: column; height: 100%; }
@keyframes ob-fade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
#ob-tunnel-root .ob-subhead { font-size: 11px; font-weight: 800; color: #4F46E5; letter-spacing: .08em; text-transform: uppercase; margin: 18px 2px 12px; padding-top: 14px; border-top: 1px solid #F1F5F9; }
#ob-tunnel-root .ob-subhead.first { margin-top: 0; padding-top: 0; border-top: 0; }
#ob-tunnel-root .ob-error {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #B91C1C;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; line-height: 1.45;
}
#ob-tunnel-root .ob-error svg { flex-shrink: 0; margin-top: 1px; }
#ob-tunnel-root .ob-spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: ob-spin .7s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
#ob-tunnel-root .ob-reward {
  display: flex; align-items: center; gap: 10px; background: #ECFDF5; border: 1.5px solid #6EE7B7;
  color: #065F46; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; font-weight: 600; animation: ob-fade .25s ease;
}
#ob-tunnel-root .ob-reward svg { color: #10B981; flex-shrink: 0; }
#ob-tunnel-root .ob-launch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; height: 100%; padding: 40px; }
#ob-tunnel-root .ob-launch-spin { width: 44px; height: 44px; border: 4px solid #E2E8F0; border-top-color: #4F46E5; border-radius: 50%; animation: ob-spin .8s linear infinite; }
#ob-tunnel-root .ob-launch-txt { font-size: 17px; font-weight: 800; color: #0F172A; }
#ob-tunnel-root .ob-launch-sub { font-size: 13px; color: #64748B; }

/* ============ Responsive (mobile) ============ */
@media (max-width: 640px) {
  #ob-tunnel-root .ob-cards { grid-template-columns: 1fr; }
  #ob-tunnel-root .ob-intro { padding: 24px 18px; }
  #ob-tunnel-root .ob-intro-title { line-height: 1.12; }
  #ob-tunnel-root .ob-intro-sub { font-size: 15px; }
  #ob-tunnel-root .ob-body { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  #ob-tunnel-root .ob-head { padding: calc(16px + env(safe-area-inset-top)) 16px 12px; }
  #ob-tunnel-root .ob-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  #ob-tunnel-root .ob-foot-progress { padding: 14px 16px 0; }
  #ob-tunnel-root .ob-btn { padding: 12px 16px; }
  #ob-tunnel-root .ob-step-count { display: none; }
  #ob-tunnel-root .ob-config-row { flex-wrap: wrap; align-items: center; }
  #ob-tunnel-root .ob-config-row .lab { order: 1; flex: 1; width: auto; }
  #ob-tunnel-root .ob-config-row .ob-config-modify { order: 2; }
  #ob-tunnel-root .ob-config-row .val { order: 3; flex-basis: 100%; width: 100%; margin-top: 3px; font-size: 12px; white-space: nowrap; }
}

/* Tres petits ecrans : reduit le titre de bienvenue pour eviter la troncature
   du groupe insecable "Bienvenue sur" (.ob-intro overflow:hidden + nowrap). */
@media (max-width: 360px) {
  #ob-tunnel-root .ob-intro-title { font-size: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  #ob-tunnel-root *, #ob-tunnel-root .ob-screen, #ob-tunnel-root .ob-cdd-menu.open,
  #ob-tunnel-root .ob-reward, #ob-tunnel-root .ob-spinner, #ob-tunnel-root .ob-launch-spin {
    animation: none !important; transition: none !important;
  }
  #ob-tunnel-root.ob-open { animation: none !important; }
  /* Sans animation, les elements en opacity:0 doivent quand meme s'afficher */
  #ob-tunnel-root .ob-intro-title .ob-rl,
  #ob-tunnel-root .ob-intro-sub,
  #ob-tunnel-root .ob-intro-next,
  #ob-tunnel-root .ob-after-type { opacity: 1 !important; filter: none !important; transform: none !important; pointer-events: auto !important; }
}
