@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap");

:root {
  --yellow: #f5c400;
  --headerTint: rgba(18, 16, 24, 0.92); /* header différent du fond */
  --headerBorder: rgba(255, 255, 255, 0.1);

  --text: #ffffff;
  --textSoft: rgba(255, 255, 255, 0.85);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: #000;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--headerTint), rgba(0, 0, 0, 0.55));
  border-bottom: 1px solid var(--headerBorder);
  backdrop-filter: blur(6px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand strong {
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

/* ================= COMMON BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 12px 30px rgba(245, 196, 0, 0.18);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ================= HERO (INDEX) ================= */
.hero {
  min-height: 100vh;
  background-image: url("../img/hero.png");
  background-size: cover; /* ✅ fond visible partout */
  background-position: center; /* ajuste si besoin */
  background-repeat: no-repeat;

  display: flex;
  align-items: center;

  /* espace pour le header fixed */
  padding-top: 92px;
  padding-bottom: 40px;
}

/* un voile TRES léger uniquement pour lisibilité (pas un overlay noir) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

.hero {
  position: relative;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Layout : texte à gauche, carte info à droite (desktop) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: center;
}

/* texte */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--yellow);
}

.hero-title {
  margin: 0 0 14px;
  font-size: 60px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
}
.hero-meta {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  line-height: 1.6;
  font-size: 14px;
}

/* liste programme en style affiche */
.program {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.program li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.program li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

/* zone CTA + heure, bien rangée */
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.badge.yellow {
  background: rgba(245, 196, 0, 0.95);
  border-color: rgba(245, 196, 0, 0.35);
  color: #111;
}

/* logos sponsors sous CTA */
.sponsors {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.sponsors img {
  height: 50px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* carte info à droite */
.info-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 440px;
  justify-self: end;
}
.info-card h3 {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  line-height: 1.6;
}

/* ================= REGISTER PAGE ================= */
.page {
  min-height: 100vh;
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  display: flex;
  align-items: center;

  padding-top: 92px;
  padding-bottom: 40px;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.page > .container {
  position: relative;
  z-index: 1;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* formulaire clair (blanc) pour laisser voir le background */
.form-card {
  width: min(560px, 100%);
  margin: 0 auto; /* ✅ centré */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.form-card h1 {
  margin: 0 0 6px;
  color: #111;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
}
.form-card .sub {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 12px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 13px;
  font-weight: 900;
}
.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  outline: none;
  font-weight: 700;
}
.field input:focus {
  border-color: rgba(245, 196, 0, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18);
}

.notice {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 800;
}
.notice.ok {
  display: block;
  border-color: rgba(60, 200, 120, 0.45);
}
.notice.err {
  display: block;
  border-color: rgba(255, 90, 90, 0.45);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-title {
    font-size: 40px;
  }
  .info-card {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .brand strong {
    display: none;
  }
  .hero {
    padding-top: 78px;
  }
  .page {
    padding-top: 78px;
  }

  .hero-title {
    font-size: 32px;
  }
  .sponsors img {
    height: 28px;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.modal.show {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal-dialog {
  position: relative;
  width: min(520px, 92%);
  margin: 18vh auto 0;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.modal-dialog h2 {
  margin: 0 0 8px;
  font-weight: 900;
}
.modal-dialog p {
  margin: 0 0 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
