/* Reset et styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #fff;
}

/* En-tête / Header */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 20px 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container .logo {
  max-width: 180px;
  height: auto;
}

.lang-selector select {
  background-color: #c0d100;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Section Hero / Content */
.hero-section {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #379E37;
}

.hero-bck-img {
  background: url("../images/cover-img.jpg") no-repeat center top / cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
}

.hero-bck-img::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
  z-index: 1;
}

/* Titre Hero pour le concours */
.contest-hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 120px auto 40px auto;
  padding: 60px 40px;
}

.contest-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  max-width: 650px;
  margin-bottom: 25px;
  font-family: "Barlow Condensed", sans-serif;
}

.scroll-btn {
  display: inline-block;
  background-color: #379E37;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.splashnew {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background:url("../images/cover-img.jpg") center center no-repeat;
    background-size: cover;
}
.splashbuttons {
    display: flex;
    flex-direction: row;
}
/* Zone Vague Verte */
.green-wave-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
}

.green-content {
  position: relative;
  background-color: #379E37;
  background: url("../images/courbe.svg") center top no-repeat;
  background-size: 2400px 780px;
}

/* Splash Page Style */
.splash-content {
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.lang-btn {
  display: inline-block;
  background-color: #c0d100;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 160px;
  transition: transform 0.2s ease, background-color 0.2s ease;
    margin: .75em;
}

.lang-btn:hover {
  background-color: #d1e200;
  transform: translateY(-2px);
}

/* Contest Content Style */
.contest-content {
  padding: 120px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructions-block {
  max-width: 1400px;
  width: 100%;
  margin-bottom: 40px;
  padding: 0 40px;
}

.instructions-block h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Barlow Condensed", sans-serif;
}

.instructions-block ul {
  list-style: none;
  margin-bottom: 25px;
}

.instructions-block li {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.instructions-block .arrow {
  font-size: 1.4rem;
}

.dates-info {
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Card */
.form-card {
  background-color: #ffffff;
  color: #333;
  width: 100%;
  max-width: 1400px;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  background-color: #f7f9e4;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.short-input input {
  max-width: 380px;
}

/* Upload Fichier Initial */
.file-upload-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-upload-box input[type="file"] {
  display: none;
}

.file-btn {
  background-color: #c0d100;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
}

#file-name {
  font-size: 0.85rem;
  color: #777;
}

/* Carte d'Aperçu du Fichier Sélectionné (Preview) */
.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f7f9e4;
  border: 1.5px solid #379E37;
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 5px;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.preview-media img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.preview-media .pdf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #e74c3c;
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 4px;
}

.preview-filename {
  font-size: 0.85rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* Bouton Croix de Suppression */
.remove-file-btn {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.remove-file-btn:hover {
  color: #c0392b;
  transform: scale(1.2);
}

/* Cases à cocher personnalisées */
.checkbox-group {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}
.custom-checkbox a {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  background-color: #f7f9e4;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.checkbox-box::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #379E37;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkbox-box::after {
  display: block;
}

.custom-checkbox input:checked ~ .checkbox-box {
  border-color: #379E37;
}

/* Boutons Radios Personnalisés */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.custom-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  user-select: none;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.radio-box {
  width: 20px;
  height: 20px;
  background-color: #f7f9e4;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.radio-box::after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #379E37;
}

.custom-radio input:checked ~ .radio-box::after {
  display: block;
}

.custom-radio input:checked ~ .radio-box {
  border-color: #379E37;
}

.has-error .radio-box {
  border-color: #d9534f;
  background-color: #fff0f0;
}

/* Bouton Soumettre */
.form-submit {
  margin-top: 20px;
}

.submit-btn {
  background-color: #379E37;
  color: #fff;
  border: none;
  padding: 12px 45px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* États d'erreur JS */
.form-group input.is-invalid {
  border: 1px solid #d9534f !important;
  background-color: #fff0f0 !important;
}

.form-group input.is-valid {
  border: 1px solid #379E37 !important;
}

.custom-checkbox.has-error .checkbox-box {
  border-color: #d9534f;
  background-color: #fff0f0;
}

.error-msg {
  display: none;
  color: #d9534f;
  font-size: 0.75rem;
  margin-top: 5px;
  font-weight: bold;
}

.has-error > .error-msg,
.has-error + .error-msg {
  display: block;
}

.condsupp {
    width: 100%;
    padding: 0.75em 40px;
    font-size: 0.8em;
    text-align: center;
}

/* Thanks Page */
.thanks-content {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thanks-card {
  background: #ffffff;
  color: #333;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.thanks-title {
  color: #c0d100;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.thanks-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.thanks-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-green {
  background-color: #379E37;
  color: #ffffff;
}

.btn-lime {
  background-color: #c0d100;
  color: #ffffff;
}



/* Style de la page de remerciement et du code promo */
.thanks-card .thanks-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.promo-box {
  background-color: #f7f9e4;
  border: 2px dashed #379E37;
  border-radius: 12px;
  padding: 25px 20px;
  max-width: 500px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.promo-label {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Typo Courier / Monospace avec fond blanc pour le code promo */
.promo-code-badge {
  background-color: #ffffff;
  color: #379E37;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  letter-spacing: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  user-select: all;
}

.promo-instructions {
  max-width: 750px;
  margin: 0 auto 35px auto;
  text-align: center;
}

.promo-instructions h3 {
  font-size: 1.2rem;
  color: #379E37;
  margin-bottom: 10px;
  font-weight: bold;
}

.promo-instructions p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 8px;
}

.promo-instructions p a {
  color: #379E37;
  font-weight: bold;
  text-decoration: underline;
}

.promo-conditions {
  font-size: 0.85rem !important;
  color: #777 !important;
  font-style: italic;
  margin-top: 12px;
}

/* Footer */
footer {
  background-color: #333333;
  color: #ffffff;
  font-size: 0.8rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* S'adapte si l'écran est très étroit */
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.footer-contact {
  text-align: right;
}
.footer-contact p {
  margin-bottom: 0.5em
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.footer-bottom {
  display: flex;
/*  justify-content: space-between;*/
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #222;
  padding-top: 15px;
  color: #a0a0a0;
}

.footer-links a, .legal-links a {
  color: #a0a0a0;
  text-decoration: underline;
  margin-left: 10px;
}

/* Responsive */
@media (min-width: 2400px) {
  .green-content {
    background-size: 100% 780px;
  }
}

@media (max-width: 1280px) {
  .hero-bck-img {
    height: 635px;
  }
}

@media (max-width: 1080px) {
  .hero-bck-img {
    height: 620px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }

  .green-content {
    background-size: 800px 261px;
  }

  .contest-hero-text h1 {
    font-size: 1.8rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-card {
    padding: 20px;
  }

  .thanks-title {
    font-size: 1.6rem;
  }

  .thanks-card {
    padding: 40px 20px;
  }

  .thanks-actions {
    flex-direction: column;
    gap: 15px;
  }

  .thanks-btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
.footer-logo {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .contest-hero-text {
    padding: 30px 40px;
  }
  .hero-bck-img {
    height: 500px;
  }
  .splashbuttons {
    display: flex;
    flex-direction: column;
  }

}

@media (max-width: 640px) {
  .hero-bck-img {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .hero-bck-img {
    height: 460px;
  }
}