:root {
  --blue: #666082;
  --blue: #37306b;
  --white: #f7f5f0;
  --yelow: #ffbd59;
  --blanc: #ffffff;
  --gris: #ccc;
  --gris2: #ddd;
  --gris3: #f2f2f2;
  --gris4: #f0f0f0;
  --gris5: #e0e0e0;
  --gris6: #d0d0d0;
  --gris7: #f9f9f9;
  --black: #363636;
  --gris8: #f1f1f1;
  --main-text: Journées Mayennaises de la Jeunesse - Inscriptions;
  --police: "dreaming-outloud-sans", "Kalam", Arial, sans-serif;
}

.logoQR {
  position: absolute;
  right: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="range"] {
  /* -webkit-appearance: none; */
  width: 60%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    var(--blue) var(--val, 50%),
    #e0e0e0 var(--val, 50%)
  );
  outline: none;
  margin: 20px;
}

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.telonly {
  display: none;
}

body {
  font-family: var(--police);
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--blue);
}

.container {
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--white);
}

.header {
  display: flex;
  margin: 0 auto;

  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 80%;
  padding: 10px;
  background-color: var(--blue);
  border-radius: 10px;
}

.header .image {
  width: 30%;
  padding-right: 15px;
}

.header .image img {
  width: 100%;
  border-radius: 10px;
}

.header .nav {
  display: flex;
  gap: 20px;
}

.header .nav button,
.header .nav a {
  text-decoration: none;
  color: var(--white);
  padding: 6px 10px;
  border: 1px solid var(--yelow);
  background-color: var(--blue);
  font-size: large;
  font-weight: normal;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  font-family: var(--police);
}

.header .nav button:hover,
.header .nav a:hover {
  background-color: var(--yelow);
  color: var(--blue);
}

.content {
  margin-bottom: 20px;
  font-family: "Open Sans", Arial, sans-serif;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
}

.buttons {
  display: inline-flex;
  /* display: contents; */
  /* width: 100%; */
  justify-content: center;
  /* margin-top: 20px; */
}

.button {
  text-decoration: none;
  color: var(--blue);
  padding: 10px 20px;
  border: 3px solid var(--yelow);
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  font-family: var(--police);
  font-size: large;
  font-weight: bold;
  background-color: var(--white);
}

.button-gap {
  margin: 0 20px;
  margin-top: 10px;
}

/* Menu déroulant "Plus" */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.more-button {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-menu.show {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background-color: white;
  text-align: left;
  color: var(--blue);
  font-family: var(--police);
  font-size: large;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #ddd;
}

.dropdown-item:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.dropdown-item:hover {
  background-color: var(--white);
}

.button:hover .button:active {
  background-color: var(--yelow);
  color: var(--blue);
}

.form-container1.active {
  display: flex;
}

.form-container,
.form-container1 {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--blanc);
  border: 1px solid var(--gris);
  border-radius: 10px;
  display: none;
}

.form-container1 form {
  margin-left: 50px;
  flex: 1;
}

.image-container {
  margin-right: 100px;
  align-items: right;
}

.image-container img {
  max-height: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.form-container1 h2,
.form-container h2 {
  font-family: var(--police);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.form-container1 label,
.form-container label {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2em;
  font-family: var(--police);
}

.inputpaiement,
.form-container1 input[type="email"],
.form-container1 input[type="text"],
.form-container1 input[type="date"],
.form-container1 input[type="number"],
.form-container1 input[type="tel"],
.form-container1 input[type="password"],
.form-container input[type="email"],
.form-container input[type="text"],
.form-container input[type="date"],
.form-container input[type="number"],
.form-container input[type="tel"],
.form-container input[type="password"] {
  /* width: 100%; */
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--gris);
  border-radius: 5px;
}

.inputpaiement,
.form-container input:focus {
  border: 2px solid var(--yelow);
  outline: none;
  /* Supprime le contour par défaut du navigateur */
}

.form-container1 input[type="submit"],
.form-container input[type="submit"] {
  background-color: var(--yelow);
  color: var(--blue);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--police);
}

.form-container1 input[type="submit"]:hover,
.form-container input[type="submit"]:hover {
  background-color: var(--blue);
  color: var(--yelow);
}

.message-coin {
  position: fixed;
  /* Fixe la position, indépendamment du défilement */
  top: 20px;
  /* Distance du haut */
  right: 20px;
  /* Distance de la droite */
}

.param-message {
  max-width: 50%;
  margin: 0 auto;

  color: var(--blanc);

  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  /* Caché par défaut */
  font-size: 16px;
  z-index: 1000;
  /* S'assure qu'il est au-dessus des autres éléments */
  min-width: 200px;
  text-align: center;
}

.petit-button {
  background-color: var(--yelow);
  color: var(--blue);
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
}

.petit-button:hover {
  background-color: var(--blue);
  color: var(--yelow);
}

.video {
  width: 100%;
  height: 500px;
  background-color: var(--blue);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--police);
  border-radius: 10px;
}

.text-container {
  background-color: var(--yelow);
  border-radius: 15px;
  padding: 10px;
  margin-bottom: 10px;
}

.forgot-password-link {
  /* text-decoration: none; */
  color: var(--blue);
  font-family: var(--police);
}

.small-text {
  font-size: 0.8em;
  color: var(--blue);
  /* margin-bottom: 10px; */
  font-family: var(--police);
  margin: 0 0 5px 0;
}

/* Style pour le menu déroulant */
.form-container select {
  /* width: 50%; */
  padding: 4px;
  /* margin-bottom: 5px; */
  border: 1px solid var(--gris);
  border-radius: 5px;
  background-color: var(--blanc);
  font-size: 1em;
  /* color: var(--blue); */
  font-family: Arial, sans-serif;
  /* Changer la police */
  appearance: none;
  /* Masque l'apparence native du menu déroulant */
  outline: none;
  /* Supprime le contour */
  position: relative;
  /* Pour positionner la flèche */
}

/* Flèche pour indiquer qu'il s'agit d'un menu déroulant */
.form-container select::after {
  content: "\25BC";
  /* Code Unicode pour la flèche vers le bas */
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--blue);
}

/* Style pour les options du menu déroulant */
.form-container select option {
  padding: 10px;
  font-size: 1em;
  color: var(--blue);
}

/* Style lorsque le menu déroulant est survolé */
.form-container select:hover {
  border-color: var(--blue);
}

/* Style lorsque le menu déroulant est actif */
.form-container select:focus {
  border-color: var(--yelow);
}

/* Style pour le texte explicatif */
.small-text {
  font-size: 0.8em;
  color: var(--blue);
  margin: 5px 0;
  font-family: "Kalam", "Arial", sans-serif;
  /* Changer la police */
}

.section {
  border: 2px solid var(--yelow);
  /* Bordure jaune */
  border-radius: 10px;
  /* Coins arrondis */
  padding: 20px;
  /* Espacement interne */
  margin-bottom: 20px;
  /* Espacement entre les sections */
}

.section h2 {
  font-family: var(--police);
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Style pour les titres des sections */
.section h3 {
  margin-top: 0;
  /* Supprime la marge supérieure par défaut */
  font-size: 1.2em;
  /* Taille de police pour les titres */
  color: var(--blue);
  /* Couleur de texte */
  font-family: var(--police);
  /* Police de caractères */
}

/* Style responsive pour les inputs et textareas dans les sections */
.section input[type="text"],
.section input[type="email"],
.section input[type="date"],
.section input[type="number"],
.section input[type="input"],
.section textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Style pour le tableau des prix */
.prix-table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  display: table;
}

.prix-table td:first-child {
  white-space: normal;
  word-wrap: break-word;
  padding-right: 10px;
  max-width: 60%;
}

.prix-table td:last-child {
  width: 40%;
}

.prix-table input[type="number"] {
  width: 100%;
  max-width: 150px;
}

/* Style responsive pour tous les tableaux dans les sections */
.section table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .section table {
    display: table;
  }
}

.radio-buttons {
  display: flex;
  gap: 10px;
}

.recap-table {
  width: 100%;
  border-collapse: collapse;
}

.recap-table th,
.recap-table td {
  border: 1px solid var(--gris2);
  padding: 8px;
  text-align: left;
}

.recap-table th {
  background-color: var(--gris3);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* Permet le défilement horizontal */
  white-space: nowrap;
  /* Empêche le retour à la ligne des onglets */
}

.tab {
  background-color: var(--gris4);
  padding: 10px;
  cursor: pointer;
  border: 1px solid var(--gris);
  max-width: 15%;
  white-space: normal;
  /* Autorise le retour à la ligne automatique */
  border-radius: 5px;
}

.tab:hover {
  background-color: var(--gris5);
}

.tab.active {
  background-color: var(--gris6);
}

.details-inscription {
  padding: 10px;
  border: 1px solid var(--gris);
  margin-top: 10px;
}

label[for="regime_oui"],
label[for="regime_non"],
label[for="regime_oui2"],
label[for="regime_non2"],
label[for="alergie_oui"],
label[for="alergie_non"] {
  font-size: 15px;
  /* Changez la taille selon vos besoins */
}

.autocomplete-suggestions {
  font-family: var(--police);
  color: #000000;
  position: absolute;
  background-color: var(--blanc);
  border: 1px solid #d3d3d3;
  z-index: 1000;
  /* width: calc(100% - 2px); */
  width: 35%;
  /* Ensure the suggestions box matches the width of the input */
  /* max-height: 200px; */
  /* Optional: limit the height of the suggestions box */
  overflow-y: auto;
  /* Optional: enable scrolling if there are many suggestions */
}

.autocomplete-suggestion {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-suggestion:hover {
  background-color: var(--gris4);
}

.autocomplete-suggestions:empty {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--gris2);
  padding: 8px;
}

th {
  background-color: var(--gris3);
  text-align: left;
}

tr:nth-child(even) {
  background-color: var(--gris7);
}

tr:hover {
  background-color: var(--gris8);
}

.medical-file-button {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px 0;
  font-size: 14px;
  /* color: white; */
  /* background-color: #4CAF50; */
  /* Couleur verte */
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.textarea-container {
  margin-bottom: 20px;
}

.textarea-container label {
  display: block;
  margin-bottom: 8px;
}

.textarea-container textarea {
  width: 95%;
  min-height: 150px;
  /* Hauteur minimale */
  padding: 10px;
  /* font-size: 16px; */
  border: 1px solid var(--gris);
  border-radius: 4px;
  resize: vertical;
  /* Permet le redimensionnement vertical */
}

.textarea-container textarea:focus {
  outline: none;
  border-color: var(--blue);
  /* Couleur de bordure lorsqu'actif */
  /* box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); */
  /* Ombre portée lorsqu'actif */
}

th.non-aff,
td.non-aff {
  display: none;
}

@media only screen and (max-width: 480px) {
  .telonly {
    display: block;
  }

  .logoQR {
    position: relative;
    display: flex;
  }

  .section {
    width: 87%;
  }

  .header {
    width: 90%;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .header .image {
    order: -1;
    width: 80%;
  }

  .header .nav {
    order: 0;
  }

  .header .nav a {
    padding: 6px 5px;
    border-radius: 10px;
  }

  .buttons {
    display: contents;
  }

  .tabs {
    margin: 10px auto;
  }

  .tab {
    margin-top: 10px;
    max-width: 100%;
  }

  .non-obligatoire {
    display: none;
  }

  .content {
    width: 95%;
  }

  .container {
    max-width: 100%;
    width: 100%;
    padding: 1px;
    margin: 1%;
  }

  .form-container1.active {
    display: flex;
  }

  .petit-button {
    margin-top: 5px;
  }

  .form-container1,
  .form-container {
    margin-top: 20px;
    margin-left: unset;
    padding: 5px;
    /* display: flex; */
    justify-content: center;
    /* Centrage horizontal */
    align-items: center;
    /* Masquer par défaut */
  }

  .form-container1 form {
    flex: 2;
  }

  .image-container {
    margin-right: 1px;
    align-items: right;
  }

  .image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .pageiframe {
    width: 95%;
    padding: 1px;
    margin: 1%;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  /* Cacher la modale par défaut */
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  /* Position relative pour que le bouton de fermeture soit positionné par rapport à ce parent */
  max-width: 500px;
  width: 80%;
}

.modal h2 {
  margin-bottom: 10px;
}

.modal .buttons {
  display: flex;
  justify-content: space-around;
}

.attentenotif,
.modal button {
  background-color: var(--yelow);
  border: none;
  padding: 10px 20px;
  color: var(--blanc);
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.attentenotif:hover,
.modal button:hover {
  background-color: var(--blue);
  color: var(--blanc);
}

.close-button {
  position: absolute;
  /* Position absolue par rapport à .modal */
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: -var(--blue);
  transition: color 0.3s ease;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-group label {
  width: 150px;
  /* Ajustez la largeur selon vos besoins */
  text-align: left;
  margin-right: 10px;
}

.form-group input {
  flex: 1;
  border-radius: 5px;
  border: 1px solid var(--gris);
}

.form-group input:focus {
  border: 2px solid var(--yelow);
  outline: none;
}

.mention {
  color: var(--blue);
  text-decoration: underline;
  font-size: smaller;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.togglebuton {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transform: rotate(0deg);
  /* Initialement, la flèche pointe vers la droite */
  transition: transform 0.3s;
}

.togglebuton.rotate {
  transform: rotate(90deg);
  /* Lorsque le contenu est visible, la flèche pointe vers le bas */
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 18px;
  height: 18px;
  background-color: #bbb;
  /* Gris plus doux */
  color: white;
  font-size: 13px;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  margin-left: 5px;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #e9e9ed;
  /* Fond jaune doré */
  color: #222;
  /* Texte noir */
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  font-weight: 300;
  /* Texte plus fin */
  white-space: normal;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
