:root {
  --color-scheme: light dark;
}

/* Quand le thème est light, inverser l'affichage des icônes */
.light-theme .tld-light-icon {
  display: none;
}

.light-theme .tld-dark-icon {
  display: block;
}

.dark-theme .tld-light-icon {
  display: block;
}

.dark-theme .tld-dark-icon {
  display: none;
}

/* Styles pour les icônes de thème */
.tld-theme-toggle-icon {
  fill: var(--accent-color);
}

.tld-theme-toggle-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  position: relative;
  z-index: 1000;
  padding: 0;
  &:hover {
    animation: turn-icon 1s ease-in-out;
  }
}

@keyframes turn-icon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


::view-transition-new(root),
::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}


