@charset "UTF-8";
@font-face {
  font-family: "D-DIN";
  src: url("r/D-DIN.otf");
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: D-DIN;
  font-size: 18px;
  background-color: #353642;
  /*  @media only screen and (min-width: 1024px) {
          font-size: 26px;
      }*/
}
@media only screen and (min-width: 1920px) {
  * {
    font-size: 14px;
  }
}

body {
  margin: 0px;
  overscroll-behavior: contain;
}
body #nomCourseActive {
  font-size: 12pt;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media only screen and (max-width: 800px) {
  body #nomCourseActive {
    font-size: 16px;
  }
}
body #masterStatus {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 11;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  body #masterStatus {
    font-size: 16px;
  }
}
body.serialConnected #masterStatus {
  background-color: #00b300;
}
body.serialConnected #resetAll {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
body.courseLoaded #demarrerChrono {
  background-color: #00b300;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 4/6;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  body.courseLoaded #demarrerChrono {
    font-size: 16px;
  }
}
body #resetAll {
  display: none;
}
body .damier {
  display: none;
}
body #chrono {
  display: none;
}
body.raceMode .damier {
  width: 50px;
  display: flex;
}
body.raceMode #chrono {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  body.raceMode #chrono {
    font-size: 16px;
  }
}
body.raceMode.courseLoaded #chrono {
  background-color: #00b300;
}
body.afficheParams #zonePrincipale {
  display: none;
}
body.afficheParams #zoneDossards {
  display: none;
}
body.afficheParams #Parametres {
  background-color: #974c4c;
  color: #ffffff;
}
body.afficheParams #Parametres #svgSettings {
  display: flex;
}
body.afficheParams #Parametres #svgSettings .tournevis {
  fill: white;
}
body.afficheParams #Parametres #svgSettings .molette {
  fill: white;
}
@media only screen and (max-width: 800px) {
  body.afficheParams #Parametres #svgSettings {
    height: 25px;
  }
}
body.afficheParams #zoneParametres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  margin-top: 50px;
}

div.dossard {
  background-color: white;
  color: black;
  font-size: 35px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  border-width: 3px;
  border-style: solid;
  border-color: #000000;
}

div.tempsFinal {
  font-size: 30px;
  font-weight: bold;
  display: flex;
  justify-content: right;
}

#zoneParametres {
  display: none;
}

select {
  background-color: white;
}

option {
  background-color: white;
}

#zonePrincipale {
  width: 99%;
  display: grid;
  column-gap: 5px;
  margin: 1px;
  grid-template-columns: repeat(1, 1fr);
}
@media only screen and (min-width: 960px) {
  #zonePrincipale {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1440px) {
  #zonePrincipale {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (min-width: 1920px) {
  #zonePrincipale {
    grid-template-columns: repeat(4, 1fr);
  }
}

#svgSettings {
  margin: 0px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  display: flex;
}
#svgSettings .tournevis {
  fill: gray;
}
#svgSettings .molette {
  fill: gray;
}
@media only screen and (max-width: 800px) {
  #svgSettings {
    height: 25px;
  }
}

#zoneDossards {
  display: flex;
  flex-wrap: wrap;
}
#zoneDossards div.dossardBandeau {
  font-size: 72px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  border-width: 3px;
  border-style: solid;
  border-color: #000000;
  margin-left: 12px;
}
#zoneDossards div.dossardBandeau.meilleurTireur {
  border-color: red;
}
#zoneDossards div.dossardBandeau.on {
  background-color: white;
  color: black;
}
#zoneDossards div.dossardBandeau.off {
  color: #353642;
  background-color: #808080;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

#demarrerChrono {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 4/6;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #demarrerChrono {
    font-size: 16px;
  }
}

#svgAjoutCible {
  height: 60px;
  background-color: aliceblue;
}
@media only screen and (max-width: 800px) {
  #svgAjoutCible {
    height: 30px;
  }
}

#logo {
  width: 240px;
  grid-row: 1;
  grid-column: 1/2;
}
#logo.version_test {
  background-color: #b30000;
}
@media only screen and (max-width: 800px) {
  #logo {
    width: 120px;
  }
}

#blocEntete {
  display: grid;
  width: 100%;
}

#historique {
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18pt;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #historique {
    font-size: 16px;
  }
}

#ajoutBox {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 12;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #ajoutBox {
    font-size: 16px;
  }
}

#ajoutMasterBox {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #ajoutMasterBox {
    font-size: 16px;
  }
}

#Parametres {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2/4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #Parametres {
    font-size: 16px;
  }
}

#recupCourse,
#supprCourse {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #recupCourse,
  #supprCourse {
    font-size: 16px;
  }
}

#labelTri {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #labelTri {
    font-size: 16px;
  }
}

#PartagerToutHistorique {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #PartagerToutHistorique {
    font-size: 16px;
  }
}

#ExportExcel {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #ExportExcel {
    font-size: 16px;
  }
}

#ExportExcelClassement {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #ExportExcelClassement {
    font-size: 16px;
  }
}

#creerCourse {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #creerCourse {
    font-size: 16px;
  }
}

#recupAll {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column-start: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #recupAll {
    font-size: 16px;
  }
}

#modeDebug {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #modeDebug {
    font-size: 16px;
  }
}
#modeDebug.debug {
  background-color: #b30000;
}

#resetAll {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #resetAll {
    font-size: 16px;
  }
}

#rechCarabines {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #rechCarabines {
    font-size: 16px;
  }
}

#delHistorique {
  background-color: aliceblue;
  display: flex;
  align-items: center;
  font-size: 18pt;
  justify-content: center;
  grid-column: 2;
  grid-column-end: 4;
  border-radius: 20px;
  margin-right: 10px;
}
@media only screen and (max-width: 800px) {
  #delHistorique {
    font-size: 16px;
  }
}

svg {
  width: 20px;
  height: 18px;
}
@media only screen and (min-width: 1920px) {
  svg {
    width: 26px;
    height: 20px;
  }
}
@media only screen and (max-width: 500px) {
  svg {
    display: none;
  }
}
svg.echec #cible {
  fill: #000000;
}
svg.reussi #cible {
  fill: #ffffff;
}
svg.pioche #pioche {
  fill: rgb(99, 48, 19);
  visibility: visible;
}
svg #pioche {
  visibility: hidden;
}

.blocCellule {
  display: grid;
}

div.zoneCommentaireLabel {
  grid-column: 1;
  grid-column-end: 6;
  grid-row: 2;
  font-style: italic;
  color: #ffffff;
  display: block;
}

input.zoneCommentaire {
  display: none;
}

.editCommentaire div.zoneCommentaireLabel {
  display: none;
}
.editCommentaire input.zoneCommentaire {
  display: block;
  grid-column: 1;
  grid-column-end: 6;
  grid-row: 2;
  font-style: italic;
  background-color: aliceblue;
  color: rgb(92, 49, 0);
}

svg.carabine {
  grid-column: 7;
  grid-column-end: 11;
  grid-row: 2;
  width: fit-content;
  height: fit-content;
}
svg.carabine.couleurPrincipale_noire #bzook_corps {
  fill: #000000;
}
svg.carabine.couleurSecondaire_noire #bzook_capot {
  fill: #000000;
}
svg.carabine.couleurPrincipale_noir #bzook_corps {
  fill: #000000;
}
svg.carabine.couleurSecondaire_noir #bzook_capot {
  fill: #000000;
}
svg.carabine.couleurPrincipale_vert #bzook_corps {
  fill: #13664e;
}
svg.carabine.couleurSecondaire_vert #bzook_capot {
  fill: #13664e;
}
svg.carabine.couleurPrincipale_argent #bzook_corps {
  fill: silver;
}
svg.carabine.couleurSecondaire_argent #bzook_capot {
  fill: silver;
}
svg.carabine.couleurPrincipale_gris #bzook_corps {
  fill: grey;
}
svg.carabine.couleurSecondaire_gris #bzook_capot {
  fill: grey;
}
svg.carabine.couleurPrincipale_jaune #bzook_corps {
  fill: yellow;
}
svg.carabine.couleurSecondaire_jaune #bzook_capot {
  fill: yellow;
}
svg.carabine.couleurPrincipale_blanc #bzook_corps {
  fill: white;
}
svg.carabine.couleurSecondaire_blanc #bzook_capot {
  fill: white;
}
svg.carabine.couleurPrincipale_blanche #bzook_corps {
  fill: white;
}
svg.carabine.couleurSecondaire_blanche #bzook_capot {
  fill: white;
}
svg.carabine.couleurPrincipale_rouge #bzook_corps {
  fill: red;
}
svg.carabine.couleurSecondaire_rouge #bzook_capot {
  fill: red;
}
svg.carabine.couleurPrincipale_violet #bzook_corps {
  fill: #f314f3;
}
svg.carabine.couleurSecondaire_violet #bzook_capot {
  fill: #f314f3;
}
svg.carabine.couleurPrincipale_bleu #bzook_corps {
  fill: blue;
}
svg.carabine.couleurSecondaire_bleu #bzook_capot {
  fill: blue;
}
svg.carabine.couleurPrincipale_marbre #bzook_corps {
  fill: antiquewhite;
}
svg.carabine.couleurSecondaire_marbre #bzook_capot {
  fill: antiquewhite;
}
svg.carabine.couleurPrincipale_cuivre #bzook_corps {
  fill: orange;
}
svg.carabine.couleurSecondaire_cuivre #bzook_capot {
  fill: orange;
}
svg.carabine.couleurPrincipale_marron #bzook_corps {
  fill: #643500;
}
svg.carabine.couleurSecondaire_marron #bzook_capot {
  fill: #643500;
}
svg.carabine.couleurPrincipale_or #bzook_corps {
  fill: gold;
}
svg.carabine.couleurSecondaire_or #bzook_capot {
  fill: gold;
}
svg.carabine.couleurPrincipale_bois #bzook_corps {
  fill: rgb(206, 180, 141);
}
svg.carabine.couleurSecondaire_bois #bzook_capot {
  fill: rgb(206, 180, 141);
}
svg.carabine.couleurPrincipale_noire #bzook_corps {
  fill: #000000;
}
svg.carabine.couleurSecondaire_noire #bzook_capot {
  fill: #000000;
}
svg.carabine.couleurPrincipale_noire #bzook_corps {
  fill: #000000;
}
svg.carabine.couleurSecondaire_noire #bzook_capot {
  fill: #000000;
}

.dureeTir {
  grid-column: 2;
}
.dureeTir.reussi {
  color: white;
}
.dureeTir.echec {
  color: rgb(0, 0, 0);
}
@media only screen and (max-width: 500px) {
  .dureeTir {
    grid-column: 1/3;
    font-size: 16px;
  }
  .dureeTir.reussi {
    color: rgb(0, 0, 0);
    background-color: white;
  }
  .dureeTir.echec {
    color: white;
    background-color: black;
  }
}

.contentBase {
  margin-top: 16px;
  width: 100%;
  display: grid;
  align-items: center;
  grid-template-columns: auto repeat(8, 1fr) auto;
  background-color: #5f6f93;
  border-radius: 10px;
  color: #ffffff;
  /*
  &.colonneWide1 {
     // grid-column: 1;
      @media only screen and (min-width: 1024px) {
    //      grid-column: 1;
      }
  }
  &.colonneWide2 {
    //  grid-column: 1;
      @media only screen and (min-width: 1024px) {
     //     grid-column: 2;
      }
  }
  &.colonneWide3 {
    //  grid-column: 1;
      @media only screen and (min-width: 1024px) {
     //     grid-column: 1;
      }
      @media only screen and (min-width: 1920px) {
   //       grid-column: 3;
      }
  }
  &.colonneWide4 {
  //    grid-column: 1;
      @media only screen and (min-width: 1024px) {
   //       grid-column: 2;
      }
      @media only screen and (min-width: 1920px) {
    //      grid-column: 4;
      }
  }*/
}
.contentBase * {
  background-color: #5f6f93;
  color: #ffffff;
}

.maintenant {
  grid-column: 7/10;
  grid-row: 1;
  display: flex;
  justify-content: space-around;
}

.disconnected .maintenant {
  background-color: #b30000;
}

.entete {
  grid-column: 1/3;
  grid-row: 1;
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entete.historique {
  color: #ffffff;
}
.entete.modifiable {
  cursor: pointer;
}
.entete.modifiable:hover {
  background-color: rgba(163, 142, 22, 0.1);
}

.disconnectButton {
  grid-row: 1;
  grid-column: 10;
  display: flex;
  justify-content: flex-end;
  color: red;
}

.exportButton {
  grid-row: 2;
  grid-column: 6;
  justify-self: center;
}

.scoreTotal {
  grid-row: 1;
  grid-column-start: 4;
  grid-column-end: 6;
}

.masquerButton {
  grid-row: 1;
  grid-column: 6;
  justify-self: center;
}

.titreTour {
  grid-row: 3;
  grid-column: 1;
}

.titreTir1 {
  grid-row: 3;
  grid-column: 2;
}

.titreTir2 {
  grid-row: 3;
  grid-column: 3;
}

.titreTir3 {
  grid-row: 3;
  grid-column: 4;
}

.titreTir4 {
  grid-row: 3;
  grid-column: 5;
}

.titreTir5 {
  grid-row: 3;
  grid-column: 6;
}

.titrePioche1 {
  grid-row: 3;
  grid-column: 7;
}

.titrePioche2 {
  grid-row: 3;
  grid-column: 8;
}

.titrePioche3 {
  grid-row: 3;
  grid-column: 9;
}

.titreTotalTir {
  grid-row: 3;
  grid-column: 10;
}

.dureeTirTotal {
  display: flex;
  justify-content: flex-end;
}
@media only screen and (max-width: 800px) {
  .dureeTirTotal {
    font-size: 14px;
  }
}

@media only screen and (min-width: 1024px) {
  .cacheMax {
    display: none;
  }
}

img.icone {
  height: 24px;
  cursor: pointer;
}
img.icone.titre {
  background-color: aliceblue;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(193, 197, 202, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 600px;
  max-height: 80%; /* Limite la hauteur du modal */
  overflow-y: auto; /* Active le défilement vertical */
}
.modal-content div,
.modal-content label,
.modal-content button {
  background-color: #ffffff;
}
.modal-content input {
  width: 100%;
  border: none;
  background-color: #ffffff;
  color: #000000;
}
.modal-content input.dossard {
  width: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  background-color: #cccccc;
}
th input,
td input {
  width: 100%;
  border: none;
  background-color: #ffffff;
  color: #000000;
}

th {
  background-color: #f2f2f2;
}

#modalCreationCourse button {
  margin-top: 20px;
}

#tableCarabines thead th {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s;
}
#tableCarabines thead th:hover {
  background-color: rgba(163, 142, 22, 0.1);
}
#tableCarabines thead th .sort-icon {
  font-size: 20px;
  margin-left: 5px;
  color: #888;
  transition: color 0.2s;
  background-color: transparent;
}
#tableCarabines thead th:hover .sort-icon {
  color: #fff;
}
#tableCarabines tbody tr {
  transition: background-color 0.2s;
}
#tableCarabines tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.custom-modal {
  background-color: #2d2f3d;
  border: 2px solid #5f6f93;
  border-radius: 8px;
  padding: 24px;
  min-width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.2s ease-out;
}
.custom-modal h2 {
  margin: 0 0 20px 0;
  color: white;
  font-size: 20px;
  text-align: center;
  border-bottom: 1px solid #5f6f93;
  padding-bottom: 12px;
}

.custom-modal-field {
  margin-bottom: 16px;
}
.custom-modal-field label {
  display: block;
  color: #aaa;
  margin-bottom: 6px;
  font-size: 14px;
}

.custom-modal-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #5f6f93;
  border-radius: 4px;
  background-color: #1a1b24;
  color: white;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.custom-modal-input:focus {
  outline: none;
  border-color: #7f8fb3;
  background-color: #22232f;
}
.custom-modal-input::placeholder {
  color: #666;
}
.custom-modal-input option {
  background-color: #1a1b24;
  color: white;
}

.custom-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.custom-modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.custom-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.custom-modal-btn:active {
  transform: translateY(0);
}

.custom-modal-btn-ok {
  background-color: #4CAF50;
  color: white;
}
.custom-modal-btn-ok:hover {
  background-color: #45a049;
}

.custom-modal-btn-cancel {
  background-color: #666;
  color: white;
}
.custom-modal-btn-cancel:hover {
  background-color: #777;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}