section {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 10px 20px 40px 20px;
}
.logo {
  max-width: 60px;
}
h1 {
  font-size: 46px;
  text-transform: uppercase;
  font-weight: bolder;
  text-align: center;
}
h2 {
  text-transform: uppercase;
  font-weight: bolder;
  font-size: 18px;
  text-align: center;
  padding-bottom: 20px;
}
.center {
  text-align: center;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
}
.text {
  max-width: 85%;
}
form.score-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.player-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
}
.player-input label {
  font-size: 1.1em;
  margin-bottom: 5px;
  text-align: right;
}
.player-input input {
  font-size: 1.2em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 70px;
}
table.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-top: 20px;
}
table.scorecard th,
table.scorecard td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}
table.scorecard th {
  background-color: #f5f5f5;
  font-weight: bold;
}
table.scorecard tr:nth-child(even) td {
  background-color: #fafafa;
}
table.scorecard td.par {
  background-color: #e8f4fa;
  font-weight: bold;
}
table.scorecard td.total,
table.scorecard td.diff {
  font-weight: bold;
  background-color: #f0f0f0;
}
input:not([type="submit"]),
textarea {
  min-width: inherit;
}
.color-block {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 3px;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
input[type="radio"]:checked + label {
  border: 3px solid black;
}
.bleu {
  background-color: #0066cc;
  color: #000;
}
.blanc {
  background-color: #ffffff;
  color: #000;
}
.jaune {
  background-color: #f6e94c;
  color: #000;
}
.rouge {
  background-color: #e74c3c;
  color: #000;
}
.bleu_blanc {
  background: linear-gradient(to right, #0066cc 50%, #ffffff 50%);
  color: #000;
}
.blanc_jaune {
  background: linear-gradient(to right, #ffffff 50%, #f6e94c 50%);
  color: #000;
}
.jaune_rouge {
  background: linear-gradient(to right, #f6e94c 50%, #e74c3c 50%);
  color: #000;
}
.span-color {
  border: 2px solid #000;
}
.input-color.bleu,
.span-color.bleu {
  background-color: #0066cc;
  color: #fff;
}
.input-color.blanc,
.span-color.blanc {
  background-color: #ffffff;
  color: #000;
}
.input-color.rouge,
.span-color.rouge {
  background-color: #e74c3c;
  color: #fff;
}
.block-color {
  width: 20px;
  border: 1px solid #000;
}
.legende {
  background-color: #eee;
  border: 1px solid #999;
  margin-bottom: 20px;
  padding: 10px;
}
.legende p {
  margin-bottom: 10px;
  font-weight: bold;
}
.legende .infos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legende .infos div {
  display: flex;
  gap: 3px;
  font-weight: bold;
}
.input-color {
  padding: 0;
  width: 60px;
  text-align: center;
  font-weight: bold;
  color: #000;
}
.span-color {
  padding: 5px;
}
.thumbnail-container {
  position: relative;
  width: 40px;
  margin: 0 0 20px auto;
  cursor: pointer;
}
.thumbnail-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.zoom-icon {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px;
  transition: background-color 0.3s ease;
  height: auto;
  max-width: 400px;
  color: white;
  font-size: 20px;
  width: 100%;
  text-align: center;
}
.container-side-by-side {
  width: 100%;
  display: grid;
  grid-template-columns: 85% 15%;
  gap: 20px;
  justify-content: space-between;
  align-items: top;
  flex-wrap: wrap;
  margin: 10px;
}
.gap30 {
  gap: 30px;
}
.radio_container {
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  margin: 0px;
  padding: 0px;
}
.radio_container > input[type="checkbox"],
.radio_container > input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio_container > input:checked ~ .checkmark {
  background-color: var(--vert);
}
.checkmark {
  height: 25px;
  width: 25px;
  display: block;
  background-color: white;
}
.checkmark--round {
  border-radius: 25px;
}
.nav {
  position: absolute;
  left: 0;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav div {
  background-color: var(--vert);
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 5px 10px 5px 8px;
}
.nav div a {
  text-align: center;
  font-weight: bold;
  color: var(--blanc);
}
.map-icon-container {
  width: 40px;
  cursor: pointer;
}
.map-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px;
  transition: background-color 0.3s ease;
  width: 100%;
  height: auto;
  max-width: 400px;
}
.map-icon:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.ymarketing {
  margin: 0 10px 0 auto;
  padding: 0 10px 50px 0;
  color: #000;
  justify-content: flex-end;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ymarketing img {
  max-width: 100px;
}
/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  /* Animation de zoom */
  /* Optionnel : fondu du fond */
}
.modal img {
  max-width: max-content;
  padding: 0 5%;
  border-radius: 10px;
}
.modal.active {
  display: flex;
}
.modal:not(.active) {
  display: none;
}
.modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoomIn 0.4s ease-out;
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.8);
  }
}
@media (max-width: 768px) {
  table.scorecard {
    font-size: 0.85rem;
  }
}
@media only screen and (min-width: 1024px) {
  h1 {
    font-size: 67px;
  }
  h2 {
    font-size: 20px;
  }
  h2 span:not(.soldout) {
    font-size: 24px;
  }
}
