/* ============================================
   HOMEPAGE HERO - VERSION BACKGROUND IMAGE
   Image de fond + overlay bleu foncé alpha
   ============================================ */

/* ========== BANNER HERO AVEC BACKGROUND ========== */
.homepage-banner {
  position: relative;
  /* Fond de secours */
  background: #1a1a2e !important;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: flex-start; /* Aligné en haut pour voir le breadcrumb */
  justify-content: center;
  padding: 0 20px;
  padding-top: 100px; /* Espace pour le menu fixe */
  overflow: hidden;
}

/* Overlay - conteneur pour l'image et le filtre */
.homepage-banner .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Image de fond avec miroir horizontal */
.homepage-banner .hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/hero_accueil.jpg') center top/auto 120% no-repeat;
  transform: scaleX(-1); /* Miroir horizontal */
  z-index: 1;
}

/* Filtre bleu foncé avec transparence */
.homepage-banner .hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.90) 0%,
    rgba(22, 33, 62, 0.78) 40%,
    rgba(38, 75, 130, 0.70) 70%,
    rgba(38, 142, 255, 0.60) 100%
  );
  z-index: 2;
}

/* ========== BULLES ANIMÉES ========== */
.homepage-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(38, 142, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: floatBubble1 15s ease-in-out infinite;
}

.homepage-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: floatBubble2 12s ease-in-out infinite;
}

/* Animation des bulles */
@keyframes floatBubble1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-30px, 20px) scale(1.05);
  }
  50% {
    transform: translate(20px, -30px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -20px) scale(1.02);
  }
}

@keyframes floatBubble2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -20px) scale(1.08);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.92);
  }
}

/* ========== PARTICULES DÉCORATIVES - DÉSACTIVÉES ========== */
.hero-particles {
  display: none;
}

.hero-particle:nth-child(1) {
  width: 8px;
  height: 8px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-particle:nth-child(2) {
  width: 5px;
  height: 5px;
  top: 25%;
  left: 25%;
  animation-delay: -3s;
  animation-duration: 22s;
}

.hero-particle:nth-child(3) {
  width: 10px;
  height: 10px;
  top: 45%;
  left: 5%;
  animation-delay: -6s;
  animation-duration: 16s;
}

.hero-particle:nth-child(4) {
  width: 6px;
  height: 6px;
  top: 70%;
  left: 15%;
  animation-delay: -9s;
  animation-duration: 24s;
}

.hero-particle:nth-child(5) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 75%;
  animation-delay: -2s;
  animation-duration: 19s;
}

.hero-particle:nth-child(6) {
  width: 7px;
  height: 7px;
  top: 60%;
  left: 85%;
  animation-delay: -5s;
  animation-duration: 21s;
}

.hero-particle:nth-child(7) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 70%;
  animation-delay: -8s;
  animation-duration: 17s;
}

.hero-particle:nth-child(8) {
  width: 9px;
  height: 9px;
  top: 35%;
  left: 60%;
  animation-delay: -4s;
  animation-duration: 23s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(-10px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(20px);
    opacity: 0.7;
  }
}

/* ========== CONTENU PRINCIPAL ========== */
.homepage-banner .banner-content {
  color: white;
  z-index: 10;
  width: 1400px;
  max-width: 100%;
  margin-inline: 120px;
  line-height: 1.8em;
  position: relative;
}

.homepage-banner .banner-txt {
  width: 65%;
  font-size: 16px;
}

/* ========== TITRE AVEC EFFET ========== */
.homepage-banner .banner-title-wrapper {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

/* Logo POM avec effet brillant */
.homepage-banner .pom-logo {
  font-size: 10rem;
  font-weight: 900;
  background: linear-gradient(135deg, #268eff 0%, #26b3ff 50%, #7adef4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.homepage-banner .pom-logo .pom-apostrophe {
  font-size: 0.6em;
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 0.15em;
  margin-left: 5px;
}

.homepage-banner .banner-content h1 {
  color: white;
  font-weight: bold;
  padding-top: 18px;
  margin-left: 10px;
  min-width: max-content;
}

.homepage-banner .banner-content h1 span {
  display: block;
}

.homepage-banner .banner-content h1 span:nth-child(1) {
  color: #7adef4;
  font-size: 1.8em;
  text-shadow: 0 2px 20px rgba(122, 222, 244, 0.3);
}

.homepage-banner .banner-content h1 span:nth-child(2) {
  font-size: 1.2em;
}

/* Initiales P O M en gras et bleu */
.homepage-banner .initiales-pom,
.homepage-banner .initiales-POM\'s {
  background: linear-gradient(135deg, #268eff 0%, #26b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.homepage-banner .banner-content h2 {
  background: linear-gradient(135deg, #268eff 0%, #26b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  font-size: 1.4em;
}

/* Texte descriptif en blanc et plus gros */
.homepage-banner .banner-content p,
.homepage-banner .banner-txt p {
  color: white !important;
  -webkit-text-fill-color: white !important;
  font-size: 1.2em !important;
  line-height: 1.7 !important;
}

/* Breadcrumb intégré dans la bannière */
.homepage-banner .hero-breadcrumb {
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.homepage-banner .hero-breadcrumb .breadcrumb {
  background: transparent !important;
  padding: 0;
  margin: 0;
  display: flex;
  list-style: none;
}

.homepage-banner .hero-breadcrumb .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.homepage-banner .hero-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  font-size: 0.9em;
}

.homepage-banner .hero-breadcrumb .breadcrumb-item a:hover {
  color: white !important;
  text-decoration: underline;
}

/* ========== CARDS GLASSMORPHISM ANIMÉES ========== */
.hero-floating-cards {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 25px;
  color: white;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: all 0.4s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card:nth-child(1) {
  animation-delay: 0s;
}

.hero-card:nth-child(2) {
  animation-delay: -2s;
}

.hero-card:nth-child(3) {
  animation-delay: -4s;
}

.hero-card:hover {
  transform: translateX(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(38, 142, 255, 0.3);
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #7adef4;
}

.hero-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.hero-card-value {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #4da3ff, #7ec8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== IMAGE DU PERSONNAGE - MASQUÉE ========== */
.homepage-banner .banner-image {
  display: none;
}

/* ========== VAGUE DÉCORATIVE EN BAS ========== */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 6;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-wave path {
  fill: #ffffff;
}

/* ========== CTA BOUTON AMÉLIORÉ ========== */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #268eff 0%, #031163 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(38, 142, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(38, 142, 255, 0.5);
  color: white;
  text-decoration: none;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta i {
  font-size: 18px;
}

/* ========== RESPONSIVE ========== */

/* Tablettes */
@media (max-width: 1200px) {
  .homepage-banner {
    min-height: 600px;
  }

  .hero-floating-cards {
    right: 2%;
  }

  .homepage-banner .banner-image {
    right: -5%;
    bottom: -30px;
  }

  .homepage-banner .pom-logo {
    font-size: 7rem;
    letter-spacing: -7px;
  }
}

@media (max-width: 992px) {
  .homepage-banner {
    min-height: 550px;
    padding: 80px 30px 40px 30px;
  }

  .homepage-banner .banner-content {
    margin-inline: 40px;
  }

  .homepage-banner .banner-txt {
    width: 100%;
    font-size: 15px;
  }

  .homepage-banner .pom-logo {
    font-size: 6rem;
    letter-spacing: -6px;
  }

  .hero-floating-cards {
    display: none;
  }

  .homepage-banner .banner-image {
    position: relative;
    right: auto;
    height: auto;
    justify-content: center;
    padding-right: 0;
  }

  .homepage-banner .banner-image img {
    height: auto;
    max-height: 350px;
    width: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .homepage-banner {
    flex-direction: column;
    min-height: auto;
    padding: 80px 20px 0 20px;
    position: relative;
    overflow: hidden;
  }

  .homepage-banner .banner-content {
    width: 100%;
    margin-inline: 0;
    padding: 0;
    z-index: 10;
    position: relative;
  }

  .homepage-banner .banner-txt {
    width: 100%;
    font-size: 14px;
    line-height: 1.6em;
    text-align: left;
  }

  .homepage-banner .banner-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .homepage-banner .pom-logo {
    font-size: 4rem;
    letter-spacing: -4px;
  }

  .homepage-banner .banner-content h1 {
    padding-top: 0;
  }

  .homepage-banner .banner-content h1 span:nth-child(1) {
    font-size: 1.2em;
  }

  .homepage-banner .banner-content h1 span:nth-child(2) {
    font-size: 0.9em;
  }

  .homepage-banner .banner-content h2 {
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 10px;
  }

  .homepage-banner .banner-image {
    position: relative;
    width: 100%;
    height: auto;
    padding-right: 0;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 0;
  }

  .homepage-banner .banner-image img {
    height: auto;
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: -10px;
  }

  /* Bulles plus petites sur mobile */
  .homepage-banner::before {
    width: 400px;
    height: 400px;
    top: -20%;
    right: -30%;
  }

  .homepage-banner::after {
    width: 300px;
    height: 300px;
    bottom: -15%;
    left: -20%;
  }

  /* Cacher certaines particules sur mobile */
  .hero-particle:nth-child(n+5) {
    display: none;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
  }

  .hero-wave {
    height: 20px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .homepage-banner .pom-logo {
    font-size: 3rem;
    letter-spacing: -3px;
  }

  .homepage-banner .banner-content h1 span:nth-child(1) {
    font-size: 1em;
  }

  .homepage-banner .banner-content h1 span:nth-child(2) {
    font-size: 0.8em;
  }
}

/* ========== ANIMATIONS AU SCROLL (FADE IN) ========== */
.homepage-banner .banner-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
