/* ===== Bip & Bulles — charte V2 ===== */
:root {
  --bg: #020916;
  --bg2: #06142b;
  --panel-a: rgba(9, 28, 60, .82);
  --panel-b: rgba(3, 12, 28, .92);
  --line: rgba(70, 160, 255, .45);
  --line-soft: rgba(70, 160, 255, .2);
  --cyan: #2fb9ff;
  --blue: #1b74f0;
  --gold: #ffc531;
  --gold-d: #f29a0c;
  --red: #e0252c;
  --green: #35d07f;
  --text: #fff;
  --muted: #a8bcd9;
  --radius: 18px;
  --f-body: "Roboto", "Segoe UI", system-ui, sans-serif;
  --f-cond: "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --f-logo: "Montserrat", "Segoe UI", sans-serif;
  --f-hand: "Kaushan Script", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 70% -100px, rgba(30, 130, 255, .35), transparent 70%),
    radial-gradient(900px 600px at 0% 40%, rgba(10, 70, 160, .25), transparent 70%),
    radial-gradient(900px 600px at 100% 75%, rgba(10, 90, 190, .22), transparent 70%),
    linear-gradient(180deg, #041227 0%, var(--bg) 45%, #030d1f 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.solid { fill: currentColor; stroke: none; }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* bulles */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubbles i {
  position: absolute; bottom: -60px; border-radius: 50%;
  border: 1px solid rgba(150, 215, 255, .55);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55), rgba(80, 170, 255, .07) 55%, transparent 70%);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate(18px, -55vh); }
  100% { transform: translate(-12px, -115vh); opacity: 0; }
}

/* ===== composants ===== */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 26px rgba(20, 110, 255, .16), inset 0 1px 0 rgba(140, 210, 255, .22), inset 0 0 40px rgba(10, 60, 140, .25);
  padding: 20px;
}
.panel::before {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, #6fd0ff, transparent);
  filter: blur(.5px); opacity: .9; pointer-events: none;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-family: var(--f-cond); font-size: 1.4rem; font-weight: 700; }
.panel-head .ic { width: 30px; height: 30px; color: var(--gold); }
.panel-head .more { margin-left: auto; }
.more { color: var(--gold); font-family: var(--f-cond); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.more span { text-decoration: underline; text-underline-offset: 3px; }
.more .ic { width: 16px; height: 16px; color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.02rem; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn .ic { width: 20px; height: 20px; }
.btn-gold {
  color: #1c1302;
  background: linear-gradient(180deg, #ffe07a 0%, #ffc531 45%, #f29a0c 100%);
  box-shadow: 0 0 20px rgba(255, 180, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(160, 90, 0, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 190, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-ghost { color: var(--gold); border: 1.5px solid var(--gold); background: rgba(255, 190, 40, .06); }
.btn-ghost:hover { background: rgba(255, 190, 40, .16); }
.btn-blue { color: #fff; background: linear-gradient(180deg, #2d8cff, #1259c9); box-shadow: 0 0 14px rgba(40, 130, 255, .5); padding: 8px 16px; font-size: .9rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 15px 30px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.done { filter: saturate(.3) brightness(.85); cursor: default; transform: none; box-shadow: none; }

.tricolore { display: block; width: 100px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #1b5fd9 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 68px; height: auto; filter: drop-shadow(0 0 6px rgba(60, 150, 255, .5)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.logo-name b { color: var(--blue); font-weight: 800; margin: 0 .08em; }
.logo-sub { font-family: var(--f-cond); font-weight: 700; font-size: .62rem; letter-spacing: .28em; margin-top: 5px; text-transform: uppercase; }
.logo.stack { flex-direction: column; text-align: center; gap: 8px; }
.logo.stack img { width: 200px; }
.logo.stack .logo-txt { align-items: center; }
.logo.stack .tricolore { width: 46px; height: 4px; margin-top: 8px; }

/* compte à rebours */
.cd { display: flex; gap: 8px; }
.cd div {
  flex: 1 1 0; min-width: 0; max-width: 72px; padding: 8px 4px 6px; text-align: center; border-radius: 10px;
  background: linear-gradient(180deg, rgba(4, 14, 34, .95), rgba(8, 26, 58, .9));
  border: 1px solid var(--line-soft); box-shadow: inset 0 1px 0 rgba(120, 190, 255, .18);
}
.cd b { display: block; font-family: var(--f-cond); font-size: 1.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd small { font-family: var(--f-cond); font-size: .72rem; color: var(--muted); }
.cd-inline {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(2, 10, 26, .75);
}
.cd-inline .row { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-cond); font-weight: 700; font-size: 1.9rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-inline .row .ic { width: 26px; height: 26px; align-self: center; margin-right: 6px; }
.cd-inline .row em { font-style: normal; font-size: .95rem; margin-right: 6px; }
.cd-inline small { font-family: var(--f-cond); color: var(--gold); font-size: .85rem; }

.progress { display: flex; align-items: center; gap: 10px; font-family: var(--f-cond); font-weight: 700; color: var(--gold); font-size: .95rem; }
.progress .bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(40, 80, 140, .5); overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1b8cff, #4fd4ff); box-shadow: 0 0 10px #2fb9ff; }
.participants { display: flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-size: 1.05rem; }
.participants .ic { color: var(--cyan); }

.fade-img { -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 74%); mask-image: radial-gradient(ellipse at center, #000 52%, transparent 74%); }

/* ===== en-tête (accueil) ===== */
.topbar { position: sticky; top: 0; z-index: 50; padding: 10px 0; background: linear-gradient(180deg, rgba(2, 9, 22, .92), rgba(2, 9, 22, .55) 70%, transparent); backdrop-filter: blur(6px); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; }
.mainnav {
  display: flex; gap: 4px; margin-inline: auto; padding: 4px 10px; border-radius: 14px;
  background: rgba(6, 22, 50, .75); border: 1px solid var(--line-soft);
}
.mainnav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 10px 13px; font-family: var(--f-cond); font-size: 1rem; color: #e6f0ff; border-radius: 10px; transition: background .2s; }
.mainnav a .ic { width: 18px; height: 18px; color: var(--gold); }
.mainnav a:hover { background: rgba(60, 140, 255, .16); }
.mainnav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.burger { display: none; padding: 8px; }
.burger .ic { width: 28px; height: 28px; }

/* ===== hero accueil (bannière 1 : plongeur en pleine eau) ===== */
.hero { position: relative; isolation: isolate; min-height: 720px; min-height: min(860px, 100svh); display: flex; align-items: center; margin-top: -84px; padding: 112px 0 92px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #04163a url(../assets/img/hero-plongeur.jpg) 50% 34% / cover no-repeat; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }
/* voile pour la lisibilité : sombre à gauche (texte), fondu vers la page en bas */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 9, 22, .9) 0%, rgba(2, 9, 22, .62) 30%, rgba(2, 9, 22, 0) 52%),
              linear-gradient(180deg, rgba(2, 9, 22, .5) 0%, rgba(2, 9, 22, 0) 20%, rgba(2, 9, 22, 0) 66%, var(--bg) 100%); }
.hero-rays {
  position: absolute; inset: -20% -10% 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; opacity: .42;
  background: repeating-conic-gradient(from 150deg at 52% -12%, rgba(90, 190, 255, 0) 0 5deg, rgba(120, 210, 255, .3) 7deg, rgba(90, 190, 255, 0) 10deg);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
  animation: sway 9s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(40px, 1fr) 360px; align-items: center; }
.hero-content { grid-column: 1; animation: rise-in .9s both cubic-bezier(.2, .8, .2, 1); }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
.hero-logo { width: clamp(190px, 18vw, 250px); height: auto; margin: 0 0 6px -12px; filter: drop-shadow(0 0 28px rgba(40, 140, 255, .5)); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--f-cond); font-weight: 700; font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; color: #8fd8ff; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, #1b5fd9 33%, #fff 33% 66%, var(--red) 66%); }
.hero h1 { font-family: var(--f-body); font-style: italic; font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.015em; text-shadow: 0 2px 22px rgba(0, 10, 40, .85); }
.hero p.lead { margin: 16px 0 26px; font-size: 1.16rem; line-height: 1.55; color: #e3edfb; max-width: 500px; text-shadow: 0 1px 12px rgba(0, 10, 40, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-glass { color: #fff; border: 1.5px solid rgba(160, 215, 255, .45); background: rgba(8, 30, 66, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: var(--cyan); background: rgba(20, 80, 160, .5); }
.btn-glass .ic { color: var(--gold); }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 22px 0 0; font-family: var(--f-cond); font-size: 1.02rem; color: #d6e9ff; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ic { width: 18px; height: 18px; color: var(--gold); }

/* carte « prochain tirage » */
.hero-card { grid-column: 3; align-self: end; padding: 18px; border-color: rgba(130, 205, 255, .5);
  background: linear-gradient(180deg, rgba(12, 38, 82, .6), rgba(3, 12, 30, .8)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 8, 30, .6), 0 0 32px rgba(40, 140, 255, .22); animation: rise-in .9s .25s both cubic-bezier(.2, .8, .2, 1); }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.hc-top .tag { font-size: .8rem; padding: 4px 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #ff8a8a; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, .75); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 77, 77, 0); } }
.hc-lot { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; margin-bottom: 12px; text-align: left; border-radius: 12px; background: rgba(2, 10, 26, .55); border: 1px solid var(--line-soft); transition: border-color .2s, background .2s; }
.hc-lot:hover { border-color: var(--gold); background: rgba(40, 30, 0, .3); }
.hc-lot img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.hc-lot b { display: block; font-family: var(--f-cond); font-size: 1.35rem; line-height: 1.15; }
.hc-lot small { font-family: var(--f-cond); color: var(--gold); }
.hc-lot .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.hero-card .cd { margin-bottom: 12px; }
.hero-card .cd div { max-width: none; }
.hero-card .participants { font-size: .98rem; margin-bottom: 4px; }
.hero-card .progress, .hero-card .mine { margin-bottom: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; font-family: var(--f-cond); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #cfe6ff; opacity: .85; }
.scroll-cue .ic { width: 22px; height: 22px; animation: cue 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: var(--gold); }
@keyframes cue { 50% { transform: translateY(6px); } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 10px; margin-top: -34px; }
.trust div { display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--f-cond); font-size: 1.08rem; padding: 4px 14px; }
.trust div + div { border-left: 1px solid rgba(255, 197, 49, .45); }
.trust .ic { width: 44px; height: 44px; color: var(--gold); stroke-width: 1.5; }
.trust div:first-child .ic { color: var(--cyan); }

section.block { margin-top: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.03fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: 1.25fr 1.35fr .8fr; gap: 22px; }

/* gagnants */
.winners { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.winners::-webkit-scrollbar { display: none; }
.winner { scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); background: #071632; transition: transform .2s, border-color .2s; }
.winner:hover { transform: translateY(-4px); border-color: var(--cyan); }
.winner img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.winner .ribbon { position: absolute; top: 12px; left: -6px; padding: 3px 14px 3px 16px; background: linear-gradient(180deg, #ffd75a, #f29a0c); color: #1c1302; font-family: var(--f-cond); font-weight: 700; font-style: italic; font-size: .85rem; transform: rotate(-8deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.winner .who { display: flex; align-items: center; gap: 9px; padding: 10px 12px 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-cond); font-weight: 700; font-size: .8rem; color: #fff; background: linear-gradient(135deg, #2fb9ff, #1259c9); border: 1.5px solid #bfe6ff; flex: none; }
.winner .who b { font-family: var(--f-cond); font-size: .98rem; font-weight: 600; display: block; }
.winner .who small { color: var(--muted); font-size: .72rem; }
.winner .prize { text-align: center; font-family: var(--f-cond); font-weight: 700; padding: 8px 8px 12px; }
.carousel { position: relative; }
.carousel .nav { position: absolute; top: 42%; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 22, 50, .9); border: 1px solid var(--line); transform: translateY(-50%); }
.carousel .nav.prev { left: -14px; } .carousel .nav.next { right: -14px; }
.carousel .nav:hover { background: var(--blue); }

/* gros lot */
.biglot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; border-radius: 14px; border: 1px solid var(--line-soft); padding: 14px; background: radial-gradient(circle at 20% 50%, rgba(30, 110, 230, .35), transparent 65%), rgba(3, 12, 30, .6); }
.biglot .pic { border-radius: 12px; overflow: hidden; }
.biglot .pic img { width: 100%; height: 100%; max-height: 270px; object-fit: cover; transition: transform .6s; }
.biglot:hover .pic img { transform: scale(1.06); }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 8px; font-family: var(--f-cond); font-weight: 700; font-size: .92rem; color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); }
.tag .ic { width: 16px; height: 16px; }
.biglot h3 { font-family: var(--f-cond); font-size: 2rem; font-weight: 700; margin-top: 8px; }
.biglot .val { font-family: var(--f-cond); font-size: 1.1rem; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.biglot .val b { color: var(--gold); font-size: 1.25rem; }
.biglot .lbl { font-family: var(--f-cond); font-size: .88rem; margin-bottom: 8px; }
.biglot .cd { margin-bottom: 16px; }

/* comment ça marche */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.step { text-align: center; font-family: var(--f-cond); font-size: .98rem; position: relative; }
.step .num { width: 24px; height: 24px; margin: 0 auto 8px; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.step .ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 6px; }
.step + .step::before { content: ""; position: absolute; left: -10px; top: 12px; width: 14px; height: 1.5px; background: var(--muted); }
.rule { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: #dbe7f8; padding-top: 12px; border-top: 1px solid var(--line-soft); margin-bottom: 12px; }
.rule .ic { color: var(--cyan); width: 22px; height: 22px; margin-top: 2px; }
.rule b { color: var(--gold); font-weight: 500; }

/* c'est mon objet */
.claim { overflow: hidden; border-color: rgba(255, 197, 49, .55); }
.claim-body { display: grid; grid-template-columns: 1fr 150px; gap: 14px; align-items: center; }
.claim h2 { color: var(--gold); }
.claim p { line-height: 1.5; margin-bottom: 18px; color: #e3edfb; }
.claim img { border-radius: 10px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* communauté */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { text-align: center; padding: 12px 4px; border-radius: 10px; background: rgba(4, 16, 38, .6); border: 1px solid rgba(70, 160, 255, .12); }
.stat .ic { width: 26px; height: 26px; color: var(--cyan); }
.stat:nth-child(2) .ic { color: var(--gold); } .stat:nth-child(4) .ic { color: #fff; }
.stat b { display: block; font-family: var(--f-cond); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat small { font-family: var(--f-cond); color: var(--muted); font-size: .85rem; }

/* sections longues */
.section-title { text-align: center; margin: 70px 0 28px; }
.section-title h2 { font-family: var(--f-body); font-style: italic; font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-title p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
.section-title .tricolore { margin: 14px auto 0; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path { text-align: center; padding: 30px 24px; transition: transform .25s; }
.path:hover { transform: translateY(-6px); }
.path .round { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--cyan); background: radial-gradient(circle, rgba(47, 185, 255, .25), transparent 70%); box-shadow: 0 0 24px rgba(47, 185, 255, .35); }
.path .round .ic { width: 36px; height: 36px; color: var(--gold); }
.path h3 { font-family: var(--f-cond); font-size: 1.35rem; margin-bottom: 10px; }
.path p { color: #d3e0f3; line-height: 1.55; }
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--f-cond); font-size: 1.15rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: #d3e0f3; line-height: 1.6; }
.cta-final { text-align: center; padding: 70px 20px; margin-top: 60px; overflow: hidden; border-color: rgba(255, 197, 49, .5);
  background: linear-gradient(90deg, rgba(2, 9, 22, 0), #020916 30% 70%, rgba(2, 9, 22, 0)), url(../assets/img/banner-diver.jpg) left center / auto 170% no-repeat, url(../assets/img/banner-lost.jpg) right center / auto 170% no-repeat, #020916; }
@media (max-width: 980px) { .cta-final { background: #020916; } }
.cta-final h2 { font-family: var(--f-hand); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 20px; }

/* ===== pied de page ===== */
.footer { position: relative; z-index: 1; margin-top: 60px; }
.footer .wave { display: block; width: 100%; height: 60px; }
.footer .inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 6px 0 30px; }
.footer nav { display: flex; flex-wrap: wrap; margin-inline: auto; font-family: var(--f-cond); font-size: .95rem; }
.footer nav a { padding: 0 12px; color: #d9e6fa; }
.footer nav a + a { border-left: 1px solid rgba(255, 255, 255, .4); }
.footer nav a:hover { color: var(--gold); }
.social { display: flex; align-items: center; gap: 14px; font-family: var(--f-cond); }
.social a .ic { width: 26px; height: 26px; transition: color .2s, transform .2s; }
.social a:hover .ic { color: var(--gold); transform: translateY(-2px); }

/* ===== coque shop / espace ===== */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, rgba(4, 14, 32, .96), rgba(2, 9, 22, .96)); border-right: 1px solid var(--line-soft); scrollbar-width: thin; }
.side .logo { margin-bottom: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 10px; font-family: var(--f-cond); font-size: 1.08rem; color: #e6f0ff; text-align: left; width: 100%; transition: background .2s; }
.side-nav .ic { width: 26px; height: 26px; }
.side-nav a:hover, .side-nav button:hover { background: rgba(60, 140, 255, .14); }
.side-nav a.active { color: #1c1302; font-weight: 700; background: linear-gradient(180deg, #ffd75a, #f0a315 60%, #c98a14); box-shadow: 0 0 18px rgba(255, 180, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.side .promo { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.side .social { flex-direction: column; margin-top: 14px; gap: 10px; }
.side .social div { display: flex; gap: 14px; }
.main { min-width: 0; padding: 0 22px 0; }
.main-top { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.main-top .mainnav { margin-inline: 0 auto; }
.userchip { display: flex; align-items: center; gap: 10px; font-family: var(--f-cond); font-size: 1.02rem; }
.userchip .avatar { width: 40px; height: 40px; font-size: 1rem; }
.bell { position: relative; padding: 6px; }
.bell .ic { width: 28px; height: 28px; }
.badge-n { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

/* shop */
.shop-hero { position: relative; display: flex; align-items: center; gap: 28px; padding: 26px 30px 34px; border-radius: 20px; overflow: hidden; min-height: 250px; }
.shop-hero::before { content: ""; position: absolute; inset: 0 0 0 45%; background: url(../assets/img/shop-diver.jpg) right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); opacity: .95; }
.shop-hero > * { position: relative; }
.shop-hero .gift { width: 190px; flex: none; animation: float 5s ease-in-out infinite; }
.shop-hero h1 { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 24px rgba(0, 10, 40, .9); }
.shop-hero h1 span { background: linear-gradient(180deg, #ffe07a, #f29a0c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-hero .sub { font-family: var(--f-cond); font-weight: 700; font-size: 1.5rem; margin: 10px 0 8px; }
.shop-hero p { font-family: var(--f-cond); font-size: 1.08rem; line-height: 1.4; text-align: center; max-width: 520px; }
.shop-hero .tricolore { margin: 12px auto 0; width: 140px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 12px; font-family: var(--f-cond); font-size: 1.05rem; color: #cfe6ff; background: rgba(6, 22, 50, .8); border: 1.5px solid var(--line); transition: all .2s; }
.chip:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(47, 185, 255, .4); }
.chip.active { color: #1c1302; font-weight: 700; border-color: transparent; background: linear-gradient(180deg, #ffd75a, #f29a0c); box-shadow: 0 0 16px rgba(255, 180, 30, .45); }
.searchbox { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 12px; background: rgba(4, 14, 34, .85); border: 1.5px solid var(--line); min-width: 240px; }
.searchbox input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-family: var(--f-cond); width: 100%; }
.searchbox input::placeholder { color: var(--muted); }
.lots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lot { grid-column: span 2; display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; padding: 22px 18px 18px; overflow: visible; background: radial-gradient(circle at 22% 55%, rgba(30, 120, 240, .32), transparent 60%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); transition: transform .25s, box-shadow .25s; }
.lot:hover { transform: translateY(-4px); box-shadow: 0 0 36px rgba(40, 140, 255, .4); }
.lot.big { grid-column: span 3; padding: 28px 24px 22px; }
.lot.vedette { border-color: rgba(255, 197, 49, .75); box-shadow: 0 0 30px rgba(255, 180, 30, .22), inset 0 0 40px rgba(10, 60, 140, .25); }
.lot .pic img { margin-inline: auto; max-height: 250px; }
.lot:not(.big) .pic img { max-height: 180px; }
.lot h3 { font-family: var(--f-cond); font-weight: 700; font-size: 1.35rem; }
.lot.big h3 { font-size: 2rem; }
.lot .tagline { font-family: var(--f-cond); font-size: 1.02rem; margin-bottom: 10px; color: #e3edfb; }
.lot.big .tagline { font-size: 1.2rem; }
.lot .info { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 0; }
.lot .cd-inline { align-self: flex-start; }
.lot:not(.big) .participants { font-size: .92rem; }
.lot-badge { position: absolute; top: -1px; left: -1px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 18px 0 18px 0; font-family: var(--f-cond); font-weight: 700; font-size: 1rem; }
.lot-badge.vedette { top: 8px; left: -10px; border-radius: 4px; transform: rotate(-9deg); color: #1c1302; background: linear-gradient(180deg, #ffe07a, #f29a0c); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); font-style: italic; }
.lot-badge.hot, .lot-badge.new { color: #fff; background: linear-gradient(180deg, #2fa4ff, #135fd0); }
.lot-badge.soon { color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); }
.engage { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
.engage h2 { color: var(--gold); }
.engage p { font-family: var(--f-cond); font-size: 1.02rem; line-height: 1.35; color: #e3edfb; }
.engage .trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 6px; text-align: center; font-family: var(--f-cond); font-size: .9rem; }
.engage .trio div + div { border-left: 1px solid var(--line-soft); }
.engage .trio .ic { width: 30px; height: 30px; color: var(--gold); display: block; margin: 0 auto 6px; stroke-width: 1.5; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); font-family: var(--f-cond); font-size: 1.1rem; }

/* espace membre */
.surface { height: 58px; background: linear-gradient(180deg, rgba(60, 170, 255, .45), transparent), repeating-linear-gradient(100deg, rgba(160, 225, 255, .22) 0 14px, transparent 14px 46px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.hello { position: relative; display: flex; align-items: center; gap: 30px; padding: 18px 12px 22px; min-height: 180px; overflow: hidden; border-radius: 18px; }
.hello::before { content: ""; position: absolute; inset: 0 0 0 55%; background: url(../assets/img/dash-diver.jpg) right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.hello > * { position: relative; }
.hello .avatar { width: 136px; height: 136px; font-size: 3.2rem; border: 3px solid #5cc6ff; box-shadow: 0 0 26px rgba(47, 185, 255, .6); }
.hello h1 { font-family: var(--f-cond); font-size: 2.3rem; font-weight: 700; }
.hello p { font-family: var(--f-cond); font-size: 1.2rem; margin: 4px 0 12px; }
.since { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 16, 38, .8); font-family: var(--f-cond); }
.since .ic { color: var(--gold); }
.hello .hand { font-family: var(--f-hand); font-size: 1.9rem; line-height: 1.2; transform: rotate(-6deg); margin-left: 5%; text-shadow: 0 2px 14px rgba(0, 10, 40, .9); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.tile { display: flex; align-items: center; gap: 18px; padding: 14px 20px; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile > .ic:first-child { width: 46px; height: 46px; color: var(--cyan); }
.tile.g > .ic:first-child { color: var(--gold); }
.tile b { display: block; font-family: var(--f-cond); font-size: 1.9rem; line-height: 1.05; }
.tile span { font-family: var(--f-cond); }
.tile .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.dash-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.dash-3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.next { display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: center; }
.next img { max-height: 240px; margin-inline: auto; }
.next h3 { font-family: var(--f-cond); font-size: 2rem; margin-top: 6px; }
.next .tagline { font-family: var(--f-cond); font-size: 1.1rem; margin-bottom: 10px; }
.next .cd { margin-bottom: 12px; }
.next .participants { margin-bottom: 6px; }
.next .btn { margin-top: 12px; float: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; font-family: var(--f-cond); font-weight: 700; font-size: .9rem; }
.pill.gold { color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); }
.pill.green { color: var(--green); border: 1px solid rgba(53, 208, 127, .5); background: rgba(20, 90, 50, .35); padding: 7px 16px; font-size: 1rem; }
.hist { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.hist + .hist { border-top: 1px solid var(--line-soft); }
.hist img { width: 96px; height: 66px; object-fit: cover; border-radius: 8px; }
.hist b { font-family: var(--f-cond); font-size: 1.12rem; font-weight: 600; display: block; }
.hist small { color: var(--muted); font-family: var(--f-cond); font-size: .95rem; }
.hist .pill { margin-left: auto; }
table.tk { width: 100%; border-collapse: collapse; font-family: var(--f-cond); font-size: .95rem; }
table.tk th { text-align: left; font-weight: 500; color: #dbe7f8; padding: 6px 8px; background: rgba(4, 14, 34, .7); }
table.tk td { padding: 8px; border-top: 1px solid var(--line-soft); }
table.tk .ok { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
table.tk .ok .ic { width: 16px; height: 16px; }
.req { display: flex; gap: 14px; align-items: center; padding: 8px 0; font-family: var(--f-cond); }
.req + .req { border-top: 1px solid var(--line-soft); }
.req img, .req .thumb { width: 64px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(20, 60, 120, .5); }
.req b { display: block; font-weight: 600; }
.req small { color: var(--muted); display: block; }
.req .btn { margin-left: auto; }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; font-family: var(--f-cond); font-size: .95rem; line-height: 1.25; }
.notif .ic { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.notif:nth-child(2) .ic { color: var(--cyan); }
.notif small { color: var(--muted); display: block; }
.notif::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); margin: 8px 0 0 auto; flex: none; box-shadow: 0 0 8px var(--cyan); }

/* ===== modales, toast ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(1, 6, 16, .78); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.side > * { flex: none; }
.next > div, .biglot > div { min-width: 0; }
.modal .panel { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; padding: 28px; background: linear-gradient(180deg, #0a2147, #040e20); }
.modal h2 { font-family: var(--f-cond); font-size: 1.7rem; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.modal h2 .ic { color: var(--gold); width: 30px; height: 30px; }
.modal p.hint { color: var(--muted); line-height: 1.45; margin-bottom: 16px; font-size: .95rem; }
.modal .close { position: absolute; top: 12px; right: 12px; padding: 6px; color: var(--muted); }
.modal .close:hover { color: #fff; }
.field { display: block; margin-bottom: 13px; font-family: var(--f-cond); font-size: .98rem; }
.field span { display: block; margin-bottom: 5px; color: #dbe7f8; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(2, 10, 26, .85); color: #fff; font: inherit; font-family: var(--f-body); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 197, 49, .2); }
.field textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #dbe7f8; margin-bottom: 16px; line-height: 1.4; }
.check input { margin-top: 3px; accent-color: var(--gold); }
.demo-note { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.4; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; padding: 13px 22px; border-radius: 12px; font-family: var(--f-cond); font-size: 1.05rem; background: #06142b; border: 1.5px solid var(--gold); box-shadow: 0 0 26px rgba(255, 180, 30, .4); transition: all .3s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 1180px) {
  .lot, .lot.big, .engage { grid-column: span 3; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dash-3 { grid-template-columns: 1fr 1fr; }
  .main-top .mainnav { display: none; }
  .main-top { justify-content: flex-end; }
}
@media (max-width: 980px) {
  .mainnav { display: none; }
  .topbar .mainnav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 16px; right: 16px; background: #06142b; padding: 10px; }
  .burger { display: block; margin-left: auto; }
  .hero { min-height: 0; padding: 120px 0 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-card { grid-column: 1; width: 100%; max-width: 440px; }
  .hero-bg { background-position: 54% 22%; }
  .hero::before { background: linear-gradient(180deg, rgba(2, 9, 22, .45) 0%, rgba(2, 9, 22, .5) 35%, rgba(2, 9, 22, .82) 62%, var(--bg) 100%); }
  .scroll-cue { display: none; }
  .sonar { display: none; }
  .grid-2, .grid-3, .paths, .dash-2, .dash-3 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .trust div { justify-content: flex-start; }
  .trust div:nth-child(3) { border-left: 0; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .side .logo.stack { flex-direction: row; margin: 0 auto 0 0; }
  .side .logo.stack img { width: 84px; }
  .side .logo.stack .tricolore, .side .promo, .side .social { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .side-nav a, .side-nav button { width: auto; white-space: nowrap; padding: 9px 12px; gap: 8px; font-size: .95rem; }
  .side-nav .ic { width: 20px; height: 20px; }
  .hello .hand { display: none; }
  .searchbox { margin-left: 0; flex: 1; }
}
.lot:not(.big) .cd-inline { padding: 6px 10px; max-width: 100%; }
.lot:not(.big) .cd-inline .row { font-size: 1.25rem; gap: 4px; }
.lot:not(.big) .cd-inline .row .ic { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; }
  .trust div { gap: 10px; padding: 4px 8px; font-size: .95rem; }
  .trust .ic { width: 32px; height: 32px; }
  .topbar .btn span, .logo-sub { display: none; }
  .logo img { width: 54px; }
  .logo-name { font-size: 1.35rem; }
  .hero { padding-top: 104px; }
  .hero-logo { width: 210px; margin-left: -8px; }
  .hero-cta .btn { width: 100%; }
  .hero p.lead { font-size: 1.05rem; }
  .winners { grid-auto-columns: 62%; }
  .biglot, .claim-body, .next { grid-template-columns: 1fr; }
  .claim-body img { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step + .step::before { display: none; }
  .lot, .lot.big, .engage { grid-column: 1 / -1; grid-template-columns: 1fr; text-align: center; }
  .lot .cd-inline { align-self: center; }
  .participants { justify-content: center; }
  .shop-hero { flex-direction: column; padding: 20px 16px; text-align: center; }
  .shop-hero .gift { width: 120px; }
  .tiles { grid-template-columns: 1fr; }
  .hello { flex-direction: column; text-align: center; gap: 12px; }
  .hello .avatar { width: 96px; height: 96px; font-size: 2.2rem; }
  .cd div { min-width: 54px; }
  .footer .inner { justify-content: center; text-align: center; }
  .main { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== tickets d'or ===== */
.wallet { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; font-family: var(--f-cond); border: 1.5px solid rgba(255, 197, 49, .7); background: linear-gradient(180deg, rgba(60, 40, 0, .55), rgba(10, 16, 34, .9)); box-shadow: 0 0 18px rgba(255, 180, 30, .3), inset 0 1px 0 rgba(255, 230, 150, .3); white-space: nowrap; }
.wallet:empty { display: none; }
.w-gold { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); }
.w-gold .ic { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255, 190, 40, .8)); animation: wiggle 3.5s ease-in-out infinite; }
.w-gold b { font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.w-gold small { font-size: .82rem; color: #ffe9a8; }
.w-regen { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(2, 10, 26, .85); border: 1px solid var(--line-soft); font-size: .88rem; color: #cfe6ff; font-variant-numeric: tabular-nums; }
.w-regen .ic { width: 15px; height: 15px; color: var(--cyan); }
.w-regen b { color: #fff; }
.w-regen:has(.gen) { padding: 0; border: 0; background: none; }
.gen { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-family: var(--f-cond); font-weight: 700; font-size: .9rem; color: #1c1302; background: linear-gradient(180deg, #ffe07a, #f29a0c); animation: pulse-gold 1.4s ease-in-out infinite; }
.gen .ic { width: 16px; height: 16px; color: #1c1302; }
.wallet.compact .w-gold small { display: none; }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg) scale(1.15); } 95% { transform: rotate(10deg) scale(1.15); } }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 190, 40, .7); } 50% { box-shadow: 0 0 0 9px rgba(255, 190, 40, 0); } }
.tile span i { font-style: normal; color: var(--gold); font-variant-numeric: tabular-nums; }
.tile.glow { border-color: rgba(255, 197, 49, .7); box-shadow: 0 0 24px rgba(255, 180, 30, .28), inset 0 0 30px rgba(120, 80, 0, .2); }
.mine { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 12px; border-radius: 10px; font-family: var(--f-cond); font-size: .95rem; border: 1px solid rgba(255, 197, 49, .55); background: rgba(255, 190, 40, .1); }
.mine .ic { width: 18px; height: 18px; color: var(--gold); }
.mine b { margin-left: auto; color: var(--gold); white-space: nowrap; }

/* modale de participation */
.take-lot { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 10px 0 14px; border-radius: 12px; background: rgba(2, 10, 26, .7); border: 1px solid var(--line-soft); font-family: var(--f-cond); }
.take-lot img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.take-lot b { display: block; font-size: 1.25rem; }
.take-lot small { color: var(--muted); }
.gold-count { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--gold); border: 1.5px solid rgba(255, 197, 49, .7); }
.gold-count b { font-size: 1.2rem; }
.rules { margin: 0 0 14px; padding: 12px 14px 4px; border-radius: 12px; border: 1.5px solid rgba(255, 197, 49, .55); background: rgba(255, 190, 40, .06); }
.rules legend { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; color: var(--gold); }
.rules .check { margin-bottom: 9px; font-size: .96rem; }
.rules .check b { color: var(--gold); font-weight: 700; }
.rules .check input { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.rules p { font-size: .82rem; color: var(--muted); line-height: 1.4; margin-bottom: 8px; }
.stake { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-cond); font-size: 1.05rem; margin-bottom: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font-family: var(--f-cond); font-weight: 700; font-size: 1.2rem; border: 1.5px solid var(--line); background: rgba(6, 22, 50, .9); }
.stepper button:hover { border-color: var(--gold); color: var(--gold); }
.stepper button[data-step="max"] { font-size: .9rem; color: var(--gold); border-color: rgba(255, 197, 49, .6); }
.stepper output { min-width: 52px; text-align: center; font-family: var(--f-cond); font-weight: 700; font-size: 1.7rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.chance { text-align: center; padding: 14px; margin-bottom: 16px; border-radius: 12px; background: radial-gradient(circle at 50% 0, rgba(255, 190, 40, .2), transparent 70%), rgba(2, 10, 26, .7); border: 1px solid var(--line-soft); font-family: var(--f-cond); }
.chance span { display: block; color: #dbe7f8; }
.chance > b { display: block; font-size: 2.7rem; line-height: 1.15; background: linear-gradient(180deg, #fff3c0, #ffc531 50%, #f29a0c); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.chance > b.pop { animation: pop .35s ease-out; }
.chance small { color: var(--muted); font-size: .9rem; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.confetti { position: fixed; left: 50%; top: 42%; z-index: 300; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; }

/* tutoriel */
.tuto { text-align: center; }
.tuto-ic { width: 92px; height: 92px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); background: radial-gradient(circle, rgba(255, 190, 40, .3), transparent 70%); box-shadow: 0 0 30px rgba(255, 180, 30, .45); animation: float 4s ease-in-out infinite; }
.tuto-ic .ic { width: 44px; height: 44px; color: var(--gold); }
.tuto-step { font-family: var(--f-cond); color: var(--cyan); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.modal .tuto h2 { justify-content: center; margin: 4px 0 10px; }
.tuto p { color: #dbe7f8; line-height: 1.55; min-height: 7.8em; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 18px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(120, 160, 220, .35); transition: all .25s; }
.dots i.on { width: 26px; border-radius: 5px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.tuto-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ===== gagnants : ça brille ===== */
.shiny { border-color: rgba(255, 197, 49, .8); overflow: hidden; animation: gold-breathe 2.6s ease-in-out infinite; background: radial-gradient(circle at 50% -20%, rgba(255, 190, 40, .22), transparent 60%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.shiny::before { background: linear-gradient(90deg, transparent, #ffe07a, transparent); }
.shiny::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 240, 190, .16), transparent); transform: skewX(-18deg); animation: sweep 4.5s ease-in-out infinite; }
@keyframes gold-breathe { 0%, 100% { box-shadow: 0 0 22px rgba(255, 180, 30, .22), inset 0 0 40px rgba(120, 80, 0, .18); } 50% { box-shadow: 0 0 46px rgba(255, 190, 40, .5), inset 0 0 50px rgba(160, 100, 0, .28); } }
@keyframes sweep { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.shiny .panel-head h2 { background: linear-gradient(100deg, #f29a0c 0%, #ffe07a 25%, #fff 40%, #ffe07a 55%, #f29a0c 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }
.shiny .panel-head > .ic { animation: trophy 2.4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 190, 40, .9)); }
@keyframes trophy { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(-8deg); } }
.ticker { overflow: hidden; margin: -4px 0 14px; padding: 7px 0; border-radius: 999px; background: rgba(2, 10, 26, .75); border: 1px solid rgba(255, 197, 49, .4); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); }
.ticker > div { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font-family: var(--f-cond); font-size: .95rem; white-space: nowrap; }
.ticker .ic { width: 16px; height: 16px; color: var(--gold); }
.ticker b { color: var(--gold); } .ticker em { font-style: normal; color: #fff; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
.shiny .winner { border: 1.5px solid rgba(255, 197, 49, .75); background: linear-gradient(180deg, #0b1d40, #071632); box-shadow: 0 0 16px rgba(255, 180, 30, .25); }
.shiny .winner:hover { transform: translateY(-6px) scale(1.03); border-color: #ffe07a; box-shadow: 0 0 34px rgba(255, 190, 40, .65); }
.shiny .winner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); background-size: 250% 100%; background-position: 160% 0; animation: card-shine 3.6s ease-in-out infinite; mix-blend-mode: overlay; }
.shiny .winner:nth-child(2n)::after { animation-delay: .6s; } .shiny .winner:nth-child(3n)::after { animation-delay: 1.2s; }
@keyframes card-shine { 0%, 45% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.shiny .winner .ribbon { z-index: 2; animation: ribbon 1.8s ease-in-out infinite; }
@keyframes ribbon { 0%, 100% { box-shadow: 0 3px 10px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 22px rgba(255, 200, 60, 1); } }
.shiny .winner .prize { color: var(--gold); text-shadow: 0 0 12px rgba(255, 190, 40, .6); }
.spark { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px #ffe07a); animation: twinkle 2.2s ease-in-out infinite; }
.spark.s1 { top: 14%; right: 12%; } .spark.s2 { top: 44%; left: 10%; width: 10px; height: 10px; animation-delay: .7s; } .spark.s3 { top: 30%; right: 34%; width: 8px; height: 8px; animation-delay: 1.3s; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

.mainnav a { white-space: nowrap; }
.logo { flex: none; } .logo-txt { white-space: nowrap; }
.topbar .btn { flex: none; }
@media (max-width: 1320px) { .topbar .wrap { gap: 10px; } .topbar .mainnav a { padding: 10px 8px; font-size: .94rem; gap: 5px; } .topbar .logo img { width: 56px; } .topbar .logo-name { font-size: 1.4rem; } }
@media (max-width: 640px) { .topbar .logo-txt { display: none; } .main-top { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 1500px) { .wallet.compact .w-regen:not(:has(.gen)) { display: none; } .wallet.compact { padding-right: 14px; } }
@media (max-width: 1500px) { .main-top .mainnav { display: none; } .main-top { justify-content: flex-end; } }
@media (max-width: 980px) { .wallet .w-gold small { display: none; } }
@media (max-width: 640px) { .topbar .wallet .w-regen { display: none; } .wallet { padding: 4px 10px; } .tuto p { min-height: 10em; } }
/* ===== états d'un lot : misé (orange qui pulse), gagné (vert) ===== */
[data-lot] { cursor: pointer; }
.lot.staked, .biglot.staked, .panel.staked, .lotd.staked { border-color: #ff9a1f; animation: stake-blink 2.8s ease-in-out infinite; }
@keyframes stake-blink {
  0%, 100% { border-color: rgba(255, 140, 20, .45); box-shadow: 0 0 10px rgba(255, 140, 20, .15), inset 0 0 30px rgba(120, 60, 0, .12); }
  50% { border-color: #ffa32b; box-shadow: 0 0 34px rgba(255, 150, 30, .7), inset 0 0 44px rgba(200, 100, 0, .3); }
}
.lot.won, .biglot.won, .panel.won, .lotd.won { border-color: var(--green); animation: won-glow 3s ease-in-out infinite; background: radial-gradient(circle at 50% 0, rgba(53, 208, 127, .2), transparent 65%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
@keyframes won-glow { 0%, 100% { box-shadow: 0 0 22px rgba(53, 208, 127, .45), inset 0 0 40px rgba(20, 120, 70, .25); } 50% { box-shadow: 0 0 46px rgba(53, 208, 127, .8), inset 0 0 50px rgba(20, 140, 80, .35); } }
.lot.staked::before, .panel.staked::before { background: linear-gradient(90deg, transparent, #ffb347, transparent); }
.lot.won::before, .panel.won::before { background: linear-gradient(90deg, transparent, #7dffb9, transparent); }
.lot.ended:not(.won) .pic { filter: saturate(.45) brightness(.8); }
.ended-box { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-family: var(--f-cond); border: 1px solid var(--line); background: rgba(2, 10, 26, .75); text-align: left; }
.ended-box .ic { width: 28px; height: 28px; color: var(--gold); }
.ended-box b { display: block; font-size: 1.1rem; } .ended-box small { color: var(--muted); }
.ended-box.won { border-color: var(--green); background: rgba(20, 90, 50, .4); }
.ended-box.won .ic, .ended-box.won b { color: #7dffb9; }
.hist.won b { color: #7dffb9; }
a.winner { display: block; }

/* fiche lot */
.modal .panel.lotd { width: min(940px, 100%); }
.lotd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #06142b; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 8px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--line-soft); opacity: .65; transition: all .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on, .thumbs button:hover { border-color: var(--gold); opacity: 1; box-shadow: 0 0 12px rgba(255, 190, 40, .5); }
.gallery small { color: var(--muted); font-family: var(--f-cond); }
.lotd-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lotd-info .tag { align-self: flex-start; }
.lotd-info h2 { font-size: 2.1rem; margin: 0; }
.lotd-info .tagline { font-family: var(--f-cond); font-size: 1.15rem; color: #e3edfb; }
.lotd-info dl, .champ dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.lotd-info dl div, .champ dl div { padding: 8px 10px; border-radius: 10px; background: rgba(2, 10, 26, .7); border: 1px solid var(--line-soft); font-family: var(--f-cond); }
dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } dd { margin: 0; font-weight: 700; font-size: 1.02rem; }
.lotd-info .desc { color: #d3e0f3; line-height: 1.5; font-size: .96rem; }
.note { display: flex; gap: 8px; align-items: center; font-family: var(--f-cond); font-size: .95rem; color: #cfe6ff; }
.note .ic { color: var(--cyan); width: 18px; height: 18px; } .note.ok, .note.ok .ic { color: #7dffb9; }
.lotd-info .lbl { font-family: var(--f-cond); font-size: .88rem; }

/* révélation du gagnant */
.modal .panel.draw { text-align: center; overflow: hidden; width: min(460px, 100%); }
.draw-rays { position: absolute; inset: -60%; pointer-events: none; opacity: .5; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 60, 0) 0 12deg, rgba(255, 200, 60, .16) 14deg, rgba(255, 200, 60, 0) 18deg); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.draw > *:not(.draw-rays) { position: relative; }
.modal .draw h2 { justify-content: center; margin: 4px 0 10px; }
.draw-img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--gold); box-shadow: 0 0 34px rgba(255, 190, 40, .6); animation: float 4s ease-in-out infinite; }
.draw-lbl { font-family: var(--f-hand); font-size: 1.5rem; color: var(--gold); }
.reel { margin: 10px 0 14px; padding: 14px; border-radius: 14px; border: 2px solid var(--gold); background: #020916; box-shadow: inset 0 0 26px rgba(255, 180, 30, .3), 0 0 22px rgba(255, 180, 30, .35); }
.reel span { font-family: var(--f-cond); font-weight: 700; font-size: 2.2rem; letter-spacing: .04em; color: #fff; }
.draw-res { min-height: 4.2em; margin-bottom: 14px; }
.draw-res b { display: block; font-family: var(--f-cond); font-size: 1.5rem; } .draw-res span { color: #dbe7f8; line-height: 1.45; }
.draw.is-won, .draw.is-lost { animation: pop .45s ease-out; }
.draw.is-won { border-color: var(--green); box-shadow: 0 0 60px rgba(53, 208, 127, .7); }
.draw.is-won .reel { border-color: var(--green); box-shadow: inset 0 0 26px rgba(53, 208, 127, .4), 0 0 30px rgba(53, 208, 127, .6); }
.draw.is-won .reel span, .draw.is-won .draw-res b { color: #7dffb9; }
.draw.is-won .draw-rays { background: repeating-conic-gradient(from 0deg, rgba(53, 208, 127, 0) 0 12deg, rgba(53, 208, 127, .22) 14deg, rgba(53, 208, 127, 0) 18deg); }
.draw.is-lost .reel span { color: var(--gold); }

/* ===== pages Gagnants et Propriétaires retrouvés ===== */
.page { padding-top: 10px; }
.page-hero { text-align: center; padding: 40px 16px 30px; }
.page-hero h1 { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; }
.page-hero h1 span { color: var(--cyan); }
.page-hero.gold h1 span { background: linear-gradient(100deg, #f29a0c 0%, #ffe07a 25%, #fff 40%, #ffe07a 55%, #f29a0c 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite; }
.page-hero p { max-width: 640px; margin: 14px auto 0; font-size: 1.12rem; line-height: 1.5; color: #dbe7f8; }
.page-hero .tricolore { margin: 18px auto 0; }
.tuto-ic.blue { border-color: var(--cyan); background: radial-gradient(circle, rgba(47, 185, 255, .3), transparent 70%); box-shadow: 0 0 30px rgba(47, 185, 255, .45); }
.tuto-ic.blue .ic { color: var(--cyan); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis .panel { text-align: center; padding: 18px 12px; font-family: var(--f-cond); }
.kpis b { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--gold); }
.kpis span { color: #dbe7f8; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; align-items: end; }
.champ { text-align: center; padding: 18px; }
.champ.first { order: 2; padding: 24px 20px 26px; } .champ:nth-child(2) { order: 1; } .champ:nth-child(3) { order: 3; }
.champ img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.champ h3 { font-family: var(--f-cond); font-size: 1.5rem; color: var(--gold); text-shadow: 0 0 14px rgba(255, 190, 40, .6); }
.champ.first h3 { font-size: 1.9rem; }
.champ .who, .wcard .who { display: inline-flex; align-items: center; gap: 9px; margin: 8px 0 12px; text-align: left; }
.who b { font-family: var(--f-cond); display: block; } .who small { color: var(--muted); font-size: .78rem; }
.champ .ribbon { position: absolute; top: 14px; left: -6px; z-index: 2; padding: 4px 16px; background: linear-gradient(180deg, #ffd75a, #f29a0c); color: #1c1302; font-family: var(--f-cond); font-weight: 700; font-style: italic; transform: rotate(-6deg); animation: ribbon 1.8s ease-in-out infinite; }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.wcard { display: flex; align-items: center; gap: 16px; padding: 14px; border-color: rgba(255, 197, 49, .45); transition: transform .2s, box-shadow .2s; }
.wcard:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(255, 190, 40, .45); }
.wcard img { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
.wcard h3 { font-family: var(--f-cond); font-size: 1.25rem; }
.wcard .who { margin: 4px 0; }
.wcard p { display: flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: .92rem; color: #dbe7f8; }
.wcard p .ic { width: 16px; height: 16px; color: var(--gold); }
.wcard .pill { margin-left: auto; flex: none; }
.pill.orange { color: #ffb347; border: 1px solid rgba(255, 150, 30, .6); background: rgba(120, 60, 0, .35); padding: 7px 16px; font-size: 1rem; }
.stories { display: grid; gap: 22px; }
.story { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 18px; align-items: center; }
.story:nth-child(even) { grid-template-columns: 1fr 300px; } .story:nth-child(even) > img { order: 2; }
.story.rendu { border-color: rgba(53, 208, 127, .55); } .story.enquete { border-color: rgba(255, 150, 30, .6); }
.story > img { width: 100%; height: 230px; object-fit: cover; border-radius: 14px; }
.story-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.story h3 { font-family: var(--f-cond); font-size: 1.7rem; }
.story p { color: #d3e0f3; line-height: 1.55; }
.steps-line { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 4px 0; width: 100%; counter-reset: st; }
.steps-line li { position: relative; padding: 10px 12px 10px 44px; border-radius: 10px; background: rgba(2, 10, 26, .7); border: 1px solid var(--line-soft); font-family: var(--f-cond); counter-increment: st; }
.steps-line li::before { content: counter(st); position: absolute; left: 10px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #04210f; background: var(--green); }
.steps-line li.todo::before { background: #ffa32b; color: #2a1400; }
.steps-line b { display: block; } .steps-line small { color: var(--muted); }
.cta-claim { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 28px; }
.cta-claim h2 { font-family: var(--f-cond); font-size: 1.8rem; color: var(--gold); margin-bottom: 6px; }
.cta-claim p { margin: 0; max-width: 620px; }
@media (max-width: 980px) {
  .lotd-grid, .podium, .wall, .story, .story:nth-child(even) { grid-template-columns: 1fr; }
  .champ.first, .champ:nth-child(2), .champ:nth-child(3) { order: 0; }
  .story:nth-child(even) > img { order: 0; }
  .kpis, .kpis.three { grid-template-columns: 1fr 1fr; }
  .steps-line { grid-template-columns: 1fr; }
}
@media (max-width: 980px) { .gallery > img { aspect-ratio: 16 / 9; max-height: 260px; } .thumbs button { width: 60px; height: 60px; } }
@media (max-width: 640px) { .wcard { flex-wrap: wrap; } .lotd-info dl, .champ dl { grid-template-columns: 1fr 1fr; } }
/* ===== v4 : bandeau avant-première, accessibilité, équipage, pages infos et 404 ===== */
.demo-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 48px 8px 16px; font-family: var(--f-cond); font-size: .95rem; line-height: 1.3; text-align: center; color: #ffe9a8; background: linear-gradient(90deg, #06142b, #0b2550 50%, #06142b); border-bottom: 1px solid rgba(255, 197, 49, .45); }
.demo-bar b { color: var(--gold); }
.demo-bar .ic { width: 18px; height: 18px; flex: none; color: var(--gold); }
.demo-bar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 6px; color: #cfe6ff; }
.demo-bar button:hover { color: #fff; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 400; padding: 10px 16px; border-radius: 10px; font-weight: 700; color: #1c1302; background: var(--gold); }
.skip:focus { top: 12px; }
html.modal-lock { overflow: hidden; }
.modal .check a, .rules p a { color: var(--cyan); text-decoration: underline; }
.footer .copy { padding: 0 0 26px; text-align: center; font-family: var(--f-cond); font-size: .85rem; color: var(--muted); }

/* lot : actions sous la fiche */
.lotd-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* équipage (réseaux) */
.crew { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; margin-top: 64px; padding: 32px; border-color: rgba(130, 205, 255, .5);
  background: radial-gradient(circle at 0 0, rgba(47, 185, 255, .2), transparent 55%), radial-gradient(circle at 100% 100%, rgba(255, 190, 40, .12), transparent 55%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.crew h2 { font-family: var(--f-body); font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.crew > div > p { margin-top: 12px; color: #dbe7f8; line-height: 1.55; }
.crew-rules { list-style: none; display: grid; gap: 10px; padding: 0; margin: 18px 0 0; font-family: var(--f-cond); font-size: 1.08rem; }
.crew-rules li { display: flex; align-items: center; gap: 12px; }
.crew-rules li span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: #1c1302; background: linear-gradient(180deg, #ffe07a, #f29a0c); }
.crew-links { display: grid; gap: 12px; }
.crew-btn { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(2, 10, 26, .6); transition: transform .2s, border-color .2s, box-shadow .2s; }
.crew-btn:hover { transform: translateX(5px); border-color: var(--gold); box-shadow: 0 0 22px rgba(255, 190, 40, .3); }
.crew-btn > .ic { width: 34px; height: 34px; }
.crew-btn.youtube > .ic { color: #ff4b4b; } .crew-btn.tiktok > .ic { color: #5ef0ff; } .crew-btn.instagram > .ic { color: #ff7ab8; }
.crew-btn b { display: block; font-family: var(--f-cond); font-size: 1.2rem; }
.crew-btn small { font-family: var(--f-cond); color: var(--muted); }
.crew-btn .go { margin-left: auto; width: 20px; height: 20px; color: var(--gold); }

/* pages Règlement & informations */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.doc-toc { position: sticky; top: 92px; display: grid; gap: 2px; padding: 14px; }
.doc-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-family: var(--f-cond); font-size: 1.05rem; color: #dbe7f8; }
.doc-toc a .ic { width: 20px; height: 20px; color: var(--gold); }
.doc-toc a:hover { background: rgba(60, 140, 255, .14); color: #fff; }
.doc-body { display: grid; gap: 22px; }
.doc-body > section { padding: 26px 30px; scroll-margin-top: 96px; }
.doc-body h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--f-cond); font-size: 1.75rem; color: var(--gold); }
.doc-body h2 .ic { width: 28px; height: 28px; }
.doc-body h3 { margin: 20px 0 6px; font-family: var(--f-cond); font-size: 1.2rem; color: #fff; }
.doc-body p, .doc-body li { color: #d3e0f3; line-height: 1.65; }
.doc-body ul, .doc-body ol { margin: 6px 0; padding-left: 1.3em; }
.doc-body a:not(.btn) { color: var(--cyan); text-decoration: underline; }
.doc-body .todo { padding: 0 5px; border-radius: 4px; font-style: normal; color: #ffc27a; background: rgba(255, 150, 30, .14); }
.doc-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; color: #ffe9a8; border: 1px solid rgba(255, 197, 49, .45); background: rgba(255, 190, 40, .08); }
.doc-note .ic { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* page 404 */
.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost .code { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(5.5rem, 20vw, 11rem); line-height: 1; background: linear-gradient(180deg, #bfe9ff, #2fb9ff 45%, #1b5fd9); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 34px rgba(47, 185, 255, .45)); animation: float 5s ease-in-out infinite; }
.lost h1 { font-family: var(--f-body); font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 12px; }
.lost p { max-width: 520px; margin: 0 auto 24px; color: #dbe7f8; line-height: 1.55; }
.lost .hero-cta { justify-content: center; }

@media (max-width: 980px) {
  .crew, .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .demo-bar { font-size: .85rem; justify-content: flex-start; text-align: left; }
  .crew { padding: 22px 18px; }
  .doc-body > section { padding: 20px 18px; }
  .doc-toc { grid-template-columns: 1fr; }
}
/* ===== Emblème doré B&B sous-marin : la monnaie du jeu ===== */
.coin { width: 1.35em; height: 1.35em; flex: none; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255, 190, 40, .55)); }
.btn .coin { width: 24px; height: 24px; }
.btn-gold .coin { filter: drop-shadow(0 1px 2px rgba(80, 40, 0, .55)); }
.btn-sm .coin { width: 21px; height: 21px; }
.w-gold .coin { width: 28px; height: 28px; }
.coin.spin { animation: coin-flip 5s ease-in-out infinite; }
@keyframes coin-flip { 0%, 76% { transform: rotateY(0); } 88% { transform: rotateY(180deg) scale(1.14); } 100% { transform: rotateY(360deg); } }
.tile > .coin.big { width: 52px; height: 52px; }
.step .coin { display: block; width: 34px; height: 34px; margin: 0 auto 4px; }
.hero-proof .coin, .mine .coin, .wcard p .coin { width: 20px; height: 20px; }
.gold-count .coin { width: 22px; height: 22px; }
.modal h2 .coin { width: 34px; height: 34px; }
.gen .coin { width: 18px; height: 18px; }
.tuto-ic.is-coin { width: 128px; height: 128px; border: 0; background: none; box-shadow: none; }
.tuto-ic.is-coin img { width: 128px; height: 128px; filter: drop-shadow(0 0 26px rgba(255, 190, 40, .65)); animation: coin-flip 4s ease-in-out infinite; }
.confetti img.c { position: absolute; width: 24px; height: 24px; }
/* ===== coup de détecteur (monnaie du jeu) ===== */
.coin.det { filter: drop-shadow(0 0 4px rgba(255, 190, 40, .45)); }
.btn-gold .coin.det { filter: drop-shadow(0 1px 1px rgba(60, 30, 0, .6)); }
.coin.sweep { transform-origin: 30% 80%; animation: det-tilt 3.2s ease-in-out infinite; }
@keyframes det-tilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 70% { transform: rotate(9deg); } }
.tuto-ic.is-coin.is-det img { animation: det-tilt 3.2s ease-in-out infinite; transform-origin: 30% 75%; }

/* ===== tirage : le banc de sable ===== */
.modal .panel.draw { width: min(480px, 100%); }
.draw .snd { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 6px; border-radius: 8px; color: var(--muted); }
.draw .snd:hover { color: #fff; background: rgba(60, 140, 255, .15); }
.draw .snd .ic { width: 22px; height: 22px; }
.dig { position: relative; height: 220px; margin: 12px -6px 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft);
  background: radial-gradient(120% 90% at 50% -25%, rgba(110, 200, 255, .5), transparent 60%), linear-gradient(180deg, #0b416f 0%, #072a52 55%, #041a35 100%); }
.dig-rays { position: absolute; inset: -40% -10% 35%; pointer-events: none; background: repeating-conic-gradient(from 160deg at 50% -10%, rgba(150, 220, 255, 0) 0 6deg, rgba(150, 220, 255, .16) 8deg, rgba(150, 220, 255, 0) 11deg); animation: sway 7s ease-in-out infinite alternate; }
.dig .dune { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 96px; }
.dig .hole { position: absolute; left: 50%; bottom: 62px; width: 0; height: 0; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, #4a3118 0%, #6e4b28 55%, rgba(110, 75, 40, 0) 74%); transition: width 1.6s ease-out, height 1.6s ease-out; }
.dig.digging .hole, .dig.static .hole { width: 104px; height: 30px; }
.dig .sonar { position: absolute; left: 50%; bottom: 60px; width: 24px; height: 9px; margin-left: -12px; border: 2px solid var(--gold); border-radius: 50%; opacity: 0; }
.dig.found .sonar { animation: sonar-ring 1.05s ease-out infinite; }
.dig.found .sonar.r2 { animation-delay: .35s; } .dig.found .sonar.r3 { animation-delay: .7s; }
.dig.digging .sonar { animation: none; opacity: 0; }
@keyframes sonar-ring { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(7); opacity: 0; } }
.dig .det-wrap { position: absolute; left: 50%; bottom: 58px; width: 190px; margin-left: -26px; transform: translateX(-170px); }
.dig .dig-det { display: block; width: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.dig .bip { position: absolute; left: 6px; top: -6px; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; white-space: nowrap; color: #ffe07a; text-shadow: 0 0 12px rgba(255, 190, 40, .95); opacity: 0; }
.dig.sweep .det-wrap { animation: det-sweep 2.72s ease-in-out forwards; }
@keyframes det-sweep {
  0% { transform: translateX(-170px) rotate(4deg); }
  30% { transform: translateX(110px) rotate(-3deg); }
  58% { transform: translateX(-95px) rotate(3deg); }
  80% { transform: translateX(45px) rotate(-1deg); }
  100% { transform: translateX(0) rotate(0); }
}
.dig.pop .bip { animation: bip-pop .34s ease-out; }
@keyframes bip-pop { 0% { opacity: 0; transform: translateY(4px) scale(.7); } 30% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-10px) scale(1.25); } }
.dig.found .det-wrap { transform: translateX(0); animation: det-wiggle .16s ease-in-out infinite alternate; }
.dig.found .bip { opacity: 1; left: -24px; animation: bip-found .32s ease-in-out infinite alternate; }
@keyframes det-wiggle { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes bip-found { from { transform: scale(1); } to { transform: scale(1.12); } }
.dig.digging .det-wrap { animation: det-away .55s ease-in forwards; }
.dig.digging .bip { opacity: 0; animation: none; }
@keyframes det-away { from { transform: translateX(0); opacity: 1; } to { transform: translate(150px, -70px) rotate(-14deg); opacity: 0; } }
.dig .shovel { position: absolute; left: 50%; bottom: 46px; width: 46px; margin-left: -4px; opacity: 0; transform-origin: 50% 100%; transform: translateY(-55px) rotate(26deg); transition: opacity .25s; }
.dig .shovel svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.dig.digging .shovel { opacity: 1; }
.dig.scoop .shovel { animation: dig-scoop .52s ease-in-out; }
@keyframes dig-scoop { 0% { transform: translateY(-55px) rotate(26deg); } 42% { transform: translateY(16px) rotate(8deg); } 68% { transform: translateY(6px) rotate(-22deg); } 100% { transform: translateY(-55px) rotate(26deg); } }
.dig .grains { position: absolute; left: 50%; bottom: 64px; width: 0; height: 0; }
.dig .grains i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #e2c48a; opacity: 0; box-shadow: 0 0 2px rgba(80, 50, 20, .6); }
.dig.scoop .grains i { animation: grain var(--d) cubic-bezier(.2, .75, .45, 1) .2s; }
@keyframes grain { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.dig .treasure { position: absolute; left: 50%; bottom: 50px; width: 104px; height: 104px; margin-left: -52px; display: grid; place-items: end center; opacity: 0; transform: translateY(46px) scale(.5); }
.dig .treasure img { width: 100%; height: 100%; object-fit: contain; }
.dig .treasure svg { width: 64px; height: 80px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); }
.dig.unearth .shovel { opacity: 0; }
.dig.unearth .treasure { animation: treasure-rise .85s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes treasure-rise { to { opacity: 1; transform: translateY(-4px) scale(1); } }
.dig.dig-won::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 260px; height: 260px; margin-left: -130px; pointer-events: none; background: radial-gradient(circle, rgba(255, 214, 100, .6), rgba(255, 190, 40, .15) 45%, transparent 68%); animation: glow-in .9s ease-out; }
@keyframes glow-in { from { opacity: 0; transform: scale(.4); } }
.dig.dig-won .treasure img { filter: drop-shadow(0 0 22px rgba(255, 200, 60, .95)); animation: coin-flip 2.6s ease-in-out 1s infinite; }
.dig.dig-lost .treasure svg { animation: can-wobble 1.4s ease-in-out .9s 2; transform-origin: 50% 100%; }
@keyframes can-wobble { 25% { transform: rotate(-7deg); } 75% { transform: rotate(6deg); } }
.dig.static .det-wrap { display: none; }
.dig.static .treasure { opacity: 1; transform: none; }
.dig-status { min-height: 1.5em; margin-bottom: 6px; font-family: var(--f-cond); font-size: 1.05rem; color: #dbe7f8; }
.draw.is-won .dig { border-color: rgba(53, 208, 127, .6); }
/* ===== inscription : ticket d'or (code d'invitation) et liste d'attente ===== */
.modal .panel.join { width: min(500px, 100%); }
.join-err { margin: 0 0 12px; color: #ffb4a3; font-family: var(--f-cond); font-size: .98rem; line-height: 1.35; }
.join-err:empty { display: none; }
.join-msg { margin: 4px 0 8px; text-align: center; font-family: var(--f-cond); font-size: 1.12rem; line-height: 1.4; }
.join-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--muted); font-family: var(--f-cond); font-size: .9rem; }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.join-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.join-wait .hint, .join-ok .hint { text-align: center; }
.linkish { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 0; }
.demo-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* le ticket : or brossé, encoches sur les côtés, talon prédécoupé, reflet qui passe */
.gt-wrap { margin: 4px 0 16px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(255, 190, 40, .3)); animation: gt-in .8s cubic-bezier(.2, .9, .25, 1.15) both; }
.gt {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; overflow: hidden; border-radius: 14px; color: #3a2400;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 7px),
    linear-gradient(115deg, #fff1b0 0%, #ffd34d 22%, #f6b21a 46%, #ffe68f 60%, #e39a0e 82%, #ffd65a 100%);
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.gt-main { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 18px 16px 18px 28px; }
.gt-kicker { font-family: var(--f-cond); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(70, 40, 0, .82); }
.gt-title { font-family: var(--f-logo); font-weight: 900; font-size: 1.95rem; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: #4a2c00; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(120, 60, 0, .35); }
.gt-slot { display: grid; gap: 5px; margin-top: 10px; }
.gt-slot span { font-family: var(--f-cond); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(70, 40, 0, .85); }
.gt-slot input {
  width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; text-align: center; text-transform: uppercase;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.32rem; font-weight: 700; letter-spacing: .16em;
  color: #fff4cc; caret-color: #ffd34d; background: linear-gradient(180deg, #2a1a02, #4d3207);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 230, 150, .25), 0 1px 0 rgba(255, 255, 255, .55);
}
.gt-slot input::placeholder { color: rgba(255, 220, 140, .38); }
.gt-slot input:focus { outline: 0; }
.gt-slot input:focus-visible { outline: 3px solid #1b5fd9; outline-offset: 2px; }
.gt-stub { display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px 6px; border-left: 2px dashed rgba(110, 60, 0, .5); background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(120, 60, 0, .14)); text-align: center; font-family: var(--f-cond); font-size: .7rem; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: rgba(70, 40, 0, .85); }
.gt-stub img { width: 58px; height: 58px; filter: drop-shadow(0 2px 3px rgba(80, 40, 0, .5)); animation: gt-coin 5s ease-in-out infinite; }
.gt-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 49%, transparent 60%); transform: translateX(-120%); animation: gt-shine 4.2s ease-in-out .8s infinite; }
.gt-num { display: block; margin-top: 8px; font-family: var(--f-logo); font-weight: 900; font-size: 2.1rem; line-height: 1; color: #4a2c00; }
.gt-num small { display: block; margin-bottom: 4px; font-family: var(--f-cond); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(70, 40, 0, .82); }
.gt-name { font-size: 1.6rem; overflow-wrap: anywhere; }
.gt-closed { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--f-cond); font-weight: 700; font-size: 1.02rem; line-height: 1.25; color: #3a2400; }
.gt-closed .ic { width: 30px; height: 30px; }
.gt.locked { filter: grayscale(.7) brightness(.92); }
.gt-stamp {
  position: absolute; z-index: 3; top: 50%; left: 44%; padding: 5px 14px; border: 4px double currentColor; border-radius: 10px;
  font-family: var(--f-logo); font-weight: 900; font-size: 1.7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #0b7a3b; background: rgba(255, 255, 255, .2); opacity: .9; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-13deg); animation: gt-stamp .5s cubic-bezier(.3, 1.6, .5, 1) .35s both;
}
.gt.waiting .gt-stamp { left: 58%; color: #143f9c; font-size: 1.05rem; padding: 5px 10px; }
.gt.shake { animation: gt-shake .45s; }
@keyframes gt-in { from { opacity: 0; transform: perspective(700px) rotateX(70deg) translateY(30px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes gt-shine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(130%); } }
@keyframes gt-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-13deg) scale(2.3); } to { opacity: .9; transform: translate(-50%, -50%) rotate(-13deg) scale(1); } }
@keyframes gt-shake { 20% { transform: translateX(-9px) rotate(-1deg); } 40% { transform: translateX(8px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
@keyframes gt-coin { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }
@media (max-width: 430px) {
  .gt { grid-template-columns: minmax(0, 1fr) 70px; }
  .gt-main { padding: 14px 10px 14px 22px; }
  .gt-title { font-size: 1.5rem; }
  .gt-stub img { width: 44px; height: 44px; }
  .gt-slot input { font-size: 1.08rem; letter-spacing: .1em; padding: 9px 8px; }
  .gt-stamp { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-wrap, .gt-stamp, .gt-stub img, .gt.shake { animation: none; }
  .gt-shine { display: none; }
}

/* ===== lots à places limitées ===== */
.places { display: flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-size: 1rem; color: var(--muted); }
.places .ic { width: 18px; height: 18px; color: var(--gold); }
.places b { color: #fff; }
.places.full, .places.full b { color: #ffb4a3; }
.places.full .ic { color: #ff8a70; }
.take-places { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-family: var(--f-cond); color: var(--muted); }
.take-places .ic { color: var(--gold); width: 18px; height: 18px; }
.lot.is-full .pic { position: relative; }
.lot.is-full .pic img { filter: grayscale(.55) brightness(.72); }
.lot.is-full .pic::after { content: "Complet"; position: absolute; top: 50%; left: 50%; padding: 6px 18px; border: 3px solid #ff8a70; border-radius: 10px; transform: translate(-50%, -50%) rotate(-10deg); font-family: var(--f-logo); font-weight: 900; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: #ffd2c7; background: rgba(60, 10, 0, .55); }

/* ===== pied de page : crédit ===== */
.footer .copy .credit { display: block; margin-top: 6px; font-size: .8rem; letter-spacing: .04em; }
.footer .copy .credit b { color: var(--gold); font-weight: 600; }

/* =====================================================================
   REFONTE MOBILE — le site est d'abord pensé pour le téléphone
   ≤ 980 px : barre d'onglets en bas, menu en feuille, barre du haut compacte
   ≤ 760 px : téléphone (une colonne, fenêtres en feuilles, carrousels au doigt)
   ≤ 380 px : petits téléphones
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; overflow-x: clip; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.tabbar, .m-logo { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.swipe-hint { display: none; }

/* feuille de menu (ouverte par le bouton ☰) */
.msheet { display: grid; gap: 14px; }
.ms-head { display: flex; justify-content: center; padding: 2px 40px 0; }
.ms-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 197, 49, .5); background: rgba(255, 190, 40, .08); font-family: var(--f-cond); }
.ms-user .avatar { width: 46px; height: 46px; font-size: 1.15rem; }
.ms-user b { display: block; font-size: 1.2rem; }
.ms-user small { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: .95rem; }
.ms-user small .coin { width: 20px; height: 20px; }
.ms-user .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.ms-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-nav a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(4, 16, 38, .65); font-family: var(--f-cond); font-size: 1.02rem; line-height: 1.15; }
.ms-nav a .ic { width: 22px; height: 22px; color: var(--gold); }
.ms-nav a:active { background: rgba(60, 140, 255, .2); }
.ms-nav.small a { min-height: 42px; font-size: .93rem; background: transparent; }
.ms-nav.small a .ic { width: 18px; height: 18px; color: var(--cyan); }
.ms-acts { display: flex; gap: 10px; }
.ms-acts .btn { flex: 1; }
.ms-social { justify-content: center; gap: 18px; }
.ms-copy { text-align: center; font-family: var(--f-cond); font-size: .8rem; color: var(--muted); }

/* ---------- tablettes et téléphones ---------- */
@media (max-width: 980px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); background-attachment: scroll; }
  /* barre d'onglets */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
    background: linear-gradient(180deg, rgba(5, 18, 42, .9), rgba(2, 9, 22, .98)); border-top: 1px solid var(--line-soft);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px rgba(0, 6, 20, .55);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; min-height: 54px; padding: 4px 2px; border-radius: 12px; font-family: var(--f-cond); font-size: .74rem; font-weight: 600; color: #9fb6d6; transition: color .2s, transform .12s; }
  .tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab > .ic, .tab > .coin { width: 25px; height: 25px; }
  .tab.on { color: var(--gold); }
  .tab.on > .ic { filter: drop-shadow(0 0 8px rgba(255, 190, 40, .75)); }
  .tab:active { transform: scale(.92); }
  .tab-main { color: #ffe9a8; }
  .tab-main .tm-ic { display: grid; place-items: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; color: #1c1302; background: linear-gradient(180deg, #ffe07a, #ffc531 45%, #f29a0c); border: 3px solid #04122a; box-shadow: 0 0 24px rgba(255, 180, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .7); }
  .tab-main .tm-ic .ic { width: 30px; height: 30px; }
  .tab-main.on .tm-ic { box-shadow: 0 0 0 3px rgba(255, 197, 49, .35), 0 0 28px rgba(255, 190, 40, .8); }
  .tab-join { color: #ffe9a8; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 24px); text-align: center; }

  /* barre du haut des pages vitrine */
  .topbar { padding: 8px 0; }
  .topbar .wrap { gap: 10px; }
  .topbar .logo { margin-right: auto; }
  .topbar [data-account] { display: none; }
  .topbar .burger { display: grid; place-items: center; order: 5; margin: 0; }
  .topbar .mainnav.open { display: none; }

  /* coque Shop / Espace : la colonne de gauche laisse place à une barre compacte */
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 0 16px; }
  .main-top { position: sticky; top: 0; z-index: 40; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; margin: 0 -16px 6px; padding: 8px 16px;
    background: linear-gradient(180deg, rgba(2, 9, 22, .96), rgba(2, 9, 22, .8)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(70, 160, 255, .12); }
  .m-logo { display: block; flex: none; margin-right: auto; }
  .m-logo img { width: 44px; height: auto; filter: drop-shadow(0 0 6px rgba(60, 150, 255, .5)); }
  .main-top > .btn { display: none; }
  .main-top .burger { display: grid; place-items: center; margin: 0; }
  .userchip > span:last-child { display: none; }
  .userchip .avatar { width: 34px; height: 34px; font-size: .9rem; }

  /* grilles : jamais plus larges que l'écran */
  .hero-grid, .grid-2, .grid-3, .dash-2, .dash-3, .lotd-grid, .podium, .wall, .story, .story:nth-child(even), .crew, .doc { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- téléphones ---------- */
@media (max-width: 760px) {
  :root { --gut: 12px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { padding: 14px 22px; font-size: 1.06rem; }
  .btn:active { transform: scale(.97); }
  .panel { padding: 16px; border-radius: 16px; }
  .panel-head { flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
  .panel-head h2 { font-size: 1.22rem; }
  .panel-head .ic { width: 26px; height: 26px; }
  .field input, .field textarea, .field select, .searchbox input { font-size: 16px; }
  .demo-bar { gap: 8px; padding: 6px 40px 6px 12px; font-size: .8rem; justify-content: flex-start; text-align: left; }
  .bubbles i:nth-child(n+13) { display: none; }

  /* barre du haut */
  .topbar .logo img { width: 46px; }
  .topbar .btn span { display: inline; }
  .topbar .btn-sm { padding: 8px 14px; min-height: 38px; }
  .wallet { padding: 4px 10px; gap: 6px; }
  .w-gold b { font-size: 1.25rem; }

  /* accueil : bannière */
  .hero { min-height: 0; padding: 88px 0 54px; }
  .hero-grid { gap: 22px; }
  .hero-content { text-align: center; }
  .hero-logo { width: 150px; margin: 0 auto 2px; }
  .hero-kicker { justify-content: center; gap: 8px; font-size: .72rem; letter-spacing: .1em; margin-bottom: 10px; }
  .hero-kicker::before { width: 20px; }
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.75rem); }
  .hero p.lead { margin: 12px auto 20px; font-size: 1.02rem; line-height: 1.5; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-proof { justify-content: center; gap: 8px; margin-top: 18px; font-size: .88rem; }
  .hero-proof li { padding: 6px 11px; border-radius: 999px; background: rgba(4, 16, 38, .62); border: 1px solid var(--line-soft); }
  .hero-card { max-width: none; padding: 16px; }
  .hc-lot b { font-size: 1.2rem; }
  .trust { margin-top: -24px; padding: 12px 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
  .trust div { justify-content: flex-start; gap: 8px; padding: 4px 8px; font-size: .88rem; line-height: 1.2; }
  .trust .ic { width: 28px; height: 28px; }
  .trust div:nth-child(3) { border-left: 0; }
  section.block { margin-top: 16px; }
  .grid-2, .grid-3 { gap: 16px; }

  /* carrousels au doigt */
  .winners { grid-auto-columns: 74%; gap: 12px; }
  .carousel .nav { display: none; }
  .paths, .podium { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 12px; margin: 0 calc(-1 * var(--gut)); scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .paths::-webkit-scrollbar, .podium::-webkit-scrollbar, .chips::-webkit-scrollbar, .thumbs::-webkit-scrollbar, .doc-toc::-webkit-scrollbar { display: none; }
  .path, .champ { scroll-snap-align: start; }
  .path { padding: 22px 18px; }
  .path .round { width: 64px; height: 64px; margin-bottom: 12px; }
  .podium { align-items: stretch; }

  .biglot { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; text-align: center; }
  .biglot .pic img { max-height: 210px; }
  .biglot h3 { font-size: 1.6rem; }
  .biglot .cd { justify-content: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .step + .step::before { display: none; }
  .claim-body { grid-template-columns: minmax(0, 1fr); }
  .claim-body img { display: none; }
  .claim .btn { width: 100%; }
  .section-title { margin: 44px 0 18px; }
  .section-title p { font-size: .98rem; }
  .crew { margin-top: 40px; padding: 20px 16px; gap: 18px; }
  .crew-btn { padding: 12px 14px; }
  .faq { gap: 10px; }
  .faq summary { padding: 15px 16px; font-size: 1.04rem; }
  .faq details p { padding: 0 16px 16px; }
  .cta-final { padding: 40px 16px; margin-top: 40px; }
  .cta-final h2 { font-size: 1.75rem; }
  .cta-final .btn { width: 100%; }

  /* Shop */
  .shop-hero { min-height: 0; flex-direction: row; gap: 12px; padding: 16px 14px 18px; border-radius: 18px; text-align: left; }
  .shop-hero::before { inset: 0; opacity: .4; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
  .shop-hero .gift { width: 82px; }
  .shop-hero h1 { font-size: 2.35rem; }
  .shop-hero .sub { font-size: 1.08rem; margin: 6px 0 0; }
  .shop-hero p:not(.sub), .shop-hero .tricolore { display: none; }
  .filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin: 6px 0 14px; }
  .filters .searchbox { order: -1; margin: 0; min-width: 0; width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chip { flex: none; padding: 9px 15px; font-size: .98rem; scroll-snap-align: start; }
  .lots { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lot, .lot.big, .engage { grid-column: 1 / -1; }
  .lot, .lot.big { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 14px 14px; text-align: center; }
  .lot .pic img, .lot:not(.big) .pic img { max-height: 180px; }
  .lot h3, .lot.big h3 { font-size: 1.5rem; }
  .lot .tagline, .lot.big .tagline { font-size: 1rem; margin-bottom: 2px; }
  .lot .info { gap: 9px; }
  .lot .cd-inline, .lot:not(.big) .cd-inline { align-self: center; padding: 7px 14px; }
  .lot:not(.big) .cd-inline .row { font-size: 1.6rem; }
  .lot .participants, .places { justify-content: center; }
  .lot .btn { width: 100%; }
  .lot-badge { font-size: .88rem; padding: 6px 12px 6px 10px; }
  .lot-badge.vedette { left: -6px; }
  .engage .trio { font-size: .85rem; }

  /* Espace */
  .hello { flex-direction: row; text-align: left; gap: 14px; min-height: 0; padding: 12px 2px 14px; }
  .hello::before { inset: 0 0 0 35%; opacity: .45; }
  .hello .avatar { width: 64px; height: 64px; font-size: 1.6rem; flex: none; }
  .hello h1 { font-size: 1.55rem; }
  .hello p { font-size: 1rem; margin: 2px 0 8px; }
  .since { gap: 6px; padding: 4px 12px; font-size: .85rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .tile > .ic:first-child { width: 30px; height: 30px; }
  .tile > .coin.big { width: 36px; height: 36px; }
  .tile b { font-size: 1.55rem; }
  .tile span { font-size: .86rem; line-height: 1.25; }
  .tile .chev { display: none; }
  .next { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 10px; }
  .next img { max-height: 170px; }
  .next h3 { font-size: 1.5rem; }
  .next .cd { justify-content: center; }
  .next .participants { justify-content: center; }
  .next .btn { float: none; width: 100%; }
  .hist { gap: 12px; }
  .hist img { width: 70px; height: 54px; }
  .hist b { font-size: 1rem; }
  .hist .pill { padding: 5px 10px; font-size: .82rem; }
  table.tk thead { display: none; }
  table.tk, table.tk tbody { display: block; }
  table.tk tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
  table.tk td { padding: 0; border: 0; }
  table.tk td:nth-child(2) { grid-row: 1; grid-column: 1; font-weight: 700; font-size: 1.02rem; }
  table.tk td:nth-child(4) { grid-row: 1; grid-column: 2; }
  table.tk td:nth-child(1), table.tk td:nth-child(3) { grid-row: 2; color: var(--muted); font-size: .88rem; }
  table.tk td:nth-child(3) { grid-column: 2; text-align: right; }
  .req { gap: 12px; }
  .req .btn { padding: 6px 12px; min-height: 0; font-size: .82rem; }

  /* Gagnants, objets rendus */
  .page-hero { padding: 22px 6px 16px; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .page-hero p { font-size: 1rem; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .kpis .panel { padding: 12px 8px; }
  .kpis b { font-size: 1.6rem; }
  .kpis span { font-size: .88rem; }
  .champ { padding: 14px; }
  .champ.first { padding: 14px; }
  .champ h3, .champ.first h3 { font-size: 1.35rem; }
  .wall { gap: 12px; }
  .wcard { flex-wrap: nowrap; gap: 12px; padding: 12px; }
  .wcard img { width: 76px; height: 76px; }
  .wcard h3 { font-size: 1.1rem; }
  .wcard .pill { display: none; }
  .story { padding: 14px; gap: 14px; }
  .story > img { height: 190px; }
  .story h3 { font-size: 1.35rem; }
  .steps-line li { padding: 8px 10px 8px 40px; }
  .cta-claim { padding: 20px 16px; margin-top: 28px; }
  .cta-claim h2 { font-size: 1.45rem; }
  .cta-claim .btn { width: 100%; }

  /* Règlement */
  .doc-toc { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gut); margin: 0 calc(-1 * var(--gut)); border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .doc-toc a { flex: none; padding: 8px 12px; font-size: .95rem; border: 1px solid var(--line-soft); border-radius: 999px; }
  .doc-body > section { padding: 18px 16px; scroll-margin-top: 76px; }
  .doc-body h2 { font-size: 1.42rem; }
  .doc-body h3 { font-size: 1.1rem; }

  /* pied de page */
  .footer { margin-top: 36px; }
  .footer .wave { height: 40px; }
  .footer .inner { flex-direction: column; gap: 14px; padding: 4px 0 16px; text-align: center; }
  .footer nav { justify-content: center; margin: 0; row-gap: 8px; }
  .footer nav a { padding: 2px 10px; }
  .footer .copy { padding: 0 12px 20px; line-height: 1.5; }

  /* fenêtres : feuilles qui montent du bas, à fermer d'un glissement */
  .modal { place-items: end center; padding: 0; }
  .modal .panel, .modal .panel.lotd, .modal .panel.draw, .modal .panel.join { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 24px 24px 0 0; border-bottom: 0; padding: 28px 16px calc(18px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .modal.open > .panel { animation: sheet-up .34s cubic-bezier(.2, .9, .3, 1); }
  .modal > .panel::after { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(200, 220, 255, .3); }
  .modal h2 { font-size: 1.45rem; gap: 10px; }
  .modal h2 .ic { width: 26px; height: 26px; }
  .modal .close { top: 12px; right: 12px; padding: 8px; }
  .modal p.hint { font-size: .93rem; }
  .check { font-size: .95rem; }
  .check input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
  /* fiche d'un lot : photos au doigt, bouton toujours visible */
  .lotd-grid { gap: 12px; }
  .lotd .gallery > img { display: none; }
  .lotd .thumbs { gap: 10px; margin: 0 -16px 6px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .lotd .thumbs button, .lotd .thumbs button.on, .lotd .thumbs button:hover { flex: 0 0 86%; width: auto; height: auto; aspect-ratio: 4 / 3; opacity: 1; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: none; scroll-snap-align: start; }
  .lotd .thumbs button:only-child { flex-basis: 100%; }
  .lotd .gallery small { display: block; text-align: center; }
  .swipe-hint { display: inline; }
  .lotd-info { gap: 9px; }
  .lotd-info h2 { font-size: 1.65rem; padding-right: 24px; }
  .lotd-info dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lotd-info .cd { justify-content: center; }
  .lotd-info > .btn-block { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 0 0 12px #061633, 0 -18px 22px 10px #061633, 0 0 18px rgba(255, 180, 30, .45); }
  .lotd-info > .btn-ghost.btn-block { background: #0b1b38; }
  .lotd-actions { justify-content: center; }
  /* participation */
  .take-lot { gap: 10px; padding: 8px; }
  .take-lot img { width: 52px; height: 52px; }
  .take-lot b { font-size: 1.1rem; }
  .rules { padding: 10px 12px 2px; }
  .stake { justify-content: center; text-align: center; }
  .stepper button { min-width: 46px; height: 46px; }
  .chance > b { font-size: 2.3rem; }
  .tuto p { min-height: 9em; }
  .dig { height: 200px; }
}

/* ---------- petits téléphones (iPhone SE, mini…) ---------- */
@media (max-width: 380px) {
  :root { --gut: 10px; }
  .main-top .w-regen:not(:has(.gen)) { display: none; }
  .hero h1 { font-size: 1.95rem; }
  .cd { gap: 5px; }
  .cd div { min-width: 0; }
  .cd b { font-size: 1.5rem; }
  .tab { font-size: .68rem; }
  .tab-main .tm-ic { width: 54px; height: 54px; }
  .ms-nav a { font-size: .95rem; padding: 10px; }
  .tiles { gap: 8px; }
  .lot h3, .lot.big h3 { font-size: 1.35rem; }
}

/* écrans tactiles : pas d'effets de survol qui restent « collés » */
@media (hover: none) {
  .lot:hover, .winner:hover, .shiny .winner:hover, .path:hover, .tile:hover, .wcard:hover, .crew-btn:hover, .btn-gold:hover, .biglot:hover .pic img { transform: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .modal.open > .panel { animation: none; } }

/* ===== connexion avec Google ===== */
.g-btn { display: flex; justify-content: center; align-items: center; min-height: 46px; margin: 2px 0 6px; }
.g-btn iframe { color-scheme: light; }
.g-wait { font-family: var(--f-cond); font-size: .92rem; color: var(--muted); text-align: center; }
.join-msg.small { margin: 14px 0 6px; font-size: .95rem; color: var(--muted); }

/* ===== emplacements publicitaires (Google AdSense, activés depuis l'administration) ===== */
.ad-slot { margin: 26px 0; padding: 10px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(2, 10, 26, .45); text-align: center; overflow: hidden; }
.ad-slot .ad-label { display: block; margin-bottom: 6px; font-family: var(--f-cond); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-slot ins { min-height: 100px; }
.main > .ad-slot { margin: 22px 0 0; }
/* inscription par compte Google uniquement */
.join-google .g-btn { margin: 14px 0 10px; min-height: 52px; }
@media (max-width: 760px) { .ad-slot { margin: 18px 0; padding: 8px 6px; } }

/* ===== les détectives (recrutement, QG, dossiers, discussion) ===== */
/* grade = couleur du halo autour de l'insigne : bronze, argent, or, saphir, améthyste */
:is(.det-badge, .det-level, .det-me).l1 { --lvl: #d39255; --glow: 5px; }
:is(.det-badge, .det-level, .det-me).l2 { --lvl: #d5dde8; --glow: 8px; }
:is(.det-badge, .det-level, .det-me).l3 { --lvl: #ffc531; --glow: 12px; }
:is(.det-badge, .det-level, .det-me).l4 { --lvl: #2fb9ff; --glow: 16px; }
:is(.det-badge, .det-level, .det-me).l5 { --lvl: #c08bff; --glow: 20px; }
.det-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--lvl) 60%, transparent); background: color-mix(in srgb, var(--lvl) 14%, rgba(4, 16, 38, .9)); color: var(--lvl); font-family: var(--f-cond); font-weight: 700; font-size: .9rem; line-height: 1.25; white-space: nowrap; vertical-align: middle; }
.det-badge img { width: 24px; height: 24px; flex: none; }
.det-badge.sm { gap: 4px; padding: 1px 8px 1px 2px; font-size: .76rem; }
.det-badge.sm img { width: 18px; height: 18px; }
.det-stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; line-height: 1; white-space: nowrap; }
.det-stars i { font-style: normal; color: rgba(255, 255, 255, .16); }
.det-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }

.det-hero { padding-top: 14px; }
.det-insigne { display: block; width: clamp(170px, 44vw, 250px); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 0 26px rgba(255, 190, 40, .45)); animation: float 5s ease-in-out infinite; }
.det-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 18px auto 0; }
.det-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 16, 38, .75); font-family: var(--f-cond); color: #dbe7f8; }
.det-stats b { color: var(--gold); font-size: 1.15rem; }
.det-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.det-steps .panel { padding: 22px 20px; }
.det-steps .n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; font-family: var(--f-cond); font-weight: 700; color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); box-shadow: 0 0 14px rgba(255, 180, 30, .45); }
.det-steps h3 { font-family: var(--f-cond); font-size: 1.3rem; margin-bottom: 6px; }
.det-steps p { color: var(--muted); line-height: 1.45; }
.det-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.det-level { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; text-align: center; border-color: color-mix(in srgb, var(--lvl) 45%, transparent); }
.det-level img, .det-me-img { filter: drop-shadow(0 0 var(--glow) color-mix(in srgb, var(--lvl) 75%, transparent)); }
.det-level img { width: 96px; height: 96px; }
.det-level b { font-family: var(--f-cond); font-size: 1.15rem; color: var(--lvl); }
.det-level small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.det-level.l5 img, .det-me.l5 .det-me-img { animation: det-legend 2.8s ease-in-out infinite; }
@keyframes det-legend { 50% { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--lvl) 90%, transparent)); } }
.det-apply, .det-charter { margin-top: 26px; padding: 24px; }
:is(.det-apply, .det-charter, .case-file, .case-elements, .case-chat) h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--f-cond); font-size: 1.4rem; line-height: 1.2; }
:is(.det-apply, .det-charter, .case-file, .case-elements, .case-chat) h2 .ic { width: 26px; height: 26px; flex: none; color: var(--gold); }
.det-apply .hint { color: var(--muted); line-height: 1.45; margin-bottom: 14px; }
.det-form { max-width: 640px; }
.det-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 150, 30, .45); background: rgba(120, 60, 0, .22); color: #ffd9a8; font-family: var(--f-cond); line-height: 1.4; }
.det-note .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #ffb347; }
.det-wait { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 16, 38, .7); }
.det-wait > .ic { width: 34px; height: 34px; flex: none; color: var(--gold); }
.det-wait b { display: block; font-family: var(--f-cond); font-size: 1.1rem; }
.det-wait small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.4; }
:is(.det-charter, .det-rules) ul { display: grid; gap: 10px; padding: 0; list-style: none; }
:is(.det-charter, .det-rules) li { position: relative; padding-left: 24px; line-height: 1.45; color: #dbe7f8; }
:is(.det-charter, .det-rules) li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 190, 40, .6); }

/* QG */
.det-me { display: flex; align-items: center; gap: 18px; margin-top: 8px; padding: 18px 22px; }
.det-me-img { width: 88px; height: 88px; flex: none; }
.det-me-id { flex: 1; min-width: 0; }
.det-me-id h1 { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.1; }
.det-me-id p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; font-family: var(--f-cond); font-size: 1.1rem; overflow-wrap: anywhere; }
.det-me-stats { display: flex; gap: 10px; }
.det-me-stats span { min-width: 84px; padding: 8px 10px; border-radius: 12px; text-align: center; background: rgba(4, 16, 38, .6); border: 1px solid rgba(70, 160, 255, .15); font-family: var(--f-cond); font-size: .85rem; color: var(--muted); }
.det-me-stats b { display: block; color: #fff; font-size: 1.5rem; line-height: 1.1; }
.det-tabs { display: flex; gap: 6px; margin: 18px 0 14px; padding: 4px; border-radius: 14px; background: rgba(4, 16, 38, .75); border: 1px solid var(--line-soft); }
.det-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-family: var(--f-cond); font-weight: 600; font-size: 1rem; color: #cfe6ff; }
.det-tabs button .ic { width: 18px; height: 18px; }
.det-tabs button[aria-pressed="true"] { color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); box-shadow: 0 0 14px rgba(255, 180, 30, .35); }
.det-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-card { display: flex; gap: 14px; padding: 12px; color: inherit; transition: transform .15s, box-shadow .2s; }
.case-card:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(47, 185, 255, .28); }
.case-card .ca-pic { display: grid; place-items: center; width: 104px; height: 104px; flex: none; overflow: hidden; border-radius: 12px; background: rgba(4, 16, 38, .8); border: 1px solid var(--line-soft); }
.case-card .ca-pic img { width: 100%; height: 100%; object-fit: cover; }
.case-card .ca-pic .ic { width: 36px; height: 36px; color: var(--cyan); }
.case-card .ca-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-card h3 { font-family: var(--f-cond); font-size: 1.2rem; line-height: 1.2; }
.case-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.ca-ref { font-family: var(--f-cond); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.case-card.solved .ca-ref { color: var(--green); }
.case-card.closed { opacity: .85; }
.ca-meta, .ca-count { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-cond); font-size: .85rem; color: #cfe6ff; }
.ca-meta .ic, .ca-count .ic { width: 15px; height: 15px; flex: none; color: var(--cyan); }
.det-rules { margin-top: 18px; padding: 14px 16px; }
.det-rules summary { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; list-style: none; font-family: var(--f-cond); color: #dbe7f8; line-height: 1.4; }
.det-rules summary::-webkit-details-marker { display: none; }
.det-rules summary .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.det-rules summary u { color: var(--gold); text-underline-offset: 3px; }
.det-rules[open] summary { margin-bottom: 12px; }

/* dossier */
.det-back { margin: 6px 0 12px; }
.case-head { margin-bottom: 16px; }
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.case-tags .pill { padding: 3px 12px; font-size: .85rem; }
.case-head h1 { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.08; overflow-wrap: anywhere; }
.case-sum { margin-top: 8px; color: #dbe7f8; font-size: 1.08rem; line-height: 1.45; }
.case-outcome { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(53, 208, 127, .5); background: rgba(20, 90, 50, .3); line-height: 1.45; }
.case-outcome .ic { width: 22px; height: 22px; flex: none; color: var(--green); }
.case-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-family: var(--f-cond); }
.case-credits > span { display: inline-flex; align-items: center; gap: 6px; }
.case-credits .ic { width: 16px; height: 16px; color: var(--gold); }
.case-photos { display: flex; gap: 10px; margin-bottom: 16px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.case-photos a { flex: 0 0 auto; scroll-snap-align: start; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-soft); }
.case-photos img { display: block; width: auto; height: 220px; max-width: 80vw; object-fit: cover; }
.case-file, .case-elements, .case-chat { margin-bottom: 16px; padding: 20px; }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.case-facts div { padding: 10px 12px; border-radius: 12px; background: rgba(4, 16, 38, .6); border: 1px solid rgba(70, 160, 255, .15); }
.case-facts dt { font-family: var(--f-cond); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-family: var(--f-cond); font-size: 1.05rem; }
.case-desc { white-space: pre-line; line-height: 1.55; color: #e3ecf9; }
.case-file h3, .case-mine h3 { margin: 16px 0 8px; font-family: var(--f-cond); font-size: 1.1rem; color: var(--gold); }
.case-clues { display: grid; gap: 8px; padding: 0; list-style: none; }
.case-clues li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255, 197, 49, .45); background: rgba(60, 40, 0, .18); line-height: 1.4; }
.case-clues .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.case-el { padding: 12px 14px; border-radius: 12px; background: rgba(4, 16, 38, .6); border: 1px solid rgba(70, 160, 255, .15); border-left: 3px solid var(--gold); }
.case-el + .case-el { margin-top: 10px; }
.case-el header, .msg header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; font-family: var(--f-cond); }
.case-el header small, .msg header small { margin-left: auto; color: var(--muted); font-size: .78rem; }
.case-el p { white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
.case-el-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.case-el-photos img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.case-none { color: var(--muted); font-family: var(--f-cond); }
.case-mine p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--f-cond); font-size: .92rem; color: #dbe7f8; }
.case-mine .pill { padding: 2px 10px; font-size: .8rem; }
.pill.grey { color: #c9d4e4; border: 1px solid rgba(200, 212, 228, .35); background: rgba(60, 70, 90, .35); }
.case-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.case-actions .btn { white-space: normal; text-align: center; line-height: 1.2; min-height: 50px; padding: 10px 16px; }
.det-warn { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-family: var(--f-cond); font-size: .9rem; color: #ffd9a8; line-height: 1.35; }
.det-warn .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #ffb347; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: min(60vh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border-radius: 14px; background: rgba(1, 8, 20, .65); border: 1px solid var(--line-soft); }
.chat-empty, .chat-closed { padding: 14px; text-align: center; color: var(--muted); font-family: var(--f-cond); }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; }
.msg > div { min-width: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: rgba(12, 36, 74, .85); border: 1px solid rgba(70, 160, 255, .2); }
.msg p { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me > div { border-radius: 14px 4px 14px 14px; background: rgba(27, 116, 240, .35); border-color: rgba(47, 185, 255, .45); }
.msg.staff > div { background: rgba(80, 55, 0, .45); border-color: rgba(255, 197, 49, .55); }
.staff-tag { padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.chat-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(2, 10, 26, .85); color: #fff; font: inherit; font-size: 1rem; line-height: 1.35; }
.chat-form textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 197, 49, .2); }
.chat-form .btn { flex: none; width: 50px; height: 46px; padding: 0; }
.det-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.det-kinds label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(2, 10, 26, .7); font-family: var(--f-cond); cursor: pointer; }
.det-kinds label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 197, 49, .18); }
.det-kinds input { accent-color: var(--gold); }

@media (max-width: 980px) {
  .det-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .det-cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .det-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .det-steps .panel { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .det-steps .n { grid-row: span 2; margin: 0; }
  .det-levels { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .det-level { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "img name stars" "img hint hint"; align-items: center; gap: 2px 12px; padding: 10px 14px; text-align: left; }
  .det-level img { grid-area: img; width: 58px; height: 58px; }
  .det-level b { grid-area: name; }
  .det-level .det-stars { grid-area: stars; font-size: .8rem; letter-spacing: 1px; }
  .det-level small { grid-area: hint; }
  .det-apply, .det-charter { margin-top: 18px; padding: 18px 16px; }
  .det-me { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .det-me-img { width: 70px; height: 70px; }
  .det-me-stats { width: 100%; }
  .det-me-stats span { flex: 1; }
  .case-card { gap: 12px; padding: 10px; }
  .case-card .ca-pic { width: 84px; height: 84px; }
  .case-photos img { height: 180px; }
  .case-file, .case-elements, .case-chat { padding: 16px 14px; }
  .chat { max-height: 62vh; padding: 10px 8px; }
  .msg { max-width: 94%; }
}
@media (max-width: 380px) {
  .case-actions, .det-kinds { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .det-insigne, .det-level.l5 img, .det-me.l5 .det-me-img { animation: none; } }

/* ===== lots « Bientôt disponible » : visibles, participations pas encore ouvertes ===== */
.lot-badge.upcoming { color: #04122a; background: linear-gradient(180deg, #eaf8ff, #8fd3ff); box-shadow: 0 0 14px rgba(47, 185, 255, .45); }
.ended-box.upcoming { border-color: rgba(47, 185, 255, .65); background: rgba(6, 40, 82, .6); }
.ended-box.upcoming .ic { color: var(--cyan); }
.ended-box.upcoming + .lbl { margin-top: 14px; }
.lot.upcoming .pic img, .biglot.upcoming .pic img { filter: saturate(.8) brightness(.92); }
.hero-card.upcoming .live { color: var(--cyan); }
.hero-card.upcoming .live i { background: var(--cyan); animation: none; }

/* ===== v12 : plongée, stories, notifications, direct, mystères, parrainage, série, succès, mur, carte ===== */
.btn-xs { padding: 7px 12px; font-size: .86rem; gap: 6px; }
.btn-xs .ic { width: 15px; height: 15px; }
.linkish { color: var(--muted); font-family: var(--f-cond); text-decoration: underline; text-underline-offset: 3px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: live 1.6s infinite; flex: none; }

/* prochaine plongée */
.dive { display: block; margin: 26px 0 0; }
.dive.panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 24px 28px; border-color: rgba(255, 197, 49, .55);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 190, 40, .14), transparent 55%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.dive-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--f-cond); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dive-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: #1c1302; background: linear-gradient(180deg, #ffe07a, #f29a0c); box-shadow: 0 0 18px rgba(255, 180, 30, .5); }
.dive-ic .ic { width: 24px; height: 24px; }
.dive-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 12px 0 6px; }
.dive-when span { font-family: var(--f-cond); font-size: 1.25rem; color: #dbe7f8; }
.dive-when span:first-child { text-transform: capitalize; }
.dive-when b { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(100deg, #f29a0c 0%, #ffe07a 30%, #fff 45%, #ffe07a 60%, #f29a0c 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.dive.now .dive-when b { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.dive-place { display: flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-size: 1.15rem; color: #fff; }
.dive-place .ic { width: 20px; height: 20px; color: var(--gold); flex: none; }
.dive-note { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.dive-side { display: grid; gap: 14px; justify-items: center; }
.dive-cd { min-width: 300px; }
.dive-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.dive-none { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; text-align: left; border-color: rgba(47, 185, 255, .55); cursor: pointer; transition: box-shadow .2s, transform .15s; }
.dive-none:hover { box-shadow: 0 0 26px rgba(47, 185, 255, .35); transform: translateY(-1px); }
.dive-none .dive-ic { color: #fff; background: linear-gradient(180deg, #2fb9ff, #1259c9); box-shadow: 0 0 18px rgba(47, 185, 255, .5); }
.dive-txt { display: grid; gap: 2px; flex: 1; min-width: 0; font-family: var(--f-cond); }
.dive-txt b { font-size: clamp(1.15rem, 3.4vw, 1.5rem); color: #fff; }
.dive-txt span { font-size: clamp(1.05rem, 3vw, 1.3rem); color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.dive-bell { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); animation: float 3s ease-in-out infinite; }
.dive-bell .ic { width: 22px; height: 22px; }

/* stories */
.stories { margin: 22px 0 0; }
.st-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.st-row::-webkit-scrollbar { display: none; }
.story { display: grid; justify-items: center; gap: 6px; width: 84px; flex: none; scroll-snap-align: start; color: #dbe7f8; }
.st-ring { display: grid; place-items: center; width: 76px; height: 76px; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #ffe07a, #f29a0c, #e0252c, #2fb9ff, #ffe07a); }
.st-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); background: #04122a; }
.story.seen .st-ring { background: rgba(160, 190, 220, .35); }
.st-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; overflow: hidden; text-align: center; font-family: var(--f-cond); font-size: .8rem; line-height: 1.15; }
.modal .panel.story-panel { width: min(430px, 100%); padding: 12px; background: #000; border-color: rgba(255, 255, 255, .15); }
.st-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.st-bars i.done, .st-bars i.on { background: #fff; }
.st-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-right: 40px; font-family: var(--f-cond); }
.st-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.st-top .close { top: 18px; }
.st-frame { position: relative; aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0b0f17; }
.st-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-link { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.st-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.st-link span { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-family: var(--f-cond); font-weight: 700; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.st-foot .btn { padding: 8px 12px; }

/* fenêtre « Être prévenu » */
.modal .panel.notify { text-align: center; }
.modal .panel.notify h2 { justify-content: center; }
.modal .panel.notify .hint { margin-bottom: 14px; }
.notify-list, .ios-steps { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; text-align: left; }
.notify-list li, .ios-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(4, 16, 38, .7); border: 1px solid var(--line-soft); font-family: var(--f-cond); line-height: 1.3; }
.notify-list .ic, .ios-steps .ic { width: 22px; height: 22px; flex: none; color: var(--gold); }
.notify-list .coin { width: 24px; height: 24px; }
.notify-social { justify-content: center; margin-top: 8px; }

/* tirage en direct */
.btn-live { width: 100%; margin-bottom: 10px; color: #fff; background: linear-gradient(180deg, #ff5b5b, #c3171d); box-shadow: 0 0 22px rgba(255, 60, 60, .5); animation: live-glow 1.8s ease-in-out infinite; }
.btn-live .live-dot { background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes live-glow { 50% { box-shadow: 0 0 34px rgba(255, 60, 60, .8); } }
.modal .panel.live-panel { text-align: center; width: min(440px, 100%); }
.live-panel .live { justify-content: center; margin-bottom: 8px; }
.live-panel h2 { justify-content: center; }
.live-pic { width: 140px; height: 140px; object-fit: cover; margin: 10px auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 0 26px rgba(47, 185, 255, .3); }
.live-cd { font-family: var(--f-cond); font-weight: 700; font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255, 190, 40, .5); }
.live-viewers { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 6px; padding: 6px 14px; border-radius: 999px; background: rgba(4, 16, 38, .8); border: 1px solid var(--line-soft); font-family: var(--f-cond); }
.live-viewers .ic { width: 18px; height: 18px; color: var(--cyan); }

/* lots mystères */
.lot-badge.mystery { color: #fff; background: linear-gradient(180deg, #a978ff, #6a3fd0); box-shadow: 0 0 14px rgba(150, 100, 255, .5); }
.lot.mystery .pic, .biglot .pic { position: relative; }
.lot.mystery .pic img { filter: saturate(.8) brightness(.75); }
.mys-q { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: clamp(4rem, 14vw, 6.5rem); color: #fff;
  text-shadow: 0 0 30px rgba(170, 120, 255, .9), 0 4px 0 rgba(0, 0, 0, .4); pointer-events: none; animation: float 3.5s ease-in-out infinite; }
.guess { display: grid; gap: 6px; margin: 10px 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(170, 120, 255, .7); background: rgba(80, 40, 160, .18); font-family: var(--f-cond); text-align: left; }
.guess > b { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: #e3d4ff; }
.guess > b .ic, .guess > .ic { width: 20px; height: 20px; color: #c9a8ff; flex: none; }
div.guess { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.guess.ok { border-style: solid; border-color: rgba(53, 208, 127, .6); background: rgba(20, 90, 50, .3); }
.guess.ok .ic { color: var(--green); }
.guess small { color: #cbbfe6; }
.guess-row { display: flex; gap: 8px; }
.guess-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1.5px solid rgba(170, 120, 255, .6); background: rgba(2, 10, 26, .85); color: #fff; font: inherit; font-size: 1rem; }
.guess-row input:focus { outline: 0; border-color: var(--gold); }
.guess-mine { display: flex; align-items: center; gap: 6px; }
.guess-mine .ic { width: 15px; height: 15px; color: var(--green); }
.ref-note { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 197, 49, .5); background: rgba(80, 55, 0, .3); font-family: var(--f-cond); line-height: 1.35; }
.ref-note .ic { width: 22px; height: 22px; flex: none; color: var(--gold); }

/* espace membre : série, parrainage, succès, alertes, gains */
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.streak { border-color: rgba(255, 140, 40, .55); }
.streak .panel-head .ic { color: #ff8a3d; }
.streak-main { display: flex; align-items: baseline; gap: 10px; }
.streak-main b { font-family: var(--f-logo); font-style: italic; font-weight: 800; font-size: 3.2rem; line-height: 1; color: #ffb347; text-shadow: 0 0 20px rgba(255, 140, 40, .5); }
.streak-main span { font-family: var(--f-cond); font-size: 1.15rem; }
.streak-dots { display: flex; gap: 6px; margin: 14px 0 10px; }
.streak-dots i { display: grid; place-items: center; flex: 1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.streak-dots i.on { background: linear-gradient(90deg, #ff8a3d, #ffc531); box-shadow: 0 0 10px rgba(255, 150, 40, .5); }
.streak-dots i:last-child { flex: 0 0 34px; height: 34px; margin-top: -11px; border-radius: 50%; border: 1.5px solid rgba(255, 197, 49, .6); background: rgba(80, 55, 0, .4); }
.streak-dots i:last-child.on { background: linear-gradient(180deg, #ffe07a, #f29a0c); }
.streak-dots .ic { width: 18px; height: 18px; color: var(--gold); }
.streak-dots i:last-child.on .ic { color: #1c1302; }
.streak p { line-height: 1.45; }
.streak small, .parrain small { display: block; margin-top: 6px; color: var(--muted); font-family: var(--f-cond); }
.parrain { border-color: rgba(255, 197, 49, .55); }
.parrain > p { line-height: 1.45; }
.ref-ticket { display: grid; justify-items: center; gap: 2px; margin: 14px 0 12px; padding: 12px; border-radius: 14px; border: 2px dashed rgba(255, 197, 49, .7);
  background: linear-gradient(180deg, rgba(255, 210, 90, .16), rgba(120, 80, 0, .2)); font-family: var(--f-cond); }
.ref-ticket small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.ref-ticket b { font-size: 1.7rem; letter-spacing: .08em; color: var(--gold); }
.ref-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-acts .btn { white-space: normal; text-align: center; }
.ref-stats { margin-top: 12px; font-family: var(--f-cond); color: #dbe7f8; }
.ref-stats b { color: var(--gold); }
.ref-list { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--f-cond); }
.ref-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(4, 16, 38, .6); }
.ref-list small { margin: 0; text-align: right; }
.ref-sponsor { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--f-cond); color: var(--muted); }
.ref-sponsor .ic { width: 16px; height: 16px; color: #ff6b8a; }
.succes { margin-bottom: 18px; }
.ach-count { margin-left: auto; font-family: var(--f-cond); font-weight: 700; color: var(--gold); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ach { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; text-align: center; background: rgba(4, 16, 38, .6); border: 1px solid rgba(70, 160, 255, .12); opacity: .55; filter: grayscale(.9); }
.ach.on { opacity: 1; filter: none; border-color: rgba(255, 197, 49, .5); background: radial-gradient(circle at 50% 0%, rgba(255, 190, 40, .16), transparent 70%), rgba(4, 16, 38, .7); }
.ach-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.ach.on .ach-ic { background: linear-gradient(180deg, #ffe07a, #f29a0c); box-shadow: 0 0 16px rgba(255, 180, 30, .45); color: #1c1302; }
.ach-ic .ic { width: 24px; height: 24px; }
.ach-ic .coin { width: 28px; height: 28px; }
.ach b { font-family: var(--f-cond); font-size: .98rem; line-height: 1.2; }
.ach small { font-family: var(--f-cond); font-size: .78rem; color: var(--muted); line-height: 1.25; }
.push-box { margin-bottom: 12px; }
.push-box:empty { display: none; }
.push-off { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 197, 49, .45); background: rgba(80, 55, 0, .25); }
.push-off p { flex: 1; min-width: 0; font-family: var(--f-cond); }
.push-off b { display: block; }
.push-off small { color: var(--muted); }
.push-on { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(4, 16, 38, .6); border: 1px solid var(--line-soft); }
.push-msg { display: flex; align-items: flex-start; gap: 8px; font-family: var(--f-cond); line-height: 1.35; color: #dbe7f8; }
.push-msg .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.push-msg.ok .ic { color: var(--green); }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-family: var(--f-cond); cursor: pointer; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.switch-row small { display: block; color: var(--muted); font-size: .82rem; }
.push-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.win-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.win-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: .88rem; color: var(--muted); }
.win-note .ic { width: 15px; height: 15px; }
.win-note.ok { color: var(--green); }
.hist small a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* mur des gagnants : photos de réception */
.wall-posts { columns: 3 260px; column-gap: 16px; margin-bottom: 10px; }
.wpost { break-inside: avoid; margin: 0 0 16px; padding: 10px; }
.wpost img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 12px; }
.wpost figcaption { padding: 10px 4px 2px; }
.wpost p { font-style: italic; line-height: 1.45; margin-bottom: 10px; }
.wpost .who { display: flex; align-items: center; gap: 10px; font-family: var(--f-cond); }
.wpost .who small { display: block; color: var(--muted); }

/* affaires résolues */
.det-solved { display: block; }
.solved { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.solved-case { display: grid; gap: 10px; padding: 14px; border-color: rgba(53, 208, 127, .45); }
.solved-case img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.solved-case h3 { font-family: var(--f-cond); font-size: 1.25rem; margin: 4px 0 6px; }
.solved-case p { line-height: 1.45; color: #dbe7f8; }
.solved-case .ca-ref { color: var(--green); }

/* carte des trouvailles */
.map-box { padding: 8px; overflow: hidden; }
.map { height: min(70vh, 620px); min-height: 380px; border-radius: 14px; background: #0b1424; }
.map-empty { padding: 12px 6px 4px; text-align: center; color: var(--muted); font-family: var(--f-cond); }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-family: var(--f-cond); color: #dbe7f8; }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .map-pin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.map-pin.open { --pin: #ffc531; } .map-pin.soon { --pin: #8fd3ff; } .map-pin.ended { --pin: #9aa6b8; } .map-pin.solved { --pin: #35d07f; } .map-pin.dive { --pin: #ff6b4a; }
.map-legend .map-pin { background: var(--pin); box-shadow: 0 0 8px var(--pin); }
.leaflet-marker-icon.map-pin { background: none; border: 0; }
.leaflet-marker-icon.map-pin span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin); border: 2px solid #04122a; box-shadow: 0 0 14px var(--pin); }
.leaflet-marker-icon.map-pin .ic { width: 18px; height: 18px; transform: rotate(45deg); color: #04122a; }
.leaflet-container { font: inherit; background: #0b1424; }
.osm-dark { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.55); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #0a2147; color: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-container a.leaflet-popup-close-button { color: #cfe6ff; }
.leaflet-control-attribution { background: rgba(2, 9, 22, .8) !important; color: #9fb6d6; }
.leaflet-control-attribution a { color: #cfe6ff; }
.leaflet-bar a { background: #0a2147; color: #fff; border-color: var(--line-soft); }
.map-pop { display: grid; gap: 4px; min-width: 160px; font-family: var(--f-cond); }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.map-pop b { font-size: 1.05rem; }
.map-pop small { color: #9fb6d6; }
.map-pop a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .dive.panel { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .dive-side { justify-items: stretch; }
  .dive-cd { min-width: 0; }
}
@media (max-width: 760px) {
  .dive { margin-top: 18px; }
  .dive.panel { gap: 14px; padding: 18px 16px; }
  .dive-when { margin: 10px 0 4px; }
  .dive-when span { font-size: 1.1rem; }
  .dive-none { padding: 16px; gap: 12px; }
  .dive-acts .btn { width: 100%; }
  .stories { margin-top: 16px; }
  .story { width: 74px; }
  .st-ring { width: 66px; height: 66px; }
  .modal .panel.story-panel { width: 100%; max-height: 100dvh; border-radius: 18px 18px 0 0; }
  .st-frame { max-height: 62dvh; }
  .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ach { padding: 12px 8px; }
  .wall-posts { columns: 1; }
  .map { height: 62vh; min-height: 320px; }
  .push-off { flex-wrap: wrap; }
  .push-off .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dive-when b, .dive-bell, .mys-q, .btn-live { animation: none; } }

/* ===== v13 : actus de l'accueil, messages aux abonnés, lieu de plongée tenu secret ===== */
.dive-place.secret { align-items: flex-start; }
.dive-place.secret .ic { color: #ff8a7a; margin-top: 2px; }
.dive-place.secret span { display: grid; }
.dive-place.secret small { font-size: .88rem; color: var(--muted); }
.news-sec { margin: 26px 0 0; }
.news-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-head .ic { width: 26px; height: 26px; color: var(--gold); }
.news-head h2 { font-family: var(--f-cond); font-size: 1.45rem; }
.news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(47, 185, 255, .28); }
.news-card.pinned { border-color: rgba(255, 197, 49, .6); }
.news-card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.news-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.news-body small { font-family: var(--f-cond); color: var(--muted); }
.news-body h3 { font-family: var(--f-cond); font-size: 1.2rem; line-height: 1.2; }
.news-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #dbe7f8; line-height: 1.45; }
.news-pin { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 2px 10px; border-radius: 999px; font-family: var(--f-cond); font-weight: 700; font-size: .8rem; color: #1c1302; background: linear-gradient(180deg, #ffd75a, #f29a0c); }
.news-pin .ic { width: 13px; height: 13px; }
.modal .panel.news-panel { width: min(560px, 100%); }
.news-photo { display: block; width: 100%; max-height: 320px; object-fit: cover; margin-bottom: 14px; border-radius: 14px; }
.news-date { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-cond); color: var(--muted); }
.news-date .ic { width: 14px; height: 14px; color: var(--gold); }
.news-panel h2 { margin: 4px 0 10px; }
.news-text { margin-bottom: 16px; white-space: pre-line; line-height: 1.55; color: #e3ecf9; }
.msg-banner { position: relative; z-index: 5; border-bottom: 1px solid rgba(255, 197, 49, .5); background: linear-gradient(90deg, rgba(80, 55, 0, .92), rgba(10, 33, 71, .95)); }
.msg-banner .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.mb-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #1c1302; background: linear-gradient(180deg, #ffe07a, #f29a0c); }
.mb-ic .ic { width: 20px; height: 20px; }
.mb-txt { flex: 1; min-width: 0; font-family: var(--f-cond); }
.mb-txt b { color: var(--gold); }
.mb-txt p { margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.4; color: #fff; }
.main > .msg-banner { margin: -10px -10px 16px; border-radius: 14px; }
@media (max-width: 980px) { .news-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .news-sec { margin-top: 18px; }
  .news-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .news-row::-webkit-scrollbar { display: none; }
  .news-card { flex: 0 0 82%; scroll-snap-align: start; }
  .news-card img { height: 150px; }
  .msg-banner .wrap { align-items: flex-start; gap: 10px; padding: 10px 0; }
  .mb-ic { width: 34px; height: 34px; }
}

/* ===================== v14 : fiche du membre et photo de profil ===================== */
.avatar.pic { overflow: hidden; background: #0a2147; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.avatar-btn { position: relative; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.avatar-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.avatar-btn .cam { position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #071a3a; background: var(--gold); border: 2px solid #04122a; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.avatar-btn .cam .ic { width: 18px; height: 18px; }
.pf-card { margin-bottom: 18px; }
.pf-card.todo { border-color: rgba(255, 197, 49, .65); box-shadow: 0 0 24px rgba(255, 197, 49, .15); }
.pf-card .panel-head { margin-bottom: 10px; }
.pf-card button.more { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-family: var(--f-cond); }
.pf-lines { color: #dbe7f8; line-height: 1.6; }
.pf-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.pf-note .ic { width: 16px; height: 16px; flex: none; color: var(--gold); }
.pf-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-alert > .ic { width: 30px; height: 30px; flex: none; color: var(--gold); }
.pf-alert > div { flex: 1 1 240px; }
.pf-alert b { display: block; color: #fff; font-family: var(--f-cond); font-size: 1.08rem; }
.pf-alert small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.4; }
.pf-photo { display: flex; align-items: center; gap: 16px; margin: 4px 0 16px; }
.pf-photo .avatar { width: 76px; height: 76px; font-size: 1.9rem; }
.pf-photo > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-photo small { flex: 1 1 100%; color: var(--muted); font-size: .8rem; }
.pf-pick { position: relative; cursor: pointer; }
.pf-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-pick:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pf-grid.pf-city { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
@media (max-width: 420px) {
  .pf-grid { grid-template-columns: 1fr; }
  .avatar-btn .cam { right: 0; bottom: 0; width: 28px; height: 28px; }
  .avatar-btn .cam .ic { width: 14px; height: 14px; }
}
