/* Masked Play : passe « plus lumineux ». Fond moins noir, sections crème / kraft / rose en alternance. */
:root {
  --fond: #1a1720;
  --fond-2: #211d28;
  --carte: #282430;
  --carte-2: #312c3a;
  --bord: #423c4d;
  --doux: #b9b2c3;
  --encre: #22161a;        /* texte sur fond clair */
  --encre-douce: #5a4a4c;
  --papier: #f6ecdc;       /* crème */
  --papier-2: #fff8ee;
  --kraft-encre: #8a4f22;  /* kraft lisible sur crème */
}
body {
  background-image: radial-gradient(1200px 700px at 85% -10%, rgba(242,134,122,.16), transparent 60%),
                    radial-gradient(900px 600px at -10% 40%, rgba(181,129,78,.10), transparent 60%);
}
.haut { background: rgba(26,23,32,.86); }

/* héros : décor plus visible, néon plus chaud */
.heros .decor img { filter: brightness(1.18) saturate(1.12); }
.heros .decor::after {
  background: linear-gradient(90deg, var(--fond) 0%, rgba(26,23,32,.78) 30%, rgba(26,23,32,.25) 58%, rgba(26,23,32,0) 100%),
              linear-gradient(0deg, var(--fond) 0%, rgba(26,23,32,0) 26%), linear-gradient(180deg, rgba(26,23,32,.55) 0%, rgba(26,23,32,0) 16%);
}
.heros::before { background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255,200,170,.10) 172deg, rgba(255,200,170,.16) 180deg, rgba(255,200,170,.10) 188deg, transparent 200deg); }
.rebours-heros { background: rgba(40,36,48,.85); backdrop-filter: blur(6px); }

/* ---------- sections claires (crème) ---------- */
.claire { background: var(--papier); color: var(--encre); position: relative; }
.claire .chapo, .claire p { color: var(--encre-douce); }
.claire h2 em { color: var(--rose-fort); text-shadow: 0 3px 0 rgba(0,0,0,.08); }
.claire .entete .surtitre { background: rgba(138,79,34,.12); color: var(--kraft-encre); }
.claire .preuve, .claire .faq details { background: var(--papier-2); border-color: #e7d7c2; box-shadow: 0 6px 0 #e7d7c2; }
.claire .preuve b, .claire .faq summary { color: var(--encre); }
.claire .faq summary::after { color: var(--rose-fort); }
.claire .preuve:hover, .claire .faq details:hover { border-color: var(--rose-fort); box-shadow: 0 10px 0 #f2c7bd; }
.claire .pastille { background: var(--rose-fort); color: #fff; }
.confiance.claire { padding: 64px 0; margin-top: 0; }

/* bord déchiré en haut et en bas des sections colorées */
.claire::before, .claire::after, .kraft-fond::before, .kraft-fond::after, .rose-fond::before, .rose-fond::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18 L0 9 L8 4 L15 10 L24 3 L33 9 L41 2 L50 8 L58 5 L67 11 L75 3 L84 9 L92 4 L101 10 L110 3 L120 8 L120 18 Z'/%3E%3C/svg%3E") 0 0 / 240px 18px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18 L0 9 L8 4 L15 10 L24 3 L33 9 L41 2 L50 8 L58 5 L67 11 L75 3 L84 9 L92 4 L101 10 L110 3 L120 8 L120 18 Z'/%3E%3C/svg%3E") 0 0 / 240px 18px repeat-x;
}
.claire::before, .kraft-fond::before, .rose-fond::before { top: -17px; }
.claire::after, .kraft-fond::after, .rose-fond::after { bottom: -17px; transform: scaleY(-1); }

/* ---------- section kraft (comment ça marche) ---------- */
.kraft-fond { position: relative; color: var(--encre);
  background-color: #c99463;
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.06)),
                    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 2px, transparent 2px 6px); }
.kraft-fond h2 { color: var(--encre); }
.kraft-fond h2 em { color: #fff6e8; text-shadow: 0 4px 0 rgba(90,50,20,.35); }
.kraft-fond .entete .surtitre { background: rgba(34,22,26,.12); color: var(--encre); }
.kraft-fond .etape { background: var(--papier-2); border-color: transparent; box-shadow: 0 8px 0 #a8713f; color: var(--encre); }
.kraft-fond .etape p { color: var(--encre-douce); }
.kraft-fond .etape small { color: rgba(242,134,122,.28); }
.kraft-fond .etape:hover { border-color: var(--rose-fort); }
.kraft-fond .avertir { background: rgba(255,248,238,.6); border-color: #8a4f22; color: var(--encre); }

/* ---------- section rose (classement) ---------- */
.rose-fond { position: relative; color: var(--encre);
  background: radial-gradient(800px 400px at 50% 20%, #ffb3a6, transparent 70%), var(--rose-fort); }
.rose-fond h2 { color: var(--encre); }
.rose-fond h2 em { color: #fff6e8; text-shadow: 0 4px 0 rgba(120,40,30,.3); }
.rose-fond .entete .surtitre { background: rgba(34,22,26,.12); color: var(--encre); }
.rose-fond .marche { background: var(--fond); border-color: transparent; box-shadow: 0 12px 0 rgba(120,40,30,.35); color: var(--creme); }
.rose-fond .marche.premier { animation: none; box-shadow: 0 0 0 3px #fff6e8, 0 14px 0 rgba(120,40,30,.35); }
.rose-fond .demo { background: rgba(34,22,26,.85); color: var(--rose); border-color: transparent; }
.rose-fond .bouton.blanc { box-shadow: 0 6px 0 rgba(120,40,30,.35); }

/* ---------- sections sombres restantes : plus de couleur ---------- */
.lots { background: radial-gradient(900px 500px at 50% 55%, rgba(242,134,122,.14), transparent 70%); }
.sac-carte .image { background: radial-gradient(circle at 50% 40%, #3b3546, #221e29); }
.sac-carte.premier .image { background: radial-gradient(circle at 50% 40%, #5a4630, #2a2230); }
.jeu .visuel { background: repeating-linear-gradient(135deg, #c99463 0 14px, #d3a06e 14px 28px); }
.bloc-defis { background: radial-gradient(500px 300px at 85% 30%, rgba(242,134,122,.18), transparent 70%), linear-gradient(135deg, #322c3c, var(--carte)); }
.defi { background: rgba(26,23,32,.7); }

/* ---------- appel final en rose ---------- */
.final .conteneur { background: radial-gradient(500px 260px at 20% 60%, #ffb3a6, transparent 70%), var(--rose-fort); border: 0; color: var(--encre); box-shadow: 0 14px 0 rgba(120,40,30,.35); }
.final h2 { color: var(--encre); }
.final h2 em { color: #fff6e8; text-shadow: 0 4px 0 rgba(120,40,30,.3); }
.final .chapo { color: #4a2620; }
.final .bouton.rose { background: var(--encre); color: var(--creme); box-shadow: 0 6px 0 #000; animation: none; }
.final .bouton.blanc { box-shadow: 0 6px 0 rgba(120,40,30,.35); }

/* les rubans gardent leur fond clair au-dessus du fond moins noir */
.bandeau .ruban.noir { background: #2c2734; }

@media (max-width: 900px) {
  .heros .decor::after { background: linear-gradient(180deg, rgba(26,23,32,.86) 0%, rgba(26,23,32,.78) 55%, rgba(26,23,32,.25) 80%, var(--fond) 100%); }
}

/* lisibilité : contour foncé façon cartoon sur les mots clairs, rose plus foncé sur crème */
.kraft-fond h2 em, .rose-fond h2 em, .final h2 em { color: #fff6e8; -webkit-text-stroke: 7px var(--encre); paint-order: stroke fill; text-shadow: 0 5px 0 var(--encre); }
.claire h2 em { color: #c0392f; text-shadow: none; }
.claire .faq summary::after { color: #c0392f; }
.claire .pastille { background: var(--rose-fort); color: var(--encre); }
@media (max-width: 560px) {
  .confiance .grille-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .confiance .preuve { padding: 14px; }
  .confiance .preuve b { font-size: 14px; }
  .confiance .preuve p { font-size: 12.5px; }
}

/* =================== podium à marches =================== */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; align-items: end; max-width: 1000px; margin: 10px auto 0; }
.podium .marche, .rose-fond .podium .marche { background: none; border: 0; box-shadow: none; padding: 0; text-align: center; display: flex; flex-direction: column; animation: none; }
.podium .lot-img { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: -26px; position: relative; z-index: 2; }
.podium .m1 .lot-img { height: 200px; }
.podium .lot-img img { max-height: 100%; width: auto; filter: drop-shadow(0 14px 16px rgba(60,20,15,.45)); animation: flotte-b 3.6s ease-in-out infinite; }
.podium .m2 .lot-img img { animation-delay: -1.2s; }
.podium .m3 .lot-img img { animation-delay: -2.4s; }
.podium .carte-podium { position: relative; background: var(--fond); color: var(--creme); border-radius: 22px 22px 0 0; padding: 34px 18px 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.podium .m1 .carte-podium { box-shadow: inset 0 0 0 3px #f0d27a, 0 0 60px rgba(240,210,122,.35); }
.podium .tete-joueur { display: flex; align-items: center; justify-content: center; gap: 10px; }
.podium .joueur { font-weight: 800; font-size: 18px; }
.podium .points { font-family: var(--titre); font-size: 40px; color: var(--kraft-clair); line-height: 1; margin-top: 12px; }
.podium .m1 .points { font-size: 50px; color: #f0d27a; }
.podium .etiquette { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--doux); margin-top: 6px; }
.podium .barre, .ligne-top .b { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 14px 6px 0; }
.podium .barre i, .ligne-top .b i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--rose-fort), #f0d27a); transform-origin: left; }
html.js .revele .barre i, html.js .revele.ligne-top .b i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0ms) + 300ms); }
html.js .revele.vu .barre i, html.js .revele.vu.ligne-top .b i { transform: none; }
.podium .ecart { font-family: var(--mono); font-size: 11px; color: #8fc9a8; margin-top: 8px; }
.podium .prix { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.12); display: grid; gap: 2px; }
.podium .prix b { font-family: var(--titre); font-weight: normal; font-size: 20px; text-transform: uppercase; }
.podium .prix .cash { font-family: var(--mono); font-weight: 700; color: var(--rose); font-size: 15px; }
.podium .socle { display: grid; place-items: center; background: linear-gradient(180deg, #2a2531, #1f1b26); border-radius: 0 0 16px 16px; box-shadow: 0 10px 0 rgba(120,40,30,.35); }
.podium .socle span { font-family: var(--titre); color: var(--encre); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.podium .m1 .socle { height: 86px; } .podium .m1 .socle span { background: #f0d27a; width: 56px; height: 56px; font-size: 30px; box-shadow: 0 0 0 6px rgba(240,210,122,.25); }
.podium .m2 .socle { height: 56px; } .podium .m2 .socle span { background: #d8dde6; }
.podium .m3 .socle { height: 36px; } .podium .m3 .socle span { background: #d9a774; width: 34px; height: 34px; font-size: 19px; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: var(--encre); font-weight: 800; font-size: 15px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }

/* places 4 à 10 */
.suite-top { max-width: 1000px; margin: 34px auto 0; background: var(--fond); color: var(--creme); border-radius: 22px; padding: 10px 10px 6px; box-shadow: 0 12px 0 rgba(120,40,30,.35); }
.suite-tete { display: flex; justify-content: space-between; padding: 10px 14px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--doux); }
.suite-tete b { color: var(--creme); }
.pastille-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7ad49b; margin-right: 8px; box-shadow: 0 0 0 0 rgba(122,212,155,.6); animation: live 1.6s ease-out infinite; vertical-align: middle; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(122,212,155,0); } 100% { box-shadow: 0 0 0 0 rgba(122,212,155,0); } }
#top-suite { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ligne-top { display: grid; grid-template-columns: 38px 34px minmax(70px, 1fr) 1fr auto 64px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); transition: background .2s ease, transform .2s ease; }
.ligne-top:hover { background: rgba(242,134,122,.12); transform: translateX(3px); }
.ligne-top .r { font-family: var(--titre); font-size: 18px; color: var(--doux); }
.ligne-top .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-top .b { margin: 0; height: 6px; }
.ligne-top .p { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.ligne-top .c { font-family: var(--mono); font-weight: 700; color: var(--rose); text-align: right; }
.ligne-top.vide { grid-column: 1 / -1; display: block; text-align: center; color: var(--doux); padding: 24px; }

/* « votre nom ici » */
.vous { max-width: 1000px; margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; border: 2px dashed rgba(34,22,26,.35); color: var(--encre); }
.vous b { display: block; font-family: var(--titre); font-weight: normal; font-size: 26px; text-transform: uppercase; }
.vous span { color: #4a2620; }
.lien-fort { font-weight: 800; color: var(--encre); border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* page classement (fond sombre) : même podium */
.page-titre ~ .podium .socle { box-shadow: none; }

@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr; gap: 26px; }
  .podium .m1 { order: -1; }
  .podium .socle { height: 14px !important; }
  .podium .socle span { display: none; }
  .podium .carte-podium { border-radius: 22px 22px 0 0; }
  #top-suite { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ligne-top { grid-template-columns: 34px 30px 1fr auto 56px; gap: 8px; padding: 9px 10px; }
  .ligne-top .b { display: none; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }
  .podium .lot-img { height: 120px; } .podium .m1 .lot-img { height: 150px; }
}
@media (max-width: 900px) {
  .podium { grid-template-columns: 1fr 1fr; gap: 26px 10px; }
  .podium .m1 { grid-column: 1 / -1; }
  .podium .m2 .carte-podium, .podium .m3 .carte-podium { padding: 30px 10px 14px; }
  .podium .m2 .points, .podium .m3 .points { font-size: 28px; }
  .podium .m2 .joueur, .podium .m3 .joueur { font-size: 14px; }
  .podium .m2 .avatar, .podium .m3 .avatar { width: 26px; height: 26px; font-size: 12px; }
  .podium .m2 .etiquette, .podium .m3 .etiquette { font-size: 9px; letter-spacing: .5px; }
  .podium .m2 .prix b, .podium .m3 .prix b { font-size: 15px; }
  .podium .m2 .prix .cash, .podium .m3 .prix .cash { font-size: 12px; }
  .podium .m2 .ecart, .podium .m3 .ecart { font-size: 9.5px; }
  .podium .m2 .lot-img, .podium .m3 .lot-img { height: 100px; }
}

/* =================== bords des cartes : contour cartoon + ombre franche =================== */
:root { --trait: #120e14; }
/* podium : la carte et le socle ne font qu'un */
.podium .carte-podium { border: 3px solid var(--trait); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.07); background: linear-gradient(180deg, #2a2532, var(--fond) 70%); }
.podium .socle { border: 3px solid var(--trait); border-top: 2px dashed rgba(255,255,255,.12); border-radius: 0 0 24px 24px; background: linear-gradient(180deg, var(--fond), #17141c); box-shadow: 0 9px 0 var(--trait); }
.podium .m1 .carte-podium { border-color: #f0d27a; box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 0 70px rgba(240,210,122,.35); }
.podium .m1 .socle { border-color: #f0d27a; border-top-color: rgba(240,210,122,.35); box-shadow: 0 9px 0 #b8902f; }
.podium .marche { transition: transform .25s ease; }
.podium .marche:hover { transform: translateY(-6px); }
/* liste du top */
.suite-top { border: 3px solid var(--trait); box-shadow: 0 9px 0 var(--trait); background: linear-gradient(180deg, #24202b, var(--fond)); }
.ligne-top { border: 1px solid rgba(255,255,255,.06); }
.vous { border: 3px dashed rgba(18,14,20,.45); background: rgba(255,246,232,.18); }

/* toutes les autres cartes du site prennent le même trait */
.preuve, .etape, .sac-carte, .jeu, .defi, .faq details, .echelle, .bloc-defis, .rebours-heros, .final .conteneur, .assistant, .tableau, .ligne-fin, .compte div {
  border: 2.5px solid var(--trait) !important; }
.preuve, .etape, .sac-carte, .jeu, .faq details, .echelle { box-shadow: 0 7px 0 var(--trait) !important; }
.preuve:hover, .etape:hover, .sac-carte:hover, .jeu:hover, .faq details:hover { box-shadow: 0 11px 0 var(--trait) !important; transform: translateY(-4px); }
.sac-carte.premier { border-color: #f0d27a !important; box-shadow: 0 7px 0 #b8902f, 0 24px 70px rgba(240,210,122,.18) !important; }
.final .conteneur { box-shadow: 0 10px 0 var(--trait) !important; }
.bloc-defis { box-shadow: 0 10px 0 var(--trait); }
.sac-carte .image, .jeu .visuel { border-bottom: 2.5px solid var(--trait); }
.sac-carte .image { border: 2.5px solid var(--trait); }
