@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(220, 30, 80, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(220, 30, 80, 0.9));
  }
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  color: white;
  text-align: center;
  transition: background 0.6s ease;
  /* centrage vertical desktop */
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: fadeSlideIn 0.5s ease both;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 auto 10px;
  width: fit-content;
}

.logo img {
  height: 2.2em;
  object-fit: contain;
  animation: logoPulse 3s ease-in-out infinite;
}

.slogan {
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #e0e0e0;
  letter-spacing: 0.3px;
}

.subtext {
  margin: 22px 0 12px;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.choice {
  background-color: #1a1a1a;
  border-radius: 14px;
  padding: 22px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease;
  border-radius: inherit;
}

.choice:hover::after {
  background: rgba(255, 255, 255, 0.05);
}

.choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.choice.selected {
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(255, 255, 255, 0.15);
}

.choice.tous {
  background: linear-gradient(145deg, #2c2c2c, #111);
}

.choice.femme {
  background: linear-gradient(145deg, #6b0d22, #3d0812);
}

.choice.homme {
  background: linear-gradient(145deg, #0c2e52, #051a2d);
}

.choice.autres {
  background: linear-gradient(145deg, #38134e, #1e0a2b);
}

.choice-icon {
  font-size: 32px;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.choice:hover .choice-icon {
  transform: scale(1.15);
}

.choice-text {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remember-me {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.remember-me input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.remember-me label {
  cursor: pointer;
  line-height: 1.5;
}

.age-btn {
  background: linear-gradient(135deg, #2dac4a, #1a8035);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(45, 172, 74, 0.35);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 360px;
  letter-spacing: 0.4px;
}

.age-btn:hover {
  background: linear-gradient(135deg, #33c456, #2dac4a);
  box-shadow: 0 10px 26px rgba(45, 172, 74, 0.55);
  transform: translateY(-2px);
}

.age-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(45, 172, 74, 0.3);
}

.exit-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  margin-bottom: 15px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.exit-link:hover {
  color: #ccc;
  text-decoration: underline;
}

.warning-section {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #333;
}

.warning-title {
  font-size: 13px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.warning-text {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  max-width: 500px;
  margin: 0 auto;
}

/* Backgrounds dynamiques */
body.tous-bg,
body {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a0e 100%);
}

body.femme-bg {
  background: linear-gradient(160deg, #1a0005 0%, #3b0712 60%, #1a0a0e 100%);
}

body.homme-bg {
  background: linear-gradient(160deg, #00091a 0%, #051a30 60%, #0a0a14 100%);
}

body.autres-bg {
  background: linear-gradient(160deg, #0d0018 0%, #1e0833 60%, #0a0a12 100%);
}

/* Date de naissance */
.dob-section {
  margin: 22px 0 14px;
}

.dob-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.dob-inputs {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.dob-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.dob-field label {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dob-field:focus-within label {
  color: #fff;
}

/* Select2 dark theme */
.dob-field .select2-container {
  width: 100% !important;
}

.dob-field .select2-container--default .select2-selection--single {
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  border-radius: 0;
  height: 36px;
  transition: border-color 0.2s ease;
}

.dob-field
  .select2-container--default.select2-container--open
  .select2-selection--single,
.dob-field
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-bottom-color: #fff;
  outline: none;
}

.dob-field
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #fff;
  line-height: 34px;
  padding-left: 0;
  font-size: 16px;
  font-weight: 500;
}

.dob-field
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #555;
}

.dob-field
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 34px;
  right: 0;
}

.dob-field
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #555 transparent transparent transparent;
}

.dob-field
  .select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #fff transparent;
}

/* Dropdown */
.select2-dropdown {
  background: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.select2-results__option {
  color: #ccc !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: background 0.15s ease;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-weight: 600;
}

.dob-error {
  margin-top: 12px;
  font-size: 13px;
  color: #e63946;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 576px) {
  body {
    align-items: flex-start;
  }

  .container {
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 20px 16px;
  }

  .choices {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice {
    min-height: 100px;
    padding: 14px 8px;
  }

  .choice-icon {
    font-size: 28px;
  }

  .choice-text {
    font-size: 11px;
  }

  .logo {
    font-size: 24px;
  }

  .slogan {
    font-size: 13px;
  }

  .dob-inputs {
    gap: 8px;
  }

  .dob-select {
    font-size: 15px;
  }
}
