/* ============================================================
   Comptoir Or — écran de connexion / inscription
   Scène or 3D, carte en verre, responsive
   ============================================================ */

:root {
  --or-1: #f9e08a;
  --or-2: #e6c34a;
  --or-3: #c9a227;
  --or-4: #8a6d14;
  --encre-nuit: #0c0905;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #f4edd9;
  background: var(--encre-nuit);
}

/* ---------- Scène de fond ---------- */

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 18% 30%, rgba(201, 162, 39, 0.20), transparent 55%),
    radial-gradient(900px 600px at 85% 80%, rgba(120, 85, 20, 0.16), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(60, 40, 8, 0.35), transparent 70%),
    linear-gradient(160deg, #14100a 0%, #0c0905 55%, #060402 100%);
}

/* halo tournant très lent derrière les lingots */
.scene::before {
  content: "";
  position: absolute;
  left: max(-200px, calc(28vw - 560px));
  top: calc(50% - 460px);
  width: 920px;
  height: 920px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(230, 195, 74, 0.10) 40deg,
    transparent 90deg,
    rgba(230, 195, 74, 0.05) 200deg,
    transparent 260deg
  );
  border-radius: 50%;
  animation: rotation-halo 26s linear infinite;
  filter: blur(6px);
}

@keyframes rotation-halo {
  to { transform: rotate(360deg); }
}

/* grain léger pour la matière */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* ---------- Poussière d'or ---------- */

.poussiere {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a3 0%, #e6c34a 45%, rgba(201, 162, 39, 0) 72%);
  opacity: 0;
  animation: monte linear infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes monte {
  0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12%  { opacity: var(--op, 0.7); }
  85%  { opacity: var(--op, 0.7); }
  100% { transform: translate3d(var(--dx, 30px), -108vh, 0) scale(1.05); opacity: 0; }
}

/* ---------- Mise en page ---------- */

.cadre {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: 40px clamp(20px, 6vw, 96px);
  max-width: 1480px;
  margin: 0 auto;
}

/* ---------- Panneau de marque (gauche) ---------- */

.vitrine { text-align: left; }

.lingots-boite {
  perspective: 1000px;
  width: min(430px, 78%);
  margin-bottom: 8px;
}

.lingots {
  width: 100%;
  height: auto;
  display: block;
  transform-style: preserve-3d;
  animation: flotte 6.5s ease-in-out infinite;
  filter:
    drop-shadow(0 30px 42px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 46px rgba(230, 195, 74, 0.20));
  transition: transform 0.25s ease-out;
}

@keyframes flotte {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -13px; }
}

.marque-nom {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.06;
  margin: 18px 0 10px;
  background: linear-gradient(100deg,
    #a8842a 0%, #f6df8f 22%, #fff3c4 33%, #e6c34a 46%,
    #a8842a 62%, #f6df8f 82%, #e6c34a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: reflet-texte 5.5s linear infinite;
}

@keyframes reflet-texte {
  to { background-position: 220% center; }
}

.accroche {
  font-size: clamp(15px, 1.5vw, 18px);
  color: #cdbf9b;
  max-width: 46ch;
  line-height: 1.65;
  margin: 0 0 26px;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b8ab88;
  font-size: 14.5px;
}

.points .puce {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(230, 195, 74, 0.16), rgba(230, 195, 74, 0.05));
  border: 1px solid rgba(230, 195, 74, 0.28);
  color: var(--or-2);
}

.points .puce svg { width: 15px; height: 15px; }

/* ---------- Carte en verre (droite) ---------- */

.carte-verre {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  background: linear-gradient(165deg, rgba(38, 30, 16, 0.72), rgba(16, 12, 6, 0.78));
  border: 1px solid rgba(230, 195, 74, 0.22);
  border-radius: 22px;
  padding: 38px 38px 34px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 236, 170, 0.14);
  position: relative;
  overflow: hidden;
}

/* liseré lumineux en haut de la carte */
.carte-verre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 224, 138, 0.75), transparent);
}

.carte-verre h1 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f8f1dc;
}

.carte-verre .sous {
  margin: 0 0 26px;
  font-size: 13.5px;
  color: #a99a72;
}

.champ-or { margin-bottom: 18px; }

.champ-or label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #c9b477;
  margin-bottom: 8px;
}

.champ-or .enveloppe { position: relative; }

.champ-or .icone {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d7c4e;
  pointer-events: none;
  display: flex;
}

.champ-or .icone svg { width: 17px; height: 17px; }

.champ-or input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #f6efda;
  background: rgba(10, 8, 4, 0.55);
  border: 1px solid rgba(230, 195, 74, 0.20);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.champ-or input::placeholder { color: #6d6142; }

.champ-or input:focus {
  border-color: rgba(249, 224, 138, 0.75);
  background: rgba(14, 11, 5, 0.75);
  box-shadow: 0 0 0 4px rgba(230, 195, 74, 0.13), 0 0 24px rgba(230, 195, 74, 0.10);
}

/* bouton lingot */
.btn-or {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #241a04;
  padding: 14px 18px;
  border-radius: 13px;
  margin-top: 6px;
  background: linear-gradient(175deg, #f9e08a 0%, #e6c34a 42%, #c9a227 100%);
  box-shadow:
    0 12px 30px rgba(201, 162, 39, 0.32),
    inset 0 1px 0 rgba(255, 248, 214, 0.9),
    inset 0 -2px 0 rgba(122, 94, 15, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-or:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 38px rgba(201, 162, 39, 0.42),
    inset 0 1px 0 rgba(255, 248, 214, 0.9),
    inset 0 -2px 0 rgba(122, 94, 15, 0.55);
}

.btn-or:active { transform: translateY(1px); }

/* balayage lumineux du bouton */
.btn-or::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  animation: balaye-btn 3.6s ease-in-out infinite;
}

@keyframes balaye-btn {
  0%, 55%  { left: -70%; }
  85%, 100% { left: 145%; }
}

.lien-bas {
  text-align: center;
  font-size: 13.5px;
  color: #a99a72;
  margin: 20px 0 0;
}

.lien-bas a {
  color: var(--or-1);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 224, 138, 0.4);
  padding-bottom: 1px;
}

.lien-bas a:hover { border-bottom-color: var(--or-1); }

.alerte {
  background: rgba(190, 60, 45, 0.16);
  border: 1px solid rgba(230, 110, 90, 0.4);
  color: #ffb3a3;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.pied-page {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(180, 160, 110, 0.5);
  z-index: 2;
  pointer-events: none;
}

/* ---------- Adaptation mobile ---------- */

@media (max-width: 940px) {
  .cadre {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 18px 70px;
    align-content: start;
  }

  .vitrine {
    text-align: center;
    padding-top: 6px;
  }

  .lingots-boite {
    width: min(240px, 62%);
    margin: 0 auto 2px;
  }

  .marque-nom { margin: 10px 0 8px; }

  .accroche {
    margin: 0 auto 14px;
    font-size: 14px;
  }

  .points { display: none; }

  .carte-verre {
    justify-self: center;
    max-width: 460px;
    padding: 28px 22px 26px;
  }
}

@media (max-width: 380px) {
  .carte-verre { padding: 24px 18px 22px; }
  .lingots-boite { width: 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .lingots, .marque-nom, .btn-or::after, .scene::before, .poussiere { animation: none; }
}
