:root {
  --color-default-purple: #800080;
  --color-default-blue: #101e77;
  --color-background-light: color-mix(in srgb, var(--color-default-blue) 5%, transparent);
  --color-background: #f9fafb;
  --color-background-darker: rgba(0, 0, 0, 0.05);
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  background: var(--color-background);
  color: #222;
}

/* NavBar */
.navbar {
  position: fixed; /* reste au-dessus quand tu scrolles */
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-default-blue); /* ou une couleur de fond */
  z-index: 1000; /* au-dessus de la dropzone */
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Fullscreen zone */
#dropZone {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.25s, border-color 0.25s;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}

#dropZone.dragover {
  background-color: var(--color-background-light);
}


/* Main loader (container) */
#loader {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
}

/* Pseudo-element: the colored arc (no animation by default) */
#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-sizing: border-box;
  border: 12px solid transparent;
  border-top-color: var(--color-default-purple);
  /* no animation here */
}

/* Animation applies ONLY when the `spinning` class is added */
#loader.spinning::before {
  animation: spin 1.05s linear infinite;
}

/* Text inside the loader */
#loaderText {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: 78%;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-default-purple);
  line-height: 1.1;
  animation: breathe 1.6s ease-in-out infinite;
}

/* Guaranteed hiding (use !important to avoid conflicts) */
.hidden { display: none !important; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes breathe {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.05); opacity: 0.88; }
  100% { transform: scale(1); opacity: 1; }
}

/* Message: big / small states */
.big {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  opacity: 1;
}

.medium {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  opacity: 1;
}

#appDescription {
  margin-top: 0.2rem;
}

/* Chart container */
#chart {
  width: min(900px, 86%);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
}

/* Each bar row */
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Model label */
.bar-row .label {
  width: 20%;
  min-width: 50px;
  text-align: left;
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Visual container of the bar */
.bar-row .bar-bg {
  flex: 1;
  height: 18px;
  background: var(--color-background-darker);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  /*box-shadow: inset 0 1px 0 var(--color-background-darker);*/
}

/* Animated fill */
.bar-row .fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-default-blue) 0%,
    var(--color-default-purple) 100%
  );
  transition: width 800ms cubic-bezier(.2,.9,.3,1);
}

/* Percentage on the right */
.bar-row .pct {
  width: 60px;
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-default-purple);
}

/* Responsive */
@media (max-width: 520px) {
  .big { font-size: 1.6rem; }
  .medium { font-size: 1.2rem; }
  .bar-row .label { display: none; }
  #loader { width: 120px; height: 120px; }
  #loaderText { font-size: 0.85rem; width: 80%; }
}

/* Button */
#fileButton {
  margin-top: 1rem;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-default-purple);
  border-radius: 20px;
  background-color: var(--color-background);
  color: var(--color-default-purple);
  cursor: pointer;
  transition: background-color 0.1s, color 0.1s;
}

#fileButton:hover {
  background-color: var(--color-default-purple);
  color: var(--color-background);
}

/* Link */
.link {
  color: var(--color-default-purple);
  transition: all 200ms ease-in-out;
  text-decoration: none;
  background-color: transparent;
}

.logoLink {
  display: flex;             /* pour que l’image suive le texte */
  align-items: center;       /* centre verticalement le texte et l’image */
  color: var(--color-background);
  transition: all 200ms ease-in-out;
  text-decoration: none;
  background-color: transparent;
}