/* =========================================================
   RUBANS LUMIÈRE NOIRE
   Version améliorée, plus dynamique et mieux isolée
   ========================================================= */

/* -----------------------------------------
   Variables locales
----------------------------------------- */
.lnoire-purchase-section,
.lnoire-banner-section {
  --lnoire-coral: #FF6B5B;
  --lnoire-coral-dark: #E85A4A;
  --lnoire-coral-soft: #FF8A7B;
  --lnoire-turquoise: #1DD9D2;
  --lnoire-turquoise-dark: #0D9B8B;
  --lnoire-turquoise-mid: #17B8A8;
  --lnoire-white: #FFFFFF;
  --lnoire-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --lnoire-radius: 10px;
  --lnoire-transition: 0.35s ease;
  --lnoire-title-font: inherit;
}

/* -----------------------------------------
   Protection contre le thème global
----------------------------------------- */
.lnoire-purchase-section *,
.lnoire-banner-section * {
  box-sizing: border-box;
}

.lnoire-purchase-section h1,
.lnoire-purchase-section h2,
.lnoire-purchase-section h3,
.lnoire-purchase-section h4,
.lnoire-purchase-section h5,
.lnoire-purchase-section h6,
.lnoire-banner-section h1,
.lnoire-banner-section h2,
.lnoire-banner-section h3,
.lnoire-banner-section h4,
.lnoire-banner-section h5,
.lnoire-banner-section h6 {
  margin: 0;
  padding: 0;
  font-family: var(--lnoire-title-font);
  font-style: normal;
  font-weight: 300;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.4px;
  border: none;
  background:transparent;
}

.lnoire-purchase-section a,
.lnoire-banner-section a {
  font-family: inherit;
  text-decoration: none;
}

.lnoire-purchase-section button,
.lnoire-banner-section button {
  font: inherit;
}

/* -----------------------------------------
   Apparition dynamique
   Astuce : ajouter la classe .is-visible via JS
   ou laisser l’animation tourner au chargement
----------------------------------------- */
@keyframes lnoireReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.005);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes lnoireGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(29, 217, 210, 0.00);
  }
  50% {
    box-shadow: 0 0 35px 0 rgba(29, 217, 210, 0.18);
  }
}

@keyframes lnoireFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* =========================================================
   MODULE ACHAT
   ========================================================= */
.lnoire-purchase-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10) 0, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 85% 75%, rgba(29,217,210,0.16) 0, rgba(29,217,210,0) 28%),
    linear-gradient(135deg, var(--lnoire-coral) 0%, var(--lnoire-coral-soft) 100%);
  padding: 34px 20px;
  width: 100%;
  overflow: hidden;
  animation: lnoireReveal 0.8s cubic-bezier(.2,.8,.2,1), lnoireGlowPulse 2.5s ease-in-out 0.8s 1;
  border-radius: 8px;
}

.lnoire-purchase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 35%),
    linear-gradient(300deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
  z-index: 0;
}

.lnoire-purchase-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.lnoire-purchase-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.lnoire-purchase-content {
  flex: 1;
  min-width: 280px;
  animation: lnoireReveal 0.75s cubic-bezier(.2,.8,.2,1);
}

.lnoire-purchase-title {
  margin: 0 !important;
  font-size: 30px;
  font-weight: 300 !important;
  color: var(--lnoire-white) !important;
  letter-spacing: 0.4px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.lnoire-purchase-cta {
  flex-shrink: 0;
  min-width: auto;
  animation: lnoireReveal 0.85s cubic-bezier(.2,.8,.2,1);
}

.lnoire-purchase-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 16px 45px;
  background:
    linear-gradient(135deg, var(--lnoire-coral) 0%, var(--lnoire-coral-dark) 100%);
  color: var(--lnoire-white) !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700 !important;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18) !important;
  cursor: pointer;
  transition:
    transform var(--lnoire-transition),
    box-shadow var(--lnoire-transition),
    background var(--lnoire-transition),
    border-color var(--lnoire-transition);
  position: relative;
  border-radius: 999px;
  box-shadow:
    0 0 0 3px rgba(29, 217, 210, 0.85),
    0 10px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  white-space: nowrap;
}

.lnoire-purchase-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.lnoire-purchase-btn:hover {
  background: linear-gradient(135deg, var(--lnoire-coral-dark) 0%, #D94E40 100%);
  box-shadow:
    0 0 0 3px rgba(29, 217, 210, 1),
    0 0 26px rgba(29, 217, 210, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px) scale(1.02);
}

.lnoire-purchase-btn:hover::before {
  left: 135%;
}

.lnoire-purchase-btn:active {
  transform: translateY(0) scale(0.99);
}

/* =========================================================
   MODULE BANDEAU 2
   ========================================================= */
.lnoire-banner-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29, 217, 210, 0.88) 0%, rgba(23, 184, 168, 0.9) 50%, rgba(13, 155, 139, 0.92) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="city" x="0" y="0" width="400" height="600" patternUnits="userSpaceOnUse"><rect x="10" y="200" width="30" height="400" fill="rgba(0,0,0,0.15)"/><rect x="50" y="150" width="25" height="450" fill="rgba(0,0,0,0.10)"/><rect x="85" y="180" width="35" height="420" fill="rgba(0,0,0,0.12)"/><rect x="130" y="220" width="28" height="380" fill="rgba(0,0,0,0.14)"/><rect x="170" y="160" width="32" height="440" fill="rgba(0,0,0,0.11)"/><rect x="220" y="200" width="26" height="400" fill="rgba(0,0,0,0.13)"/><rect x="260" y="140" width="30" height="460" fill="rgba(0,0,0,0.15)"/><rect x="300" y="190" width="28" height="410" fill="rgba(0,0,0,0.12)"/><circle cx="120" cy="100" r="8" fill="rgba(255,255,255,0.3)"/><circle cx="200" cy="80" r="6" fill="rgba(255,255,255,0.25)"/><circle cx="280" cy="120" r="7" fill="rgba(255,255,255,0.28)"/></pattern></defs><rect width="1200" height="600" fill="url(%23city)"/></svg>');
  background-size: cover;
  background-position: center;
  animation: lnoireReveal 0.95s cubic-bezier(.2,.8,.2,1);
  max-width:1200px;
  border-radisu:8px;
}

.lnoire-banner-section::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 22%),
    radial-gradient(circle at 80% 65%, rgba(255,255,255,0.08), transparent 24%);
  animation: lnoireFloat 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.lnoire-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 217, 210, 0.35) 0%, rgba(23, 184, 168, 0.42) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  z-index: 1;
}

.lnoire-banner-container {
  max-width: 920px;
  width: 100%;
  text-align: center;
}

.lnoire-banner-title {
  margin: 0 0 34px 0 !important;
  font-size: 44px;
  font-weight: 300 !important;
  color: var(--lnoire-white) !important;
  letter-spacing: 0.6px !important;
  line-height: 1.3 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  animation: lnoireReveal 0.8s cubic-bezier(.2,.8,.2,1);
}

.lnoire-banner-cta {
  display: flex;
  justify-content: center;
}

.lnoire-banner-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 42px;
  background: rgba(13, 155, 139, 0.82);
  color: var(--lnoire-white) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  cursor: pointer;
  transition:
    transform var(--lnoire-transition),
    box-shadow var(--lnoire-transition),
    border-color var(--lnoire-transition),
    background var(--lnoire-transition);
  position: relative;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  overflow: hidden;
  animation: lnoireReveal 0.95s cubic-bezier(.2,.8,.2,1);
}

.lnoire-banner-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}

.lnoire-banner-btn:hover {
  background: rgba(13, 155, 139, 0.98);
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    0 0 30px rgba(29, 217, 210, 0.35),
    0 14px 30px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px) scale(1.02);
}

.lnoire-banner-btn:hover::before {
  left: 140%;
}

.lnoire-banner-btn:active {
  transform: translateY(0) scale(0.99);
}

/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */
@media (max-width: 768px) {
  .lnoire-purchase-section {
    padding: 26px 15px;
  }

  .lnoire-purchase-wrapper {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .lnoire-purchase-content {
    width: 100%;
  }

  .lnoire-purchase-title {
    font-size: 24px;
  }

  .lnoire-purchase-cta {
    width: 100%;
  }

  .lnoire-purchase-btn {
    display: flex !important;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .lnoire-banner-section {
    min-height: 330px;
    background-attachment: scroll;
  }

  .lnoire-banner-overlay {
    padding: 30px 15px;
  }

  .lnoire-banner-title {
    font-size: 30px;
    margin-bottom: 28px !important;
    letter-spacing: 0.4px !important;
  }

  .lnoire-banner-btn {
    padding: 14px 35px;
    font-size: 13px;
  }
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 480px) {
  .lnoire-purchase-section {
    padding: 22px 12px;
  }

  .lnoire-purchase-wrapper {
    gap: 15px;
  }

  .lnoire-purchase-title {
    font-size: 20px;
    font-weight: 400 !important;
  }

  .lnoire-purchase-btn {
    padding: 14px 28px;
    font-size: 14px;
    letter-spacing: 0.5px;
    max-width: 100%;
  }

  .lnoire-banner-section {
    min-height: 290px;
  }

  .lnoire-banner-overlay {
    padding: 24px 12px;
  }

  .lnoire-banner-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .lnoire-banner-title {
    font-size: 21px;
    margin: 0 !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
  }

  .lnoire-banner-btn {
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.8px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* =========================================================
   ACCESSIBILITÉ : réduit les animations si besoin
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .lnoire-purchase-section,
  .lnoire-banner-section,
  .lnoire-purchase-content,
  .lnoire-purchase-cta,
  .lnoire-banner-title,
  .lnoire-banner-btn,
  .lnoire-banner-section::before {
    animation: none !important;
    transition: none !important;
  }

  .lnoire-purchase-btn:hover,
  .lnoire-banner-btn:hover {
    transform: none !important;
  }
}