/* ═══════════════════════════════════════════════════════════════
   Captain Forté sur fortemusica.com : page immersive (nov. 2026)
   ───────────────────────────────────────────────────────────────
   Couleurs reprises du jeu (bleu nuit, bleu roi, orange, or).
   Préfixes : cf-  éléments propres à cette page
              sfp_ nq5_ nsq_  éléments créés ou pilotés par nq-scoreforce.js (classement, visionneuse,
              logo du jeu) : leurs styles d'origine visent un fond clair, ils sont réécrits ici en sombre.
   ─── Sommaire ───
   1. Socle   2. Barre du haut   3. Écran titre   4. Logo du jeu   5. Sections
   6. Histoire   7. Carte des mondes   8. Le jeu   9. Aperçu   10. Classement
   11. Générique et fin   12. Panneau de fin de partie (dans le jeu)   13. Mobile
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Socle ─── */
.cf {
    --bg: #050a24; --bg2: #0a1a5c; --panel: rgba(20, 31, 76, .72); --line: #2b3b7a; --line2: #4a7bee;
    --ink: #f3f6ff; --mute: #a9bbe0; --or: #ff9900; --or2: #f05a0a; --gold: #ffc21a; --cyan: #3fe0e0;
    --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --top-h: 60px;
    margin: 0; min-height: 100vh; font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink);
    background: radial-gradient(900px 600px at 78% -5%, rgba(63, 141, 242, .38), transparent 70%), radial-gradient(700px 500px at 0% 40%, rgba(124, 58, 237, .16), transparent 70%), linear-gradient(180deg, var(--bg) 0%, #07113a 45%, var(--bg) 100%);
    background-attachment: fixed;
}
html:has(.cf) { scroll-behavior: smooth; scroll-padding-top: 76px; background: #050a24; }
.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }
.cf img { max-width: 100%; height: auto; }
.cf a { color: #9fd0ff; }
.cf h2, .cf h3 { margin: 0; line-height: 1.12; }
.cf p { margin: 0 0 1em; }
.cf :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
#cf-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cf #jeudenotes, .cf-foot { position: relative; z-index: 1; }
.cf-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.cf-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: #fff; color: #13214a !important; font-weight: 800; }
.cf-skip:focus { top: 12px; }
.cf-ico { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }

/* ─── 2. Barre du haut ─── */
.cf-top { position: fixed; inset: 0 0 auto 0; z-index: 200; display: flex; align-items: center; gap: 14px; height: var(--top-h); padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); transition: background .25s, box-shadow .25s; }
.cf-top.is-solid { background: rgba(5, 10, 36, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(120, 160, 255, .22); }
.cf-top__brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: var(--mute) !important; text-decoration: none; font-size: 14px; font-weight: 700; }
.cf-top__brand strong { color: #fff; font-weight: 900; }
.cf-top__brand img { width: 30px; height: 30px; object-fit: contain; }
.cf-top__nav { display: flex; gap: 2px; }
.cf-top__nav a { padding: 8px 12px; border-radius: 999px; color: #dce6ff; text-decoration: none; font-size: 14.5px; font-weight: 800; }
.cf-top__nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cf-top__lang { padding: 6px 11px; border: 1.5px solid rgba(160, 190, 255, .45); border-radius: 999px; color: #dce6ff !important; text-decoration: none; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.cf-top__lang:hover { border-color: #fff; color: #fff !important; }
.cf-top__play { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 18px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ff8a1f, var(--or2)); color: #fff; font: 900 15px/1 var(--font); cursor: pointer; box-shadow: 0 3px 0 #c2410c, 0 8px 16px rgba(4, 14, 60, .45); transition: transform .12s, opacity .25s; }
.cf-top__play svg { width: 15px; height: 15px; }
.cf-top__play:hover { transform: translateY(-1px); }
.cf-top:not(.is-solid) .cf-top__play { opacity: 0; pointer-events: none; }      /* sur l'écran titre, le grand bouton suffit */

/* ─── 3. Écran titre ─── */
.cf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--top-h) + 10px) 0 70px; overflow: hidden; }
.cf-hero__txt { grid-column: 1; grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 12px 0 max(24px, calc((100vw - 1180px) / 2)); text-align: center; }
.cf-hero__art { grid-column: 2; grid-row: 1; position: relative; align-self: stretch; min-height: 62vh; cursor: pointer; }
.cf-hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); transition: transform .8s; }
.cf-hero__art:hover img { transform: scale(1.025); }
.cf-present { margin: 0 0 -6px; font-size: 13px; font-weight: 900; letter-spacing: .32em; text-transform: uppercase; color: #bfd4ff; }
.cf-lead { max-width: 33em; margin: 0; font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; color: #e3edff; }
.cf-start { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cf-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 300px; margin: 0; padding: 19px 38px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ff8a1f 0%, var(--or2) 100%); color: #fff; font: 900 26px/1 var(--font); letter-spacing: .3px; cursor: pointer; box-shadow: 0 8px 0 #c2410c, 0 14px 30px rgba(4, 14, 60, .55), inset 0 2px 0 rgba(255, 255, 255, .35); transition: transform .12s, box-shadow .12s; }
.cf-play::before { content: ""; position: absolute; inset: -9px; border-radius: 999px; border: 2px solid rgba(255, 176, 32, .55); animation: cf-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes cf-pulse { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.cf-play:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #c2410c, 0 18px 34px rgba(4, 14, 60, .6), inset 0 2px 0 rgba(255, 255, 255, .35); }
.cf-play:active { transform: translateY(5px); box-shadow: 0 3px 0 #c2410c, 0 6px 14px rgba(4, 14, 60, .5); }
.cf-press { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); animation: cf-blink 1.6s steps(2, jump-none) infinite; }
.cf-press kbd { padding: 2px 8px; border: 1.5px solid #6f8fd6; border-bottom-width: 3px; border-radius: 7px; font: inherit; color: #fff; }
@keyframes cf-blink { 0% { opacity: 1; } 100% { opacity: .35; } }
@media (hover: none) { .cf-press { display: none; } }
.cf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(120, 160, 255, .35); border-radius: 999px; background: rgba(13, 30, 90, .6); font-size: 14px; font-weight: 800; color: #dce6ff; white-space: nowrap; }
.cf-chips li[hidden] { display: none; }
.cf-chips strong { color: var(--gold); font-weight: 900; }
.cf-down { position: absolute; left: 50%; bottom: 18px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border: 1.5px solid rgba(160, 190, 255, .45); border-radius: 50%; color: #dce6ff !important; animation: cf-bob 1.8s ease-in-out infinite; }
@keyframes cf-bob { 50% { transform: translateY(6px); } }

/* ─── 4. Logo du jeu (repris de la page de free-scores.com : texte et SVG, rien en image sauf le ruban) ─── */
.cf .sfp_logo { margin: 0 0 .2em; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: clamp(44px, 5.6vw, 78px); line-height: 1; }
.cf .sfp_lg { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: .14em .85em .2em; transform: rotate(-4deg); text-transform: uppercase; }
.cf .sfp_lg::before { content: ""; position: absolute; left: 0; right: 0; top: 4%; bottom: 0; border: 3px solid #6fa2ff; border-top-color: rgba(111, 162, 255, .55); border-radius: 50%; transform: rotate(-3deg); box-shadow: 0 6px 16px -4px rgba(90, 150, 255, .95), inset 0 0 12px rgba(90, 150, 255, .25); }
.cf .sfp_lg b { position: relative; display: block; font-weight: 900; font-style: italic; line-height: .86; }
.cf .sfp_lgS { font-size: .8em; color: #fff; text-shadow: -2px -2px 0 #1f4fd8, 2px -2px 0 #1f4fd8, -2px 2px 0 #1f4fd8, 2px 2px 0 #1f4fd8, 0 -3px 0 #1f4fd8, 3px 0 0 #1f4fd8, -3px 0 0 #1f4fd8, 0 5px 0 #12307f, 0 0 18px rgba(120, 170, 255, .8); }
.cf .sfp_lgF { font-size: 1.2em; padding: .24em .08em 0 0; margin-top: -.22em; background: linear-gradient(180deg, #ffe27a 0%, #ffb020 42%, #ff7a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #7a2e00) drop-shadow(0 0 2px #7a2e00) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.cf .sfp_lgN { position: absolute; right: .32em; top: -.02em; font-style: normal; font-size: .7em; line-height: 1; color: #ffb020; transform: rotate(12deg); filter: drop-shadow(0 3px 0 #7a2e00) drop-shadow(0 0 8px rgba(255, 176, 32, .7)); }
.cf .sfp_rib { position: relative; display: block; max-width: 92vw; margin: -.8em 0 -.6em; font-size: .47em; transform: rotate(-2deg); filter: drop-shadow(0 6px 10px rgba(2, 10, 50, .5)); }
.cf .sfp_rib img { display: block; width: 100%; height: auto; filter: brightness(1.1) saturate(1.08); }
.cf .sfp_rib svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.cf .sfp_rib text { font-family: inherit; font-style: italic; font-weight: 900; letter-spacing: .2px; fill: #13278f; word-spacing: .14em; dominant-baseline: central; paint-order: stroke; stroke: rgba(255, 240, 180, .7); stroke-width: 3px; stroke-linejoin: round; }
.cf .sfp_ep { position: relative; z-index: 1; display: flex; align-items: center; gap: .6em; margin-top: -1.55em; font-size: .3em; font-weight: 900; font-style: italic; letter-spacing: .14em; text-transform: uppercase; color: #ffe08a; text-shadow: 0 2px 0 rgba(6, 16, 70, .75), 0 0 12px rgba(255, 200, 80, .35); transform: rotate(-2deg); white-space: nowrap; }
.cf .sfp_ep::before, .cf .sfp_ep::after { content: ""; width: 1.3em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 224, 138, 0), #ffe08a); }
.cf .sfp_ep::after { transform: scaleX(-1); }

/* ─── 5. Sections ─── */
.cf-sec { padding: clamp(60px, 9vw, 120px) 0 0; }
.cf-kick { margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.cf-h2 { max-width: 18em; font-size: clamp(30px, 4.2vw, 54px); font-weight: 900; font-style: italic; letter-spacing: -.5px; text-shadow: 0 3px 0 rgba(4, 14, 60, .6); }
.cf-sub { max-width: 44em; margin: 16px 0 0; color: var(--mute); }
.cf-note { font-size: 14.5px; color: var(--mute); }
.cf-panel { padding: 24px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(77, 155, 255, .08), 0 14px 34px rgba(2, 8, 40, .45); }
.cf-panel h3 { font-size: 21px; font-weight: 900; }
.cf-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border: 1.5px solid var(--line2); border-radius: 999px; background: rgba(13, 36, 96, .86); color: #fff; font: 800 15px/1.1 var(--font); cursor: pointer; transition: transform .12s, border-color .12s; }
.cf-btn:hover { transform: translateY(-1px); border-color: #8cc8ff; }
.cf-btn .cf-ico { width: 24px; height: 24px; }

/* ─── 6. Histoire ─── */
.cf-story__cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px 48px; margin-top: 30px; font-size: clamp(17px, 1.5vw, 20px); color: #dce6ff; }
.cf-story__img { display: block; width: 100%; border-radius: 26px; border: 1.5px solid var(--line2); box-shadow: 0 0 40px rgba(61, 107, 224, .4); }
/* héros */
.cf-heros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 90px; }
.cf-hero-card { --c: #ff6b4a; position: relative; display: grid; grid-template-columns: 42% 1fr; align-items: end; gap: 0 18px; min-height: 250px; padding: 0 26px 26px 0; border: 1.5px solid var(--line); border-radius: 26px; background: radial-gradient(300px 220px at 22% 60%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%), var(--panel); box-shadow: 0 14px 34px rgba(2, 8, 40, .45); }
.cf-hero-card--notea { --c: #c06bff; }
.cf-hero-card img { align-self: end; justify-self: center; width: auto; max-width: 100%; height: 330px; margin-top: -80px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(2, 8, 40, .6)); transition: transform .3s; }
.cf-hero-card:hover img { transform: translateY(-6px) scale(1.03); }
.cf-hero-card__role { margin: 0 0 4px; font-size: 12.5px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.cf-hero-card h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; font-style: italic; letter-spacing: -.5px; }
.cf-hero-card p:last-child { margin: 8px 0 0; font-size: 16.5px; color: #dce6ff; }
.cf-heros__note { margin: 16px 0 0; text-align: center; }
.cf-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: cf; }
.cf-how li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 22px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--panel); counter-increment: cf; font-size: 16px; color: var(--mute); }
.cf-how li::after { content: counter(cf); position: absolute; right: 16px; top: 8px; font-size: 54px; font-weight: 900; font-style: italic; line-height: 1; color: rgba(120, 160, 255, .18); }
.cf-how .cf-ico { width: 56px; height: 56px; }
.cf-how strong { display: block; margin-bottom: 2px; font-size: 22px; font-weight: 900; font-style: italic; color: var(--gold); }

/* ─── 7. Carte des mondes : une portée, chaque monde est une note, son décor dans la tête de note ───
   Portée : 5 lignes espacées de 40 px (de 90 à 250 px). --h : hauteur de la note, un cran = 20 px (ligne ou interligne).
   --t : vignette du décor dans la note. */
.cf-map { margin-top: 26px; padding: 8px 0 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2b3b7a transparent; }
.cf-map__track { --pas: 20px; --bas: 250px; position: relative; display: flex; align-items: stretch; width: max-content; min-width: min(1180px, 100% - 40px); height: 350px; margin: 0 auto; padding: 0 20px 0 0; list-style: none;
    background: linear-gradient(rgba(160, 190, 255, .45), rgba(160, 190, 255, .45)) 0 90px / 100% 2px no-repeat, linear-gradient(rgba(160, 190, 255, .45), rgba(160, 190, 255, .45)) 0 130px / 100% 2px no-repeat, linear-gradient(rgba(160, 190, 255, .45), rgba(160, 190, 255, .45)) 0 170px / 100% 2px no-repeat, linear-gradient(rgba(160, 190, 255, .45), rgba(160, 190, 255, .45)) 0 210px / 100% 2px no-repeat, linear-gradient(rgba(160, 190, 255, .45), rgba(160, 190, 255, .45)) 0 250px / 100% 2px no-repeat; }
.cf-map__clef { flex: 0 0 82px; align-self: flex-start; margin-top: 46px; font-size: 230px; line-height: 1; color: rgba(200, 220, 255, .7); font-family: 'Noto Music', 'Segoe UI Symbol', 'Apple Symbols', serif; }
.cf-map__bar { flex: 0 0 2px; align-self: flex-start; height: 162px; margin: 90px 10px 0; background: rgba(160, 190, 255, .45); }
.cf-map__bar--fin { flex-basis: 7px; }      /* double barre : fin du voyage */
.cf-node { --c: #3fa0ff; --w: 92px; --hh: 70px; position: relative; flex: 0 0 128px; }
/* tête de note : ovale incliné, cerclé de la couleur de l'acte ; le décor à l'intérieur reste droit */
.cf-node__dot { position: absolute; left: 50%; top: calc(var(--bas) - var(--h) * var(--pas) - var(--hh) / 2); width: var(--w); height: var(--hh); margin-left: calc(var(--w) / -2); border-radius: 50%; overflow: hidden; transform: rotate(-20deg); border: 3px solid var(--c); background: #0a1440; box-shadow: 0 0 0 3px rgba(5, 10, 36, .9), 0 0 22px color-mix(in srgb, var(--c) 65%, transparent), 0 8px 16px rgba(0, 0, 0, .5); transition: transform .25s, box-shadow .25s; }
.cf-node__img { position: absolute; inset: -18%; background: var(--t) center / cover no-repeat; transform: rotate(20deg); }
.cf-node__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, .35), transparent 45%); }
/* hampe, à droite de la tête */
.cf-node::before { content: ""; position: absolute; left: calc(50% + var(--w) / 2 - 7px); top: calc(var(--bas) - var(--h) * var(--pas) - var(--hh) / 2 - 78px); width: 4px; height: 92px; border-radius: 2px; background: var(--c); opacity: .9; }
.cf-node__num { position: absolute; left: calc(50% - var(--w) / 2 - 6px); top: calc(var(--bas) - var(--h) * var(--pas) + 4px); z-index: 2; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--c); color: #06123f; font-size: 16px; font-weight: 900; font-style: italic; box-shadow: 0 0 0 3px rgba(5, 10, 36, .9); }
.cf-node__nom { position: absolute; left: 0; right: 0; top: 284px; padding: 0 6px; text-align: center; font-size: 15px; font-weight: 800; line-height: 1.2; color: #e3edff; }
.cf-node__acte { position: absolute; left: 10px; top: 0; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid var(--c); color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.cf-node:hover .cf-node__dot { transform: rotate(-20deg) scale(1.1); }
.cf-acte1 { --c: #46c7ff; } .cf-acte2 { --c: #ffc21a; } .cf-acte3 { --c: #5fe08f; } .cf-acte4 { --c: #ff6b4a; }
.cf-final { --c: #e9e4ff; --w: 112px; --hh: 86px; flex-basis: 156px; }
/* niveau secret : à peine deviné, pas d'aperçu */
.cf-secret { --c: #7d8bb8; flex-basis: 100px; }
.cf-secret .cf-node__dot { border-style: dashed; }
.cf-secret .cf-node__img { filter: grayscale(.4); }
.cf-secret .cf-node__num { background: #1b2550; color: #c9d2f0; border: 1.5px dashed #7d8bb8; }
.cf-secret::before { display: none; }
.cf-secret .cf-node__nom { color: var(--mute); }

/* le porte-avion Adagio */
.cf-adagio { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 10px 30px; margin-top: 16px; background: radial-gradient(360px 240px at 12% 50%, rgba(255, 153, 0, .18), transparent 70%), var(--panel); }
.cf-adagio img { width: 150px; height: auto; justify-self: center; margin: -46px 0 -10px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); transform: rotate(-6deg); }
.cf-adagio h3 { font-size: clamp(24px, 2.6vw, 32px); font-style: italic; }
.cf-adagio p { margin: 8px 0 0; color: #dce6ff; }
.cf-adagio .cf-note { color: var(--mute); }
.cf-adagio .cf-kick { margin: 0 0 4px; }

/* ─── 8. Le jeu ─── */
.cf-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.cf-feats .cf-ico { width: 52px; height: 52px; margin-bottom: 12px; }
.cf-feats p { margin: 8px 0 0; font-size: 15.5px; color: var(--mute); }
.cf-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 18px 30px; margin-top: 16px; }
.cf-duo p { margin: 8px 0 0; color: #dce6ff; }
.cf-duo .cf-note { color: var(--mute); }
.cf-duo__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cf-duo__modes li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); border-top: 4px solid var(--gold); background: rgba(8, 18, 60, .7); font-size: 14.5px; color: var(--mute); }
.cf-duo__modes li:nth-child(2) { border-top-color: #b45cff; } .cf-duo__modes li:nth-child(3) { border-top-color: #46c7ff; }
.cf-duo__modes b { font-size: 16.5px; font-weight: 900; color: #fff; }

/* ─── 9. Aperçu ─── */
.cf-car { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.cf .sfp_track { flex: 1 1 auto; min-width: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 8px; scrollbar-width: none; }
.cf .sfp_track::-webkit-scrollbar { display: none; }
.cf .sfp_shot { position: relative; flex: 0 0 calc((100% - 16px) / 2); margin: 0; padding: 0; border: 1.5px solid var(--line2); border-radius: 20px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: #0a1f66; aspect-ratio: 16 / 9; box-shadow: 0 0 26px rgba(61, 107, 224, .3); transition: transform .15s, border-color .15s; }
.cf .sfp_shot:hover { transform: translateY(-3px); border-color: #8cc8ff; }
.cf .sfp_shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cf-shot__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(240, 90, 10, .94); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.cf-shot__cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; background: linear-gradient(180deg, transparent, rgba(3, 8, 34, .92)); color: #fff; font: 800 14.5px/1.3 var(--font); text-align: left; }
.cf-arr { flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--line2); background: rgba(13, 36, 96, .86); color: #fff; font: 900 26px/1 sans-serif; cursor: pointer; }
.cf-arr:disabled { opacity: .3; cursor: default; }
.cf .sfp_dots { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
.cf .sfp_dots i { width: 8px; height: 8px; border-radius: 50%; background: #2b3b7a; }
.cf .sfp_dots i.on { background: var(--or); }
/* visionneuse */
.cf .sfp_lbx { width: min(1100px, 94vw); max-width: none; padding: 0; border: none; border-radius: 16px; background: #0b1230; overflow: visible; }
.cf .sfp_lbx::backdrop { background: rgba(3, 6, 24, .86); }
.cf .sfp_lbxIn img, .cf .sfp_lbxIn video { display: block; width: 100%; height: auto; max-height: 84vh; border-radius: 16px; background: #000; }
.cf .sfp_lbxIn p { margin: 0; padding: 10px 16px 14px; color: #dde5ff; font-size: 14.5px; font-weight: 700; text-align: center; }
.cf .sfp_lbxX { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%; border: none; background: #fff; color: #13214a; font: 900 16px/1 sans-serif; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); z-index: 2; }

/* ─── 10. Classement (contenu créé par nq-scoreforce.js, réécrit en sombre) ───
   Trois identifiants dans les sélecteurs et !important sur les boutons : les styles injectés par nq-scoreforce.js
   (pensés pour le fond clair de free-scores.com) portent deux identifiants et des !important. */
.cf-ranks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; margin-top: 30px; }
.cf-podium h3 { margin-bottom: 14px; }
.cf-podium .cf-btn { margin-top: 16px; }
.cf-week { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--mute); text-align: center; }
.cf-week strong { color: var(--gold); font-weight: 900; font-size: 16px; }
.cf #sfp_lb { scroll-margin-top: 80px; }
.cf .sfp_wait { margin: 0; font-size: 14.5px; color: var(--mute); }
.cf .sfp_t3sel { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; font-weight: 800; color: var(--mute); }
.cf .sfp_t3sel select { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line2); background: #0d2460; color: #fff; font: 800 14.5px var(--font); cursor: pointer; }
.cf .sfp_t3 { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cf .sfp_t3 li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(8, 18, 60, .7); border: 1px solid var(--line); font-size: 15.5px; font-weight: 800; }
.cf .sfp_t3 li:first-child { background: linear-gradient(90deg, rgba(255, 194, 26, .22), rgba(8, 18, 60, .7) 75%); border-color: rgba(255, 194, 26, .6); }
.cf .sfp_t3 i { font-style: normal; font-size: 20px; width: 24px; text-align: center; }
.cf .sfp_t3 span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf .sfp_t3 em { font-style: normal; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.cf .sfp_t3all { display: none; }      /* le classement complet est juste à côté */
.cf #ns_board:empty::before { content: attr(data-wait); font-size: 14.5px; color: var(--mute); }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nq5_board { max-width: none; width: auto; margin: 0; padding: 0 !important; border: 0; border-radius: 0 !important; background: none; box-shadow: none !important; text-align: left; }
.cf #ns_board .nq5_boardTitle { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; color: #fff; }
.cf #ns_board .nq5_boardSub { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--mute); }
.cf #ns_board .nq5_emptyBoard { padding: 6px 0; font-size: 14.5px; color: var(--mute); }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_ctl { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding: 12px; border-radius: 16px; background: rgba(8, 18, 60, .7); border: 1px solid var(--line); }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_lab { color: var(--mute); }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_seg { background: #0a1a4f; }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_seg button { color: #dce6ff !important; background: transparent !important; }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_seg button:hover { background: rgba(255, 255, 255, .1) !important; }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_seg button.on { background: linear-gradient(180deg, #35b9ff, #1681f0) !important; color: #fff !important; box-shadow: 0 0 0 1px #7fd4ff, 0 0 14px rgba(53, 185, 255, .45) !important; }
/* paliers : la couleur du palier, éclaircie pour rester lisible sur fond sombre */
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_tiers button { color: color-mix(in srgb, var(--tc) 45%, #fff) !important; }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_tiers button.on { background: var(--tc) !important; color: #fff !important; box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 70%, transparent) !important; }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_cap { color: var(--mute); }
.cf #jeunote_app #jeunote_sectionNotestrike #ns_board .nsq_cap b { color: color-mix(in srgb, var(--tc) 45%, #fff); }
.cf #ns_board .nq5_rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cf #ns_board .nq5_row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 14px; background: rgba(8, 18, 60, .7); border: 1px solid var(--line); font-size: 15.5px; font-weight: 800; color: #fff; }
.cf #ns_board .nq5_row.nq5_r1 { background: linear-gradient(90deg, rgba(255, 194, 26, .22), rgba(8, 18, 60, .7) 75%); border-color: rgba(255, 194, 26, .6); }
.cf #ns_board .nq5_row.nq5_r2 { background: linear-gradient(90deg, rgba(190, 205, 230, .2), rgba(8, 18, 60, .7) 75%); }
.cf #ns_board .nq5_row.nq5_r3 { background: linear-gradient(90deg, rgba(226, 150, 100, .2), rgba(8, 18, 60, .7) 75%); }
.cf #ns_board .nq5_row.nq5_me { border-color: var(--cyan); box-shadow: 0 0 14px rgba(63, 224, 224, .35); }
.cf #ns_board .nq5_pos { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #0d2460; border: 1px solid var(--line2); color: #dce6ff; font-size: 12.5px; font-weight: 900; }
.cf #ns_board .nq5_r1 .nq5_pos { background: linear-gradient(135deg, #ffc93c, #f59e0b); border-color: #f59e0b; color: #3a2400; }
.cf #ns_board .nq5_r2 .nq5_pos { background: linear-gradient(135deg, #dbe3ee, #94a3b8); border-color: #94a3b8; color: #1c2536; }
.cf #ns_board .nq5_r3 .nq5_pos { background: linear-gradient(135deg, #e5a577, #c2703d); border-color: #c2703d; color: #2e1503; }
.cf #ns_board .nq5_name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf #ns_board .nq5_pts { font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ─── 11. Générique, fin, pied de page ─── */
.cf-credits dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 0; }
.cf-credits dl > div { padding-top: 16px; border-top: 2px solid var(--line2); }
.cf-credits dt { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cf-credits dd { margin: 6px 0 0; font-size: 22px; font-weight: 900; font-style: italic; }
.cf-credits dd a { color: #fff; }
.cf-end { padding-bottom: clamp(60px, 9vw, 110px); text-align: center; }
.cf-end .cf-wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.cf-foot { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(120, 160, 255, .22); background: rgba(3, 7, 28, .7); font-size: 15px; color: var(--mute); text-align: center; }
.cf-foot p { margin: 0 0 8px; }
.cf-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px !important; font-weight: 800; }
.cf-foot__legal { margin-top: 14px !important; font-size: 13px; opacity: .8; }

/* ─── 12. Panneau de fin de partie (inséré par nq-scoreforce.js dans l'écran du jeu : carte blanche) ───
   Sur free-scores.com ces styles viennent de nq-classement.js, qui n'est pas chargé ici. */
.nsq_go .nq5_goRank { font-size: 15px; font-weight: 800; color: #16233a; margin-bottom: 8px; }
.nsq_go .nq5_goRank small { display: block; font-size: 12.5px; font-weight: 600; color: #5c6b85; margin-top: 2px; }
.nsq_go .nq5_goMsg { font-size: 12.5px; font-weight: 600; color: #5c6b85; margin-top: 6px; }
.nsq_go .nq5_goMsg.nq5_err { color: #b02e1d; }
.nsq_go .nq5_goAsk { margin-top: 10px; }
.nsq_go .nq5_goAsk .nq5_goMsg { margin: 0 0 6px; }
.nsq_go .nq5_goForm { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nsq_go .nq5_goForm input { flex: 1 1 150px; min-width: 0; height: 42px; border-radius: 999px; border: 1.5px solid #b9daf0; padding: 0 16px; font-family: inherit; font-weight: 700; font-size: 15px; color: #16233a; background: #fff; text-align: center; }
.nsq_go .nq5_goForm input:focus { outline: 3px solid rgba(52, 152, 219, .3); border-color: #3498db; }
.nsq_go .nq5_goForm button { height: 42px; border: none; border-radius: 999px; padding: 0 18px; font-family: inherit; font-weight: 800; font-size: 14px; color: #fff; background: #2477b0; cursor: pointer; }
.nsq_go .nq5_goLink { background: none; border: none; padding: 6px; font-family: inherit; font-weight: 700; font-size: 12.5px; color: #2477b0; text-decoration: underline; cursor: pointer; }
.nsq_go .nq5_rows { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.nsq_go .nq5_row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; border: 1px solid #edf1f7; background: #f6f8fc; font-size: 13px; font-weight: 700; color: #16233a; }
.nsq_go .nq5_row.nq5_r1 { background: linear-gradient(90deg, #fff6e0, #fff 70%); border-color: #fbd99a; }
.nsq_go .nq5_row.nq5_me { background: #eaf4fb; border-color: #3498db; }
.nsq_go .nq5_pos { flex: 0 0 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; background: #fff; color: #5c6b85; border: 1px solid #e3e8f1; }
.nsq_go .nq5_r1 .nq5_pos { background: linear-gradient(135deg, #ffc93c, #f59e0b); border-color: #f59e0b; color: #fff; }
.nsq_go .nq5_r2 .nq5_pos { background: linear-gradient(135deg, #c9d3e0, #94a3b8); border-color: #94a3b8; color: #fff; }
.nsq_go .nq5_r3 .nq5_pos { background: linear-gradient(135deg, #e5a577, #c2703d); border-color: #c2703d; color: #fff; }
.nsq_go .nq5_name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsq_go .nq5_pts { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ─── 13. Écrans moyens et mobiles ─── */
@media (max-width: 1000px) {
    .cf-feats { grid-template-columns: 1fr; }
    .cf-credits dl { grid-template-columns: 1fr 1fr; }
    .cf-duo, .cf-ranks { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .cf-top__nav { display: none; }
    /* mobile : le visuel au-dessus, le titre en dessous, sans se chevaucher */
    .cf-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: start; min-height: 0; padding: var(--top-h) 0 84px; }
    .cf-hero__art { grid-column: 1; grid-row: 1; position: relative; align-self: start; min-height: 0; height: min(38vh, 310px); margin: 0 0 -10px; }
    .cf-hero__art img { object-position: 50% 74%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 72%, transparent 100%); }
    .cf-hero__txt { grid-column: 1; grid-row: 2; }
    .cf-hero__txt { padding: 0 20px; gap: 14px; }
    .cf-story__cols, .cf-how, .cf-heros { grid-template-columns: 1fr; }
    .cf-heros { gap: 90px; }
}
@media (max-width: 640px) {
    .cf { font-size: 16px; }
    .cf-top__brand span { font-size: 13px; }
    .cf .sfp_logo { font-size: 40px; }
    .cf .sfp_rib { font-size: .4em; }
    .cf .sfp_ep { font-size: .31em; margin-top: -1.1em; letter-spacing: .1em; }
    .cf .sfp_ep::before, .cf .sfp_ep::after { display: none; }
    .cf-play { min-width: 0; width: 100%; padding: 17px 20px; font-size: 21px; }
    .cf-start { align-self: stretch; }
    .cf-end .cf-play { width: auto; padding-inline: 34px; }
    .cf-chips li { padding: 6px 11px; font-size: 13px; }
    .cf-feats { grid-template-columns: 1fr; }
    .cf-hero-card { grid-template-columns: 40% 1fr; padding: 0 18px 20px 0; min-height: 0; }
    .cf-hero-card img { height: 250px; margin-top: -70px; }
    .cf-duo__modes { grid-template-columns: 1fr; }
    .cf-panel { padding: 18px; }
    .cf .sfp_shot { flex-basis: 86%; }
    .cf-arr { display: none; }
    .cf .sfp_lbxX { top: 8px; right: 8px; }
    .cf-map__track { margin: 0 20px; }
    .cf-node__nom { font-size: 14px; }
    .cf-adagio { grid-template-columns: 1fr; text-align: center; }
    .cf-adagio img { width: 120px; margin: -40px 0 0; }
    .cf-credits dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.cf) { scroll-behavior: auto; }
    .cf *, .cf *::before, .cf *::after { animation: none !important; transition: none !important; }
}
