
:root {
  --blue: #7AC9E0;    
  --text: #ffffff;   
  --input-bg: #1e2124; 
  --border: #31353a;  
}

* {
  font-family: sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #072D38;
  margin: 0;
  color: white;
  padding: 0; 
}

/* === MOBILE VERSION === */
.navbar {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 15px;
  padding: 20px 15px;
  background-color: #072D38; 
  position: relative;
  z-index: 1;
}

.navbar__logo {
  margin-bottom: 10px;
}

.navbar__logo img {
  height: 32px; 
}

.navbar__list {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-around; 
}

.navbar__item {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.5s;
  cursor: pointer;
}

.navbar__item:hover {
  color: var(--blue);
}


.navbar__search-wrapper {
  width: 100%; 
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.search-box {
  width: 100%;
  max-width: 250px;
  padding: 12px 20px 12px 45px; 
  border-radius: 25px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: white;
  
  background-image: url('https://mmi.unilim.fr/~mamedov1/SAE2.03-MAMEDOV/server/images/icone_search.png');
  background-repeat: no-repeat;
  background-position: 15px center; 
  background-size: 20px; 
}

main {
  padding: 20px;
}

.films-container {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 15px;
}

  .profile-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  font-weight: 600;
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

#profile-selector {
  background: var(--input-bg);
  color: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px;
  cursor: pointer;
  padding: 10px 15px; 
  border-radius: 20px; 
  font-size: 14px;
}


/* === DESKTOP VERSION === */
@media (min-width: 1024px) {
  .navbar {
    flex-direction: row; 
    justify-content: flex-start;
    gap: 30px;
    padding: 40px 120px; 
    background-color: transparent; 
  }

.navbar__item {
    flex-direction: row; 
    gap: 10px;
    font-size: 16px;
  }

  .navbar__list {
    width: auto;
    justify-content: flex-start;
    gap: 25px;
  }

  .navbar__search-wrapper {
    width: auto;
  }

  .search-box {
    width: 200px;
  }

  .profile-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  font-weight: 600;
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

#profile-selector {
  background: var(--input-bg);
  color: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px;
  cursor: pointer;
  padding: 10px 15px; 
  border-radius: 20px; 
  font-size: 14px;
}

}










