:root {
  --lg-bg-color: rgba(255, 255, 255, 0.25);
  --lg-highlight: rgba(255, 255, 255, 0.75);
  --lg-text: #ffffff;
  --lg-red: #fb4268;
  --lg-grey: #444739;
}

/* FOND VIDEO */
.background-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.background-video video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  background: #000;
}
/* Overlay pour lisibilité */
.background-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,0.08) 0%,rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 2;
}

/* CORPS ET CONTAINER */
body {
  margin: 0;
  padding: 2rem 0;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  background: #16181d; /* fallback si vidéo non chargée */
  overflow-x: hidden;
}
.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.container--mobile { min-width: 32rem; }
.container--small { max-width: 10rem; margin: 5rem 1rem 1rem; }
.container--small svg { fill: white; }
.container--inline { display: flex; flex-direction: row; }

/* APPARITION SMOOTH DU CONTENU */
.content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to   { opacity: 1; transform: none;}
}

/* GLASS EFFECT */
@keyframes float {
  0%   { transform: translateY(0px);}
  50%  { transform: translateY(-12px);}
  100% { transform: translateY(0px);}
}
.glass-container {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 2rem;
  overflow: hidden;
  flex: 1 1 auto;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  color: var(--lg-text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  animation: float 4.8s ease-in-out infinite;
}
.glass-container--rounded { border-radius: 3rem; }
.glass-container--large, .glass-container--medium { flex: 1 1 auto; }
.glass-container--small { flex: 0 1 auto; }

/* Désynchronisation du flottement */
.glass-container:nth-child(1) { animation-delay: 0s; }
.glass-container:nth-child(2) { animation-delay: 0.9s; }
.glass-container:nth-child(3) { animation-delay: 1.8s; }
.glass-container:nth-child(4) { animation-delay: 1.2s; }
.glass-container:nth-child(5) { animation-delay: 2.4s; }
.glass-container:nth-child(6) { animation-delay: 3.1s; }

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.glass-filter {
  z-index: 0;
  /* C'EST ICI LA CLÉ DU CHIEN */
  filter: url(#lensFilter) saturate(120%) brightness(1.15);
  backdrop-filter: blur(4px);
}
.glass-overlay {
  z-index: 1;
  background: var(--lg-bg-color);
}
.glass-specular {
  z-index: 2;
  box-shadow: inset 1px 1px 0 var(--lg-highlight), inset 0 0 5px var(--lg-highlight);
}

.glass-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-around;
  padding: 12px 28px;
  gap: 1rem;
  flex-wrap: wrap;
}
.glass-content__link {
  margin-bottom: -1px;
  margin-top: 6px;
  transition: transform 0.2s ease-out;
}
.glass-content__link img { width: 78px; }
.glass-content__link:hover { transform: scale(1.1);}
.glass-content__link:active { transform: scale(0.95);}

/* PLAYER & ITEMS */
.player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.player__thumb { display: flex; align-items: center; }
.player__img {
  width: 5rem; height: auto; border-radius: 0.5rem; margin-right: 1rem;
  transition: transform 0.25s ease-out;
}
.player__img:hover { transform: scale(1.1);}
.player__img:active { transform: scale(0.95);}
.player__legend { color: black; }
.player__legend__title, .player__legend__sub-title { margin: 0; font-size: 1rem;}
.player__legend__sub-title { opacity: 0.6; }
.player__controls { display: flex; align-items: center;}
.player__controls > :first-child { margin-right: 2rem; }

/* Glass item */
.glass-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--lg-grey); transition: color 0.3s ease; cursor: pointer;
}
.glass-item svg {
  fill: var(--lg-grey); height: 50px; margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.25));
  transition: transform 0.25s ease-out;
}
.glass-item svg:hover { transform: scale(1.1);}
.glass-item svg:active { transform: scale(0.95);}
.glass-item--active {
  background: rgba(0, 0, 0, 0.25);
  color: var(--lg-red);
  margin: -8px -40px; padding: 0.5rem 2.5rem; border-radius: 3rem;
}
.glass-item--active svg { fill: var(--lg-red); }

/* GRID */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Responsive bonus (optionnel) */
@media (max-width: 900px) {
  .projets-grid { grid-template-columns: 1fr; }
  .container--mobile { min-width: 90vw; }
}

/* PILL WIP */
.pill-wip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: rgba(255,255,255,0.22);
  color: #444739;
  font-weight: 700;
  font-size: 1.7em;
  padding: 0.25em 1.7em;
  border-radius: 2.5em;
  box-shadow: 0 2px 16px rgba(0,0,0,0.11);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,0.19);
  margin-top: 1.2em;
  margin-bottom: 0.2em;
  opacity: 0.91;
  text-align: center;
  letter-spacing: -0.5px;
}
.pill-wip .icon {
  font-size: 1em;
  margin-right: 0.2em;
  margin-bottom: 2px;
  opacity: 0.9;
}

/* FOOTER PILL */
.footer-pill {
  position: fixed;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  /* Même styles que pill-wip */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: rgba(255,255,255,0.22);
  color: #444739;
  font-weight: 700;
  font-size: 1.15em;
  padding: 0.32em 1.9em;
  border-radius: 2.5em;
  box-shadow: 0 2px 16px rgba(0,0,0,0.13);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,0.19);
  opacity: 0.93;
  letter-spacing: -0.5px;
  text-align: center;
}
