* {
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}


html, body {
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--text-color);
  margin: 0;
}

/* Masquer visuellement les barres mais garder le défilement actif */
::-webkit-scrollbar {
    display: none;
}
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge Legacy */
}


input, button, select, textarea {
  font: inherit;
  border-radius:5px;
}

input[type="text"], input[type="password"], textarea, input[type="email"]{
  background: var(--text-input-background);
  border:var(--text-input-border);
  color: var(--text-input-text-color);

  padding:0px;
  margin:0px;
}



.nav input[type="text"]{
  background:var(--menu-text-input-background);
  border:var(--menu-text-input-border);
  color:var(--menu-text-input-text-color);
}

hr {
  border: none;
  border-top: 1px solid var(--hr-color);
  margin: 20px 0;
}

a {
  color:var(--text-color);
  font-weight: bold;
}

button, input[type="submit"] {
  background:var(--button-background);
  color:var(--button-text-color);
  border:var(--button-border);
  transition: 0.5s;
  cursor: pointer;
}

button:hover, input[type="submit"]:hover {
  background:var(--button-hover-background);
  color:var(--button-hover-text-color);
  border:var(--button-hover-border);
  letter-spacing: 0.5px;
}


input.theme-name {
  border:none;
  background:transparent;
  pointer-events:none;
  color:inherit;
  text-align: left;
  width:80px;
}

.theme-circle {
  margin-top:5px;
  height: 35px;
  width: 35px;
  border-radius:100px;
  border: 5px solid;
}

.theme-circle:hover {
  width: 40px;
}





input[type="radio"]{
  vertical-align:middle;
}



/* -------------------------------------- Menu ---------------------------------------- */

:root {
	--menu-height: 45px;
}

.menu, .nav{
  position:fixed;
  width:100vw;
  height:var(--menu-height);
  margin:0px;
  bottom:0px;
  
  /* Magie Flexbox */
  display: flex;
  justify-content: space-around; /* espace égal entre les boutons */
}

.nav{
  top:0px;
}

.menu > div, .nav > div{
  background:var(--menu-button-background);
  color:var(--menu-button-text-color);
  border:var(--menu-button-border);
  transition:0.5s;
  cursor:pointer;
  flex:1;
  height:var(--menu-height);
  text-align:center;
  
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu > div:hover, .nav > div.ico:hover{
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  background:var(--menu-button-hover-background);
  color:var(--menu-button-hover-text-color);
  border:var(--menu-button-hover-border);
}
.nav > div.ico:hover{
  transform: translateY(2px);
}



.menu .active {
  background:var(--menu-button-current-background);
  color:var(--menu-button-current-text-color);
  border:var(--menu-button-current-border);
}
.menu .active:hover {
  background:var(--menu-button-current-background);
  color:var(--menu-button-current-text-color);
  border:var(--menu-button-current-border);
}


svg.search{
  margin-left:10px;
	padding:4px;
	transition:0.3s;
}
svg.search:hover{
	transform:scale(1.3);
}

input.search{
  width:calc( max( 145px , min( 280px, 15vw + 70px ) ) );
  height:30px;
  margin-left:5px;
}

.menu > div > a, .nav > div > a{
  text-decoration:none;
  color:inherit;
  width:100%;
  height:100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

small.user-info {
  margin-right:10px;
  width:calc( max( 15px , min( 200px, 15vw + 20px ) ) );
  margin-left: calc( min( 10px, 1vw) );
  text-align:left;
  height:30px;
  overflow-x:scroll;
  overflow-y:hidden;
}







/* -------------------------------------- Notifications ---------------------------------------- */

/* variantes */
.notif.info {
  background: var(--notif-info-background);
  color: var(--notif-info-text);
}
.notif.success {
  background: var(--notif-success-background);
  color: var(--notif-success-text);
}
.notif.error {
  background: var(--notif-error-background);
  color: var(--notif-error-text);
}
.notif.warning {
  background: var(--notif-warning-background);
  color: var(--notif-warning-text);
}

/* Notifier — léger, empilable, accessible */
.notif-container {
  position: fixed;
  top: calc(5px + env(safe-area-inset-bottom));
  right: calc(5px + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none; /* ne bloque pas l’UI en dessous */
}

.notif {
  pointer-events: auto; /* clics possibles si besoin */
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s ease;
  will-change: opacity;
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-wrap: anywhere; /* évite les débordements moches */
}

/* apparition/disparition */
.notif.visible { opacity: 1; }

/* Motion-friendly */
@media (prefers-reduced-motion: reduce) {
  .notif { transition: none; }
}
