.contest-template {
  background-color: #f6d54825;
}

.contest-template .contest-hero h1 {
  color: #cb3429;
  text-transform: uppercase;
  font-weight: 900;
  font-family: "Arial", sans-serif;
  font-size: 4rem;
  padding-left: 10%;
  padding-right: 10%;
}

.contest-template .contest-hero h2 {
  font-weight: 900;
  font-size: 3rem !important;
  font-family: "Open Sans", Arial, sans-serif;
}

.contest-template .contest-pc-image {
  display: block;
}

.contest-template .contest-pc-image img {
  border-radius: 16px;
}

.contest-template .contest-mobile-image {
  display: none;
}

.contest-template #rgpd_acceptance {
  margin-right: 8px;
}

.contest-template input {
  border: 1px solid lightgrey !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
}

.contest-template label {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: grey;
}

.contest-template .required {
  color: red;
  font-weight: 600;
}

.contest-template label[for="rgpd_acceptance"] {
  line-height: 1.5;
  font-size: 1rem;
  margin-top: -6px;
  color: black;
}

.contest-template button[type="submit"] {
  background-color: #7bc240;
  border: 1px solid #7bc240;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px 24px;
}

.contest-template button[type="submit"]:hover {
  background-color: #f8d749;
  border-color: #f8d749;
  color: #cb3429;
}

@media (max-width: 1024px) {

  .contest-template .left {
    margin-bottom: 2rem;
  }

  .contest-template .left > section,
  .contest-template .right > section {
    padding: 1.75rem !important;
  }

  .contest-template .contest-pc-image {
    display: none;
  }

  .contest-template .contest-mobile-image {
    display: block;
  }

  .contest-template .contest-mobile-image img {
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .contest-template .contest-hero {
    padding: 25px 10px;
    margin-bottom: 10px;
  }

  .contest-template .contest-hero > div {
    padding: 0.5rem !important;
  }

  .contest-template .contest-hero h1 {
    font-size: 2.5rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contest-template .contest-hero h2 {
    font-size: 1.5rem !important;
  }
}

/******/

.contest-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contest-content * {
  font-family: "Open Sans", Arial, sans-serif;
}

.contest-hero {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 100px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.contest-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: #333;
}

.contest-hero .hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contest-dates {
  font-size: 1.2rem;
  color: #333;
}

.contest-main-content {
  width: 1140px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.contest-description {
  flex: 1;
}

.contest-form {
  flex: 1;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contest-description h2,
.contest-form h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contest-form {
  display: flex;
  flex-direction: column;
}

.contest-form input,
.contest-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contest-form input[type="submit"] {
  background-color: #0073e6;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
}

.contest-form input[type="submit"]:hover {
  background-color: #005bb5;
}

.contest-content .error {
  color: red;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/*****/

.stations-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: red;
  border: 1px solid #ccc;
  z-index: 1000;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stations-popup .close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.stations-popup .close-popup:hover {
  color: #ff0000; /* Couleur de la croix au survol */
}