/* ============================================
   EcransPC — Homepage · Premium Tech
   Linear / Vercel / Apple
   ============================================ */

/* ===========================================
   HERO
   =========================================== */
.hero-home {
  position: relative;
  background: #050505;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-home__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c6aef;
  margin-bottom: 20px;
}

.hero-home__title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f5f5f7;
  margin-bottom: 18px;
}

.hero-home__accent {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-home__subtitle {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: #777790;
  margin-bottom: 28px;
  max-width: 420px;
}

/* --- CTA — compact --- */
.hero-home__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hero-btn--primary {
  background: #7c6aef;
  color: #fff;
  border: none;
}

.hero-btn--primary:hover {
  background: #8b7af5;
  box-shadow: 0 0 28px rgba(124, 106, 239, 0.45);
  transform: translateY(-1px);
}

.hero-btn--ghost {
  background: transparent;
  color: #999;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn--ghost:hover {
  color: #eee;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Amazon CTA */
.hero-btn--amazon {
  background: #FF9900;
  color: #111;
  border: none;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.hero-btn--amazon:hover {
  background: #ffad33;
  box-shadow: 0 0 24px rgba(255, 153, 0, 0.4);
  transform: translateY(-1px);
}

/* --- Shimmer effect on Amazon buttons --- */
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.btn--shimmer {
  position: relative;
  overflow: hidden;
}

.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

/* --- Micro-copy under Amazon buttons --- */
.pick__microcopy {
  font-size: 0.6875rem;
  color: #444460;
  text-align: center;
  display: block;
}

/* --- Stats --- */
.hero-home__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-home__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-home__stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.375rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-home__stat-label {
  font-size: 0.8125rem;
  color: #444460;
}

.hero-home__stat-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===========================================
   3D MONITOR SCENE — Interactive Focus
   =========================================== */
.hero-home__scene {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home__scene-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(124, 106, 239, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  transition: all 0.4s ease;
}

/* Links wrapping images */
.hero-home__link {
  position: absolute;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.hero-home__link--center {
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-home__link--left {
  z-index: 5;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-home__link--right {
  z-index: 5;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Badge "Voir" on hover --- */
.hero-home__badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(124, 106, 239, 0.9);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hero-home__link:hover .hero-home__badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Images --- */
.hero-home__img {
  display: block;
  object-fit: contain;
  /* mix-blend-mode removed — kills images on dark bg */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Center — hero foreground */
.hero-home__img--center {
  max-height: 260px;
  transform: scale(1.1);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

/* Side monitors — behind, faded */
.hero-home__img--left,
.hero-home__img--right {
  max-height: 190px;
  opacity: 0.5;
  filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

/* --- FOCUS SYSTEM: hover on side => it comes forward --- */

/* Hover LEFT: left comes forward, center recedes */
.hero-home__link--left:hover {
  z-index: 20;
}

.hero-home__link--left:hover .hero-home__img--left {
  opacity: 1;
  filter: blur(0px) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
  transform: scale(1.1);
}

.hero-home__scene:has(.hero-home__link--left:hover) .hero-home__img--center {
  opacity: 0.5;
  filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transform: scale(1);
}

.hero-home__scene:has(.hero-home__link--left:hover) .hero-home__scene-glow {
  left: 25%;
}

/* Hover RIGHT: right comes forward, center recedes */
.hero-home__link--right:hover {
  z-index: 20;
}

.hero-home__link--right:hover .hero-home__img--right {
  opacity: 1;
  filter: blur(0px) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
  transform: scale(1.1);
}

.hero-home__scene:has(.hero-home__link--right:hover) .hero-home__img--center {
  opacity: 0.5;
  filter: blur(1.5px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transform: scale(1);
}

.hero-home__scene:has(.hero-home__link--right:hover) .hero-home__scene-glow {
  left: 75%;
}

/* Hover CENTER stays as-is but badge appears */
.hero-home__link--center:hover .hero-home__img--center {
  transform: scale(1.14);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* ===========================================
   USAGE BENTO — tight spacing to fold
   =========================================== */
.usage-section {
  background: #050505;
  padding-top: 48px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Color accents */
.usage-card[data-accent="violet"]  { --card-accent: 124, 106, 239; }
.usage-card[data-accent="amber"]   { --card-accent: 245, 189, 65; }
.usage-card[data-accent="cyan"]    { --card-accent: 0, 206, 201; }
.usage-card[data-accent="green"]   { --card-accent: 52, 211, 153; }

.usage-card {
  --card-accent: 124, 106, 239;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Radial glow behind each card */
.usage-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--card-accent), 0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.usage-card:hover::before {
  opacity: 1;
}

.usage-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.usage-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--card-accent));
  background: rgba(var(--card-accent), 0.1);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.usage-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.usage-card__desc {
  font-size: 0.8125rem;
  color: #888898;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.usage-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--card-accent));
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.usage-card__cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.usage-card:hover .usage-card__cta { opacity: 1; }
.usage-card:hover .usage-card__cta span { transform: translateX(5px); }

/* ===========================================
   LEARN CARDS
   =========================================== */
.learn-card-lg {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-card-lg:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.learn-card-lg__icon { flex-shrink: 0; }

.learn-card-lg__visual {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: radial-gradient(circle, color-mix(in srgb, var(--lc-accent, #7c6aef) 10%, transparent) 0%, transparent 70%);
}

.learn-card-lg__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.learn-card-lg__body { flex-grow: 1; }

.learn-card-lg__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.learn-card-lg__desc {
  font-size: 0.8125rem;
  color: #666680;
  line-height: 1.55;
}

.learn-card-lg__arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.learn-card-lg:hover .learn-card-lg__arrow {
  color: #a29bfe;
  transform: translateX(4px);
}

/* ===========================================
   PICKS — "Nos coups de coeur" (3D Premium)
   =========================================== */
.picks-section {
  background: #030303;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px; /* room for image overflow */
}

/* --- Card base --- */
.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 40px 24px 28px;
  overflow: visible;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pick--star {
  padding-top: 48px;
}

.pick:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Star card — purple border */
.pick--star {
  border-color: rgba(124, 106, 239, 0.2);
}

.pick--star:hover {
  border-color: rgba(124, 106, 239, 0.45);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(124, 106, 239, 0.06);
}

/* --- Glow halo behind product --- */
.pick__glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.pick:hover .pick__glow {
  opacity: 1;
}

.pick__glow--violet {
  background: rgba(124, 106, 239, 0.18);
  width: 280px;
  height: 280px;
}

/* Star glow — always visible, stronger */
.pick--star .pick__glow--violet {
  opacity: 0.7;
  width: 320px;
  height: 320px;
  top: 5%;
  filter: blur(70px);
}

.pick--star:hover .pick__glow--violet {
  opacity: 1;
}

.pick__glow--amber {
  background: rgba(245, 189, 65, 0.12);
}

.pick__glow--green {
  background: rgba(52, 211, 153, 0.12);
}

/* --- Badge (glassmorphism) --- */
.pick__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pick__badge--primary {
  color: #c4b5fd;
  background: rgba(124, 106, 239, 0.15);
  border: 1px solid rgba(124, 106, 239, 0.2);
}

.pick__badge--alt {
  color: #5eead4;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

/* --- Visual — floating overlap (no box, no frame) --- */
.pick__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  min-height: 160px;
  z-index: 2;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.pick__img {
  max-width: 90%;
  max-height: 170px;
  object-fit: contain;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pick:hover .pick__img {
  transform: scale(1.06);
}

/* Star card — larger image, more overlap */
.pick--star .pick__visual {
  min-height: 180px;
}

.pick--star .pick__img {
  max-height: 200px;
  max-width: 95%;
}

/* --- Body text --- */
.pick__body {
  position: relative;
  z-index: 2;
}

.pick__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* --- Pill specs --- */
.pick__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pick__pill {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #888898;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pick__desc {
  font-size: 0.8125rem;
  color: #555570;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Actions --- */
.pick__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pick__link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pick__link:hover {
  color: #a29bfe;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .hero-home__title { font-size: 2.75rem; }
  .hero-home__grid { gap: 32px; }
  .hero-home__scene { height: 280px; }
  .hero-home__img--center { max-height: 210px; }
  .hero-home__img--left,
  .hero-home__img--right { max-height: 150px; }
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
  .picks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-home { padding: 48px 0 32px; }
  .hero-home__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-home__title { font-size: 2.25rem; }
  .hero-home__subtitle { margin-bottom: 20px; }
  .hero-home__cta { margin-bottom: 24px; }
  .hero-home__scene {
    height: 220px;
    max-width: 380px;
    margin: 0 auto;
  }
  .hero-home__img--center { max-height: 170px; }
  .hero-home__img--left,
  .hero-home__img--right {
    max-height: 110px;
    opacity: 0.35;
  }
  .hero-home__cta { flex-direction: column; }
  .hero-btn { width: 100%; text-align: center; }
  .usage-section { padding-top: 32px; }
  .usage-grid { grid-template-columns: 1fr; }
}
