/* ------------Style du toggle eye des filtres additionnels------------ */
.icon-toggle i {
  font-size: 24px;
  transition: all 0.3s ease;
  color: hsl(207, 90%, 54%);
  transform: scale(1.1);
}

.icon-toggle.active i {
  color: #5b5b5b;
  transform: scale(1);
}

/* ------------Menu management account------------ */
.form-container { 
    display: none; 
}

.form-container.active { 
    display: block; 
}

#login-button { 
    display: inline; 
}

#btnconnect {
    height: 50px;
    width: 300px;
    background-color: #337AB7;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-size: medium;
}

#formconnex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#formconnex input {
    width: 300px;
    height: 40px;
    border-radius: 5px;
}

#login-form {
    text-align: center;
    display: none;
}
#login-form button { cursor: pointer; }

.login-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
}
.login-form-buttons button {
    color: rgb(24, 81, 165);
    border: none;
    background-color: rgba(0, 0, 0, 0);
}
.login-form-buttons button:hover {
    color: rgb(11, 63, 139);
    text-decoration: underline;
}

#forminsc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#forminsc input{
    width: 300px;
    height: 40px;
    border-radius: 5px;
}

#register-form {
    text-align: center;
    margin: 10px;
}

#registerbtn {
    height: 50px;
    width: 300px;
    background-color: #337AB7;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-size: medium;
}

#changePass-form {
    text-align: center;
    margin: 10px;
}

/* ------------Menu filtre/catégories------------ */
.panel {
    position: absolute;
    left: 0;
    top: 0;
    margin: 10px 10px;
    width: 375px;
    background-color: rgba(0, 0, 0, .8);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .6) !important;
    color: white;
    border-radius: 16px;
    z-index: 1000;
}

.panel-flag {
    padding: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, .2);
}

.panel-flag-bandeau {
    display: flex;
    justify-content: space-between;
}
.panel-flag-bandeau button { background: none; border: none }
.panel-flag img { height: 32px; width: auto; filter: invert(100%); cursor: pointer; }

.panel-controls {
    padding: 8px 3px;
    display: flex;
    flex-wrap: wrap;
}

.panel-controls a {
    font-size: unset;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
    border: none;
    color: white;
    background-color: #8585856b;
    text-align: center;
    width: -webkit-fill-available;
    padding: 5px;
    margin: 4px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Les boutons de filtres additionnel */
.panel-controls button {
    border-radius: 6px;
    border: none;
    font-size: medium;
    width: -webkit-fill-available;
    background-color: #8585856b;
    color: white;
    padding: 7px;
    margin: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-controls button:hover { opacity: 0.7; }

.panel-flag img:hover, .panel-controls a:hover {
    opacity: 0.7;
}

#panel-icons {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    max-height: calc(100vh - 336px); /* Ajuste la hauteur dynamique */
    /* max-height: 620px; */
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-content: flex-start;
}
#panel-icons img { cursor: pointer; }

.panel-icons-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    width: 96px;
    margin: 10px;
    gap: 3px;
    background: none;
    border: none;
    color: white;
}
.panel-icons-element img { height: 84px; width: auto; }
.panel-icons-element img:hover { opacity: 0.7; }
.panel-icons-element span {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}
.panel-icons-element:hover { opacity: 0.6; }

.panel-icons-element-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    width: 96px;
    margin: 10px;
    gap: 3px;
    cursor: pointer;
}
.panel-icons-element-active img { height: 84px; width: auto; }
.panel-icons-element-active span {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.scrollable-panel { scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }