/* Guide « Comment acheter avec Wave » — parcours guidé en 7 étapes (inc/wave_guide.php) */
.cw-guide { margin:2px 0 14px; text-align:left; }

/* Progression façon « stories » : un segment par étape, cliquable */
.cw-prog { display:flex; gap:5px; margin:4px 2px 12px; }
.cw-seg { flex:1; height:22px; padding:9px 0; border:0; background:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.cw-seg i { display:block; height:4px; border-radius:3px; background:rgba(255,255,255,.18); position:relative; overflow:hidden; }
.cw-seg i::after { content:""; position:absolute; inset:0; transform:scaleX(0); transform-origin:left; background:linear-gradient(90deg,#F3D686,#E8B84B); transition:transform .35s ease; }
.cw-seg.done i::after, .cw-seg.on i::after { transform:scaleX(1); }
.cw-seg.done i::after { opacity:.55; }
.cw-seg:focus-visible { outline:2px solid var(--gold-soft,#F3D686); outline-offset:1px; border-radius:4px; }

/* Scène : l'écran actif au centre, les voisins en aperçu */
.cw-stage { position:relative; margin:0 -4px; }
.cw-stage::before { content:""; position:absolute; left:50%; top:46%; width:92%; height:78%; transform:translate(-50%,-50%); background:radial-gradient(closest-side, rgba(232,184,75,.20), rgba(232,184,75,0)); pointer-events:none; }
.cw-track { position:relative; display:flex; overflow-x:auto; padding:6px 17% 10px; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.cw-track::-webkit-scrollbar { display:none; }
.cw-track:focus-visible { outline:2px solid var(--gold-soft,#F3D686); outline-offset:2px; border-radius:14px; }
.cw-slide { flex:0 0 100%; scroll-snap-align:center; scroll-snap-stop:always; margin:0; padding:0 7px; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; gap:0;
  opacity:.38; transform:scale(.9); transform-origin:50% 38%; transition:opacity .35s ease, transform .35s ease; }
.cw-slide.is-active { opacity:1; transform:none; }
.cw-step, .cw-name, .cw-slide figcaption { transition:opacity .25s ease; }
.cw-slide:not(.is-active) .cw-step, .cw-slide:not(.is-active) .cw-name, .cw-slide:not(.is-active) figcaption { opacity:0; }
.cw-step { font:800 .66rem/1 'Baloo 2', sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-ink, var(--gold-soft)); margin:0 0 4px; }
.cw-name { display:block; font:800 1.08rem/1.2 'Baloo 2', sans-serif; color:var(--text); text-align:center; margin:0 0 12px; }

/* L'écran : sans cadre blanc, un simple contour lumineux, posé sur la scène */
.cw-shot { position:relative; width:min(100%, 236px); border-radius:22px; overflow:hidden; container-type:inline-size; background:#0d1020;
  box-shadow:0 0 0 1px rgba(255,255,255,.22), 0 0 0 5px rgba(8,10,24,.9), 0 0 0 6px rgba(255,255,255,.10), 0 22px 44px rgba(0,0,0,.55); }
.cw-shot img { display:block; width:100%; height:auto; }
.cw-slide figcaption { width:100%; max-width:300px; margin-top:16px; text-align:center; font-size:.82rem; line-height:1.5; color:var(--text-muted); }
.faq-answer .cw-slide figcaption { padding:0; }

/* Montants superposés aux captures */
.cw-ov { position:absolute; line-height:1; white-space:nowrap; font-family:Roboto, "Helvetica Neue", Arial, sans-serif; color:#2b2b2b; }
.cw-ov-site { left:8.2%; top:20.9%; font-family:'Baloo 2', sans-serif; font-weight:800; line-height:1.05; color:#F3D686; font-size:22px; font-size:7.8cqw; }
.cw-ov-field { left:4.4%; top:43%; transform:translateY(-50%); font-size:17px; font-size:5.5cqw; }
.cw-ov-total { right:6.65%; top:57.9%; transform:translateY(-50%); font-size:12px; font-size:3.9cqw; }
.cw-ov-receipt { left:0; right:0; text-align:center; top:7.8%; transform:translateY(-50%); font-weight:600; color:#1a1a1a; font-size:22px; font-size:7.75cqw; }
.cw-ov.cw-ph { font-style:italic; font-weight:500; color:#8f8f8f; }
.cw-ov-site.cw-ph { top:24.3%; transform:translateY(-50%); font-weight:700; color:rgba(243,214,134,.8); font-size:15px; font-size:5.2cqw; }
.cw-ov-field.cw-ph { font-size:12px; font-size:4cqw; }
.cw-ov-total.cw-ph { font-size:11px; font-size:3.4cqw; }
.cw-ov-receipt.cw-ph { font-size:14px; font-size:4.8cqw; color:#666; }
.cw-amt { color:var(--gold-ink, var(--gold-soft)); white-space:nowrap; }

/* Indicateur de toucher animé sur le bouton à presser */
.cw-tap { position:absolute; width:46px; height:46px; margin:-23px 0 0 -23px; border-radius:50%; border:2px solid #FFE28C; background:rgba(255,226,140,.32); opacity:0; pointer-events:none; }
.cw-tap::after { content:""; position:absolute; inset:15px; border-radius:50%; background:#FFE28C; box-shadow:0 0 10px rgba(255,226,140,.9); }
.cw-slide.is-active .cw-tap { animation:cw-tap 1.7s ease-out .5s infinite; }
@keyframes cw-tap { 0% { transform:scale(.45); opacity:.95; } 65% { transform:scale(1.2); opacity:0; } 100% { transform:scale(1.2); opacity:0; } }

/* Commandes */
.cw-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:6px 4px 0; }
.cw-btn { font:800 .86rem/1 'Baloo 2', sans-serif; min-height:44px; border-radius:999px; cursor:pointer; -webkit-tap-highlight-color:transparent; display:inline-flex; align-items:center; justify-content:center; gap:6px; transition:transform .12s ease, filter .15s; }
.cw-btn:active { transform:scale(.96); }
.cw-btn:focus-visible { outline:3px solid var(--gold-soft,#F3D686); outline-offset:2px; }
.cw-btn-ghost { padding:0 18px; border:1px solid rgba(255,255,255,.18); background:transparent; color:var(--text-muted); }
.cw-btn-main { flex:1; max-width:220px; margin-left:auto; padding:0 20px; border:0; color:#2A1D02; background:linear-gradient(120deg,#F3D686,#E8B84B); box-shadow:0 8px 20px rgba(232,184,75,.28), inset 0 1px 0 rgba(255,255,255,.5); }
.cw-btn-main svg { width:16px; height:16px; }
.cw-btn-main.is-last svg { display:none; }

/* Thème clair */
html[data-themeable][data-theme="light"] .cw-seg i { background:rgba(20,18,43,.16); }
html[data-themeable][data-theme="light"] .cw-stage::before { background:radial-gradient(closest-side, rgba(232,184,75,.26), rgba(232,184,75,0)); }
html[data-themeable][data-theme="light"] .cw-shot { box-shadow:0 0 0 1px rgba(20,18,43,.2), 0 0 0 5px #fff, 0 0 0 6px rgba(20,18,43,.12), 0 18px 36px rgba(20,18,43,.22); }
html[data-themeable][data-theme="light"] .cw-btn-ghost { border-color:rgba(20,18,43,.22); }

/* La FAQ limite la hauteur d'une réponse ouverte : on lève la limite pour ce guide */
.faq-item.faq-wave.open .faq-answer { max-height:1400px; }
@media (prefers-reduced-motion: reduce) {
  .cw-slide, .cw-seg i::after, .cw-btn { transition:none; }
  .cw-slide.is-active .cw-tap { animation:none; opacity:.9; transform:scale(.9); }
}
