/* Page projet Hubble — s'appuie sur tes variables main.css */
.hubble-page{
  width: 100%;
  background: var(--background);
  padding-top: 6rem;
}

/* Utilitaires */
.glass-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--near-white);
  text-decoration: none;
  opacity: .85;
  transition: var(--transition-300ms);
  margin-bottom: 2rem;
  padding: .5rem 0;
}
.back-link:hover{ opacity: 1; }
.back-icon{ font-size: 1.1rem; line-height: 1; }

.hubble-section{
  padding: 6rem 6rem;
}
@media (max-width: 900px){
  .hubble-section{ padding: 5rem 1.25rem; }
}

.section-title{
  color: var(--near-white);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.section-lead{
color: var(--near-white);
  margin: 0;
  max-width: 70ch;
  line-height: 1.65;
}

/* HERO */
.hubble-hero{
  padding: 10rem 6rem 2rem;
  position: relative;
  overflow: hidden;
}

/* glow (violet bottom-right like your home) */
.hubble-hero::after{
  content:"";
  position:absolute;
  right:-250px;
  bottom:-250px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at 30% 30%, rgba(236,41,123,.55), rgba(237,131,181,.25), rgba(0,0,0,0) 65%);
  filter: blur(18px);
  pointer-events:none;
}

.hero-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px){
  .hubble-hero{ padding: 9rem 1.25rem 2rem; }
  .hero-grid{ grid-template-columns: 1fr; }
}

.hubble-title{
  color: var(--near-white);
  font-size: clamp(3rem, 5.5vw, 5rem);
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}
.hubble-subtitle{
color: var(--near-white);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.hero-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.tag{
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--near-white);
  background: rgba(255,255,255,0.03);
  font-size: .9rem;
}

.hero-cta{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-primary, .cta-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition-300ms);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.cta-primary{
  background: var(--near-white);
  color: var(--background);
}
.cta-primary:hover{
  transform: translateY(-1px);
}
.cta-secondary{
  background: rgba(255,255,255,0.04);
  color: var(--near-white);
}
.cta-secondary:hover{
  background: rgba(255,255,255,0.08);
}

.hero-right .glass-card{
  padding: 1rem;
}
.mv{
  width: 100%;
  height: 420px;
  border-radius: 1.5rem;
  background: rgba(0,0,0,0.25);
}
.mv-tall{ height: 520px; }
.card-caption{
  color: rgba(255,255,255,0.65);
  font-size: .9rem;
  padding: .75rem .5rem .25rem;
  text-align: center;
}

/* PERSONNAGE */
.section-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px){
  .section-grid{ grid-template-columns: 1fr; }
}

.bullet{
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--near-white);
  opacity: .9;
  line-height: 1.7;
}
.bullet li{ margin: .35rem 0; }

/* ===== VIDEO HUBBLE ===== */

.project-video{
  margin-top: 3rem;
  padding: 2rem;
}

.video-head{
  margin-bottom: 1.2rem;
}

.video-head h2{
  margin: 0;
  color: var(--near-white);
}

.video-head p{
  margin: .4rem 0 0;
  color: rgba(255,255,255,.65);
}

/* ratio 16:9 parfait */
.video-wrapper{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.video-wrapper iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* PLANETS */
.section-head{
  max-width: 1200px;
  margin: 0 auto 2.25rem;
}
.planet-layout{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px){
  .planet-layout{ grid-template-columns: 1fr; }
}

.planet-picker{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.planet-btn{
  width: 100%;
  text-align: left;
  padding: .9rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--near-white);
  cursor: pointer;
  transition: var(--transition-300ms);
}
.planet-btn:hover{ background: rgba(255,255,255,0.07); }
.planet-btn.is-active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.planet-stage{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px){
  .planet-stage{ grid-template-columns: 1fr; }
}
.planet-big{ padding: 1rem; }
.mv-planet{ height: 420px; }

.planet-report{ padding: 1.75rem; }
.report-title{
  color: var(--near-white);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.report-text{
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.report-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.meta-chip{
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
}

/* TEAM */
.what-grid{
  max-width: 1200px;
  margin: 2rem auto 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px){
  .what-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px){
  .what-grid{
    grid-template-columns: 1fr;
  }
}

.team-card{ padding: 1.5rem; }
.team-name{
  color: var(--near-white);
  font-weight: var(--font-weight-bold);
  margin-bottom: .25rem;
}
.team-role{
  color: rgba(255,255,255,0.75);
  margin-bottom: .8rem;
}
.team-desc{
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}

/* DOWNLOAD */
.download-card{
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem;
}
.download-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.download-note{
  color: rgba(255,255,255,0.65);
  margin-top: 1rem;
  font-size: .95rem;
}
code{
  background: rgba(255,255,255,0.06);
  padding: .15rem .4rem;
  border-radius: .4rem;
  border: 1px solid rgba(255,255,255,0.10);
}

.next-project{
  margin-top: 3rem;
  padding: 2rem;
}
.next-project-link{
  display: block;
  text-decoration: none;
  color: var(--near-white);
}
.next-project-link span{
  opacity: .7;
}
.next-project-link h3{
  margin: .35rem 0 0;
}


/* Footer */
.hubble-footer{
  padding: 2.5rem 6rem 4rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
@media (max-width: 900px){
  .hubble-footer{ padding: 2.5rem 1.25rem 4rem; }
}
