@media only screen and (max-width: 335px) {
  #test {
display: none;
   
  }
}
/* Media queries for phones */
@media only screen and (max-width: 600px) {
  h1 {
    margin: 0;
    font-size: calc(10px + 2vw); /* Taille du texte responsive */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -5px;
   
  }

 .menu .logo {
    color: #15A6DD;
    text-decoration: none;
  }
  .header {
    background-color: #f7f7f7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: visible;
    margin-bottom: 20px;
    z-index: 900; 

  }
  .title-menu-container {
display: flex;
align-items: center;
justify-content: flex-start; /* Align items horizontally */
width: 100%;
}
.logo {
  color: #15A6DD;
  text-decoration: none;
}

  .search-container {
    flex: 1;
    margin-left: 0px;
    margin-right: 100px;
    width: 100%;
    text-align: left;

  }

  .search-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    border: 1px solid #15A6DD;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .search-form input {
    flex: 1;
    height: 28px;
    padding: 6px;
    border: none;
    font-size: 14px;
    outline: none;
  }

  .search-form button {
    background-color: #f7f7f7;
    border: none;
    padding: 12px;
    cursor: pointer;
  }

  .search-form button i {
    color: #15A6DD;
    font-size: 16px;
  }

  .icons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Align items vertically */
    justify-content: flex-end; /* Align items horizontally */
    margin-top: -90px;
    margin-left: auto; /* New line */
  }

  .icon-button {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    margin: 3px;
    position: relative;
  }

  .icon-button .new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 8px;
    background-color: #15A6DD;
    color: #ffffff;
    font-size: 12px;
    border-radius: 60%;
    z-index: 1;
  }

  .icon-button img {
    height: 20px;
    margin-right: 5px;
  }

  .button {
    display: none;
  }

  .menu-toggle {
display: none;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; /* Réduire la taille du hamburger */
  height: 40px; /* Réduire la taille du hamburger */
  cursor: pointer;
  z-index: 1000; 
  margin-left: -10px;
}

.menu-icon span {
  display: block;
  width: 20px; /* Réduire la taille des lignes du hamburger */
  height: 2px; /* Réduire la taille des lignes du hamburger */
  background-color: #000;
  margin-bottom: 3px; /* Réduire l'espacement entre les lignes du hamburger */
}

/* Cacher le menu lorsque la case à cocher n'est pas cochée */
.menu-toggle:checked + .icons-container {
display: none;
}


.menu {
  position: absolute;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: #f7f7f7;
  color: #000;
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Make sure the menu appears on top */
}

.menu.open {
  left: 0;
}

.menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu li {
  padding: 10px;
  border-bottom: 1px solid #555;
}

.menu li:last-child {
  border-bottom: none;
}

.menu a {
  color: #000;
  text-decoration: none;
}

.icons-container.disabled {
display: none;/* pour d'esactive les icone si la menu est active */
}

.over {
  position: absolute;
  top: 0;
  left: 280px; /* Same width as the menu */
  width: calc(100% - 280px); /* Subtract the width of the menu */
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 950; /* Make sure the overlay is above the header */
}

.over.visible {
  display: block;
}

}

#username {
  display: none;
  }

/* Media queries for computers */
@media only screen and (min-width: 601px) {
  .header {
    background-color: #f2f2f2;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
  }

  h1 {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding-right: 20px;
  }

  .logo {
    color: #15A6DD;
    text-decoration: none;
    padding-left: 20px;
 
  }

  .search-container {
    flex: 1;
    margin-left: 20px;
    margin-right: 20px;
  }

  .search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #15A6DD;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .search-form input {
    flex: 1;
    height: 28px;
    padding: 6px;
    border: none;
    font-size: 14px;
    outline: none;
  }

  .search-form button {
    background-color: #f7f7f7;
    border: none;
    padding: 12px;
    cursor: pointer;
  }

  .search-form button i {
    color: #15A6DD;
    font-size: 16px;
  }

  .icons-container {
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .icon-button {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
  }

  .icon-button span {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 8px;
    background-color: #15A6DD;
    color: #ffffff;
    font-size: 12px;
    border-radius: 60%;
    z-index: 1;
  }

  .icon-button img {
    height: 30px;
    margin-right: 5px;
  }

  .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #15A6DD;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 3px;
    transition: background-color 0.3s ease;
  }

  .button:hover {
    background-color: #15a4dd73;
  }
  .menu {
display: none;

}

#user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #15A6DD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#user-details {
  display: none;
}
#user-profile-img {
  width: 40px; /* Définir la largeur de l'image */
  height: 40px; /* Définir la hauteur de l'image */
  border-radius: 50%; /* Rendre l'image circulaire */
  object-fit: cover; /* S'assurer que l'image couvre toute la zone, tout en conservant son aspect */
}
}













/* REPOSIVE HEADER */



@media only screen and (min-width: 601px) {
  .header {
    background-color: #f2f2f2;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
  }

  h1 {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding-right: 20px;
  }

  .logo {
    color: #15A6DD;
    text-decoration: none;
    padding-left: 20px;
 
  }

  .search-container {
    flex: 1;
    margin-left: 20px;
    margin-right: 20px;
  }

  .search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #15A6DD;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .search-form input {
    flex: 1;
    height: 28px;
    padding: 6px;
    border: none;
    font-size: 14px;
    outline: none;
  }

  .search-form button {
    background-color: #f7f7f7;
    border: none;
    padding: 12px;
    cursor: pointer;
  }

  .search-form button i {
    color: #15A6DD;
    font-size: 16px;
  }

  .icons-container {
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .icon-button {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
  }

  .icon-button span {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 8px;
    background-color: #15A6DD;
    color: #ffffff;
    font-size: 12px;
    border-radius: 60%;
    z-index: 1;
  }

  .icon-button img {
    height: 30px;
    margin-right: 5px;
  }

  .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #15A6DD;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 3px;
    transition: background-color 0.3s ease;
  }

  .button:hover {
    background-color: #15a4dd73;
  }
  .menu {
display: none;

}

#user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #15A6DD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#user-details {
  display: none;
}
#user-profile-img {
  width: 40px; /* Définir la largeur de l'image */
  height: 40px; /* Définir la hauteur de l'image */
  border-radius: 50%; /* Rendre l'image circulaire */
  object-fit: cover; /* S'assurer que l'image couvre toute la zone, tout en conservant son aspect */
}
}








@media (min-width: 700px) and (max-width: 899px) {
/* Zoom: 170% */
  .header {
    background-color: #f2f2f2;
    padding: 5px;

  }
  .button {
    padding: 5px 10px;
    font-size: 12px;

  }

  .icons-container {

    padding-left: 10px;
  }

  .icon-button {

    padding: 6px;

    margin-right: 10px;

  }
  .icon-button img {
    height: 15px;
    
  }
  .icon-button span {
    top: 2px;
    right: 2px;
    padding: 2px 4px;
  
    font-size: 6px;
  
  }
  h1 {
    font-size: 16px;
    
  }
  #user-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .search-container {
     padding: 6px;
  }
  .search-form input {
    height: 10px;
    padding: 3px;
    font-size: 8px;
  }

  .search-form button  {
   
    padding: 4px;
  }
  .search-form button i {
   
    font-size: 10px;
  }
  #user-profile-img {
    width: 20px; 
    height: 20px; 

  }
}

@media (min-width: 900px) and (max-width: 1099px) {
/* Zoom: 150% */

  .header {
    background-color: #f2f2f2;
    padding: 10px;

  }
  .button {
    padding: 6px 12px;
    font-size: 12px;

  }
  .icon-button img {
    height: 20px;
    margin-right: 5px;
  }
  .icon-button span {
    top: -3px;
    right: -3px;
    padding: 3px 6px;
  
    font-size: 8px;
  
  }
  h1 {
    font-size: 20px;
    padding-right: 10px;
  }
  #user-icon {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .search-container {
     padding: 8px;
  }
  .search-form input {
    height: 12px;
    padding: 4px;
    font-size: 12px;
  }

  .search-form button  {
   
    padding: 8px;
  }
  .search-form button i {
   
    font-size: 12px;
  }
  #user-profile-img {
    width: 30px; 
    height: 30px; 

  }
}

@media (min-width: 1100px) and (max-width: 1199px) {
/* Zoom: 130% */

  .header {
    background-color: #f2f2f2;
    padding: 10px;

  }
  .button {
    padding: 6px 12px;
    font-size: 12px;

  }

  .icon-button img {
    height: 20px;
    margin-right: 5px;
  }
  .icon-button span {
    top: -3px;
    right: -3px;
    padding: 3px 6px;
  
    font-size: 8px;
  
  }
  h1 {
    font-size: 20px;
    padding-right: 10px;
  }
  #user-icon {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .search-container {
     padding: 10px;
  }
  .search-form input {
    height: 14px;
    padding: 6px;
    font-size: 14px;
  }

  .search-form button  {
   
    padding: 8px;
  }
  .search-form button i {
   
    font-size: 14px;
  }
  #user-profile-img {
    width: 30px; 
    height: 30px; 

  }
}

@media (min-width: 1200px) and (max-width: 1299px) {
/* Zoom: 120% */

  .header {
    background-color: #f2f2f2;
    padding: 10px;

  }
  .button {
    padding: 8px 16px;
    font-size: 12px;

  }
  .icon-button img {
    height: 20px;
    margin-right: 5px;
  }
  .icon-button span {
    top: -3px;
    right: -3px;
    padding: 3px 6px;
  
    font-size: 8px;
  
  }
  h1 {
    font-size: 20px;
    padding-right: 10px;
  }
  #user-icon {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .search-container {
     padding: 10px;
  }
  .search-form input {
    height: 14px;
    padding: 6px;
    font-size: 14px;
  }

  .search-form button  {
   
    padding: 8px;
  }
  .search-form button i {
   
    font-size: 14px;
  }
  #user-profile-img {
    width: 30px; 
    height: 30px; 

  }
}

@media (min-width: 1300px) and (max-width: 1449px) {
  /* Zoom: 110% */

  
}

@media (min-width: 1450px) {
 /* Zoom: 100%*/
}
@media (min-width: 1650px) {
/*Zoom: 90% */
}
@media (min-width: 1850px) {
  /*Zoom: 80% */
}
@media (min-width: 2050px) {
  /*Zoom: 60%*/
}