:root {
  --bg: #000;
  --text: #f3f3f3;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.26);
  --line-focus: rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.page-shell {
  min-height: 100svh;
  background: #000;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.eye-wrap {
  width: 100%;
  height: min(52vw, 560px);
  min-height: 320px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.eye-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  user-select: none;
  pointer-events: none;
}

.hero-content {
  width: min(100% - 40px, 920px);
  text-align: center;
  margin-top: -48px;
  padding: 0 0 72px;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.3vw, 4.15rem);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
}

.tagline {
  margin: 22px 0 40px;
  color: #c8c8c8;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(.98rem, 1.55vw, 1.28rem);
  letter-spacing: .02em;
}

.signup {
  width: min(100%, 810px);
  min-height: 80px;
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 5, 5, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.email-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
}

.mail-icon {
  width: 24px;
  height: 24px;
  color: #d5d5d5;
  flex: 0 0 auto;
}

.mail-icon svg { width: 100%; height: 100%; display: block; }

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

input::placeholder { color: #5f5f5f; opacity: 1; }

.signup:focus-within { border-color: var(--line-focus); }

button {
  min-width: 306px;
  border: 0;
  border-radius: 15px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #f3f3f3;
  color: #111;
  font-weight: 900;
  font-size: .92rem;
  cursor: pointer;
  transition: background .16s ease;
}

button:hover { transform: none; background: #fff; }
button:active { transform: none; }

.arrow {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 500;
}

.form-note {
  min-height: 22px;
  margin: 14px auto 0;
  font-family: "Courier New", Courier, monospace;
  font-size: .8rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .eye-wrap {
    height: 59vw;
    min-height: 280px;
  }

  .eye-image {
    width: 138%;
    max-width: none;
    object-position: 49% 18%;
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    margin-top: -18px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .tagline {
    max-width: 330px;
    margin: 17px auto 28px;
    line-height: 1.55;
  }

  .signup {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 8px;
    border-radius: 18px;
  }

  .email-field {
    min-height: 58px;
    padding: 0 12px;
  }

  button {
    min-width: 0;
    min-height: 58px;
    width: 100%;
    border-radius: 13px;
  }
}

@media (max-width: 420px) {
  .eye-wrap {
    height: 71vw;
    min-height: 255px;
  }

  .eye-image {
    width: 168%;
    object-position: 48.5% 16%;
  }

  .hero-content { margin-top: -2px; }
}


/* --- Connexion Brevo --- */
.bot-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  left: -9999px !important;
}

#brevo-submit-frame,
.submit-frame {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
}

button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-note.is-success,
.form-note.is-error {
  color: #d8d8d8;
}


/* Sécurité de mise en page : le champ anti-bot Brevo ne doit jamais être visible */
input[name="email_address_check"] {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* Le champ visible garde exactement la mise en page de la V2 */
#email {
  display: block;
  width: 100%;
}


/* Animation discrète du message de confirmation */
.form-note.is-success {
  animation: jbpSuccessIn .55s ease-out both;
}

@keyframes jbpSuccessIn {
  from {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-note.is-success {
    animation: none;
  }
}


/* Clignement : les 3 images ont exactement le même format et le même cadre */
.eye-image {
  width: 100%;
  height: 100%;
}



/* =============================
   Bloc hasard / archives JBP
   ============================= */
.random-news {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 30px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.random-news-intro {
  position: sticky;
  top: 32px;
}


.random-news h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.random-copy {
  margin: 0 0 14px;
  max-width: 40ch;
  color: #e9e9e9;
  line-height: 1.55;
  font-size: 1.02rem;
}

.random-copy-muted { color: #bbbbbb; }

.random-news-machine {
  display: grid;
  gap: 20px;
}

.slot-frame {
  position: relative;
  height: 430px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(20,20,20,.98), rgba(8,8,8,1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.slot-frame::before,
.slot-frame::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 3;
  pointer-events: none;
}

.slot-frame::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0));
}

.slot-frame::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), rgba(0,0,0,0));
}



.slot-reel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  padding: 18px 0;
}

.slot-item {
  width: calc(100% - 36px);
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
}

.slot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-item::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.68);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .72rem;
  letter-spacing: .04em;
}

.random-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.random-button {
  min-width: 0;
  padding: 16px 24px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  border: 0;
  font-weight: 900;
  letter-spacing: .01em;
}

.random-button:disabled { opacity: .75; }

.random-disclaimer {
  margin: 0;
  max-width: 42ch;
  font-size: .86rem;
  color: #9f9f9f;
  line-height: 1.45;
}

.random-result {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,10,.88);
  min-height: 220px;
}

.result-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
}

.result-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-date {
  margin: 0 0 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a9a9a;
}

.random-result h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
}

.result-text {
  margin: 0 0 16px;
  color: #c9c9c9;
  line-height: 1.55;
}

.result-link {
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: 3px;
}

.site-footer {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 0 0 64px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
}

.footer-link-button {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #6f6f6f;
  cursor: default;
  border-radius: 0;
}

@media (max-width: 920px) {
  .random-news {
    width: min(100% - 28px, 760px);
    grid-template-columns: 1fr;
    padding: 10px 0 70px;
  }

  .random-news-intro { position: static; }

  .random-result { grid-template-columns: 1fr; }

  .result-image-wrap { max-width: 420px; }

  .site-footer {
    width: min(100% - 28px, 760px);
    padding-bottom: 48px;
  }
}

@media (max-width: 540px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-left {
    width: 100%;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
  }

  .footer-link {
    font-size: .78rem;
  }

  .footer-signature {
    font-size: .62rem;
    letter-spacing: .09em;
    white-space: nowrap;
  }

  .footer-studio {
    width: 100%;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.10);
    opacity: .86;
  }

  .footer-studio-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .footer-studio-copy {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
  }

  .footer-studio-copy strong {
    font-size: .7rem;
  }

  .footer-studio-copy small {
    font-size: .49rem;
  }

  .slot-frame { height: 320px; border-radius: 24px; }

  .slot-item { width: calc(100% - 24px); margin-bottom: 12px; border-radius: 16px; }

  .random-result { padding: 14px; border-radius: 20px; }
}


/* Le résultat n'apparaît qu'après le premier tirage */
.random-result[hidden] {
  display: none !important;
}

.random-result.is-visible {
  animation: jbpResultIn .45s ease-out both;
}

@keyframes jbpResultIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-signature {
  color: #6f6f6f;
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-studio {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-studio:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-studio-logo {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.footer-studio-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: nowrap;
}

.footer-studio-copy strong {
  font-size: .82rem;
  letter-spacing: .13em;
  font-weight: 800;
}

.footer-studio-copy small {
  color: #6f6f6f;
  font-family: "Courier New", Courier, monospace;
  font-size: .58rem;
  letter-spacing: .12em;
}


/* =============================
   PRIVATE ARCHIVE — homepage
   ============================= */
.private-archive-home {
  width: min(100% - 84px, 960px);
  margin: 188px auto 122px;
}

.private-archive-card {
  position: relative;
  display: grid;
  min-height: 340px;
  overflow: hidden;
  border: none;
  border-radius: 28px;
  background: #050505;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.private-archive-bg {
  position: absolute;
  inset: -2%;
  z-index: -3;
  width: 104%;
  height: 104%;
  object-fit: cover;
  display: block;
  filter: brightness(.62) saturate(.78);
  transform: scale(1.015);
  transition: filter .45s ease, transform .55s ease;
}

/* Keeps the center readable and reinforces the "hidden archive" feeling. */
.private-archive-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.30) 46%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.16) 24%, rgba(0,0,0,.16) 76%, rgba(0,0,0,.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}

.private-archive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 120px rgba(0,0,0,.26);
  pointer-events: none;
}

.private-archive-content {
  align-self: center;
  justify-self: center;
  width: min(100% - 44px, 660px);
  padding: 48px 0;
  text-align: center;
}

.private-lock {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  display: block;
  color: rgba(255,255,255,.9);
  transition: transform .35s ease;
}

.private-lock svg {
  display: block;
  width: 100%;
  height: 100%;
}

.private-archive-content h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5.3vw, 4.7rem);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0,0,0,.55);
}

.private-archive-content p {
  margin: 18px auto 24px;
  color: rgba(255,255,255,.78);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(.82rem, 1.06vw, .96rem);
  line-height: 1.55;
  letter-spacing: .01em;
}

.private-archive-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.38);
  color: rgba(255,255,255,.9);
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, gap .25s ease;
}

.private-archive-card:hover .private-archive-bg,
.private-archive-card:focus-visible .private-archive-bg {
  filter: brightness(.76) saturate(.9);
  transform: scale(1.03);
}

.private-archive-card:hover .private-lock,
.private-archive-card:focus-visible .private-lock {
  transform: translateY(-3px);
}

.private-archive-card:hover .private-archive-enter,
.private-archive-card:focus-visible .private-archive-enter {
  color: #fff;
  border-color: rgba(255,255,255,.8);
  gap: 14px;
}

.private-archive-card:focus-visible {
  outline: 1px solid rgba(255,255,255,.8);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .private-archive-home {
    width: min(100% - 34px, 760px);
    margin: 142px auto 88px;
  }

  .private-archive-card {
    min-height: 320px;
    border-radius: 24px;
  }

  .private-archive-content {
    width: min(100% - 34px, 600px);
    padding: 42px 0;
  }
}

@media (max-width: 540px) {
  .private-archive-home {
    width: min(100% - 30px, 640px);
    margin: 116px auto 78px;
  }

  .private-archive-card {
    min-height: 280px;
    border-radius: 20px;
  }

  .private-archive-content {
    padding: 34px 0;
  }

  .private-lock {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .private-archive-content h2 {
    font-size: clamp(1.95rem, 10.5vw, 3.2rem);
  }

  .private-archive-content p {
    max-width: 30ch;
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .private-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .private-archive-bg,
  .private-lock,
  .private-archive-enter {
    transition: none;
  }
}


/* =============================
   LIQUID METAL — OUVRIR AU HASARD
   Reprise de l'effet testé précédemment.
   ============================= */
.random-button.liquid-metal-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.58);
  background:
    radial-gradient(120% 190% at 16% 20%, rgba(255,255,255,.98) 0 7%, rgba(255,255,255,0) 24%),
    radial-gradient(90% 180% at 84% 78%, rgba(255,255,255,.86) 0 8%, rgba(255,255,255,0) 28%),
    linear-gradient(112deg,
      #f7f7f7 0%,
      #8c8c8c 12%,
      #ffffff 23%,
      #3b3b3b 36%,
      #d8d8d8 48%,
      #6b6b6b 59%,
      #ffffff 72%,
      #9a9a9a 84%,
      #f5f5f5 100%);
  background-size: 170% 170%, 160% 160%, 260% 260%;
  background-position: 10% 20%, 90% 80%, 0% 50%;
  color: #080808;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.06),
    0 9px 28px rgba(0,0,0,.26);
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
  animation: jbpMetalFlow 7s ease-in-out infinite;
}

.random-button.liquid-metal-button > span:not(.liquid-metal-sheen) {
  position: relative;
  z-index: 3;
}

.random-button .liquid-metal-sheen {
  position: absolute;
  z-index: 1;
  inset: -70% -35%;
  pointer-events: none;
  opacity: .82;
  background:
    radial-gradient(ellipse at 45% 50%, rgba(255,255,255,.92) 0 8%, rgba(255,255,255,.18) 20%, transparent 40%),
    radial-gradient(ellipse at 70% 35%, rgba(0,0,0,.55) 0 7%, transparent 28%),
    radial-gradient(ellipse at 25% 70%, rgba(255,255,255,.58) 0 5%, transparent 30%);
  filter: blur(6px) contrast(135%);
  transform: translate3d(-10%,0,0) rotate(-9deg);
  animation: jbpMetalSheen 5.2s cubic-bezier(.45,0,.55,1) infinite alternate;
  mix-blend-mode: overlay;
}

.random-button.liquid-metal-button::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,0) 42%,
    rgba(0,0,0,.10)
  );
  box-shadow: inset 0 0 18px rgba(255,255,255,.08);
}

.random-button.liquid-metal-button:hover {
  transform: translateY(-1px) scale(1.012);
  filter: contrast(108%) brightness(1.04);
  background:
    radial-gradient(120% 190% at 16% 20%, rgba(255,255,255,.98) 0 7%, rgba(255,255,255,0) 24%),
    radial-gradient(90% 180% at 84% 78%, rgba(255,255,255,.86) 0 8%, rgba(255,255,255,0) 28%),
    linear-gradient(112deg,
      #f7f7f7 0%,
      #8c8c8c 12%,
      #ffffff 23%,
      #3b3b3b 36%,
      #d8d8d8 48%,
      #6b6b6b 59%,
      #ffffff 72%,
      #9a9a9a 84%,
      #f5f5f5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.14),
    0 12px 34px rgba(0,0,0,.32);
}

.random-button.liquid-metal-button:active {
  transform: translateY(0) scale(.995);
}

.random-button.liquid-metal-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.random-button.liquid-metal-button:disabled {
  animation-play-state: paused;
  filter: grayscale(.7) brightness(.8);
}

@keyframes jbpMetalFlow {
  0%   { background-position: 8% 18%, 92% 82%, 0% 50%; }
  50%  { background-position: 34% 42%, 64% 54%, 100% 50%; }
  100% { background-position: 8% 18%, 92% 82%, 0% 50%; }
}

@keyframes jbpMetalSheen {
  0%   { transform: translate3d(-16%, -3%, 0) rotate(-10deg) scale(1); }
  55%  { transform: translate3d(9%, 4%, 0) rotate(5deg) scale(1.08); }
  100% { transform: translate3d(18%, -2%, 0) rotate(11deg) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .random-button.liquid-metal-button,
  .random-button .liquid-metal-sheen {
    animation: none !important;
  }
}


/* V37 — espace noir renforcé entre ARCHIVES NEWSLETTERS et PRIVATE ARCHIVE */


/* V38 — version bien respirante : espacement noir encore augmenté */


/* V39 — titre PRIVATE IMAGE ARCHIVE */
.private-archive-content h2 {
  font-size: clamp(1.95rem, 4.55vw, 4.15rem);
}

@media (max-width: 540px) {
  .private-archive-content h2 {
    font-size: clamp(1.75rem, 9.2vw, 2.9rem);
  }
}
