@font-face {
  font-family: "Special_Elite";
  src: url(../font/Special_Elite/SpecialElite-Regular.ttf);
}
*,
*::before,
*::after {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: rgb(246, 244, 248);
  color: #000000;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  min-height: 90vh;
  background: white;
  margin: 0.6rem auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

header {
  width: 100%;
  background-color: #0c2a5c;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  height: 130px;
  margin: 0.4rem 0 2rem 0;
  display: grid;
  grid-template-columns: 2fr 10fr;
}

header img {
  height: 100%;
  max-height: 122px;
  width: auto;
  object-fit: contain;
  margin: 0.2rem;
  border-radius: 8px;
}

header h1 {
  margin-top: 1.6rem;
}

h1,
h2 {
  text-transform: uppercase;
  text-align: center;
}

h1 {
  font-family: "Special_Elite";
  color: rgb(245, 245, 245);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
h2 {
  margin: 0.2rem 0 0.6rem 0;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 1px;
}

p {
  font-size: 1.2rem;
  text-align: justify;
}
.sousTitre {
  font-family: "Special_Elite", cursive;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #faf5e8;
}
.sousTitre span {
  text-transform: none;
  color: #eab92d;
  font-style: italic;
  line-height: 1.3rem;
}
.section {
  width: 92%;
  height: 100%;
  margin: 0 auto;
  /*  background: #f2f2f2;transform: translateX(100%); */
  background: #fff;

  transition: transform 0.6s ease, opacity 0.6s ease;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateX(0%);
  z-index: 1;
}
.info {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 2rem;
  height: 130px;
  display: flex;
}

.infoPres {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}
.panoInfo {
  float: left;
  height: calc(100%);
  padding-right: 1rem;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.cadreInfos {
  margin: 1rem 0 2rem 0;
  padding: 0.8rem;
  font-family: "Special_Elite", cursive;
  font-size: 1.2rem;
  background-color: rgb(244 244 244);
  border: 2px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.cadreInfos strong {
  background: white;
  color: red;
  font-weight: 600;
}
.cadre {
  text-align: center;
  font-size: 1.4rem;
  border: solid 4px #3498db;
  border-radius: 0.2rem;
  color: green;
  font-weight: bold;
  margin: 1rem 0 2rem;
}
.fontPlus {
  font-size: 1.8rem;
}
ul {
  margin-left: 1.5rem;
}

.text-center {
  text-align: center;
}
.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center {
  display: flex;
  flex-direction: column; /* Pour empiler les éléments verticalement */
  justify-content: center; /* Pour centrer verticalement */
  align-items: center; /* Pour centrer horizontalement */
  text-align: center; /* Pour centrer le texte */
}
.float-left {
  float: left;
  margin: 0 1rem 1rem 0;
}
.strong-rouge {
  font-weight: 600;
  color: #d32f2f;
}
/* Styles de liens */
a {
  color: blue;
  cursor: pointer;
  text-decoration: none;
}

a:active,
a:focus,
a:hover {
  color: darkblue;
  text-decoration: underline;
}
.noLink a:active,
.noLink a:focus,
.noLink a:hover {
  text-decoration: none;
}
.inv,
.hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
}
.space-30 {
  padding-top: 30px;
}
.space-50 {
  padding-top: 50px;
}
.space-100 {
  margin-top: 100px;
}
/* Mot de passe */

#contenuCache {
  display: none;
  margin-top: 20px;
}
.authPW {
  position: relative;
  font-family: "Share Tech Mono", monospace;
  background-color: #002b5c;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 640px;
  margin: 3rem auto 2rem;
}
.authPW h2 {
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  font-size: 2.6rem;
  margin: 1em 0;
  color: #fafafa;
  font-weight: bolder;
  text-transform: uppercase;
}

.authPW .inPw {
  width: 80%;
  font-size: 2.5em;
  margin: 0.2em auto 0.2em;
  background: white;
  border-radius: 5px;
  text-align: center;
}
.BtnInstallation {
  display: block;
  width: 100%;
  text-transform: uppercase;
  margin: 2rem auto;
  padding: 1rem 2rem;
  font-size: 1rem;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.BtnInstallation:hover {
  background: #2980b9;
}
.btnValPw {
  margin-top: 20px;
  background-color: #ff7300;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 80%;
}
.btnValPw:hover {
  background-color: #e55d00;
}

.debug,
.datas {
  background: #f0f2f5;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  font-family: monospace;
  white-space: pre-wrap;
}
#debug::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* MOT DE PASSE */
.input-container {
  position: relative;
  margin-bottom: 25px;
}

.password-input {
  width: 100%;
  padding: 15px 50px 15px 15px;
  border: none;
  border-radius: 8px;
  font-size: 32px;
  background: #f5f5f5;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.password-input::placeholder {
  color: #999;
  font-size: 32px;
}

.password-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.eye-icon img {
  width: 100%;
  height: 100%;
  display: none;
}

.eye-icon img.active {
  display: block;
}

.validate-btn {
  display: block;
  margin: 0 auto;
  width: 100%;
  padding: 15px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.validate-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.validate-btn:active {
  transform: translateY(0);
}

/* Animation d'entrée */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  margin-top: 1rem;
  max-width: 960px;
  width: 100%;
  flex-shrink: 0;
  color: rgb(95, 95, 95);
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.4;
}
.footerGrid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 2fr 4fr 2fr;
}
/* Ligne de séparation */
.hr-light {
  height: 1px;
  background-color: blue;
  border: none;
  margin: 1.5rem auto 1rem;
}

.success-message {
  background-color: #d4edda;
  color: #002709;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  padding: 10px;
  margin: 30px 20px;
}
.infosAjout {
  text-align: center;
  font-size: 2rem;
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin: 2rem 1rem;
}

.error {
  color: #e74c3c;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
}
.cadreURL {
  font-size: 1.6rem;
  text-align: center;
  color: green;
  font-weight: bold;
  border: solid 2px #3498db;
  border-radius: 0.2rem;
  margin: 1rem 0 2rem 0;
}
.text-orange {
  color: orange;
}
.txtRappel {
  font-size: 1.6rem;
  margin: 2rem 0 3rem 0;
}
.shake {
  animation: shake 0.3s;
}
/* Test storage */
.storage-status {
  margin: 2rem 0 1rem 0;
}
/* barre mémoire dispo */
.bar-container {
  width: 50%;
  margin: 0 auto;
  background-color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  height: 25px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}

.bar-used {
  background-color: #019d3a;
  height: 100%;
  width: 0;
  transition: width 1s ease-out;
}

.text-info {
  margin-top: 0.5rem;
  font-size: 1rem;
  text-align: center;
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.install-warning {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  max-width: 100%;
  margin: auto;
  color: #333;
}

.install-warning h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #d32f2f;
}

.install-warning .highlight {
  color: #e53935;
  font-weight: bold;
}
.install-warning p,
.install-warning ul {
  font-size: 0.8rem;
}
.install-warning ul {
  margin-top: 1rem;
  padding-left: 0;
  margin-left: 1rem;
  line-height: 1.6;
  list-style: none;
}

/* s actualiser */
.btn {
  font-size: 1.8rem;
  text-transform: uppercase;
  border: none;
  border-radius: 20px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn.update {
  background-color: #28a745;
  color: white;
}

.btn.update:hover {
  background-color: #218838;
}

.btn.delete {
  background-color: #dc3545;
  color: white;
}

.btn.delete:hover {
  background-color: #c82333;
}
.refresh-btn {
  background: linear-gradient(145deg, #4caf50, #45a049);
  border: none;
  border-radius: 15px;
  padding: 15px 30px;
  margin-top: 2rem;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.refresh-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.refresh-btn:hover::before {
  left: 100%;
}

.refresh-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
  background: linear-gradient(145deg, #5cbf60, #4caf50);
}

.refresh-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.refresh-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
  transform: rotate(180deg);
}

.refresh-btn:active .refresh-icon {
  transform: rotate(360deg);
}
.export-btn {
  margin-top: 20px;
  background-color: #ff7300;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 80%;
}
.export-btn:hover {
  background-color: #e55d00;
}
/* Media Queries pour la responsivité */
/* Media Queries pour la responsivité */
@media (min-width: 481px) {
  h1 {
    font-size: 1rem;
  }
  .col-gauche img {
    height: calc(100% - 4px);
    margin: 2px;
    object-fit: contain;
    display: block;
    border-radius: 2px;
  }
}
@media (min-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  .col-gauche img {
    height: calc(100% - 6px);
    margin: 3px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
  }
  .BtnInstallation {
    font-size: 1.4rem;
  }
}
@media (min-width: 960px) {
  .col-gauche img {
    height: calc(100% - 8px);
    margin: 4px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
  }
  h1 {
    font-size: 1.8rem;
  }
}

nav {
  padding-top: 2rem;
}

.cadreInfos p {
  font-size: 1.3rem;
  text-align: center;
}

ul {
  font-size: 1.2rem;
}

.upload-section {
  max-width: 640px;
  border: 2px dashed #aaa;
  margin: 2rem auto;
  padding: 1rem 1rem 3rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  background-color: #f9f9f9;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-section:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
  cursor: pointer;
}

.upload-section.dragover {
  border-color: #007bff;
  background-color: #e3f2fd;
}

.upload-icon {
  margin-bottom: 10px;
}

.down {
  width: 64px;
  height: 64px;
}

#borrowersFile {
  display: none;
}

.file-info {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.inv {
  display: none;
}

.tableList {
  margin: 20px;
}

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

.tableList th,
.tableList td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.tableList th {
  background-color: #f2f2f2;
}

.erreurBloc {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
}

.xmlErreur {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 3px;
  overflow-x: auto;
  font-size: 12px;
}

.infosTab {
  max-height: 300px;
  overflow: auto;
  border-radius: 0.5rem;
}

.infosAjout {
  text-align: center;
  font-size: 2rem;
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin: 2rem 1rem;
}

.export-btn {
  margin-top: 20px;
  background-color: #ff7300;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 80%;
}

.export-btn:hover {
  background-color: #e55d00;
}

/* Chemin de fer */
.progress-tracker {
  margin: 40px auto;
  text-align: center;
}

.progress-tracker ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: auto;
  position: relative;
  counter-reset: steps;
}

.progress-tracker .step {
  flex: 1;
  padding: 15px 10px 5px;
  border-bottom: 4px solid #aaa;
  position: relative;
  color: #bbb;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s, border-color 0.3s;
}

.progress-tracker .step::before {
  content: attr(data-step);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #868686;
  color: #2f2f2f;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  /* clé du centrage */
  justify-content: center;
  align-items: center;
  font-size: 18px;
  border: 3px solid #999;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  z-index: 1;
}

/* ligne de progression plus forte */
.progress-tracker .step::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 0;
}

/* Étape active */
.progress-tracker .step.activeFer {
  color: #000;
  border-color: #00c853;
}

.progress-tracker .step.activeFer::before {
  background-color: #00c853;
  border-color: #00e676;
  color: #fff;
}

/* Étape complétée (si besoin un jour) */
.progress-tracker .step.completed::before {
  background-color: #4caf50;
  border-color: #81c784;
  color: white;
}

.progress-tracker .step.completed {
  color: #4caf50;
  border-color: #4caf50;
}

/* Responsive */
@media (max-width: 600px) {
  .progress-tracker ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .progress-tracker .step {
    border-bottom: none;
    padding-bottom: 1rem;
  }

  .progress-tracker .step::after {
    display: none;
  }
}

/* Boutons */

.btnVert {
  background-color: #7b6800;
  font-size: 2.4rem;
  width: 100%;
  text-transform: uppercase;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 6px;
}

.btnVert:hover {
  background-color: #c98300;
}

.btnVersDemo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: rgb(75, 75, 75);
  border: 2px darkcyan dashed;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  margin: 2rem 0 3rem 0;
  text-align: center;
  transition: all 0.2s ease-in;
}

.btnVersDemo:hover {
  cursor: pointer;
  border: 2px darkcyan solid;
}

.btnVert:hover {
  background-color: #c98300;
}

.btnValEtape {
  margin: 1rem 0 2rem;
  background-color: #ff7300;
  color: white;
  border: none;
  padding: 1rem 0;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background-color 0.3s;
  width: 100%;
  cursor: pointer;
}

.btnValEtape:hover {
  cursor: pointer;
  background-color: #e55d00;
  pointer-events: auto !important;
}

.form-container {
  max-width: 90%;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fffaf4;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  text-align: left;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff7300;
  box-shadow: 0 0 5px #ff7300;
}

.error-message,
.success-message {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
}

.error-message {
  background-color: #ffe6e6;
  color: #c00;
  border: 2px solid #c00;
}

.inv {
  display: none;
}

.flex-center {
  text-align: center;
  margin-top: 2rem;
}
