/* ============================================
   APPSM - BANDEAU COOKIES
   Fichier: css/cookies.css
============================================ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9998;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(74, 30, 92, 0.3);
  border: 2px solid var(--orange);
  transform: translateY(200%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cookie-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 100%);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.4);
  animation: cookiePulse 2s ease-in-out infinite;
}

@keyframes cookiePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-text h4 {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px 0;
}

.cookie-banner-text p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.4);
}

.cookie-btn-accept:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(232, 103, 42, 0.5);
}

.cookie-btn-refuse {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}

.cookie-btn-refuse:hover {
  background: var(--gray-200);
  color: var(--navy);
  border-color: var(--gray-400);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .cookie-banner-content {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 150px;
    padding: 10px 15px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text h4 {
    font-size: 15px;
  }

  .cookie-banner-text p {
    font-size: 12.5px;
  }
}
