/* ============================================================
   USCOV — Styles personnalisés (complément de Tailwind)
   ============================================================ */

:root {
  --uscov-black: #1a1a1a;
  --uscov-gray: #4d4d4d;
  --uscov-bordeaux: #8b0000;
  --uscov-red: #c8102e;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--uscov-black);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Anton", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200, 16, 46, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 0, 0, 0.22), transparent 60%),
    linear-gradient(180deg, #141414 0%, #1a1a1a 100%);
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.text-stroke {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
  color: transparent;
}

/* ---------- Nav ---------- */
.nav-blur {
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--uscov-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cartes ---------- */
.card-glow {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(200, 16, 46, 0.18);
  border-color: rgba(200, 16, 46, 0.55);
}

/* ---------- Formulaires ---------- */
.field {
  width: 100%;
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder {
  color: #7a7a7a;
}
.field:focus {
  outline: none;
  border-color: var(--uscov-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.22);
}
.field.input-error {
  border-color: var(--uscov-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25);
}
input[type="date"].field {
  color-scheme: dark;
}

/* ---------- Choix de paiement (radio cards) ---------- */
.pay-option input {
  position: absolute;
  opacity: 0;
}
.pay-option .pay-card {
  border: 2px solid #3a3a3a;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  height: 100%;
}
.pay-option:hover .pay-card {
  border-color: #5a5a5a;
}
.pay-option input:checked + .pay-card {
  border-color: var(--uscov-red);
  background: rgba(200, 16, 46, 0.08);
}
.pay-option input:focus-visible + .pay-card {
  outline: 2px solid var(--uscov-red);
  outline-offset: 2px;
}
.pay-option input:checked + .pay-card .pay-dot {
  background: var(--uscov-red);
  border-color: var(--uscov-red);
  box-shadow: inset 0 0 0 3px #1a1a1a;
}
.pay-dot {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid #5a5a5a;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* ---------- Gate compétiteur ---------- */
.gate-out {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gate-in {
  animation: gateIn 0.5s ease both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.4em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Divers ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ---------- Consentements ---------- */
.consent-box {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
  border: 2px solid #5a5a5a;
  border-radius: 6px;
  background: #232323;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.consent-box:checked {
  background: var(--uscov-red);
  border-color: var(--uscov-red);
}
.consent-box:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.consent-box:focus-visible {
  outline: 2px solid var(--uscov-red);
  outline-offset: 2px;
}

/* ---------- Pot de miel anti-spam (invisible) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Liens de navigation sur une seule ligne (desktop) */
#nav-menu a { white-space: nowrap; }
