/*
 * Accueil "streaming" : hero plein écran + rangées horizontales.
 * Chargé uniquement sur la page d'accueil, après refonte.css.
 */

/* Le main de l'accueil est full-bleed (annule la marge separate-containers) */
.separate-containers .site-main.jpia-home {
  margin: 0;
}
.jpia-home-area {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.jpia-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 640px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 25%;
  background-color: var(--jpia-bg-deep);
}

.jpia-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 19, 0.93) 0%, rgba(10, 10, 19, 0.62) 42%, rgba(10, 10, 19, 0.12) 72%, rgba(10, 10, 19, 0.35) 100%),
    linear-gradient(180deg, rgba(15, 15, 27, 0.35) 0%, rgba(15, 15, 27, 0) 30%, rgba(15, 15, 27, 0.98) 96%);
}

.jpia-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 40px 64px;
}

.jpia-hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, var(--jpia-fuchsia));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px -8px rgba(168, 85, 247, 0.6);
}

.jpia-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  max-width: 680px;
  margin: 18px 0 14px;
}

.jpia-hero-desc {
  max-width: 540px;
  color: #d6d7e6;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.jpia-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.jpia-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.jpia-btn-primary,
.jpia-btn-primary:visited {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, var(--jpia-fuchsia));
  box-shadow: 0 8px 28px -8px rgba(168, 85, 247, 0.65);
}
.jpia-btn-primary:hover,
.jpia-btn-primary:focus {
  color: #fff;
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.jpia-btn-ghost,
.jpia-btn-ghost:visited {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.jpia-btn-ghost:hover,
.jpia-btn-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Rangées horizontales
   ========================================================================== */
#jpia-rows {
  padding: 38px 0 30px;
}

.jpia-row {
  margin-bottom: 38px;
}

.jpia-row-head {
  max-width: 1240px;
  margin: 0 auto 12px;
  padding: 0 40px;
}

.jpia-row-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--contrast);
}

.jpia-row-body {
  position: relative;
}

.jpia-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 40px 16px;
  scrollbar-width: none;
}
.jpia-strip::-webkit-scrollbar { display: none; }

.jpia-card {
  position: relative;
  flex: 0 0 auto;
  width: 265px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--jpia-border);
  background: var(--base-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jpia-card img.jpia-card-img {
  display: block;
  width: 100%;
  height: 163px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}

.jpia-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--jpia-border-accent);
  box-shadow: var(--jpia-glow);
  z-index: 2;
}

.jpia-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, rgba(5, 5, 10, 0) 0%, rgba(5, 5, 10, 0.92) 78%);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flèches (neutralise le style bouton global de refonte.css) */
button.jpia-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: rgba(10, 10, 19, 0.78);
  border: 1px solid var(--jpia-border);
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
button.jpia-arrow:hover,
button.jpia-arrow:focus {
  background: rgba(76, 29, 149, 0.85);
  filter: none;
  transform: translateY(-50%);
  box-shadow: var(--jpia-glow);
}
.jpia-row-body:hover button.jpia-arrow,
button.jpia-arrow:focus-visible {
  opacity: 1;
}
button.jpia-prev { left: 10px; }
button.jpia-next { right: 10px; }

@media (hover: none) {
  button.jpia-arrow { display: none; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .jpia-hero {
    min-height: 72vw;
  }
  .jpia-hero-inner {
    padding: 32px 20px 40px;
  }
  .jpia-hero-desc {
    font-size: 15px;
  }
  .jpia-row-head {
    padding: 0 20px;
  }
  .jpia-strip {
    padding: 6px 20px 14px;
    gap: 10px;
  }
  .jpia-card {
    width: 200px;
  }
  .jpia-card img.jpia-card-img {
    height: 123px;
  }
}

/* ===== Section « Explorer par style » (liens catégories) ===== */
.jpia-styles { margin: 46px auto 60px; padding: 0 40px; max-width: 1480px; }
.jpia-styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.jpia-style-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px;
	border-radius: 18px; text-decoration: none;
	background: linear-gradient(160deg, #1b1d33, #131428);
	border: 1px solid rgba(168, 85, 247, .2);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.jpia-style-card:hover { transform: translateY(-4px); border-color: rgba(217, 70, 239, .6);
	box-shadow: 0 18px 44px -18px rgba(168, 85, 247, .55); }
.jpia-style-emoji { font-size: 28px; line-height: 1; }
.jpia-style-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; color: #f4f4fb; }
.jpia-style-desc { font-size: 14px; line-height: 1.5; color: #b9bad1; }
@media (max-width: 820px) { .jpia-styles { padding: 0 20px; }
	.jpia-styles-grid { grid-template-columns: 1fr; } }
