/* ====================================
   AGE GATE SYSTEM STYLES - MINIMAL DESIGN
   Système de vérification d'âge - Design épuré
   ==================================== */

/* Overlay principal */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

/* Empêcher le scroll du body */
body.age-gate-open {
  overflow: hidden;
}

/* Modal principale */
.age-gate-modal {
  background: #ffffff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.age-gate-modal.show {
  transform: translateY(0);
  opacity: 1;
}

/* Contenu de la modal */
.age-gate-content {
  padding: 60px 30px;
  text-align: center;
}
.age-gate-content i {
  color: #545ca4;
}

/* Logo et titre */
.age-gate-logo {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 30px;
}

.age-gate-logo h2 {
  font-size: 32px;
  color: var(--blue);
  margin: 0 0 10px 0;
  font-weight: 300;
  letter-spacing: 4px;
  font-family: 'Georgia', serif;
}

.age-gate-subtitle {
  font-size: 18px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Texte explicatif */
.age-gate-text {
  margin-bottom: 40px;
}

.age-gate-text p {
  color: #333333;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.2;
  /* margin: 8px 0; */
  font-weight: 300;
}

/* Formulaire */
.age-gate-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 300;
  color: var(--blue);
  margin-bottom: 15px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.form-group input[type='number'] {
  width: 200px;
  margin: 0 auto;
  display: block;
  padding: 20px 0;
  border: none;
  border-bottom: 1px solid #cccccc;
  font-size: 24px;
  background: transparent;
  text-align: center;
  font-weight: 300;
  color: var(--blue);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input[type='number']:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

.form-group input[type='number'].invalid {
  border-bottom-color: #cc0000;
  color: #cc0000;
}

.form-group input[type='number']::placeholder {
  color: #cccccc;
  font-weight: 300;
}

/* Checkbox personnalisé */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #666666;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkbox-group input[type='checkbox'] {
  display: none;
}

.checkmark {
  width: 16px !important;
  height: 16px;
  border: 1px solid #cccccc;
  margin-right: 15px;
  position: relative;
  transition: all 0.3s ease;
}
.checkbox-group label {
  display: flex;
  justify-content: center !important;
  align-items: center;
}
.checkbox-group input[type='checkbox']:checked + .checkmark {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-group input[type='checkbox']:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 6px;
  border: solid #ffffff;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Boutons */
.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 40px;
}

.form-buttons button {
  flex: 1;
  padding: 18px 30px;
  border: 1px solid var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
}

.btn-verify {
  background: var(--blue);
  color: #ffffff;
}

.btn-verify:hover:not(:disabled) {
  background: #333333;
  color: #ffffff;
}

.btn-verify:disabled {
  background: #cccccc;
  border-color: #cccccc;
  color: #ffffff;
  cursor: not-allowed;
}

.btn-exit {
  background: transparent;
  color: var(--blue);
}

.btn-exit:hover {
  background: var(--blue);
  color: #ffffff;
}

/* Footer */
.age-gate-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eeeeee;
}

.age-gate-footer small {
  color: #999999;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* Messages */
.age-gate-message {
  display: none;
  padding: 20px 0;
  margin-top: 30px;
  font-weight: 300;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.age-gate-message.success {
  color: var(--blue);
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.age-gate-message.error {
  color: #cc0000;
  border-top: 1px solid #cc0000;
  border-bottom: 1px solid #cc0000;
}

.age-gate-message.info {
  color: #666666;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
}

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

/* Responsive */
@media (max-width: 768px) {
  .age-gate-content {
    padding: 50px 30px;
  }

  .age-gate-logo h2 {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .form-group input[type='number'] {
    width: 180px;
    font-size: 20px;
    padding: 15px 0;
  }

  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .age-gate-modal {
    margin: 20px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .age-gate-content {
    padding: 40px 20px;
  }

  .age-gate-logo h2 {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .age-gate-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .age-gate-text p {
    font-size: 14px;
  }

  .form-group input[type='number'] {
    width: 150px;
    font-size: 18px;
  }

  .form-buttons button {
    font-size: 11px;
    padding: 15px 20px;
  }
}

/* Styles pour les inputs number (enlever les flèches) */
.form-group input[type='number']::-webkit-outer-spin-button,
.form-group input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-group input[type='number'] {
  -moz-appearance: textfield;
}

/* Messages de restriction d'âge (shortcode) */
.age-restriction-message {
  background: #f8f8f8;
  border: 1px solid #dddddd;
  color: #666666;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Version sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  .age-gate-modal {
    background: #ffffff;
  }

  /* Forcer le thème clair pour maintenir l'élégance */
  .age-gate-modal * {
    color: inherit;
  }
}
