/* ============================================================================
   RGPD - Modale de Politique de Confidentialité & Checkbox
   ============================================================================ */

/* Lien "En savoir plus" */
#rgpdModalTrigger {
  color: #5eeef5 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

#rgpdModalTrigger:hover {
  color: #7ff4f9 !important;
  border-bottom: 1px solid #5eeef5;
  text-shadow: 0 0 10px rgba(0, 217, 225, 0.5);
}

#rgpdModalTrigger:active {
  transform: scale(0.98);
}

/* Checkbox RGPD personnalisée */
#consent_rgpd {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  border: 2px solid rgba(0, 142, 150, 0.5);
  border-radius: 4px;
  background: rgba(26, 27, 55, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0;
  margin-top: 2px;
  padding: 0;
  display: block;
}

#consent_rgpd:hover {
  border-color: #5eeef5;
  background: rgba(0, 142, 150, 0.15);
}

#consent_rgpd:checked {
  border: 2.5px solid rgba(0, 142, 150, 0.4);
  border-color: #5eeef5;
}

#consent_rgpd:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 3px;
  height: 6px;
  border: solid var(--text-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#consent_rgpd:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 217, 225, 0.2);
}

/* ============================================================================
   Modale RGPD
   ============================================================================ */

/* Overlay de la modale */
.rgpd-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
}

.rgpd-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* Contenu de la modale */
.rgpd-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1b37 0%, #15172f 100%);
  border: 2px solid rgba(0, 142, 150, 0.4);
  border-radius: 24px 0 0 24px;
  padding: 2.5rem;
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 217, 225, 0.1);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.rgpd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(0, 142, 150, 0.2);
}

.rgpd-modal-header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #5eeef5;
  text-shadow: 0 0 20px rgba(0, 217, 225, 0.3);
}

/* Bouton de fermeture */
.rgpd-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  padding: 0;
  background: rgba(0, 142, 150, 0.1);
  border: 2px solid rgba(0, 142, 150, 0.3);
  border-radius: 50%;
  color: #c5c7d4;  /* WCAG AA: ratio 8.5:1 */
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rgpd-modal-close:hover {
  color: #5eeef5;
  background: rgba(0, 142, 150, 0.2);
  border-color: #5eeef5;
  transform: rotate(90deg);
  box-shadow: 0 0 20px rgba(0, 217, 225, 0.3);
}

.rgpd-modal-close:active {
  transform: rotate(90deg) scale(1);
}

/* Corps de la modale */
.rgpd-modal-body {
  color: #c5c7d4;  /* WCAG AA: ratio 8.5:1 */
  font-size: 0.95rem;
  line-height: 1.8;
}

.rgpd-modal-body h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #5eeef5;
}

.rgpd-modal-body h4:first-child {
  margin-top: 0;
}

.rgpd-modal-body p {
  margin-bottom: 1.2rem;
}

.rgpd-modal-body ul {
  margin-left: 1.8rem;
  margin-bottom: 1.2rem;
}

.rgpd-modal-body li {
  margin-bottom: 0.6rem;
}

.rgpd-modal-body strong {
  color: #e8e9f3;
  font-weight: 600;
}

/* Barre de défilement personnalisée */
.rgpd-modal-content::-webkit-scrollbar {
  width: 12px;
}

.rgpd-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin: 8px 0;
}

.rgpd-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(0, 217, 225, 0.6) 0%,
    rgba(0, 142, 150, 0.6) 100%
  );
  border-radius: 10px;
  border: 2px solid rgba(26, 27, 55, 0.8);
  transition: all 0.3s ease;
}

.rgpd-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 217, 225, 0.9) 0%,
    rgba(0, 142, 150, 0.9) 100%
  );
  border-color: rgba(26, 27, 55, 0.6);
  box-shadow: 0 0 10px rgba(0, 217, 225, 0.4);
}

.rgpd-modal-content::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #5eeef5 0%, #008e96 100%);
}

/* Scrollbar pour Firefox */
.rgpd-modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 225, 0.6) rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================================
   Formulaire RGPD - Styles déplacés depuis index.php
   ============================================================================ */

/* Champ honeypot anti-spam (caché) */
.honeypot-field {
  display: none;
}

/* Label du checkbox RGPD */
.rgpd-checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}

/* Texte du consentement RGPD */
.rgpd-consent-text {
  font-size: 0.85rem;
  color: #c5c7d4;  /* WCAG AA: ratio 8.5:1 */
  line-height: 1.6;
  flex: 1;
  padding-top: 0;
}
