/**
 * Styles pour le banner de consentement RGPD
 */

.rgpd-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 22, 29, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.rgpd-consent-overlay.visible {
  opacity: 1;
}

.rgpd-consent-modal {
  /* 🔧 Support multi-navigateurs pour dégradés (Android fix) */
  background: #1a202a; /* Fallback pour navigateurs sans support gradient */
  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-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  animation: slideUp 0.4s ease;

  /* 🔧 Forcer couleur du texte sur Android */
  color: #e2e8f0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rgpd-consent-header {
  text-align: center;
  margin-bottom: 30px;
}

.rgpd-consent-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.rgpd-consent-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;

  /* 🔧 Gradient de texte avec fallback Android */
  color: #667eea; /* Fallback si gradient ne fonctionne pas */
  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%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;

  /* 🔧 Améliorer la lisibilité sur Android si gradient fail */
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.rgpd-consent-subtitle {
  font-size: 16px;
  color: #a0aec0;
  margin: 0;
}

.rgpd-consent-body {
  margin-bottom: 30px;
}

.rgpd-consent-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.rgpd-consent-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rgpd-consent-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e0;
  margin: 0 0 12px 0;
}

.rgpd-consent-section ul {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.rgpd-consent-section li {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e0;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.rgpd-consent-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  background: #667eea;
  border-radius: 50%;
}

.rgpd-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
  margin-bottom: 12px;
}

.rgpd-consent-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rgpd-consent-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
  flex-shrink: 0;
}

.rgpd-consent-checkbox span {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.rgpd-consent-checkbox a {
  color: #667eea;
  text-decoration: underline;
  font-weight: 600;
}

.rgpd-consent-checkbox a:hover {
  color: #764ba2;
}

.rgpd-consent-info {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.rgpd-consent-info p {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e0;
  margin: 0;
}

.rgpd-consent-footer {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.rgpd-consent-footer .btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-large {
  min-height: 56px;
}

.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 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #4a5568;
  box-shadow: none;
}

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

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

.rgpd-consent-footer-note {
  text-align: center;
}

.rgpd-consent-footer-note p {
  font-size: 12px;
  color: #718096;
  margin: 0;
}

/* Message de blocage */
.rgpd-consent-blocked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 22, 29, 0.98);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rgpd-consent-blocked .rgpd-consent-modal {
  text-align: center;
}

.rgpd-consent-blocked h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.rgpd-consent-blocked p {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e0;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .rgpd-consent-modal {
    padding: 24px;
    border-radius: 16px;
  }

  .rgpd-consent-header h2 {
    font-size: 24px;
  }

  .rgpd-consent-section {
    padding: 16px;
  }

  .rgpd-consent-footer {
    flex-direction: column;
  }

  .rgpd-consent-footer .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) {
  .rgpd-consent-overlay {
    background: rgba(255, 255, 255, 0.95);
  }

  .rgpd-consent-modal {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #1a202c;
  }

  .rgpd-consent-header h2 {
    color: #1a202c;
  }

  .rgpd-consent-subtitle,
  .rgpd-consent-section p,
  .rgpd-consent-section li,
  .rgpd-consent-checkbox span {
    color: #2d3748;
  }

  .rgpd-consent-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
  }
}
*/

/* 🔒 FORCER le mode sombre sur TOUS les appareils */
.rgpd-consent-overlay {
  background: rgba(18, 22, 29, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.rgpd-consent-modal {
  background: linear-gradient(135deg, #1a202a 0%, #2d3748 100%) !important;
  color: #e2e8f0 !important;
}
