:root {
  --red: #ca0a0a; --red-d: #a50808; --red-soft: #fdecec;
  --gold: #ffb703; --green: #0fa968; --green-soft: #e5f7ef;
  --ink: #171b29; --ink2: #5d6478; --line: #e8eaf0; --bg: #f7f8fb; --card: #fff;
  --radius: 16px; --shadow: 0 1px 2px rgba(20,25,40,.04), 0 8px 24px rgba(20,25,40,.07);
  --shadow-lg: 0 18px 50px rgba(20,25,40,.16);
  --spring: cubic-bezier(.34, 1.56, .64, 1); --out: cubic-bezier(.22, 1, .36, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font: 15px/1.6 Poppins, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
main { flex: 1; width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
kbd { font: 600 11px Poppins, sans-serif; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink2); }
.in { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
main.in { padding-top: 28px; padding-bottom: 72px; }

/* Barre de chargement entre pages */
.topbar-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--red), #ff6b6b, var(--gold)); box-shadow: 0 0 10px rgba(202,10,10,.5); opacity: 0; }
.topbar-progress.go { opacity: 1; animation: navload 2.5s var(--out) forwards; }
@keyframes navload { 0% { width: 0; } 30% { width: 55%; } 100% { width: 92%; } }

/* Apparition */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s var(--out), transform .6s var(--out); transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: none; }

/* En-tête */
.hdr { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(232,234,240,.8); position: sticky; top: 0; z-index: 30; }
.hdr .in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 24px; display: block; transition: transform .3s var(--spring); }
.logo:hover img { transform: scale(1.05) rotate(-1deg); }
.logo span { font-size: 13px; font-weight: 500; color: var(--ink2); border-left: 1px solid var(--line); padding-left: 12px; }
.hsearch { flex: 1; max-width: 380px; margin-left: auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); border-radius: 11px; padding: 8px 10px 8px 12px; font: 14px Poppins, sans-serif; color: #8a90a2; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; text-align: left; }
.hsearch:hover { border-color: #d6d9e2; background: #fff; box-shadow: 0 2px 10px rgba(20,25,40,.06); }
.hsearch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }
.hsearch span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlevel { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px 6px 8px; border-radius: 30px; background: linear-gradient(135deg, #fff7e0, #ffe9b8); color: #7a4b00; border: 1px solid #ffd77a; white-space: nowrap; }
.hlevel .hl-ico { font-size: 17px; line-height: 1; }
.hlevel.pop { animation: pop .6s var(--spring); }
.hbtn { text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); white-space: nowrap; background: #fff; transition: border-color .2s, color .2s, transform .2s var(--spring); }
.hbtn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.preview-bar { background: #fff4e0; color: #8a5200; text-align: center; padding: 8px 16px; font-size: 13px; }

/* Héros */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.blobs { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.blobs i { position: absolute; border-radius: 50%; animation: float 16s ease-in-out infinite; }
.blobs i:nth-child(1) { width: 420px; height: 420px; background: #ffb3b3; left: 8%; top: -160px; }
.blobs i:nth-child(2) { width: 360px; height: 360px; background: #ffe08a; right: 6%; top: -120px; animation-delay: -5s; }
.blobs i:nth-child(3) { width: 300px; height: 300px; background: #c9b8ff; left: 45%; top: 40px; animation-delay: -10s; opacity: .7; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
.hero .in { position: relative; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 5px 14px; font-size: 13px; font-weight: 500; color: var(--ink2); box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -.025em; }
.grad { background: linear-gradient(90deg, #ca0a0a, #ff5a3c, #ff9f1c, #ca0a0a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.hero p { color: var(--ink2); margin: 0 auto 30px; max-width: 560px; font-size: 16px; }
.bigsearch { display: flex; align-items: center; max-width: 660px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 7px 7px 7px 18px; box-shadow: 0 10px 40px rgba(202,10,10,.10), var(--shadow); transition: box-shadow .25s, transform .25s var(--spring); }
.bigsearch:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(202,10,10,.14), var(--shadow); }
.bigsearch svg { width: 20px; height: 20px; fill: none; stroke: #9aa0b1; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: none; font: 16px Poppins, sans-serif; padding: 11px 12px; background: transparent; cursor: pointer; }
.bigsearch button { position: relative; overflow: hidden; border: 0; background: var(--red); color: #fff; font: 600 14px Poppins, sans-serif; padding: 13px 24px; border-radius: 11px; cursor: pointer; transition: background .2s, transform .15s; }
.bigsearch button:hover { background: var(--red-d); }
.bigsearch button:active { transform: scale(.96); }
.popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink2); align-items: center; }
.popular a { text-decoration: none; background: rgba(255,255,255,.85); border: 1px solid var(--line); padding: 4px 12px; border-radius: 30px; color: var(--ink); transition: all .2s var(--spring); }
.popular a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(202,10,10,.12); }

/* Parcours / niveau */
.journey { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; background: linear-gradient(135deg, #1c1f2e 0%, #2b1220 60%, #4a0d0d 100%); color: #fff; border-radius: 22px; padding: 24px 28px; margin: -8px 0 44px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.journey::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(255,183,3,.35), transparent 65%); pointer-events: none; }
.j-level { display: flex; gap: 16px; align-items: center; }
.j-badge { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
.j-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffcf66; font-weight: 600; }
.j-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.j-sub { font-size: 13px; color: rgba(255,255,255,.72); max-width: 330px; }
.j-bar-wrap { min-width: 0; }
.j-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.j-bar span { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, #ff5a3c, #ffb703); transition: width 1.1s var(--out); position: relative; overflow: hidden; min-width: 0; }
.j-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.j-count { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; }
.j-count b { color: #fff; font-size: 16px; }
.j-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 0 14px; align-items: center; text-decoration: none; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px 12px 18px; max-width: 320px; transition: transform .25s var(--spring), box-shadow .25s; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.j-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.j-cta small { grid-column: 1; font-size: 11px; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.j-cta span { grid-column: 1; font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.j-cta b { grid-column: 2; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; padding-left: 3px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(202,10,10,.5); } 70% { box-shadow: 0 0 0 12px rgba(202,10,10,0); } 100% { box-shadow: 0 0 0 0 rgba(202,10,10,0); } }

.sec { font-size: 20px; font-weight: 700; margin: 8px 0 18px; letter-spacing: -.01em; }
.sec + * { margin-bottom: 48px; }

/* Cartes rubrique */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; perspective: 1000px; }
.rcard { --c: hsl(var(--h) 75% 46%); --soft: hsl(var(--h) 90% 96%); position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; overflow: hidden;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .35s var(--out), box-shadow .3s, border-color .3s, opacity .6s var(--out); transform-style: preserve-3d; }
.rcard.reveal:not(.in-view) { transform: translateY(18px); }
.rcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--h) 90% 60% / .12), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.rcard:hover { box-shadow: 0 14px 36px hsl(var(--h) 60% 40% / .16); border-color: hsl(var(--h) 70% 82%); }
.rcard:hover::after { opacity: 1; }
.rtop { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.rico { width: 48px; height: 48px; border-radius: 14px; background: var(--soft, var(--red-soft)); display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .4s var(--spring); }
.rcard:hover .rico { transform: scale(1.12) rotate(-6deg); }
.rico.big { width: 68px; height: 68px; font-size: 34px; flex-shrink: 0; margin: 0; border-radius: 20px; background: hsl(var(--h) 90% 95%); }
.rring { position: relative; width: 44px; height: 44px; opacity: .35; transition: opacity .3s; }
.rcard.started .rring { opacity: 1; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: #eceef3; }
.ring-fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--out); }
.rpct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--c); }
.rcard strong { font-size: 16px; font-weight: 600; }
.rdesc { color: var(--ink2); font-size: 13px; line-height: 1.5; }
.rcount { margin-top: auto; padding-top: 8px; color: var(--c); font-size: 13px; font-weight: 600; }
.rcount .arrow { display: inline-block; transition: transform .3s var(--spring); }
.rcard:hover .arrow { transform: translateX(5px); }
.rtrophy { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #fff3c4, #ffd166); box-shadow: 0 4px 14px rgba(255,183,3,.45); transform: scale(0); transition: transform .5s var(--spring); }
.rcard.complete .rtrophy { transform: scale(1); }
.rcard.complete .rring { opacity: 0; }
.rcard.complete { border-color: #ffd77a; background: linear-gradient(180deg, #fffdf5, #fff); }

/* Cartes vidéo */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; perspective: 1000px; }
.vcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .35s var(--out), box-shadow .3s, opacity .6s var(--out); }
.vcard.reveal:not(.in-view) { transform: translateY(18px); }
.vcard:hover { box-shadow: 0 18px 40px rgba(20,25,40,.14); }
.vthumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #262b38, hsl(var(--h, 356) 60% 28%)); display: block; overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--out), filter .3s; }
.vcard:hover .vthumb img { transform: scale(1.07); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); }
.vplay { position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(202,10,10,.94); box-shadow: 0 6px 22px rgba(0,0,0,.35); transition: transform .35s var(--spring), background .2s; }
.vplay::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); opacity: 0; transform: scale(.8); transition: all .4s var(--out); }
.vplay::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard:hover .vplay { transform: scale(1.15); }
.vcard:hover .vplay::before { opacity: 1; transform: scale(1); }
.vthumb em { position: absolute; z-index: 1; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-style: normal; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 6px; }
.vnew { position: absolute; z-index: 1; left: 10px; top: 10px; background: linear-gradient(135deg, #ffb703, #ff7a00); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; box-shadow: 0 3px 10px rgba(255,122,0,.45); text-transform: uppercase; letter-spacing: .04em; animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-6deg); } 96% { transform: rotate(6deg); } }
.vdone { position: absolute; z-index: 2; right: 10px; top: 10px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; box-shadow: 0 3px 10px rgba(15,169,104,.45); transform: scale(0); transition: transform .45s var(--spring); }
.vcard.is-done .vdone { transform: scale(1); }
.vcard.is-done .vthumb img { filter: saturate(.75); }
.vbody { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.vrub { font-size: 12px; color: hsl(var(--h, 356) 70% 42%); font-weight: 600; }
.vbody strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.vdesc { font-size: 13px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Rubrique / recherche */
.crumbs { font-size: 13px; color: var(--ink2); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--red); }
.rhead { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }
.rhead-txt { flex: 1; min-width: 0; }
.rhead h1, .stitle { font-size: 30px; margin: 0; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.stitle { font-size: 22px; margin-bottom: 22px; }
.rhead p { margin: 4px 0 0; color: var(--ink2); }
.rprog { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 440px; }
.rprog .j-bar { flex: 1; background: #eceef3; height: 8px; }
.rprog .j-bar span, .playlist .j-bar span { background: linear-gradient(90deg, hsl(var(--h) 75% 46%), hsl(calc(var(--h) + 30) 90% 55%)); }
.rprog-txt { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.rhead.complete .rprog-txt::after { content: " 🏆"; }

/* Tutoriel */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.tgrid.solo { grid-template-columns: minmax(0, 900px); justify-content: center; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0d0f15; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(20,25,40,.22); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a90a2; }
.watch-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; pointer-events: none; }
.watch-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .8s linear; }
.tuto h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin: 24px 0 10px; font-weight: 800; letter-spacing: -.02em; }
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink2); font-size: 13px; margin-bottom: 18px; }
.chip { text-decoration: none; background: hsl(var(--h) 90% 95%); color: hsl(var(--h) 70% 38%); padding: 3px 12px; border-radius: 20px; font-weight: 600; transition: transform .2s var(--spring); }
.chip:hover { transform: translateY(-1px); }
.share-btn { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 14px; font: 500 13px Poppins, sans-serif; cursor: pointer; color: var(--ink); transition: all .2s var(--spring); }
.share-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* Bouton « J'ai terminé » */
.done-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.done-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--green); background: #fff; color: var(--green); font: 600 15px Poppins, sans-serif; padding: 11px 22px 11px 14px; border-radius: 40px; cursor: pointer; transition: all .3s var(--spring); }
.done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,169,104,.25); }
.done-btn:active { transform: scale(.96); }
.db-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; transition: all .35s var(--spring); }
.db-check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s .1s var(--out); }
.done-btn.on { background: var(--green); color: #fff; }
.done-btn.on .db-check { background: #fff; border-color: #fff; }
.done-btn.on .db-check svg { stroke: var(--green); stroke-dashoffset: 0; }
.done-btn.celebrate { animation: celebrate .8s var(--spring); }
@keyframes celebrate { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-2deg); } 55% { transform: scale(.96) rotate(1deg); } 100% { transform: scale(1); } }
.done-hint { font-size: 13px; color: var(--ink2); }

/* Description + étapes à cocher */
.desc { font-size: 15px; color: #353c4e; }
.desc p { margin: 0 0 14px; }
.desc h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ink); }
.desc ul { padding-left: 22px; margin: 0 0 14px; }
.desc ul li { margin-bottom: 4px; }
.desc a { color: var(--red); word-break: break-word; }
.steps-head { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--ink2); margin: 6px 0 10px; }
.steps-head b { color: var(--ink); font-size: 13px; }
.steps-head b i { font-style: normal; }
.sh-bar { grid-column: 1 / 3; height: 6px; background: #eceef3; border-radius: 6px; overflow: hidden; }
.sh-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #6ee7b7); border-radius: 6px; transition: width .5s var(--out); }
.steps-head.complete b { color: var(--green); }
.steps-head.complete b::after { content: " 🎉"; }
.desc ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; }
.desc ol.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 92px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; user-select: none; transition: border-color .25s, background .25s, transform .2s var(--spring), box-shadow .25s; outline: none; }
.desc ol.steps li:hover { border-color: #cfd3dd; transform: translateX(3px); box-shadow: 0 4px 14px rgba(20,25,40,.06); }
.desc ol.steps li:focus-visible { box-shadow: 0 0 0 3px rgba(15,169,104,.3); }
.desc ol.steps li::before { content: counter(s); position: absolute; left: 52px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 75% 46%); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.st-box { position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #cfd3dd; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .3s var(--spring); }
.st-box svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s .05s var(--out); }
.desc ol.steps li.checked { background: var(--green-soft); border-color: #a7e3c7; color: #3b6b55; }
.desc ol.steps li.checked::before { background: var(--green); }
.desc ol.steps li.checked .st-box { background: var(--green); border-color: var(--green); transform: rotate(-8deg); }
.desc ol.steps li.checked .st-box svg { stroke-dashoffset: 0; }
.desc ol.steps li.pop .st-box { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Prochaine vidéo */
.upnext { margin: 26px 0 8px; background: linear-gradient(135deg, #fff, #f2fbf6); border: 1px solid #bfe9d3; border-radius: 18px; padding: 18px; opacity: 0; transform: translateY(14px) scale(.98); transition: all .5s var(--spring); }
.upnext.show { opacity: 1; transform: none; }
.un-kicker { font-weight: 700; color: var(--green); margin-bottom: 12px; }
.un-card { display: flex; gap: 16px; align-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: transform .25s var(--spring), box-shadow .25s; }
.un-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.un-thumb { position: relative; flex: 0 0 160px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #262b38, #5a1313); }
.un-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.un-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.un-count svg { position: absolute; width: 52px; height: 52px; transform: rotate(-90deg); }
.un-count circle { fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 0; }
.upnext.counting .un-count circle { animation: countdown 8s linear forwards; }
@keyframes countdown { to { stroke-dashoffset: 100; } }
.un-count b { position: relative; color: #fff; font-size: 18px; }
.un-title { font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.un-title small { color: var(--ink2); font-weight: 400; font-size: 12px; }
.un-cancel { margin-top: 10px; background: none; border: 0; color: var(--ink2); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* Avis */
.feedback { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.fb-q { font-weight: 600; }
.fb-btns { display: flex; gap: 8px; }
.fb-btns button { position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 7px 16px; font-size: 15px; cursor: pointer; transition: all .25s var(--spring); }
.fb-btns button span { font-size: 13px; font-weight: 500; }
.fb-btns button:hover { transform: translateY(-2px); border-color: #cfd3dd; }
.fb-btns button.on[data-v="up"] { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.fb-btns button.on[data-v="down"] { background: #fff1f1; border-color: #f3b0b0; color: var(--red); }
.fb-btns button.bump { animation: celebrate .6s var(--spring); }
.fb-thanks { color: var(--ink2); font-size: 13px; animation: fadeup .4s var(--out); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }
.heart { position: fixed; z-index: 120; pointer-events: none; font-size: 20px; animation: heart 1.2s var(--out) forwards; }
@keyframes heart { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -110px) scale(1.2) rotate(15deg); } }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pn a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; font-size: 14px; transition: all .25s var(--spring); }
.pn a:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.pn small { color: var(--ink2); font-weight: 400; font-size: 12px; }
.pn-next { text-align: right; grid-column: 2; }

/* Playlist */
.playlist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 84px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pl-head { padding: 14px 16px 10px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.pl-prog { color: var(--ink2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.playlist.complete .pl-prog::after { content: " 🏆"; }
.j-bar.thin { height: 4px; border-radius: 0; background: #eceef3; }
.j-bar.thin span { border-radius: 0; }
.playlist ol { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.playlist li a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; transition: background .2s, transform .2s var(--spring); }
.playlist li a:hover { background: var(--bg); transform: translateX(2px); }
.playlist li.on a { background: hsl(var(--h) 90% 96%); }
.pl-thumb { position: relative; flex: 0 0 96px; height: 54px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #262b38, #5a1313); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-thumb b { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 4px; }
.pl-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,169,104,.82); color: #fff; font-style: normal; font-weight: 700; font-size: 20px; opacity: 0; transform: scale(.6); transition: all .4s var(--spring); }
.playlist li.is-done .pl-ok { opacity: 1; transform: none; }
.pl-title { font-size: 13px; font-weight: 500; line-height: 1.4; display: flex; flex-direction: column; }
.pl-title small { color: var(--ink2); font-weight: 400; }
.playlist li.on .pl-title { color: hsl(var(--h) 70% 38%); font-weight: 600; }

/* Recherche ⌘K */
.palette { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pal-back { position: absolute; inset: 0; background: rgba(15,18,30,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.pal-box { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; transform: translateY(-10px) scale(.97); opacity: 0; transition: all .22s var(--spring); display: flex; flex-direction: column; max-height: 72vh; }
.palette.show .pal-back { opacity: 1; }
.palette.show .pal-box { transform: none; opacity: 1; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; }
.pal-in input { flex: 1; min-width: 0; border: 0; outline: none; font: 17px Poppins, sans-serif; background: transparent; }
.pal-in kbd { cursor: pointer; }
.pal-list { overflow-y: auto; padding: 8px; }
.pal-sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 10px 10px 4px; }
.pal-it { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; transition: background .12s; }
.pal-it.sel { background: var(--red-soft); }
.pal-it mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.pi-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: hsl(var(--h, 356) 90% 95%); }
.pi-th { position: relative; width: 72px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #262b38, #5a1313); }
.pi-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-th i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pi-t { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; display: flex; flex-direction: column; line-height: 1.35; }
.pi-t small { color: var(--ink2); font-weight: 400; font-size: 12px; }
.pi-go { color: var(--ink2); font-size: 13px; opacity: 0; transition: opacity .15s, transform .2s var(--spring); transform: translateX(-4px); }
.pal-it.sel .pi-go { opacity: 1; transform: none; }
.pi-done { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 20px; }
.pal-empty { text-align: center; padding: 30px 20px; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pal-empty div { font-size: 32px; }
.pal-empty strong { color: var(--ink); }
.pal-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink2); background: #fafbfc; }
.pal-foot kbd { margin-right: 3px; }

/* Niveau débloqué */
.levelup { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,18,30,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s; }
.levelup.show { opacity: 1; }
.lu-box { position: relative; overflow: hidden; width: 100%; max-width: 380px; background: linear-gradient(180deg, #1c1f2e, #3a0f17); color: #fff; border-radius: 26px; padding: 40px 28px 28px; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.45); transform: scale(.7) translateY(30px); transition: transform .55s var(--spring); }
.levelup.show .lu-box { transform: none; }
.lu-rays { position: absolute; left: 50%; top: 92px; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(from 0deg, rgba(255,207,102,.16) 0deg 10deg, transparent 10deg 22deg); animation: spin 14s linear infinite; pointer-events: none; mask-image: radial-gradient(circle, #000 20%, transparent 65%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
.lu-badge { position: relative; font-size: 76px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 8px 24px rgba(255,183,3,.55)); animation: badgein .9s var(--spring) both .1s; }
@keyframes badgein { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.lu-kicker { position: relative; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #ffcf66; font-weight: 700; }
.lu-title { position: relative; font-size: 30px; font-weight: 800; margin: 4px 0 8px; }
.lu-sub { position: relative; color: rgba(255,255,255,.8); margin: 0 0 22px; font-size: 14px; }
.lu-box .btn { position: relative; background: linear-gradient(135deg, #ffb703, #ff7a00); color: #2a1600; font-weight: 700; border: 0; cursor: pointer; font-size: 15px; padding: 12px 28px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 110; }

.empty { text-align: center; padding: 64px 16px; color: var(--ink2); }
.empty-ico { font-size: 48px; animation: bob 3s ease-in-out infinite; }
.empty h2 { color: var(--ink); margin: 8px 0 4px; }
.empty p { max-width: 460px; margin: 0 auto; }
.btn { position: relative; overflow: hidden; display: inline-block; margin-top: 16px; text-decoration: none; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .2s, transform .25s var(--spring); }
.btn:hover { background: var(--red-d); transform: translateY(-2px); }
.btn.wa { background: #1fa855; margin: 0; }
.btn.wa:hover { background: #178a45; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; animation: ripple .6s ease-out forwards; }
.done-btn .ripple, .fb-btns .ripple, .j-cta .ripple { background: rgba(15,169,104,.25); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.ftr { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; }
.ftr .in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ftr .fl { display: flex; gap: 18px; align-items: center; }
.ftr a:not(.btn) { color: var(--ink2); text-decoration: none; }
.ftr a:not(.btn):hover { color: var(--red); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px) scale(.9); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .4s var(--spring); z-index: 130; box-shadow: 0 12px 36px rgba(0,0,0,.3); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 960px) {
  .tgrid { grid-template-columns: 1fr; }
  .playlist { position: static; max-height: none; }
  .journey { grid-template-columns: 1fr; gap: 18px; }
  .j-cta { max-width: none; }
}
@media (max-width: 640px) {
  .in { padding-left: 16px; padding-right: 16px; }
  .hdr .in { height: 58px; gap: 10px; }
  .logo img { height: 20px; }
  .logo span, .hbtn, .hsearch kbd, .hsearch span { display: none; }
  .hsearch { flex: 0 0 auto; padding: 9px; margin-left: auto; }
  .hlevel .hl-txt { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 44px 0 36px; }
  .hero p { font-size: 15px; }
  .bigsearch { padding-left: 14px; }
  .bigsearch button { padding: 12px 14px; }
  .journey { padding: 20px; border-radius: 18px; margin-top: 0; }
  .player { border-radius: 0; margin: 0 -16px; box-shadow: none; }
  .rhead { gap: 14px; }
  .rhead h1 { font-size: 24px; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; }
  .share-btn { margin-left: 0; }
  .done-btn { width: 100%; justify-content: center; }
  .desc ol.steps li { padding-left: 86px; }
  .un-thumb { flex-basis: 120px; }
  .palette { padding-top: 10px; }
  .pal-box { max-height: 82vh; }
  .pal-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
