/* ========================================
   HERO BANNER
   ======================================== */

.bwc-hero-banner {
  position: relative;
  max-width: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.entry-content .bwc-hero-banner,
.is-layout-constrained .bwc-hero-banner,
.wp-block-post-content .bwc-hero-banner {
  width: 100vw;
}

.bwc-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.bwc-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px;
  display: flex;
  align-items: center;
}

.bwc-hero-position-left .bwc-hero-content {
  justify-content: flex-start;
}

.bwc-hero-position-center .bwc-hero-content {
  justify-content: center;
}

.bwc-hero-position-center .bwc-hero-inner {
  text-align: center;
}

.bwc-hero-position-right .bwc-hero-content {
  justify-content: flex-end;
}

.bwc-hero-inner {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 550px;
  text-align: left;
}

.bwc-hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  font-family: inherit;
  color: inherit;
}

.bwc-hero-title:not(:last-child) {
  margin-bottom: 16px;
}

.bwc-hero-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin: 0;
  line-height: 1.6;
  color: inherit;
}

/* Support pour le texte enrichi */
.bwc-hero-text p {
  margin: 0 0 12px 0;
}

.bwc-hero-text p:last-child {
  margin-bottom: 0;
}

.bwc-hero-text strong,
.bwc-hero-text b {
  font-weight: 700;
}

.bwc-hero-text em,
.bwc-hero-text i {
  font-style: italic;
}

.bwc-hero-text ul,
.bwc-hero-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.bwc-hero-text li {
  margin-bottom: 6px;
}

.bwc-hero-text a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.bwc-hero-text a:hover {
  opacity: 0.8;
}

.bwc-hero-text:not(:last-child) {
  margin-bottom: 24px;
}

.bwc-hero-cta {
  display: inline-block;
  margin: 0;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.bwc-hero-cta:hover {
  transform: translateY(-3px);
}

/* ========================================
   POPUP PROMOTIONNELLE
   ======================================== */

.bwc-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bwcFadeIn 0.3s ease;
}

@keyframes bwcFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bwc-popup-container {
  position: relative;
  background: #fff;
  max-width: 600px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: bwcSlideUp 0.4s ease;
}

@keyframes bwcSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bwc-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.bwc-popup-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.bwc-popup-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.bwc-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bwc-popup-body {
  padding: 40px;
}

.bwc-popup-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  font-family: inherit;
}

.bwc-popup-title:not(:last-child) {
  margin-bottom: 20px;
}

.bwc-popup-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.bwc-popup-text:not(:last-child) {
  margin-bottom: 30px;
}

.bwc-popup-text p {
  margin: 0 0 15px;
}

.bwc-popup-cta {
  display: inline-block;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.bwc-popup-cta:hover {
  transform: translateY(-2px);
}

/* ========================================
   BANDEAU FIXE
   ======================================== */

.bwc-fixed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: bwcSlideUp 0.5s ease;
  transition: transform 0.3s ease;
}

.bwc-fixed-banner.hidden {
  transform: translateY(100%);
}

.bwc-fixed-banner-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding-right: 50px;
}

.bwc-fixed-banner-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.bwc-fixed-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: all 0.2s ease;
  line-height: 1;
}

.bwc-fixed-banner-close:hover {
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 968px) {
  .bwc-hero-content {
    padding: 40px 30px;
  }

  .bwc-hero-inner {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .bwc-hero-banner {
    background-attachment: scroll;
    align-items: center;
    justify-content: center;
  }

  .bwc-hero-content {
    padding: 30px 20px;
  }

  .bwc-hero-inner {
    padding: 30px 25px;
  }

  .bwc-hero-title {
    font-size: 1.75rem;
  }

  .bwc-hero-text {
    font-size: 0.95rem;
  }

  .bwc-hero-position-left .bwc-hero-content,
  .bwc-hero-position-right .bwc-hero-content {
    justify-content: center;
  }

  .bwc-hero-position-left .bwc-hero-inner,
  .bwc-hero-position-right .bwc-hero-inner {
    text-align: center;
  }

  .bwc-popup-body {
    padding: 30px 20px;
  }

  .bwc-popup-title {
    font-size: 1.5rem;
  }

  .bwc-popup-text {
    font-size: 1rem;
  }

  .bwc-fixed-banner-content {
    gap: 10px;
    text-align: center;
    padding-right: 40px;
  }

  .bwc-fixed-banner-text {
    font-size: 0.95rem;
    flex: 1 1 100%;
  }

  .bwc-fixed-banner-cta {
    color: var(--theme-palette-color-8);
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .bwc-fixed-banner-close {
    right: 5px;
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media screen and (max-width: 480px) {
  .bwc-hero-inner {
    padding: 30px 15px;
  }

  .bwc-popup-container {
    margin: 10px;
  }

  .bwc-popup-image {
    height: 200px;
  }
}
