/* ═══════════════════════════════════════════════════════════════════
   AUTH v8 — Image star + bottombar enrichie + mobile robuste
   ═══════════════════════════════════════════════════════════════════ */

.authv2 {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  background: #060402;
  color: #f0e0c0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ═══════ Background : key art en pleine vue ═══════ */
.av2-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.av2-bg-image {
  position: absolute; inset: 0;
  background: url('../assets/auth-bg.png') center center / cover no-repeat;
  background-color: #0a0604;
  filter: saturate(1.1);
  animation: av2KenBurns 60s ease-in-out infinite alternate;
}
@keyframes av2KenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.04) translate(-1%, -1%); }
}
.av2-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,6,4,0.85) 0%, rgba(10,6,4,0.0) 8%, rgba(10,6,4,0.0) 50%, rgba(10,6,4,0.95) 100%);
}

/* ═══════ TOPBAR ═══════ */
.av2-topbar {
  position: relative; z-index: 10; flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 12px 24px;
  background: linear-gradient(180deg, rgba(10,6,4,0.7), rgba(10,6,4,0.0));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.av2-brand { display: inline-flex; align-items: center; gap: 12px; }
.av2-logo-emblem {
  font-size: 28px;
  background: linear-gradient(135deg, #ffd060, #c89030);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 208, 96, 0.5));
}
.av2-logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.av2-logo-main { font-size: 14px; font-weight: 900; letter-spacing: 1px; color: #ffd060; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.av2-logo-sub { font-size: 9.5px; font-weight: 700; color: #d0b890; letter-spacing: 1.5px; }

.av2-topbar-right { display: flex; gap: 8px; align-items: center; }

.av2-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px;
  border: 1px solid;
  background: rgba(10,6,4,0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.av2-pill-live { border-color: rgba(95, 212, 122, 0.55); color: #5fd47a; }
.av2-pill-info { border-color: rgba(200, 144, 48, 0.50); color: #ffd060; }
.av2-pill-dot {
  width: 7px; height: 7px;
  background: #5fd47a; border-radius: 50%;
  box-shadow: 0 0 10px #5fd47a;
  animation: av2Pulse 2s ease-in-out infinite;
}
@keyframes av2Pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ═══════ STAGE — l'image parle ═══════ */
.av2-stage {
  flex: 1;
  position: relative;
  z-index: 1;
  min-height: 200px; /* Garantit visibilité de l'art même quand bottombar est grosse */
}

/* ═══════ BOTTOMBAR — tout le contenu ═══════ */
.av2-bottombar {
  position: relative; z-index: 10; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10,6,4,0.0), rgba(10,6,4,0.85) 25%, rgba(10,6,4,0.96) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(200, 144, 48, 0.30);
  padding: 14px 28px 10px;
}

/* === Top row : features chips horizontales === */
.av2-bb-features-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 144, 48, 0.15);
}
.av2-bb-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.av2-bb-feat {
  padding: 5px 11px;
  background: rgba(200, 144, 48, 0.08);
  border: 1px solid rgba(200, 144, 48, 0.25);
  border-radius: 999px;
  color: #ffd060;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  transition: all 0.2s;
  white-space: nowrap;
}
.av2-bb-feat:hover {
  background: rgba(200, 144, 48, 0.18);
  border-color: rgba(200, 144, 48, 0.5);
  transform: translateY(-1px);
}
.av2-bb-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 5px 12px;
  background: rgba(160, 96, 255, 0.08);
  border: 1px solid rgba(160, 96, 255, 0.25);
  border-radius: 8px;
  font-size: 10.5px;
  color: #d8b8ff;
}
.av2-bb-soon-label {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #c890ff;
  flex-shrink: 0;
}

/* === Main row : stats / pitch / CTAs === */
.av2-bb-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stats */
.av2-bb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 240px;
}
.av2-bb-stat {
  text-align: center;
  padding: 5px 6px;
  background: rgba(20, 14, 8, 0.55);
  border: 1px solid rgba(200, 144, 48, 0.25);
  border-radius: 7px;
  transition: all 0.2s;
}
.av2-bb-stat:hover {
  background: rgba(30, 20, 10, 0.75);
  border-color: rgba(200, 144, 48, 0.5);
}
.av2-bb-stat b {
  display: block; font-size: 16px; font-weight: 900;
  color: #ffd060; line-height: 1; font-variant-numeric: tabular-nums;
}
.av2-bb-stat span {
  display: block; font-size: 8px; color: #b8a888;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-top: 2px;
}

/* Pitch */
.av2-bb-pitch {
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.av2-bb-title {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 900; line-height: 1.2;
  color: #f8e8c0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.av2-h1-grad {
  background: linear-gradient(135deg, #ffe080 0%, #ffd060 50%, #c89030 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255, 208, 96, 0.4));
}
.av2-bb-lead {
  margin: 0;
  font-size: 12.5px; line-height: 1.5;
  color: #d8c0a0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.av2-bb-lead b { color: #ffd060; font-weight: 700; }

.av2-trust {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 10.5px; color: #b8a888; font-weight: 700;
  margin-top: 4px;
}

/* CTAs */
.av2-bb-ctas {
  display: flex; flex-direction: column; gap: 8px;
  width: 280px;
}
.av2-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  text-decoration: none; font-family: inherit; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  width: 100%; box-sizing: border-box;
  text-align: left;
  /* Touch target ≥ 44px pour mobile (Apple HIG) */
  min-height: 44px;
}
.av2-cta-primary {
  background: linear-gradient(135deg, #d8a040 0%, #ffd060 100%);
  color: #1a0e04;
  box-shadow:
    0 8px 28px rgba(200, 144, 48, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}
.av2-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(200, 144, 48, 0.7); }
.av2-cta-primary:active { transform: translateY(0); }
.av2-cta-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5), transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s;
}
.av2-cta-primary:hover::before { transform: translateX(100%); }

.av2-cta-ghost {
  background: rgba(20, 14, 8, 0.7);
  color: #f0d8a0;
  border: 1.5px solid rgba(200, 144, 48, 0.4);
}
.av2-cta-ghost:hover { background: rgba(30, 20, 10, 0.85); border-color: rgba(200, 144, 48, 0.7); transform: translateY(-2px); }
.av2-cta-ico { font-size: 19px; flex-shrink: 0; }
.av2-cta-text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.av2-cta-text b { font-size: 13.5px; font-weight: 800; }
.av2-cta-text small { font-size: 10.5px; opacity: 0.8; margin-top: 1px; font-weight: 600; }
.av2-cta-arrow { font-size: 18px; font-weight: 900; transition: transform 0.25s; flex-shrink: 0; }
.av2-cta:hover .av2-cta-arrow { transform: translateX(4px); }

/* Footer mini */
.av2-bb-foot {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 10.5px; color: #8a7858;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.av2-version { font-weight: 800; color: #ffd060; letter-spacing: 1px; }
.av2-discl { color: #8a7858; }
.av2-footer-link {
  color: #ffd060; text-decoration: none; font-weight: 700;
  transition: color 0.2s;
}
.av2-footer-link:hover { color: #ffe080; }

/* ═══════════════════════════════════════════════════════════════
   ─── BREAKPOINT TABLET ≤ 1100px ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .av2-bb-features-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .av2-bb-features { justify-content: center; }
  .av2-bb-soon { justify-content: center; }
  .av2-bb-row { grid-template-columns: 1fr auto; gap: 18px; }
  .av2-bb-stats { display: none; } /* gain de place tablet */
}

/* ═══════════════════════════════════════════════════════════════
   ─── BREAKPOINT MOBILE ≤ 768px ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .av2-bottombar { padding: 12px 14px 8px; }

  .av2-bb-features-row { gap: 8px; padding-bottom: 10px; margin-bottom: 10px; }
  .av2-bb-features { justify-content: center; gap: 4px; }
  .av2-bb-feat { font-size: 10px; padding: 4px 9px; }
  .av2-bb-soon { font-size: 9.5px; padding: 4px 10px; flex-direction: column; gap: 2px; text-align: center; }
  .av2-bb-soon-label { font-size: 9px; }

  .av2-bb-row {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .av2-bb-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    gap: 4px;
  }
  .av2-bb-stat { padding: 4px 2px; }
  .av2-bb-stat b { font-size: 14px; }
  .av2-bb-stat span { font-size: 7.5px; }

  .av2-bb-pitch { gap: 3px; }
  .av2-bb-title { font-size: 18px; }
  .av2-bb-lead { font-size: 12px; }
  .av2-trust { font-size: 10px; gap: 4px 10px; }

  .av2-bb-ctas { width: 100%; }

  .av2-bb-foot { font-size: 9.5px; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── BREAKPOINT MOBILE STANDARD ≤ 640px ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .av2-topbar { padding: 10px 14px; }
  .av2-logo-main { font-size: 12.5px; letter-spacing: 0.8px; }
  .av2-logo-sub { font-size: 9px; }
  .av2-logo-emblem { font-size: 24px; }
  .av2-pill { font-size: 9.5px; padding: 4px 10px; }
  .av2-pill-info { display: none; } /* gain de place */

  .av2-bottombar { padding: 10px 12px 8px; }

  /* Cache "BIENTÔT" sur petit mobile (manque de place) */
  .av2-bb-soon { display: none; }

  /* Réduit le nombre de features visibles : on garde les 4 plus impactantes */
  .av2-bb-features { gap: 4px; }
  .av2-bb-feat:nth-child(n+5) { display: none; }
  .av2-bb-feat { font-size: 9.5px; padding: 3px 8px; }

  .av2-bb-stats { grid-template-columns: repeat(3, 1fr); }
  .av2-bb-stat:nth-child(n+4) { display: none; } /* garde 3 stats */
  .av2-bb-stat b { font-size: 16px; }

  .av2-bb-title { font-size: 16px; }
  .av2-bb-lead { font-size: 11.5px; }
  .av2-trust span:nth-child(n+3) { display: none; } /* garde 2 trust badges */

  .av2-cta { padding: 13px 14px; }
  .av2-cta-text b { font-size: 13px; }
  .av2-cta-text small { font-size: 10px; }

  .av2-bb-foot { font-size: 9px; flex-wrap: wrap; gap: 6px 12px; }
  .av2-discl { flex-basis: 100%; text-align: center; font-size: 8.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── BREAKPOINT iPHONE étroit ≤ 380px ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .av2-bb-features { display: none; } /* full clean sur très petit écran */
  .av2-bb-features-row { display: none; }
  .av2-bb-stats { grid-template-columns: repeat(2, 1fr); }
  .av2-bb-stat:nth-child(n+3) { display: none; }
  .av2-bb-title { font-size: 15px; }
  .av2-bb-lead { font-size: 11px; }
  .av2-cta-text small { display: none; } /* gain de place */
}

/* ═══════════════════════════════════════════════════════════════
   ─── PAYSAGE MOBILE (hauteur < 500px) ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .av2-stage { min-height: 80px; }
  .av2-bb-features-row { display: none; }
  .av2-bb-row { gap: 10px; }
  .av2-bb-pitch { gap: 2px; }
  .av2-bb-title { font-size: 16px; }
  .av2-bb-lead { font-size: 11px; }
  .av2-trust { display: none; }
  .av2-cta { padding: 10px 14px; }
  .av2-bb-foot { display: none; }
}

/* Cache l'ancienne v99 */
.auth-v99 { display: none !important; }
