/*
 * Auteur du code : Gaëtan BALICKI
 * Développeur WEB
 * Contact : contact@un-temps-demotion.fr
 * Site web : www.un-temps-demotion.fr
 */
/* =========================================================
   STYLESHEET GALERIE UNIFIÉ
   bouton.css + connexion.css + font.css + gallery.css + lightbox.css + style.css
========================================================= */


/* =========================================================
   1. BOUTONS
========================================================= */

.download-btn {
  font-size: 12px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border: 1px solid #000000;
  border-radius: 20px;
}

.bouton-2 {
  padding: 8px 16px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border: 1px solid #000000;
  border-radius: 20px;
}


/* =========================================================
   2. CONNEXION
========================================================= */

.login-connexion {
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 20px;
  padding-bottom: 30px;
  background-color: rgba(50, 50, 50, 0.7);
  border-radius: 10px;
}

.login-connexion-close {
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 20px;
  padding-bottom: 30px;
  background-color: rgba(50, 50, 50, 0.7);
  border-radius: 10px;
}

.login-connexion-first {
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 20px;
  padding-bottom: 30px;
  background-color: rgba(50, 50, 50, 0.7);
  border-radius: 10px;
}

@media screen and (max-width: 600px) {
  .login-connexion-close {
    max-width: 300px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: rgba(50, 50, 50, 0.7);
    border-radius: 10px;
  }
}

.titre-connexion {
  font-size: 30px;
  font-style: italic;
  color: #000;
}

.sous-titre-connexion {
  font-size: 15px;
  color: #000;
}

.password-connexion {
  height: 20px;
  width: 200px;
  padding: 5px 10px;
  font-size: 15px;
  border: 1px solid #aaaaaa;
  border-radius: 5px;
  outline: none;
  text-align: center;
}

.error-connexion {
  font-size: 15px;
  font-weight: 500;
  color: #fe6060;
}

.verif-connexion {
  font-size: 15px;
  font-weight: 500;
  color: #27ae3b;
}

.bouton-connexion {
  padding: 8px 16px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border: 1px solid #000000;
  border-radius: 20px;
}


/* =========================================================
   3. FONT
========================================================= */

.titre {
  font-weight: 300;
  font-size: 40px;
  text-transform: uppercase;
}

.login-titre {
  font-size: 30px;
  font-style: italic;
  color: #000000;
}

.login-pass {
  font-size: 15px;
  color: #808080;
}

/* Introduction de la page d'accès, alignée visuellement sur le site principal. */
.gallery-home-intro {
  width: min(calc(100% - 3rem), 1000px);
  margin: 0 auto clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) 0 0;
  color: #1f1f1f;
  text-align: center;
}

.gallery-home-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: #c79970;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-home-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.gallery-home-leaf {
  display: block;
  width: 58px;
  height: auto;
  margin: -0.2rem auto 0.75rem;
}

.gallery-home-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: #686868;
  font-size: 16px;
  line-height: 1.7;
}

.titre-galerie {
  font-size: 3rem;
  font-style: oblique;
  color: #ffffff;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
  margin-bottom: 20px;
}

.barre-blanc {
  width: 100px;
  height: 1px;
  background-color: #ffffff;
  margin: 0 auto;
  clear: both;
  margin-bottom: 20px;
}

.date {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
  font-weight: 300;
}

.name-category {
  font-style: oblique;
  font-size: 1.5rem;
  color: #444444;
}

.message-options {
  font-size: 10px;
  font-style: italic;
}

.loading-text {
  font-size: 25px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0px 0px 10px #000000;
}

.card-text {
  padding-left: 10px;
  padding-right: 10px;
  font-style: oblique;
  font-weight: 300;
  font-size: 15px;
  text-align: center;
}

.text-bold {
  font-weight: 500;
}


/* =========================================================
   4. GALLERY
========================================================= */

.gallery-client {
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}

.gallery-item-client {
  margin: 10px;
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.gallery-item-client img {
  width: 250px;
  height: auto;
  display: block;
}

.gallery-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px;
}

.gallery-item {
  width: 100%;
  padding: 7px; /* Ajouter une marge interne */
  box-sizing: border-box; /* S'assurer que le padding est inclus dans la largeur */
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease-in-out 0.3s, opacity 0.5s ease-in-out 0.3s;
  z-index: 1;
  margin: 0 auto; /* Centrer les images horizontalement */
}

.gallery-item div {
  margin-top: 0px; /* Ajuste l'espace entre l'image et le texte */
  text-align: center; /* Centre le texte sous l'image */
  opacity: 1; /* S'assure que le texte est bien visible */
  z-index: 2;
}

.gallery-item img.visible {
  transform: scale(1);
  opacity: 1;
}

.gallery-item img.visible:hover {
  animation: boxShadowInAnimation 0.1s ease-in-out forwards;
}

.gallery-item img.visible:not(:hover) {
  animation: boxShadowOutAnimation 0.5s ease-in-out forwards;
}

.zoomed {
  cursor: grab;
  transform: scale(2);
}

@keyframes boxShadowInAnimation {
  from {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  to {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  }
}

@keyframes boxShadowOutAnimation {
  from {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  }
  to {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
}

@media (min-width: 1500px) {
  .gallery-item {
    width: calc(20%); /* 5 colonnes */
  }
}

@media (min-width: 1200px) and (max-width: 1499px) {
  .gallery-item {
    width: calc(25%); /* 4 colonnes */
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .gallery-item {
    width: calc(33.33%); /* 3 colonnes */
  }
}

@media (min-width: 300px) and (max-width: 767px) {
  .gallery-item {
    width: calc(50%); /* 2 colonnes */
  }
}

@media (max-width: 299px) {
  .gallery-item {
    width: 100%; /* 1 colonne */
  }
}


/* =========================================================
   5. LIGHTBOX
========================================================= */

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(255, 255, 255);
  overflow: auto;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s, transform 0.5s;
  transform: scale(0.95);
  opacity: 0;
}

.lightbox-img-container {
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 90vh;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: auto;
}

.lightbox-img-album {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: auto;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.fullscreen-icon {
  position: absolute;
  top: 10px;
  left: 20px;
  cursor: pointer;
  font-size: 35px;
  color: rgb(0, 0, 0);
  z-index: 10;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 60px;
  cursor: pointer;
  color: #000;
}

.download-btn-container {
  margin-top: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-btn-block {
  text-align: center;
  margin: 0 10px;
}

.number-album-container {
  margin-top: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.number-album-block {
  text-align: center;
  margin: 0 10px;
}

.left-arrow,
.right-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0);
  color: rgb(0, 0, 0);
  border: none;
  font-size: 24px;
  cursor: pointer;
  outline: none;
  z-index: 1;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}


/* =========================================================
   6. STYLE PRINCIPAL
========================================================= */

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  align-items: center;
  min-height: 100vh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

main {
  max-width: 1300px;
  width: 100%;
  margin: auto;
  flex: 1;
  color: #000000;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
}

a {
  text-decoration: none;
  color: #000000;
}

.footer {
  margin-top: 50px;
  margin-bottom: 30px;
}

.footer img {
  width: 130px;
  height: 130px;
}

.logo {
  padding: 30px;
}

.card {
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 900px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-line {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.menu-desktop {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 10px;
  padding-bottom: 10px;
}

.menu-text {
  font-size: 16px;
  font-weight: 300;
  color: #0a0a0a;
}

.menu-text-element {
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 8px;
  margin-right: 8px;
  color: #0a0a0a;
  text-decoration: none;
}

.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  font-size: 40px;
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
  text-decoration: none;
  animation: scrollAnimation 1s infinite;
  transform-origin: center;
}

/* Déconnexion alignée à droite de la navigation des collections. */
.collection-navigation-row {
  position: relative;
  width: 100%;
}

.gallery-desktop-account-actions {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 30;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* Indique sur ordinateur qu'une collection précise doit être choisie avant
   de pouvoir télécharger une archive. Le message reste masqué sur mobile. */
.desktop-collection-download-hint {
  width: min(90%, 500px);
  min-height: 40px;
  box-sizing: border-box;
  margin: 8px auto 0;
  padding: 10px 18px;
  text-align: center;
  color: #1d1d1d;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  cursor: default;
}

.desktop-collection-download-hint p {
  margin: 0;
}

.desktop-collection-download-hint[hidden] {
  display: none !important;
}

@media screen and (max-width: 1023px) {
  .desktop-collection-download-hint {
    display: none !important;
  }
}

@media screen and (max-width: 620px) {
  .gallery-home-intro {
    width: min(calc(100% - 2rem), 1000px);
    padding-top: 1.5rem;
  }

  .gallery-home-eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .gallery-home-intro h1 {
    font-size: 1.25rem;
    letter-spacing: 0.015em;
  }

  .gallery-home-leaf {
    width: 42px;
    margin: -0.1rem auto 0.55rem;
  }

  .gallery-home-intro p {
    font-size: 13.5px;
  }
}

.gallery-greeting-collection {
  color: #222;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.gallery-logout-collection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-logout-collection-button:hover,
.gallery-logout-collection-button:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

@media screen and (max-width: 1023px) {
  .gallery-desktop-account-actions,
  .gallery-logout-collection-button {
    display: none;
  }
}

@keyframes scrollAnimation {
  0% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(30px) translateX(-50%);
  }
  100% {
    transform: translateY(0) translateX(-50%);
  }
}

#content-below {
  position: relative;
  z-index: 1;
}

/* Les modales de collections doivent passer au-dessus du header compact. */
body.collection-modal-open #content-below {
  z-index: 10050;
}

body.collection-modal-open .guest-list-modal {
  z-index: 10060;
}

#ongletCategorie.is-options-open {
  z-index: 10060 !important;
}

.fond-galerie {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.onglet-categorie-photos-pc {
  background-color: #ffffff;
}

.onglet-categorie-photos-pc-bouton {
  font-size: 1rem;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  color: #000000;
  background-color: #ffffff;
  border: none;
}

.onglet-categorie-photos-pc-bouton:hover {
  font-weight: 500;
}

.onglet-categorie-photos-mobile {
  background-color: #ffffff;
}

.select-style {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.selected-option {
  width: min(90%, 500px);
  min-height: 40px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
  padding: 10px 18px;
  color: #1d1d1d;
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(80, 80, 80, 0.16);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.selected-option:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 103, 58, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Une fois fixe, le sélecteur reste juste sous le header compact. */
#ongletCategorie.is-sticky .select-style {
  margin: 8px 0;
}

.selected-text {
  flex: 1;
  overflow: hidden;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-option {
  font-size: 1rem;
  padding: 10px 20px;
  color: #000000;
  background-color: #ffffff;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  border-radius: 0px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #9b673a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

@media screen and (max-width: 620px) {
  .onglet-categorie-photos .select-style {
    margin-top: 10px;
  }

  .onglet-categorie-photos .selected-option {
    width: min(calc(100% - 2rem), 500px);
    min-height: 34px;
    padding: 7px 12px;
    font-size: 10px;
  }

  .onglet-categorie-photos .arrow-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  #ongletCategorie.is-sticky .select-style {
    margin: 4px 0;
  }
}

.options-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-top: none;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.options-list li {
  padding: 10px 20px;
  cursor: pointer;
}

.options-list li:hover {
  background-color: #f0f0f0;
}

.select-style select option {
  background-color: #ffffff;
  color: #000000;
}
.onglet-categorie-photos-mobile select {
  font-size: 1rem;
  padding: 10px 20px;
  color: #000000;
  background-color: #ffffff;
  border: 2px solid #444444;
  border-radius: 5px;
}

.onglet-categorie-photos-mobile select:hover {
  font-weight: 500;
  cursor: pointer;
}

.onglet-categorie-photos-mobile select:focus {
  outline: none;
  border: 2px solid #000000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.name-galerie {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #000000;
}

.footer-class {
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.8rem;
  color: #000000;
  margin-bottom: 15px;
}

.phone-none {
  display: none;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.spinner {
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid #fff;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

.info-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #555555; /* Couleur de fond */
  color: white; /* Couleur du "i" */
  font-weight: bold;
  font-size: 14px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1300px) {
  .onglet-categorie-photos-mobile {
    display: block;
  }
  .onglet-categorie-photos-pc {
    display: none;
  }
}

@media screen and (min-width: 1301px) {
  .onglet-categorie-photos-mobile {
    display: none;
  }
  .onglet-categorie-photos-pc {
    display: block;
  }
}

@media screen and (max-width: 1023px) {
  .titre-galerie {
    font-size: 2rem;
    font-style: oblique;
    color: #ffffff;
    text-shadow: 0px 0px 5px #000000;
  }
  .date {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0px 0px 5px #000000;
  }
  .menu-mobile {
    display: block;
  }
  .menu-desktop {
    display: none;
  }
  .phone {
    display: block;
  }
  .masque {
    display: none;
  }
  .download-btn-container {
    display: none;
  }
  .button-wrapper {
    display: none;
  }
  .download-btn {
    display: none;
  }
  .lightbox-img-container {
    max-width: calc(100%);
    max-height: calc(100%);
  }

  .left-arrow,
  .right-arrow {
    display: none;
  }

  .close-btn {
    top: 10px;
    right: 20px;
    font-size: 50px;
  }

  .fullscreen-icon {
    display: none;
  }

  .footer {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .footer img {
    width: 80px;
    height: 80px;
  }
}

@media screen and (min-width: 1024px) {
  .menu-mobile {
    display: none;
  }
  .menu-desktop {
    display: block;
  }
  .phone {
    display: none;
  }
  .phone-none {
    display: block;
  }
  .lightbox-img-container {
    margin-left: 50px;
    margin-right: 50px;
  }
}

/* ==========================================================================
Gallery shared components
Classes générales réutilisables pour galerie, invités, album et visio.
========================================================================== */

/* Base commune */

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.button-wrapper {
  text-align: center;
}

.album-selection-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

#spacer {
  display: none;
}

#ongletCategorie {
  position: relative;
  width: 100%;
  z-index: 20;
  transition: top 0.3s ease-in-out;
}

.select-style {
  position: relative;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.zip-title {
  font-weight: 500;
  margin-bottom: 8px;
}

.zip-percent {
  font-size: 32px;
}

.zip-sub {
  font-size: 12px;
  opacity: .8;
  margin-top: 6px;
}

.zip-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .15);
  z-index: 10000;
  opacity: 0;
  transition: opacity .40s ease;
}

.zip-overlay.show {
  display: flex;
  opacity: 1;
}

.zip-overlay.hide {
  opacity: 0;
}

.zip-box {
  background: #fff;
  color: #000;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px #ccc solid;
  text-align: center;
  min-width: 260px;
  max-width: min(92vw, 520px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: scale(.90);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}

.zip-overlay.show .zip-box {
  transform: scale(1);
  opacity: 1;
}

.zip-overlay.hide .zip-box {
  transform: scale(.90);
  opacity: 0;
}

.zip-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(180, 180, 180, .15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.zip-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9b673a, #d4ad8b);
  border-radius: 4px;
  transition: width .2s ease-out;
}

.zip-pulse {
  animation: pulseGlow 1.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: .5;
    filter: brightness(.9);
  }

  50% {
    opacity: 1;
    filter: brightness(1.3);
  }

  100% {
    opacity: .5;
    filter: brightness(.9);
  }
}

.zip-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.zip-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
  cursor: pointer;
}

.zip-btn-cancel {
  margin-top: 5px;
  background: #ddd;
  color: #000;
}

.zip-btn-cancel:hover {
  filter: brightness(1.2);
}

.guest-list-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .24);
}

.guest-list-modal.is-open {
  display: flex;
}

.guest-list-dialog {
  width: min(92vw, 520px);
  max-height: min(80vh, 680px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
}

.guest-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.guest-list-header-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.guest-list-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.guest-list-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

/* Mobile: the logout action lives in the Collections modal header. */
.gallery-logout-modal-button {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid rgba(155, 103, 58, .35);
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.gallery-modal-account {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.gallery-greeting-modal {
  color: #666;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.guest-list-body {
  overflow-y: auto;
  padding: 12px 20px 20px;
}

.collection-list-search {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.collection-list-search-input {
  appearance: none;
  width: 95%;
  border: 1px solid rgba(80, 80, 80, .18);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}

.collection-list-search-input:focus {
  border-color: rgba(155, 103, 58, .55);
  box-shadow: 0 0 0 3px rgba(155, 103, 58, .12);
}

.collection-list-row:last-child {
  border-bottom: 0;
}

.collection-list-row.is-active {
  color: #9b673a;
  font-weight: 700;
}

.collection-list-name {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: 1;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  padding: 4px 0;
  text-align: center;
}

.collection-list-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: transparent;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#collectionListModal.has-client-collection-masking .collection-list-row {
  justify-content: flex-start;
}

#collectionListModal.has-client-collection-masking .collection-list-name {
  text-align: left;
}

.gallery-action-btn,
.guest-list-btn,
.lightbox-mask-btn {
  appearance: none;
  border: 1px solid rgba(80, 80, 80, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #1d1d1d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 210px;
  min-height: 40px;
  padding: 10px 18px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

@media screen and (max-width: 1023px) {
  .album-selection-actions {
    display: flex !important;
    padding: 0 18px;
  }

  .album-selection-actions .album-action-btn {
    display: inline-flex !important;
    min-width: min(210px, 42vw);
    min-height: 38px;
    padding: 9px 14px;
    font-size: 11px;
  }
}

#lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  --lightbox-top-space: 24px;
  --lightbox-actions-space: 78px;
}

#lightbox .download-btn,
#lightbox .gallery-action-btn,
#lightbox .lightbox-mask-btn {
  width: 160px !important;
  min-width: 160px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1;
}

#lightbox .close-btn {
  z-index: 30;
  line-height: 1;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

body.gallery-lightbox-open::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 9990;
  pointer-events: none;
}

#lightbox .lightbox-img-container {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  min-height: 100dvh;
  height: 100dvh;
  width: 100vw;
  max-height: 100dvh;
  box-sizing: border-box;
  padding: var(--lightbox-top-space) 0 16px;
}

#lightbox .lightbox-img-container>br {
  display: none;
}

#lightbox .lightbox-slider {
  grid-row: 1;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  touch-action: none;
}

#lightbox .lightbox-slider-track {
  display: flex;
  width: 300vw;
  height: 100%;
  transform: translate3d(-100vw, 0, 0);
  will-change: transform;
}

#lightbox .lightbox-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 90px;
  box-sizing: border-box;
}

#lightbox .lightbox-img {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 180px);
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

#lightbox.album-lightbox .lightbox-img {
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.28);
}

#lightbox .download-btn-container {
  grid-row: 2;
  flex-shrink: 0;
  margin-top: 8px;
}

@media screen and (max-width: 1023px) {
  #lightbox .lightbox-img {
    max-width: 100vw;
    max-height: 100%;
  }
}

@media screen and (max-width: 1023px) {
  #lightbox .lightbox-slide {
    padding: 0;
  }
}

/* Masquage photos invitées */

.gallery-item {
  position: relative;
}

.album-selection-btn {
  appearance: none;
  border: 3px solid rgba(150, 150, 150, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);;
  color: rgba(120, 120, 120, .9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 18px;
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.album-selection-btn.is-selected {
  background: #19852495;
  border-color: #198524;
  color: #fff;
}

.album-selection-check {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.album-selection-btn-thumb {
  position: absolute;
  left: 10%;
  bottom: 12px;
  z-index: 4;
  width: 80%;
}

#lightbox .download-btn-container.number-album-container {
  display: flex !important;
}

#lightbox .album-selection-btn-lightbox {
  width: 260px;
  min-width: 260px;
  height: 36px;
  min-height: 36px;
}

@media screen and (max-width: 1023px) {
  .album-selection-btn {
    border-width: 2px;
  }

  .album-selection-btn-thumb {
    left: 10%;
    bottom: 10%;
    width: 80%;
    height: 22px;
    min-height: 22px;
    padding: 0 10px;
  }

  .album-selection-btn-thumb .album-selection-check {
    font-size: 13px;
  }
}

.gallery-item.is-hidden-guest img {
  filter: saturate(.9) brightness(.95);
}

.photo-mask-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  pointer-events: none;
}

.hidden-guest-info {
  text-align: center;
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.guest-list-action {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.collection-mask-action {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
}

.collection-mask-open-btn {
  appearance: none;
  border: 1px solid rgba(80, 80, 80, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #d01f1f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 40px;
  padding: 10px 18px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

#lightbox .lightbox-mask-btn {
  width: 190px !important;
  min-width: 190px !important;
  white-space: nowrap;
}

.guest-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  color: #333;
  text-align: left;
}

.guest-list-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.guest-access-btn {
  flex: 0 0 94px;
  border: 1px solid rgba(41, 120, 65, .22);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(41, 120, 65, .08);
  color: #27643b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.guest-access-btn.is-restricted {
  border-color: rgba(169, 63, 63, .22);
  background: rgba(169, 63, 63, .08);
  color: #963b3b;
}

.guest-access-btn:disabled { opacity: .55; cursor: wait; }
.guest-access-btn:focus-visible { outline: 2px solid #9b673a; outline-offset: 2px; }

.guest-list-row:last-child {
  border-bottom: 0;
}

.collection-list-row {
  gap: 10px;
}

.collection-list-row.is-hidden-client {
  opacity: .45;
}

.collection-list-row.is-search-hidden {
  display: none !important;
}

.guest-list-modal:not(.is-mask-mode) .collection-list-row.is-hidden-client {
  display: none;
}

.collection-list-mask-btn {
  appearance: none;
  border: 1px solid rgba(80, 80, 80, .18);
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  padding: 7px 10px;
  display: none;
}

.collection-list-mask-btn.is-mask-action {
  color: #d93025;
}

.guest-list-modal.is-mask-mode .collection-list-mask-btn {
  display: inline-flex;
}

.lightbox-mask-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.lightbox-mask-btn {
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.lightbox-mask-btn::before {
  content: '🙈';
  font-size: 16px;
}

.lightbox-mask-btn.is-hidden {
  background: rgba(139, 90, 60, .95);
  border-color: rgba(139, 90, 60, .95);
  color: #fff;
}

.lightbox-mask-btn.is-hidden::before {
  content: '🙈';
}

.lightbox-mask-btn.is-at-limit {
  background: rgba(160, 160, 160, .92);
  color: #fff;
  cursor: not-allowed;
  opacity: .9;
}

.lightbox-mask-counter {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #000;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid rgba(80, 80, 80, .08);
}

#lightbox .download-btn-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

#lightbox .message-options {
  display: block;
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.2;
}

#lightbox:has(.lightbox-mask-panel) {
  --lightbox-actions-space: 86px;
}

@media screen and (max-width: 1023px) {
  #lightbox .lightbox-img-container {
    justify-content: center;
    min-height: 100dvh;
    height: 100dvh;
    padding: max(72px, calc(env(safe-area-inset-top) + 58px)) 0 max(18px, env(safe-area-inset-bottom));
  }

  #lightbox:has(.lightbox-mask-panel) .lightbox-img-container {
    padding: max(72px, calc(env(safe-area-inset-top) + 58px)) 0 max(78px, calc(env(safe-area-inset-bottom) + 70px));
  }

  #lightbox .download-btn-container {
    display: none !important;
  }

  #lightbox .download-btn-container.number-album-container {
    display: flex !important;
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 12;
    transform: translateX(-50%);
    width: 80vw;
  }

  #lightbox .album-selection-btn-lightbox {
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    height: 36px;
    min-height: 36px;
  }

  #lightbox .album-selection-btn-lightbox .album-selection-check {
    font-size: 17px;
  }
}

@media screen and (max-width: 1023px) {
  #lightbox .close-btn {
    top: max(10px, env(safe-area-inset-top));
    right: 18px;
    z-index: 30;
    line-height: 1;
  }
}

@media screen and (max-width: 1023px) {
  #lightbox .download-btn-container.has-mask-panel {
    display: flex !important;
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 12;
    transform: translateX(-50%);
    width: min(92vw, 360px);
  }
}

@media screen and (max-width: 1023px) {
  #lightbox .download-btn-container.has-mask-panel .download-btn-block {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  #lightbox .download-btn-container.has-mask-panel .download-btn-block:not(.lightbox-mask-panel) {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .lightbox-mask-panel {
    display: flex !important;
    width: 100%;
  }
}

@media screen and (max-width: 1023px) {
  .lightbox-mask-btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 11px;
    display: inline-flex !important;
  }
}

@media screen and (max-width: 1023px) {
  .lightbox-mask-btn::before {
    font-size: 14px;
  }
}

@media screen and (max-width: 1023px) {
  .lightbox-mask-counter {
    padding: 3px 9px;
    font-size: 10px;
  }
}

@media screen and (max-width: 1023px) {
  .guest-list-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #fff;
  }
}

@media screen and (max-width: 1023px) {
  .guest-list-dialog {
    width: 100vw;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media screen and (max-width: 1023px) {
  .guest-list-header {
    padding-top: max(18px, calc(env(safe-area-inset-top) + 12px));
    gap: 10px;
    align-items: flex-start;
  }

  .guest-list-header .gallery-modal-account {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .guest-list-header .gallery-logout-modal-button {
    display: inline-flex;
    align-self: center;
  }

  .guest-list-header .guest-list-close {
    margin-left: auto;
  }

  #collectionListModal .guest-list-header {
    position: relative;
  }

  #collectionListModal .guest-list-header-content,
  #collectionListModal .gallery-modal-account {
    width: 100%;
  }

  #collectionListModal .gallery-greeting-modal {
    align-self: flex-start;
  }

  #collectionListModal .guest-list-close {
    position: absolute;
    top: max(18px, calc(env(safe-area-inset-top) + 12px));
    right: 20px;
  }
}

/* Responsive lightbox */

/* Les téléchargements unitaires restent disponibles dans la lightbox mobile. */
@media screen and (max-width: 1023px) {
  #lightbox .download-btn-container:not(.number-album-container) {
    display: flex !important;
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 12;
    width: min(92vw, 360px);
    margin: 0;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  #lightbox .download-btn-container:not(.number-album-container) .download-btn-block,
  #lightbox .download-btn-container.has-mask-panel .download-btn-block:not(.lightbox-mask-panel) {
    display: flex !important;
    flex: 1 1 calc(50% - 3px);
    width: calc(50% - 3px);
    margin: 0;
  }

  #lightbox .download-btn-container.has-mask-panel .lightbox-mask-panel {
    flex: 0 0 100%;
    width: 100%;
  }

  #lightbox .download-btn-container:not(.number-album-container) .download-btn {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 10px;
  }

  #lightbox .download-btn-container:not(.number-album-container) .message-options {
    display: block;
    margin: 1px 0 0;
    font-size: 8px;
    line-height: 1.1;
  }

  #lightbox .download-label-desktop {
    display: none;
  }

  #lightbox .download-label-mobile {
    display: inline;
  }

  #lightbox:has(.lightbox-mask-panel) .lightbox-img-container {
    padding-bottom: max(132px, calc(env(safe-area-inset-bottom) + 122px));
  }
}

@media screen and (min-width: 1024px) {
  #lightbox .download-label-mobile {
    display: none;
  }
}

/* Présentation visio : collection imposée et compte accessibles sur tous les écrans. */
.visio-presentation-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}
.visio-presentation-heading .name-category {
  margin: 0;
}
.visio-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 1023px) {
  .visio-presentation-heading {
    flex-direction: column;
    justify-content: center;
  }
  .visio-account-actions .gallery-logout-collection-button {
    display: inline-flex;
  }
}

/* Connexion visio : mêmes champs, boutons et typographie que connexion.php. */
.visio-login-content {
  box-sizing: border-box;
  padding: 80px 20px 0;
  scroll-margin-top: 90px;
}
.visio-login-panel {
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}
.visio-login-form {
  margin-top: 40px;
}
.visio-login-form .bouton-connexion {
  display: block;
  margin: 40px auto 0;
}
.visio-login-form .password-connexion:focus-visible {
  outline: 2px solid #9b673a;
  outline-offset: 3px;
}
.visio-login-content > .visio-login-panel > .bouton-connexion {
  display: inline-block;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .visio-login-panel {
    padding: 40px 0;
  }
}
