/* Landing Ridearound — « Comment ça marche » (démo animée + étapes) et Tarifs */

/* ---------- étapes ---------- */
.how { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px 20px; transition: border-color .3s, background .3s, opacity .3s; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; transition: background .3s, color .3s; }
.steps h3 { font-size: 18px; margin: 2px 0 6px; }
.steps p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 15.5px; }
.st-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.st-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
/* animation en cours : l'étape jouée est mise en avant, les autres se touchent pour y sauter */
.how.live .steps li { cursor: pointer; opacity: .55; }
.how.live .steps li:hover { opacity: .85; }
.how.live .steps li .num { background: var(--navy-3); color: rgba(255, 255, 255, .8); }
.how.live .steps li.done { opacity: .7; }
.how.live .steps li.done .num { background: var(--green); color: #fff; }
.how.live .steps li.on { opacity: 1; border-color: rgba(255, 120, 30, .55); background: #18223A; }
.how.live .steps li.on .num { background: var(--grad); color: #fff; }
.how.live .st-bar { display: block; }
.steps li:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 2px; }

/* ---------- téléphone de la démo ---------- */
.phone.dm { width: 300px; }
.dm-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-pin { opacity: 0; transform: translateY(-30px); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.dm.located .dm-pin, .dm[data-phase="result"] .dm-pin { opacity: 1; transform: none; }
.dm-pulse { fill: rgba(16, 185, 129, .3); transform-origin: 84px 214px; animation: dm-pulse 1.6s infinite; }
@keyframes dm-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.dm-try { fill: none; stroke: #64748B; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.dm[data-phase="search"] .dm-try { opacity: .9; }
.dm[data-phase="search"].tried .dm-try { opacity: .25; transition: opacity .5s; }
.dm-route-glow { fill: none; stroke: #FF5500; stroke-opacity: 0; stroke-width: 14; stroke-linejoin: round; transition: stroke-opacity .5s; }
.dm[data-phase="result"] .dm-route-glow { stroke-opacity: .25; }
.dm-route { fill: none; stroke: #FF5500; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

.dm-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 352px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(11, 19, 38, .15); color: #0F172A; font-family: Inter, system-ui, sans-serif; transition: height .5s cubic-bezier(.3, .8, .3, 1); }
.dm-sheet .ph-grip { margin: 8px auto 0; }
.dm[data-phase="search"] .dm-sheet { height: 200px; }
.dm[data-phase="result"] .dm-sheet { height: 268px; }
.dm-pane { position: absolute; left: 14px; right: 14px; top: 24px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.dm[data-phase="form"] .dm-form, .dm[data-phase="search"] .dm-search, .dm[data-phase="result"] .dm-result { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .15s, transform .35s .15s, visibility 0s; }
.dm-instant, .dm-instant * { transition: none !important; }

/* critères */
.dm-form { display: grid; gap: 8px; }
.dm-start { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 10px; background: #F1F5F9; font-size: 12px; min-width: 0; }
.dm-start small { color: #5B6779; font-weight: 600; }
.dm-start b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.dm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 10px; background: #F1F5F9; font-size: 11.5px; font-weight: 700; text-align: center; }
.dm-seg span { padding: 6px 2px; border-radius: 8px; color: #5B6779; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-seg span.on { background: #fff; color: #0F172A; box-shadow: 0 1px 3px rgba(11, 19, 38, .15); }
.dm-shape { font-size: 10.5px; }
.dm-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; font-size: 11.5px; font-weight: 700; text-align: center; }
.dm-chips span { padding: 5px 2px; border-radius: 999px; border: 1px solid #E2E8F0; color: #5B6779; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.dm-chips span.on { background: #FF5500; border-color: #FF5500; color: #fff; }
.dm-num { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 8px; }
.dm-num small { font-size: 11px; font-weight: 700; color: #5B6779; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-num b { font-size: 15px; letter-spacing: -.02em; min-width: 54px; text-align: right; }
.dm-step { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #F1F5F9; font-weight: 800; transition: transform .15s, background .15s; }
.dm-step.pressed { background: #FFE2D1; transform: scale(.9); }
.dm-bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: #E2E8F0; overflow: hidden; }
.dm-bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }
.dm-cta { margin-top: 2px; text-align: center; padding: 11px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13.5px; transition: transform .15s, filter .15s; }
.dm-cta.pressed, .dm .ph-go.pressed, .dm-chips span.pressed { transform: scale(.95); filter: brightness(.92); }
.dm .ph-go { transition: transform .15s, filter .15s; white-space: nowrap; font-size: 12px; padding: 10px 6px; }
.dm .ph-more { font-size: 12px; padding: 10px; }

/* recherche */
.dm-search { display: grid; justify-items: center; gap: 4px; text-align: center; }
.dm-search b { font-size: 14px; }
.dm-search small { font-size: 12px; color: #5B6779; }
.dm-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #FFE2D1; border-top-color: #FF5500; animation: dm-spin .8s linear infinite; margin: 4px 0; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.dm-checks li { position: relative; font-size: 11px; font-weight: 700; padding: 4px 8px 4px 19px; border-radius: 999px; background: #F1F5F9; color: #5B6779; transition: background .25s, color .25s; }
.dm-checks li::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #CBD5E1; }
.dm-checks li.ok { background: #D1FAE5; color: #047857; }
.dm-checks li.ok::before { background: #10B981; }
.dm-checks li.bad { background: #FEE2E2; color: #B91C1C; }
.dm-checks li.bad::before { background: #EF4444; }

/* le curseur : une main qui glisse d'un bouton à l'autre ; le bout de l'index est le point visé */
.dm-cursor { position: absolute; z-index: 5; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: transform .6s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.how.live .dm-cursor { opacity: 1; }
.dm-cursor svg { position: absolute; left: -17px; top: -5px; width: 40px; height: 40px; fill: #fff; stroke: #0B1326; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(11, 19, 38, .35)); transform-origin: 17px 5px; transition: transform .15s; }
.dm-ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 85, 0, .35); border: 2px solid rgba(255, 85, 0, .8); opacity: 0; transform: scale(.3); }
.dm-cursor.click svg { animation: dm-press .35s ease-out; }
.dm-cursor.click .dm-ring { animation: dm-ring .55s ease-out; }
.dm-cursor.hold svg { animation: dm-press-hold 1.3s ease-out; }
.dm-cursor.hold .dm-ring { animation: dm-ring-hold 1.3s ease-out; }
@keyframes dm-press { 40% { transform: scale(.82); } }
@keyframes dm-press-hold { 12%, 85% { transform: scale(.82); } }
@keyframes dm-ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes dm-ring-hold { 0% { opacity: 1; transform: scale(.3); } 20% { opacity: .9; transform: scale(1); } 40% { opacity: .5; transform: scale(1.3); } 60% { opacity: .9; transform: scale(1); } 80% { opacity: .5; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* ---------- tarifs ---------- */
.founder { max-width: 900px; margin: 0 auto 24px; padding: 24px 28px; border-radius: 20px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255, 120, 30, .45); }
.founder-tag { font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--orange-2); }
.founder b { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.25; }
.founder > span:last-child { color: rgba(255, 255, 255, .7); font-size: 15px; }
.plans { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan-soon { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 0 16px; text-align: center; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 85, 0, .15); transform: rotate(-18deg); pointer-events: none; user-select: none; }
.plan h3 { font-size: 20px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price b { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.p-sub { margin: 0; color: var(--muted); font-size: 14px; min-height: 42px; }
.plan.best { border: 2px solid var(--orange); padding: 23px; }
.plan-off { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.p-was { margin: 0; color: var(--muted); font-size: 13px; }
.p-save { margin: 0; font-weight: 800; font-size: 15px; color: var(--link); } /* orange de la charte, lisible en clair comme en sombre */
.plan ul { margin: 8px 0 0; padding-left: 20px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- tablette / téléphone ---------- */
@media (max-width: 960px) {
  .how { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .steps { width: 100%; max-width: 560px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .p-sub { min-height: 0; }
}
@media (max-width: 620px) {
  .steps li { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; }
  .num { width: 36px; height: 36px; font-size: 16px; }
  .steps h3 { font-size: 16.5px; }
  .steps p { font-size: 14.5px; }
  .phone.dm { width: 290px; }
  .plan { padding: 20px; }
  .plan.best { padding: 19px; }
  .founder { padding: 18px 20px; }
}
