body {
  font-family: "Sigmar", sans-serif;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.navbar {
  top: 0;
  left: 0;
  width: 90%;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: start;
  align-items: center;
  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;
}

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

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

/* --- LE LOOK DE BASE (Turquoise pour Connexion et Déconnexion) --- */
.navbar a.logout-btn,
.navbar button.logout-btn {
  background: transparent;
  border: 1px solid turquoise;
  color: turquoise;
  padding: 10px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 2px 2px 15px rgba(64, 224, 208, 0.5);
  text-decoration: none;
  filter: none;
  font-size: 1.1rem;
  letter-spacing: normal;
}

#guest-menu a.logout-btn:first-child {
  border: 1px solid #b33dcd;
  color: #b33dcd;
  /* box-shadow: 2px 2px 15px #b33dcd70; */
   box-shadow: 2px 2px 15px #8b0ca770;
  margin-right: 15px;
}

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

#guest-menu a.logout-btn:first-child:hover {
  color: #b33dcd;
  border: 1px solid #b33dcd;
}

.public-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto 120px auto;
}

.mini-pola-public {
  background: white;
  padding: 10px 10px 30px 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(calc(var(--r, 0) * 1deg));
  transition: 0.3s;
}
.mini-pola-public:nth-child(even) {
  --r: 2;
}

.mini-pola-public:nth-child(odd) {
  --r: -2;
}

.mini-pola-public:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
}

.info-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #333;
  font-size: 0.9rem;
  font-weight: bold;
}
/* Modale photo - même verre clair que les pop-up (voir alert.css) */
/* Modale photo - même verre blanc que les pop-up (voir alert.css) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* Voile blanc translucide : la page reste visible, mais floutée */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.modal-content {
  margin: 5% auto;
  padding: 26px;
  width: 80%;
  max-width: 900px;
  position: relative;
  color: #333;

  /* La plaque de verre blanc */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.18),
    0 2px 10px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

/* Le reflet : une lumière diffuse qui vient du coin haut-gauche */
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Le contenu passe au-dessus du reflet */
.modal-body {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
}

#modalImg {
  max-width: 60%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(31, 38, 135, 0.2);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #9a2bb5;
}

.modal-interactions {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.comment-item {
  background: rgba(255, 255, 255, 0.35);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 3px solid rgba(255, 255, 255, 0.958);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.848);
  color: #333;
}

.comment-date {
  display: block;
  margin-bottom: 4px;
  color: #666;
}

.comment-date {
  font-size: 0.7em;
}

#modalTitle {
  color:#80169a;
  margin-top: 0;
}

#commentsList {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

textarea#commentText {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.35);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  resize: none;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea#commentText::placeholder { color: #888; }

textarea#commentText:focus {
  outline: none;
  border-color: turquoise;
  background: rgba(255, 255, 255, 0.55);
}

#submitComment {
  background: turquoise;
  color: #1a1a1a;
  border: none;
  padding: 10px;
  margin-top: 5px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(64, 224, 208, 0.45);
  transition: 0.2s;
}

#submitComment:hover { transform: translateY(-1px); }

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 32s linear infinite;
  margin: 0px;
}

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

  to {
    background-position: 100% 50%;
  }
}

header 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);
}

a {
  text-decoration: none;
  font-size: 14px;
}

.pagination {
  padding: 30px 0;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.pagination a {
  display: inline-block;
  padding: 10px 18px;
  color: #222;
}

.p9 a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  text-align: center;
  margin: auto 5px;
}

.p9 a.is-active {
  border: 3px solid turquoise;
  border-radius: 100%;
}

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 (min-width: 1200px) {
  .public-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 10px;
    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: 2.5rem !important;
    margin-top: 20px;
  }

  header p {
    font-size: 1rem;
    padding: 0 20px;
    max-width: 100%;
  }

  .public-gallery {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 16px; /* On garde de la marge pour les coins arrondis */
    overflow-y: auto;
    max-height: 90vh;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  #modalImg {
    max-width: 100%;
  }
  .p9 a {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
  }
  footer{
    text-align: center;
  }
}
