@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&display=swap');

/* Variables et styles de base */
* {
  font-family: 'Open Sans', sans-serif;
}

body {
  /*background-image: url(/img/fond-lillenium.webp);*/
  background-color: #a3a3a3;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: white;
}

/* Adaptation responsive du fond */
@media (max-width: 768px) {
  body {
    background-position: center center;
    background-size: cover;
  }
}

/* Container principal */
.content-box {
  background: rgba(0, 0, 0, 0.8);
  max-width: 45rem;
  margin: 0 auto;
}

@media (max-width: 1545px) {
  .content-box {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .content-box {
    margin-top: 0;
    padding: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .content-box {
    padding: 1rem !important;
  }
}

/* Logo */
.logo-img {
  width: 9rem;
  height: auto;
}

/* Titre */
h1 {
  font-size: 1.3rem;
  line-height: 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.1rem;
    line-height: 1.3rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1rem;
    line-height: 1.2rem;
  }
}

/* Labels et inputs */
.form-label {
  font-size: 0.9rem !important;
  font-weight: 300;
  color: white;
}

.custom-input {
  background: transparent !important;
  border: 1px solid white !important;
  padding: 0rem 0.5rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: white !important;
}

.custom-input:focus {
  background: transparent !important;
  border-color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
  color: white !important;
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Style pour select avec flèche */
select.custom-select {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 16px 12px !important;
  border: 1px solid white !important;
  padding: 0rem 0.5rem;
  padding-right: 2rem !important;
  height: 2rem;
  border-radius: 0.5rem;
  color: white !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

select.custom-select:focus {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  border-color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
  color: white !important;
}

select.custom-select option {
  background: #333;
  color: white;
}

/* Style pour input date */
.date-input {
  color: #666 !important;
}

/* Champs obligatoires et erreurs */
.needed {
  color: red;
}

.error {
  display: block;
  font-size: 0.75rem;
  color: #c93030;
  font-weight: 500;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.cguError,
.cguWifiError {
  display: inline-block;
  font-size: 0.75rem;
  color: #c93030;
  font-weight: 500;
  margin-left: 0.5rem;
}

.required {
  font-size: 0.8rem;
  font-weight: 300;
  color: #ccc;
}

/* Checkboxes personnalisées */
.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 20px;
  color: #ddd;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox label:last-child {
  margin-bottom: 0;
}

.custom-checkbox label:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border: 0.12rem solid white;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.6;
  transition: all 0.12s, border-color 0.08s;
  border-radius: 0.3rem;
}

.custom-checkbox input[type="checkbox"]:checked+label:before {
  width: 10px;
  top: -5px;
  left: 5px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}

/* CGU Buttons */
#cguButton,
#cguWifiButton {
  font-weight: 700;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
}

/* CGU Text boxes */
.cgu-text {
  display: block;
  height: 5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #383b3d;
  padding: 1rem;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  overflow-y: scroll;
  scrollbar-width: thin;
}

/* Bouton de connexion */
.btn-connect {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  height: auto;
  text-align: center;
  text-decoration: none;
  width: 100%;
  max-width: 12rem;
  border: 1px solid white;
  border-radius: 0.6rem;
}

.btn-connect:hover {
  background: #baac87;
  color: black;
  border: 1px solid #baac87;
}

@media (max-width: 576px) {
  .btn-connect {
    font-size: 0.65rem;
    padding: 0.6rem 0;
  }
}

/* Logos en bas */
.logos-container {
  position: relative;
  left: -1rem;
}

@media (max-width: 576px) {
  .logos-container {
    left: 0;
  }
}

.logo-wifi {
  max-width: 4rem;
  width: 100%;
  height: auto;
}

@media (max-width: 576px) {
  .logo-wifi {
    max-width: 3rem;
  }
}

.logo-lille {
  max-width: 2.5rem;
  width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(100%) sepia(3%) saturate(1%) hue-rotate(351deg) brightness(104%) contrast(101%);
}

@media (max-width: 576px) {
  .logo-lille {
    max-width: 2rem;
  }
}

.logo-fr {
  max-width: 2.5rem;
  width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(100%) sepia(3%) saturate(1%) hue-rotate(351deg) brightness(104%) contrast(101%);
}

@media (max-width: 576px) {
  .logo-fr {
    max-width: 2rem;
  }
}

.logos-container span {
  color: white;
  padding-left: 0.5rem;
}

/* Boxes */
.boxes {
  margin: auto;
  padding: 1rem 0;
}

.boxes a {
  color: white;
}

.boxes p {
  margin-top: 0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}