body {
  margin: 0;
  display: flex;
  height: 100vh;
  font-family: sans-serif;
  background-color: white;
  overflow: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  align-items: center;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: start;
  align-items: center;
}

.navbar li {
  list-style: none;
  padding: 15px;
}

.navbar a,
.navbar a:visited {
  color: #cf52eb;
  text-decoration: none;
  filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, 0.2));
  font-size: 20px;
  font-weight: bold;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  border: 1px solid #222;
  padding: 12px;
  letter-spacing: 2px;
  transition: 0.5s;
  box-shadow: 2px 3px 5px 0px rgba(128, 128, 128, 0.352);
  display: inline-block;
}

a:hover,
a:visited:hover {
  padding: 16px;
  transform: scale(1.1);
}

/* --- GALERIE (1er élément de la liste) --- */
.navbar li:first-of-type a {
  color: #cf52eb;
  border: 1px solid #cf52eb;
}

/* --- STUDIO (2ème élément de la liste) --- */
.navbar li:nth-of-type(2) a {
  color: turquoise;
  border: 1px solid turquoise;
}

.logout-btn:nth-of-type(1) {
  margin-right: 20px;
  border: 1px solid turquoise;
  color: turquoise;
  box-shadow: 2px 2px 15px #b33dcd70;
}

.logout-btn {
  background: transparent;
  border: 1px solid turquoise;
  color: turquoise;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 2px 2px 15px rgba(64, 224, 208, 0.5);
}

.logout-btn:hover {
  transform: scale(1.1);
  letter-spacing: 0.5px;
  color: turquoise;
}

.logout-btn:nth-of-type(1):hover {
  transform: scale(1.1);
  letter-spacing: 0.5px;
  border: 1px solid #b33dcd;
  color: #b33dcd;
}

/* ---  PARTIE GAUCHE (GSAP) --- */
.intro-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.intro-side h1 {
  font-size: 5rem;
  font-weight: bolder;
  background: url(../images/pola.jpg) center/cover;
  background-clip: text;
  background-size: 30% auto;
  filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, 0.2));
  color: transparent;
  text-transform: uppercase;
  animation: moveBackground 12s linear infinite;
  margin-bottom: 0px;
}

@keyframes moveBackground {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.intro-side p {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 400px;
  text-align: center;
  opacity: 0.8;
  color: turquoise;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.43);
}

/* --- PARTIE DROITE --- */
.tof {
  flex: 1;
  margin-top: 50px;
  height: 97vh;
  background-image: url("../images/polaroid.jpg");
  background-size: 650px;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

form {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

form h2 {
  color: #333;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

form p {
  color: #555;
  margin-bottom: 20px;
}

form input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid turquoise;
  border-radius: 4px;
  background: rgba(64, 224, 208, 0.1);
  color: #333;
  margin-top: 10px;
}

form button {
  background: turquoise;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

form button:hover {
  transform: scale(1.05);
  background: #40e0d0;
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.notif-options {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 20px;
  padding: 5px 0 15px 0;
  width: 100%;
}

.notif-row label {
  flex: none;
  width: 100%;
  margin-bottom: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}

.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto 1px auto;
}

.form-row label {
  text-align: left;
  flex: 0 0 150px;
  font-size: 0.9rem;
  color: #333;
}

.form-row input {
  flex: 1;
  padding: 8px;
  border: 1px solid turquoise;
  border-radius: 4px;
  background: rgba(64, 224, 208, 0.1);
}

.form-row.notif-row {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
}

.button-group {
  margin-left: 20px;
}

.no-border p {
  margin-bottom: 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 10px 20px;
  box-sizing: border-box;
  z-index: 1000;
  text-align: end;
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

footer span {
  color: turquoise;
  font-weight: bold;
}

/******************** Media queries ******************/

@media (max-width: 768px) {
  body {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .navbar {
    position: relative;
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    gap: 15px;
    box-sizing: border-box;
  }

  .navbar ul {
    padding: 0;
    margin: 0;
  }

  .navbar li {
    padding: 5px 10px;
  }

  .navbar a,
  .navbar a:visited {
    font-size: 14px;
    padding: 8px;
  }

  #user-menu,
  #guest-menu {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar .logout-btn {
    padding: 5px 15px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3rem !important;
    margin-top: 20px;
  }
 
  .intro-side p {
  font-size: 1.3rem;
}

  .tof {
    flex: none;
    margin-top: 0px;
    width: 95vw;
    min-height: 500px;
    background-image: url("../images/polaroid.jpg");
    background-size: 110% 90%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px 150px 10px;
  }

  form {
    margin-top: 100px;
    background: transparent;
    width: 100%;
    max-width: 250px;
  }
  form h2 {
    display: none;
  }

  .call-to-action {
    margin-bottom: 0;
  }

  .form-row {
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
  }

  .form-row label {
    flex: none;
    width: 100%;
    margin-bottom: 5px;
  }

  .form-row input {
    width: 100% !important;
    box-sizing: border-box;
  }
  .notif-options {
    width: 50%;
    gap: 0px;
    padding: 0;
  }
  .radio-label {
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .button-group {
    width: 115%;
    height: 15vh;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .btn-pwd,
  .btn-save {
    width: 250px;
    flex: 1;
    margin: 5px;
    box-shadow: 3px 4px 8px 2px rgba(128, 128, 128, 0.504);
  }
  .no-border {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }

  .no-border p,
  p {
    width: 100%;
    text-align: center;
    font-weight: 600;
  }

  footer {
    text-align: center;
  }
}
