/* ==========================================================================
   lbcx.fr — pages secondaires : « Résultats » et « Documents légaux ».
   Même charte que l'accueil (lbcx.css), mise en page de lecture.
   ========================================================================== */
.page, .foot { position: relative; isolation: isolate; }
.page-head { position: relative; padding: 138px 0 10px; text-align: center; }
.page-back { display: flex; width: max-content; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; margin: 0 auto 26px; border-radius: 999px;
  font: 600 14.5px/1 var(--body); color: var(--ink-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 220, 200, .14); transition: color .2s, box-shadow .2s, transform .4s var(--spring); }
.page-back:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 176, 128, .45); transform: translateX(-3px); }
.page-back svg { transform: scaleX(-1); }
.nav-links a[aria-current="page"] { color: var(--ink); background: linear-gradient(180deg, rgba(255, 138, 74, .22), rgba(255, 106, 31, .08)); box-shadow: inset 0 0 0 1px rgba(255, 150, 100, .35); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 3px; height: 2px; border-radius: 2px; background: #ffb27a; box-shadow: 0 0 8px #ff8a4a; }
.page-title { margin: 0 auto; max-width: 980px; font: 800 clamp(34px, 5.6vw, 76px)/1.03 var(--disp); font-stretch: 116%; letter-spacing: -.042em; color: var(--ink); text-wrap: balance; }
.page-sub { margin: 20px auto 0; font: 600 16px/1.4 var(--body); color: var(--ink-3); }
.page-sub i { display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px; border-radius: 50%; background: var(--o-2); box-shadow: 0 0 8px var(--o); }
@media (max-width: 760px) {
  .page-head { padding-top: 104px; }
  .page-title { font-stretch: 100%; letter-spacing: -.035em; font-size: clamp(31px, 9.4vw, 44px); }
}
.sky-page { --sky-in: 20%; --sky-out: 10%; }
.sky-foot { top: auto; bottom: 0; height: min(820px, 90vh); }
.sky-foot .glow { bottom: -6%; --gw: 1200px; --gh: 420px; --gc: rgba(255, 70, 10, .22); }
.sky-page .glow { top: 10%; --gw: 1200px; --gh: 520px; --gc: rgba(255, 90, 20, .2); }

/* ==========================================================================
   RÉSULTATS — la grille des captures, en grand au clic
   ========================================================================== */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.rc { --lg-r: 22px; display: flex; flex-direction: column; padding: 12px 12px 14px; text-align: left; cursor: zoom-in; transition: transform .5s var(--ease); }
.rc:hover { transform: translateY(-5px); }
.rc-hd { display: flex; align-items: center; gap: 9px; padding: 3px 4px 11px; min-width: 0; }
.rc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 9px var(--g); }
.rc-user { font: 800 15px/1.1 var(--disp); font-stretch: 106%; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0b0604; box-shadow: inset 0 0 0 1px rgba(255, 220, 200, .08); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rc:hover .rc-img img { transform: scale(1.04); }
.rc-ft { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 4px 0; min-height: 36px; }
.rc-l { font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rc-v { font: 800 20px/1 var(--disp); font-stretch: 108%; letter-spacing: -.02em; white-space: nowrap; background: var(--lum-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 560px) {
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rc { padding: 8px 8px 10px; --lg-r: 18px; }
  .rc-hd { padding: 2px 2px 8px; gap: 7px; }
  .rc-user { font-size: 13.5px; }
  .rc-img { border-radius: 11px; }
  .rc-ft { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 2px 0; min-height: 0; }
  .rc-v { font-size: 17px; }
}
/* le Discord : là où les résultats tombent en direct */
.disc-hint { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 9px; margin: 18px auto 0; padding: 9px 16px; border-radius: 999px;
  font: 700 14.5px/1.2 var(--body); color: var(--ink); background: rgba(88, 101, 242, .12); box-shadow: inset 0 0 0 1px rgba(140, 150, 255, .35); transition: background .2s, transform .4s var(--spring); }
.disc-hint:hover { background: rgba(88, 101, 242, .22); transform: translateY(-2px); }
.disc-hint svg:first-child { color: #aab3ff; }
.disc-hint svg:last-child { color: var(--o-3); }
.disc { --lg-r: 28px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: clamp(50px, 6vw, 80px); padding: 26px 30px; }
.disc-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(170, 180, 255, .6), rgba(88, 101, 242, .55) 60%), #2a2f7a; box-shadow: inset 0 0 0 1px rgba(170, 180, 255, .6), 0 0 34px -6px rgba(88, 101, 242, .8); }
.disc-h { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--disp); font-stretch: 110%; letter-spacing: -.025em; color: var(--ink); }
.disc-t p { margin: 6px 0 0; font: 500 16.5px/1.5 var(--body); color: var(--ink-2); }
@media (max-width: 760px) {
  .disc { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .disc-ic { width: 52px; height: 52px; border-radius: 16px; }
  .disc .btn { grid-column: 1 / -1; width: 100%; }
}
.page-cta { position: relative; margin-top: clamp(90px, 10vw, 140px); padding-bottom: clamp(70px, 9vw, 120px); text-align: center; }
.page-cta .h2 { font-size: clamp(30px, 4.6vw, 62px); }
.page-cta .btn { margin-top: 34px; }
@media (max-width: 560px) { .page-cta .btn { width: 100%; } }

/* la visionneuse */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 70px 16px 30px; background: rgba(6, 3, 2, .9); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
@media (hover: hover) and (pointer: fine) { @supports (backdrop-filter: blur(1px)) { .lb { background: rgba(6, 3, 2, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } } }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(900px, 100%); }
.lb img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 220, 200, .14), 0 40px 90px -30px #000; transform: scale(.96); transition: transform .4s var(--spring); }
.lb.is-open img { transform: none; }
.lb figcaption { display: flex; align-items: baseline; gap: 14px; font: 800 18px/1 var(--disp); color: var(--ink); }
.lb figcaption b { font-weight: 800; background: var(--lum-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-x, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 220, 200, .2); transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 106, 31, .25); }
.lb-x { top: 16px; right: 16px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav.prev svg { transform: scaleX(-1); }
@media (max-width: 760px) { .lb-nav { top: auto; bottom: 18px; margin: 0; } .lb-nav.prev { left: calc(50% - 60px); } .lb-nav.next { right: calc(50% - 60px); } .lb { padding-bottom: 90px; } }

/* ==========================================================================
   DOCUMENTS LÉGAUX — lecture longue : grand corps, interlignage large
   ========================================================================== */
.legal-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 800 14px/1 var(--disp); font-stretch: 118%; letter-spacing: .06em; color: var(--o-4); }
.legal-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4ec, #ff8a4a 45%, #c44516); box-shadow: 0 0 12px #ff6a1f; }
.legal-eyebrow { font: 700 14px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--o-3); margin-bottom: 14px; }
.legal-title { margin: 0 auto; max-width: 980px; font: 800 clamp(32px, 5vw, 68px)/1.04 var(--disp); font-stretch: 116%; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.legal-title .red { background: var(--lum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-update { margin-top: 20px; font: 600 15px/1.3 var(--body); color: var(--ink-3); }
@media (max-width: 760px) { .legal-title { font-stretch: 100%; letter-spacing: -.032em; font-size: clamp(29px, 8.6vw, 40px); } }

.legal-layout { position: relative; width: min(1200px, 100% - var(--gut) * 2); margin: 46px auto 0; padding-bottom: 110px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-inner { --lg-r: 22px; padding: 20px 14px 14px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 230, 214, .08), rgba(255, 255, 255, .015)), rgba(22, 9, 4, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 170, .14), inset 0 1px 0 rgba(255, 236, 222, .18), 0 30px 70px -34px rgba(0, 0, 0, .9); }
.toc-title { padding: 0 10px 12px; font: 700 13.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--o-3); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 10px 10px; border-radius: 12px; font: 600 15px/1.35 var(--body); color: var(--ink-3); transition: background .2s, color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 800 13px/1 var(--disp); font-stretch: 110%; color: var(--o-2); }
.toc a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.toc a.active { color: var(--ink); background: linear-gradient(90deg, rgba(255, 106, 31, .2), rgba(255, 106, 31, .05)); box-shadow: inset 0 0 0 1px rgba(255, 150, 100, .3); }
.toc a.active::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #ffb27a; box-shadow: 0 0 8px #ff8a4a; }

.legal-content { min-width: 0; }
.legal-section { position: relative; overflow: hidden; margin-bottom: 24px; padding: 42px 46px; border-radius: 26px; scroll-margin-top: 96px;
  background: linear-gradient(170deg, rgba(255, 230, 214, .05), rgba(255, 255, 255, .01) 30%), rgba(18, 8, 4, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 170, .11), inset 0 1px 0 rgba(255, 236, 222, .12), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.legal-section::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 31, .12), transparent 70%); pointer-events: none; }
.sec-num { font: 800 13.5px/1 var(--disp); font-stretch: 118%; letter-spacing: .06em; color: var(--o-3); text-transform: uppercase; }
h2.sec-title { margin: 12px 0 8px; font: 800 clamp(25px, 2.8vw, 38px)/1.08 var(--disp); font-stretch: 110%; letter-spacing: -.03em; color: var(--ink); }
.sec-update { font: 600 14px/1.3 var(--body); color: var(--ink-3); margin-bottom: 20px; }
.sec-divider { height: 2px; margin: 18px 0 28px; border-radius: 2px; background: linear-gradient(90deg, #ff8a4a, rgba(255, 106, 31, 0) 60%); box-shadow: 0 0 10px rgba(255, 106, 31, .35); }
.legal-content h3 { margin: 34px 0 14px; font: 800 19.5px/1.3 var(--disp); font-stretch: 106%; letter-spacing: -.015em; color: var(--o-4); }
.legal-content h4 { margin: 24px 0 8px; font: 700 16.5px/1.4 var(--body); color: var(--ink); }
.legal-content p { margin: 0 0 15px; font: 400 16.5px/1.75 var(--body); color: var(--ink-2); }
.legal-content ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-content ul li { position: relative; padding-left: 22px; font: 400 16px/1.7 var(--body); color: var(--ink-2); }
.legal-content ul li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: #ffb27a; box-shadow: 0 0 7px #ff6a1f; }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content em { color: var(--o-4); }
.legal-content code { padding: 2px 6px; border-radius: 6px; font-size: .92em; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 220, 200, .12); }
.legal-content a { color: var(--o-3); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 20px 0; padding: 18px 20px; border-radius: 16px; font: 500 15.5px/1.65 var(--body); color: var(--ink-2); background: rgba(255, 106, 31, .07); box-shadow: inset 0 0 0 1px rgba(255, 150, 100, .32); }
.callout.warn { background: rgba(255, 138, 74, .1); box-shadow: inset 0 0 0 1px rgba(255, 176, 128, .45), 0 0 30px -16px rgba(255, 106, 31, .6); }
.callout b { color: var(--o-4); }
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 10px 0 20px; border-radius: 16px; overflow: hidden; background: rgba(255, 200, 170, .12); box-shadow: 0 0 0 1px rgba(255, 200, 170, .12); }
.id-grid .cell { padding: 15px 18px; background: rgba(20, 8, 4, .96); }
.id-grid .k { font: 700 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.id-grid .v { margin-top: 6px; font: 600 16px/1.45 var(--body); color: var(--ink); word-break: break-word; }
.comm-table { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 22px; }
.comm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 200, 170, .12); }
.comm-row .desc { font: 500 15.5px/1.5 var(--body); color: var(--ink-2); }
.comm-row .amt { flex: none; font: 800 26px/1 var(--disp); font-stretch: 110%; background: var(--lum); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 34px; }
  .toc { position: relative; top: 0; margin-bottom: 20px; }
  .legal-section { padding: 28px 20px; border-radius: 22px; }
  .legal-content p { font-size: 16px; }
  .id-grid { grid-template-columns: 1fr; }
}
.mega-foot { position: relative; display: flex; justify-content: center; align-items: flex-end; line-height: .78; overflow: hidden; margin-top: 10px; }
.mega-foot span { display: block; flex: none; font: 900 clamp(60px, 17.5vw, 270px)/.8 var(--disp); font-stretch: 125%; letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px #ff6a1f; filter: drop-shadow(0 0 5px rgba(255, 106, 31, .55));
  /* l'espacement négatif laisse un vide après la dernière lettre : on recentre l'encre */
  transform: translate(-.02em, 8%); }
@supports (text-box: trim-both cap alphabetic) {
  .mega-foot span { line-height: 1; text-box: trim-both cap alphabetic; transform: translateX(-.02em); padding-bottom: 1px;
    /* le rognage s'arrête à la hauteur des capitales : on rend de la place au contour, aux lettres rondes qui dépassent et à la lueur */
    padding-top: calc(.05em + 8px); }
}
@media (max-width: 760px) { .mega-foot span { font-stretch: 112%; -webkit-text-stroke-width: 1.1px; filter: drop-shadow(0 0 3px rgba(255, 106, 31, .5)); } }

/* ==========================================================================
   LÉGAL — mêmes matières que la landing : verre à liseré, titres en lumière
   ========================================================================== */
.legal-page .page-head { padding-bottom: 20px; }
.legal-page .legal-title { font-size: clamp(34px, 5.2vw, 72px); }
.legal-page .toc-inner, .legal-page .legal-section { position: relative; isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 230, 214, .09) 0%, rgba(255, 255, 255, .02) 34%, rgba(255, 150, 90, .05) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(255, 106, 31, .14), transparent 60%),
    rgba(30, 10, 4, .7);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 196, .28), inset 0 -34px 64px -44px rgba(255, 106, 31, .6), 0 30px 80px -34px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(255, 106, 31, .35); }
.legal-page .toc-inner::before, .legal-page .legal-section::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, rgba(255, 220, 196, .6), rgba(255, 140, 70, .1) 28%, rgba(255, 106, 31, .08) 55%, rgba(255, 106, 31, .7) 84%, rgba(255, 190, 150, .28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.legal-page .toc-inner::before { background: conic-gradient(from var(--lg-a), #ffd9bf, rgba(255, 106, 31, .25) 10%, rgba(255, 90, 20, .12) 26%, #ff6a1f 44%, rgba(255, 90, 20, .12) 62%, #ff8a3d 80%, #ffd9bf); animation: lgspin 7s linear infinite; animation-play-state: var(--pp); }
.legal-page .legal-section::after { right: -60px; top: -60px; background: radial-gradient(circle, rgba(255, 90, 20, .2), transparent 70%); }
.legal-page .sec-num { background: var(--lum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-page h2.sec-title { background: linear-gradient(100deg, #fff4ec 0%, #fff4ec 42%, #ffb27a 72%, #ff6a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 106, 31, .28)); }
.legal-page .sec-divider { height: 2px; background: linear-gradient(90deg, #ffd9bf, #ff6a1f 30%, rgba(255, 106, 31, 0) 75%); box-shadow: 0 0 12px rgba(255, 106, 31, .6); }
.legal-page .legal-content h3 { position: relative; padding-left: 16px; color: var(--ink); }
.legal-page .legal-content h3::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #ffb27a, #ff6a1f); box-shadow: 0 0 10px #ff6a1f; }
.legal-page .legal-content h4 { color: #ffc49c; }
.legal-page .callout { background: radial-gradient(90% 120% at 0% 0%, rgba(255, 106, 31, .16), transparent 60%), rgba(255, 106, 31, .05); box-shadow: inset 0 0 0 1px rgba(255, 130, 60, .45), 0 0 30px -16px rgba(255, 106, 31, .7); }
.legal-page .id-grid { box-shadow: 0 0 0 1px rgba(255, 150, 90, .25); background: rgba(255, 150, 90, .2); }
.legal-page .id-grid .cell { background: rgba(16, 6, 3, .95); }
.legal-page .comm-row { background: radial-gradient(90% 120% at 0% 0%, rgba(255, 106, 31, .12), transparent 60%), rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 150, 90, .25); }
.legal-page .toc a.active { background: linear-gradient(180deg, rgba(255, 138, 74, .24), rgba(255, 106, 31, .08)); box-shadow: inset 0 0 0 1px rgba(255, 150, 100, .4), 0 0 18px -6px rgba(255, 106, 31, .6); }
.legal-page .legal-content a { color: #ffa566; text-decoration-color: rgba(255, 106, 31, .6); }
.legal-page .legal-content a:hover { color: #fff; }
@media (hover: none) and (pointer: coarse) {
  .legal-page .toc-inner, .legal-page .legal-section { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (hover: none) and (pointer: coarse) { .lg-live::before, .btn-live::before { animation: none !important; } .ambient i { animation: none; } .mega-foot span { filter: none; } }
