/**
 * Styles pour le banner d'information cookies/localStorage
 */

.cookies-info-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  /* 🔧 Gradient avec fallback Android */
  background: #1a202a; /* Fallback solide */
  background: -webkit-linear-gradient(135deg, #1a202a 0%, #2d3748 100%);
  background: -moz-linear-gradient(135deg, #1a202a 0%, #2d3748 100%);
  background: -o-linear-gradient(135deg, #1a202a 0%, #2d3748 100%);
  background: linear-gradient(135deg, #1a202a 0%, #2d3748 100%);

  border-top: 2px solid rgba(102, 126, 234, 0.5);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  z-index: 999998;
  padding: 24px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookies-info-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookies-info-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
}

.cookies-info-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cookies-info-icon {
  font-size: 48px;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cookies-info-text {
  flex: 1;
}

.cookies-info-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #e2e8f0;
}

.cookies-info-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e0;
  margin: 0 0 12px 0;
}

.cookies-details {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  list-style: none;
  user-select: none;
}

.cookies-details summary::-webkit-details-marker {
  display: none;
}

.cookies-details summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s ease;
}

.cookies-details[open] summary::before {
  transform: rotate(90deg);
}

.cookies-details summary:hover {
  color: #764ba2;
}

.cookies-details ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  list-style: disc;
}

.cookies-details li {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e0;
  margin-bottom: 8px;
}

.cookies-note {
  font-size: 12px !important;
  color: #a0aec0 !important;
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-info-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cookies-info-actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookies-info-actions .btn-primary {
  /* 🔧 Gradient avec fallback Android */
  background: #667eea; /* Fallback solide */
  background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: -o-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cookies-info-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cookies-info-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookies-info-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .cookies-info-banner {
    padding: 16px;
  }

  .cookies-info-content {
    flex-direction: column;
    gap: 16px;
  }

  .cookies-info-icon {
    font-size: 36px;
    align-self: center;
  }

  .cookies-info-text h3 {
    font-size: 16px;
    text-align: center;
  }

  .cookies-info-actions {
    width: 100%;
  }

  .cookies-info-actions .btn {
    width: 100%;
  }
}

/* ❌ MODE CLAIR DÉSACTIVÉ pour éviter les problèmes Android
 * Le mode sombre sera TOUJOURS utilisé pour garantir une apparence cohérente
 * sur tous les appareils (iOS, Android, Desktop)
 */
/*
@media (prefers-color-scheme: light) {
  .cookies-info-banner {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-top-color: rgba(102, 126, 234, 0.3);
  }

  .cookies-info-text h3,
  .cookies-info-text p,
  .cookies-details li {
    color: #1a202c;
  }

  .cookies-details {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .cookies-note {
    color: #4a5568 !important;
  }
}
*/

/* 🔒 FORCER le mode sombre sur TOUS les appareils */
.cookies-info-banner {
  background: linear-gradient(135deg, #1a202a 0%, #2d3748 100%) !important;
  border-top: 2px solid rgba(102, 126, 234, 0.5) !important;
}

.cookies-info-text h3 {
  color: #e2e8f0 !important;
}

.cookies-info-text p {
  color: #cbd5e0 !important;
}

.cookies-details li {
  color: #cbd5e0 !important;
}
