/* JÉRÈME VISION™ — site public. Noir, anthracite, typographie condensée, un seul accent. */
:root {
  --bg: #0a0a0b;
  --bg-2: #111214;
  --panel: #16171a;
  --panel-2: #1d1f23;
  --line: #2a2c31;
  --line-2: #3a3d44;
  --text: #f3f1ec;
  --muted: #9b9ca3;
  --dim: #6c6e75;
  --accent: #ff4d2e;
  --accent-2: #ff7a3d;
  --live: #2bd576;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.5; min-height: 100dvh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(10,10,11,.85), rgba(10,10,11,0));
  transition: background .3s;
}
.topbar.solid { background: rgba(10,10,11,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display);
  font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: 20px; text-transform: uppercase; }
.brand-mark { width: 26px; height: 16px; background: var(--accent); transform: skewX(-24deg); border-radius: 2px;
  box-shadow: 8px 0 0 -3px var(--text); }
.topnav { display: flex; gap: 6px; }
.topnav a { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.topnav a.on, .topnav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ---------------------------------------------------------------- boutons */
.btn {
  --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--h);
  padding: 0 28px; border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: .06em;
  text-transform: uppercase; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #140400; box-shadow: 0 10px 40px -12px rgba(255,77,46,.7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn .arrow { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 80% at 70% 20%, #2a1a14 0%, var(--bg) 60%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s var(--ease); }
.hero-bg img.in { opacity: .55; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,.2) 0%, rgba(10,10,11,.1) 35%, rgba(10,10,11,.85) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(10,10,11,.75) 0%, rgba(10,10,11,0) 70%); }
.hero-inner { padding: 120px var(--gutter) clamp(40px, 8vh, 90px); max-width: 1400px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(43,213,118,.6);
  animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,213,118,.55); } 70% { box-shadow: 0 0 0 12px rgba(43,213,118,0); } 100% { box-shadow: 0 0 0 0 rgba(43,213,118,0); } }
.hero-brand { margin: 18px 0 0; font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.hero-title { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  line-height: .86; letter-spacing: -.01em; font-size: clamp(56px, 13vw, 184px); text-wrap: balance;
  overflow-wrap: anywhere; }
.hero-title .reveal { display: inline-block; opacity: 0; transform: translateY(40%) skewX(-8deg); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.tagline { margin: 22px 0 0; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; color: var(--text); font-weight: 500;
  white-space: pre-line; max-width: 22ch; }
.tagline em { font-style: normal; color: var(--muted); }
.hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 28px; font-family: var(--display); letter-spacing: .3em;
  font-size: 12px; color: var(--dim); writing-mode: vertical-rl; text-transform: uppercase; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(56px, 10vw, 120px) var(--gutter); max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(36px, 6vw, 72px); line-height: .9; }
.h2 small { display: block; font-size: 14px; letter-spacing: .25em; color: var(--accent); font-style: normal; font-weight: 700; margin-bottom: 10px; }
.lead { color: var(--muted); max-width: 60ch; margin: 0; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.spec-item { padding: 26px 22px 28px 0; border-bottom: 1px solid var(--line); }
.spec-item:not(:last-child) { border-right: 0; }
.spec-k { font-family: var(--display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.spec-v { margin-top: 8px; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1; text-transform: uppercase; }
.spec-v .unit { font-size: .45em; color: var(--muted); margin-left: 4px; letter-spacing: .06em; }
.spec-d { margin-top: 8px; color: var(--muted); font-size: 15px; }
.meter { margin-top: 12px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 2.4s var(--ease); }

/* ---------------------------------------------------------------- galerie */
.grid { columns: 2 160px; column-gap: 8px; }
@media (min-width: 700px) { .grid { columns: 3 220px; column-gap: 10px; } }
@media (min-width: 1100px) { .grid { columns: 4 240px; } }
.tile { position: relative; break-inside: avoid; margin: 0 0 8px; border-radius: 6px; overflow: hidden; background: var(--panel);
  cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
@media (min-width: 700px) { .tile { margin-bottom: 10px; } }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.04); }
.tile.new { animation: drop .9s var(--ease); }
.tile.new::after { content: attr(data-badge); position: absolute; top: 10px; left: 10px; padding: 5px 10px 4px;
  background: var(--accent); color: #140400; font-family: var(--display); font-weight: 800; font-style: italic;
  letter-spacing: .12em; font-size: 13px; border-radius: 2px; animation: badge 6s forwards; }
.tile.live-match::after { background: var(--live); color: #03130a; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.96); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes badge { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 26vw); gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .tile { scroll-snap-align: start; aspect-ratio: 4/3; margin: 0; }
.strip .tile img { height: 100%; object-fit: cover; }

.page { padding: 96px var(--gutter) 60px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 10px 0 26px; }
.page-title { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 96px); line-height: .88; }
.page-title .sub { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .24em; color: var(--muted);
  font-style: normal; font-weight: 700; margin-bottom: 12px; }
.counter { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 22px; color: var(--muted); }
.counter b { color: var(--text); font-size: 34px; }

.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .big { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; color: var(--text); }
.more { display: flex; justify-content: center; margin-top: 20px; }

/* ---------------------------------------------------------------- recherche */
.finder { max-width: 720px; margin: 0 auto; }
.drop { position: relative; margin-top: 26px; border: 1px solid var(--line-2); border-radius: 18px; padding: 34px 22px;
  background: radial-gradient(120% 120% at 50% 0%, #1f1612 0%, var(--panel) 60%); text-align: center; overflow: hidden; }
.drop .reticle { width: 132px; height: 132px; margin: 0 auto 18px; position: relative; }
.reticle::before, .reticle::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent);
  clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 0, 70% 0, 100% 0, 100% 30%, 96% 30%, 96% 4%, 70% 4%,
    70% 0, 100% 70%, 100% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 30% 100%, 0 100%, 0 70%, 4% 70%, 4% 96%, 30% 96%); }
.reticle::after { inset: 34%; border-radius: 50%; border-width: 2px; clip-path: none; opacity: .6; }
.reticle.scan::before { animation: scan 1.4s var(--ease) infinite alternate; }
@keyframes scan { from { transform: scale(1); } to { transform: scale(.86) rotate(4deg); } }
.drop h2 { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 32px; }
.drop p { margin: 8px auto 22px; color: var(--muted); max-width: 44ch; }
.drop .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; margin: 0 auto 20px; background: #000; }

.status { margin: 30px 0 10px; display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .06em; font-size: clamp(22px, 4vw, 30px); color: var(--dim); transition: color .4s; }
.step .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; flex: none; position: relative; }
.step.on { color: var(--text); }
.step.on .ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.done { color: var(--muted); }
.step.done .ic { background: var(--live); border-color: var(--live); animation: none; }
.step.win { color: var(--accent); }
.step.win .ic { background: var(--accent); border-color: var(--accent); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { color: var(--muted); font-size: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 0 auto 20px; max-width: 520px;
  padding: 14px; background: rgba(255,255,255,.04); border-radius: 10px; font-size: 14px; color: var(--muted); }
.consent input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin-top: 2px; }

/* ---------------------------------------------------------------- « peut-être aussi » */
.maybe { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.maybe .grid { opacity: .92; }
.small-h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 6px; }

/* ---------------------------------------------------------------- humour : discret, sous le premium */
.fineprint { font-size: 13px; color: var(--dim); letter-spacing: .02em; }
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; color: var(--muted);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 14px; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 48s linear infinite; }
.ticker b { color: var(--accent); margin: 0 18px; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- toasts / lightbox */
.toast-wrap { position: fixed; z-index: 50; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; box-shadow: 0 20px 50px -20px #000; animation: toast .5s var(--ease);
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; }
.toast.ok { border-left-color: var(--live); }
.toast small { display: block; font-family: var(--body); font-style: normal; text-transform: none; letter-spacing: 0;
  font-weight: 400; color: var(--muted); font-size: 14px; }
@keyframes toast { from { opacity: 0; transform: translateY(16px); } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(5,5,6,.96); color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 86dvh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0;
  background: rgba(255,255,255,.06); font-size: 40px; cursor: pointer; border-radius: 6px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-dl { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  --h: 46px; font-size: 16px; }

footer.foot { padding: 40px var(--gutter) 60px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
footer.foot a { color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 28px; margin: 36px 0 8px; }
.prose p, .prose li { color: #cfcdc8; }

@media (max-width: 560px) {
  .btn { width: 100%; --h: 60px; }
  .topnav a:not(.on) + a:not(.on) { display: none; }
  .topnav a { padding: 8px 9px; font-size: 13px; }
  .brand { font-size: 17px; }
  .spec-item { padding-right: 0; }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
