/* ============================================
   APPSM - BANNIÈRE DES PAGES INTÉRIEURES
   Fichier: css/page-banner.css
   Description: Bannière premium réutilisable sur toutes les pages
============================================ */

/* ============================================
   1. CONTENEUR PRINCIPAL
============================================ */
.page-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}

/* ============================================
   2. IMAGE DE FOND (optionnelle)
============================================ */
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bannerZoom 15s ease-out forwards;
}

@keyframes bannerZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ============================================
   3. FOND DÉGRADÉ PREMIUM
============================================ */
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 30, 92, 0.95) 0%,
    rgba(91, 45, 142, 0.85) 40%,
    rgba(232, 103, 42, 0.75) 100%
  );
  z-index: 1;
}

/* Motif de points décoratif */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    );
  background-size:
    40px 40px,
    30px 30px;
  z-index: 2;
  opacity: 0.6;
  animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      40px 40px,
      30px 30px;
  }
}

/* Effet de vague en bas */
.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'/%3E%3C/svg%3E")
    no-repeat center bottom;
  background-size: cover;
  z-index: 3;
}

/* ============================================
   4. FORMES DÉCORATIVES ANIMÉES
============================================ */
.page-banner-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.banner-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.banner-shape-1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: 8%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  animation: floatShape1 8s ease-in-out infinite;
}

.banner-shape-2 {
  width: 130px;
  height: 130px;
  bottom: -40px;
  left: 12%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.25) 0%,
    rgba(232, 103, 42, 0.05) 100%
  );
  animation: floatShape2 10s ease-in-out infinite;
}

.banner-shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 25%;
  background: rgba(255, 255, 255, 0.12);
  animation: floatShape3 6s ease-in-out infinite;
}

.banner-shape-4 {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 10%;
  background: rgba(255, 184, 77, 0.15);
  animation: floatShape2 7s ease-in-out infinite;
}

/* Icône médicale flottante */
.banner-shape-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 120px;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  animation: pulseIcon 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes floatShape1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, -25px) scale(1.1);
  }
}

@keyframes floatShape2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, -20px) rotate(180deg);
  }
}

@keyframes floatShape3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-15px, 10px);
  }
  66% {
    transform: translate(10px, -15px);
  }
}

@keyframes pulseIcon {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translateY(-50%) scale(1.05);
  }
}

/* ============================================
   5. CONTENU DE LA BANNIÈRE
============================================ */
.page-banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 20px;
  max-width: 900px;
}

/* Badge au-dessus du titre */
.page-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDownFade 0.8s ease-out 0.1s forwards;
}

.page-banner-badge i {
  color: #ffb84d;
  font-size: 12px;
}

/* Titre principal */
.page-banner-title {
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 20px 0;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 1px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDownFade 0.8s ease-out 0.3s forwards;
  line-height: 1.1;
}

.page-banner-title span {
  color: #ffb84d;
  position: relative;
}

/* Ligne décorative sous le titre */
.page-banner-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--orange) 25%,
    #ffb84d 50%,
    var(--orange) 75%,
    transparent 100%
  );
  margin: 0 auto 25px;
  border-radius: 3px;
  opacity: 0;
  transform: scaleX(0);
  animation: expandLine 0.8s ease-out 0.6s forwards;
  box-shadow: 0 2px 10px rgba(232, 103, 42, 0.5);
}

/* ============================================
   6. FIL D'ARIANE
============================================ */
.page-banner-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s ease-out 0.9s forwards;
}

.page-banner-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-banner-breadcrumb a i {
  font-size: 11px;
  color: var(--orange);
}

.page-banner-breadcrumb a:hover {
  color: #ffb84d;
  transform: translateX(-3px);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: bold;
}

.breadcrumb-current {
  color: #ffb84d;
  font-weight: 700;
}

/* ============================================
   7. ANIMATIONS
============================================ */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ============================================
   8. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .page-banner {
    height: 240px;
  }

  .page-banner-title {
    font-size: 36px;
  }

  .banner-shape-icon {
    font-size: 90px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
  }

  .page-banner-title {
    font-size: 28px;
    letter-spacing: 1.5px;
  }

  .page-banner-badge {
    font-size: 10px;
    padding: 5px 14px;
  }

  .page-banner-breadcrumb {
    font-size: 11px;
    padding: 8px 18px;
    gap: 8px;
  }

  .banner-shape-1 {
    width: 130px;
    height: 130px;
  }

  .banner-shape-2 {
    width: 80px;
    height: 80px;
  }

  .banner-shape-3,
  .banner-shape-4 {
    width: 50px;
    height: 50px;
  }

  .banner-shape-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: 200px;
  }

  .page-banner-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .breadcrumb-separator {
    margin: 0 4px;
  }
}
