@charset "UTF-8";
* {
  font-family: Inter, sans-serif;
}

header {
  width: 100vw;
}

.navbar {
  padding: 25px 10vw;
  display: flex;
  position: fixed;
  left: 0;
  z-index: 1000;
  justify-content: space-between;
  width: 100vw;
  box-sizing: border-box;
  align-items: center;
}

.navbar a {
  color: black;
  font-size: 20px;
}

.navbar logo {
  font-size: 2em;
}

.navbar .menu ul {
  display: flex;
}

.navbar .menu ul li {
  margin: 0 30px;
}

.navbar .menu > ul > li:hover > a {
  font-weight: 700;
}

.burger {
  display: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: #222224;
}

.navbar.scrolled {
  background-color: rgba(206, 0, 0, 0.9);
}
.navbar.scrolled .menu ul li a {
  color: #FFFFFF;
}
.navbar.scrolled .burger span {
  background-color: #FFFFFF;
}

@media screen and (max-width: 1100px) {
  .menu {
    display: none;
  }
  .menu.active {
    position: absolute;
    background-color: rgba(206, 0, 0, 0.9);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
  .menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .burger {
    display: block;
    z-index: 2;
  }
  .navbar .menu ul li {
    margin: 30px 0px;
  }
  .navbar .menu ul li a {
    color: #FFFFFF;
    font-size: 32px;
  }
}
.btn {
  padding: 10px;
  background-color: #CE0000;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 20px;
  border: 2px solid #CE0000;
  border-radius: 10px;
  box-shadow: 0 0 0 0;
}
.btn:hover {
  background-color: #FFFFFF;
  color: #CE0000;
}

.galleries {
  display: grid;
  /* Crée des colonnes responsives d'une taille minimale de 280px */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Espace fluide : de 15px (mobile) à 5vw (PC) avec un max de 60px */
  gap: clamp(15px, 5vw, 60px);
  width: 100%;
}

.gallery {
  position: relative;
  display: block;
  height: max-content; /* Force la hauteur à s'adapter exactement à l'image */
}

.cover {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.5);
}

.cover:hover {
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.7);
}

.cover-image {
  width: 100%;
  height: auto; /* Laisse l'image garder son ratio d'origine (ex: 4:3 ou 16:9) */
  display: block;
  border-radius: 10px;
}

.gallery-name {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0;
  color: white;
  width: 90%;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 400px;
  justify-content: center;
}

.horizontal-form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.form-control {
  padding: 10px;
  font-size: 16px;
}

.form-row div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

body {
  background: #FFFFFF;
  color: #CE0000;
  padding: 0 10vw;
}

main {
  padding-top: 200px;
}

.title {
  padding-bottom: 50px;
}

.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}

.photo {
  flex-grow: 1;
  height: 40vw;
  max-height: 300px;
  position: relative;
}

.after-photo {
  flex-grow: 1000;
}

.image {
  height: 100%;
  border-radius: 10px;
  box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.image:hover {
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.7);
}

.modal {
  display: none; /* Masquée par défaut */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: -35px;
  right: 0;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.modal-actions {
  margin-top: 25px;
}

.photos-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 32px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  user-select: none;
  z-index: 1010;
}
.photos-nav-btn:hover {
  background: #CE0000;
  color: #FFFFFF;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* --- Styles Responsives --- */
@media screen and (max-width: 1100px) {
  .photos {
    flex-direction: column;
    align-items: center;
  }
  .photo {
    height: 100%;
    max-height: 100%;
    width: 100%;
  }
  .image {
    height: none;
    width: 100%;
  }
  .photos-nav-btn {
    padding: 10px 20px;
    padding-bottom: 20px;
    font-size: 80px;
  }
  .photos-nav-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
  }
  .photos-nav-btn:active {
    background: #CE0000;
    color: #FFFFFF;
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
}
.admin-photo {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 5px;
  text-align: center;
  background: #fafafa;
  position: relative;
}

.cover-photo {
  border: 2px solid green;
}

.cover-form {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  z-index: 10;
}

.cover-btn {
  background: green;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  z-index: 10;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*# sourceMappingURL=app-7d1043473d.output.css.map */
