:root {
  --pink: #F538A4;
  --pink-light: #F9B5D1;
  --blue: #04B1FF;
  --blue-light: #9DD9FF;
  --white: #fff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

input[type="file"] {
    display: none;
  }

.grid-container.full {
  max-width: 100vw;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}

/* Neutraliser les marges négatives de Foundation */
.grid-x.grid-margin-x {
  margin-left: 0;
  margin-right: 0;
}

.grid-x.grid-padding-x > .cell {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

/* Reset et style général */
body, html {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #FBF9FA;
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #757575 !important;
}

#header {
  margin-top: 40px;
  margin-bottom: 5px;
}

#header p {
  margin-top: 5px;
}

.intro {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--blue);
  font-size: 1.2em;
  line-height: 1.3;
  padding-top: 20px;
}

h1, h3, h5 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--blue);
  font-size: 1.2em;
  line-height: 1.3;
}



.reveal-overlay .reveal {
background-color: rgba(0, 0, 0, 0) !important; /* noir avec opacité 0.7 */
 
  color: var(--pink);
  padding: 0;
}

.reveal-overlay {
  background-color: rgba(255, 255, 255, 0.95);
  
}



.reveal button {
  margin:25px;
}

.reveal input {
  margin-bottom: 10px;
}

.reveal select {
  text-align: left !important;
}

.reveal .close-button {
  color:  var(--pink);
  position: absolute;
  top: 0px;
  right: 0;
  margin: 0.5rem; /* un peu de marge pour ne pas coller au bord */
  z-index: 10; /* s’assurer qu’il reste au-dessus */
}

#shareModal p {
  font-size: 1.4em;
  margin: 50px 0 20px 0;
  padding: 0;
}

#shareAlbumBtn, #shareWeekBtn {
  font-weight: 400;
  margin: 0 10px;
  background-color: var(--blue);
  margin-bottom: 15px;
}

#nav i {
  padding-right: 3px;
}

#albumModal input, #albumModal select {
  margin-bottom: 20px;
  color: #757575;
  font-size: 1em;
}

.reveal label {
  font-size: 1em;
}

.reveal select {
  padding-left: 10px;
}



#albumForm h4 {
  padding-top: 20px !important;
}

#duplicatesWarning {
  background-color: rgba(226, 134, 134, 0.3);
  color: white;
  padding: 15px;

}

ul.listFriday {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

ul.listFriday li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listFriday li:first-child {
  display: block !important;
}

.listFriday li:not(:first-child) {
  display: inline-block;
  margin: 3px 5px;
}

ul.listFriday li a {
  color: var(--pink);
  font-weight: 300;
  background-color: white;
  border-radius: 8px;
  padding: 5px 12px;
  margin-top: 15px;
  display: inline-block;
  text-decoration: none;
}

ul.listFriday li.active a {
  font-weight: 400;
}

#datepickerIcon {
  color: var(--pink);
  cursor: pointer;
  font-weight: 300;
  background-color: white;
  border-radius: 8px;
  padding: 5px 12px 5px 12px !important;
}

.position-relative {
  overflow-x: hidden;
}

.addalbum {
  color: var(--blue);
  font-weight: 300;
  display: inline-block;
  margin-right: 15px;
  background-color: white;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.blueforced {
  color: var(--blue) !important;
  font-weight: 300;
}

.pinkforced {
  color: var(--pink) !important;
  font-weight: 300;
}

.datesortie {
  line-height: 1.3;
  margin-bottom: 10px;
  margin-top: 15px;
}

.citation {
  margin-bottom: 8px;
}

.main {
  margin-top: 30px;
}

.main h3, .main h1 {
  margin-bottom: 25px;
}

/* Styles pour le datepicker */
.ui-datepicker {
  width: 94%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: 8px;
  padding: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  color: #757575;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;

}

.ui-datepicker .ui-datepicker-header {
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  padding: 8px;
  font-weight: 400;
  text-align: center;
}

.ui-datepicker .ui-datepicker-title {
  font-size: 1.1em;
  font-weight: 300;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  cursor: pointer;
  color: var(--white);
  font-size: 1.2em;
  padding: 5px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: var(--blue-light);
  border-radius: 4px;
}

.ui-datepicker table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.ui-datepicker th {
  color: var(--blue);
  font-weight: 400;
  font-size: 0.9em;
  padding: 5px;
}

.ui-datepicker td {
  padding: 2px;
  text-align: center;
}

.ui-datepicker td a {
  display: block;
  padding: 5px;
  color: #757575;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ui-datepicker td a:hover {
  background: var(--blue-light);
  color: #757575;
}

.ui-datepicker .available-date a {
  background-color: var(--pink) !important;
  color: white !important;
}

.ui-datepicker .ui-state-disabled {
  opacity: 0.5;
}

.ui-datepicker .ui-datepicker-buttonpane {
  margin-top: 10px;
  text-align: center;
}

.ui-datepicker .ui-datepicker-buttonpane button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
  background: var(--blue-light);
}

#album-grid {
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
  width: 100%;
}

#album-grid > .cell {
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  width: 22.5%;
  margin-right: 1%;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  #album-grid > .cell:nth-child(4n) {
    margin-right: 0;
  }
}

@media (max-width: 1920px) and (min-width: 1022px) {
  #album-grid > .cell {
    width: 30%;
    margin-right: 2%;
  }
  #album-grid > .cell:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 1500px) and (min-width: 640px) {
  #album-grid > .cell {
    width: 48%;
    margin-right: 2%;
  }
  #album-grid > .cell:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  #album-grid > .cell {
    width: 100%;
    margin-right: 0;
  }
}

.card {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0.5rem;
  box-sizing: border-box;
  border: none;
  color: #757575 !important;
  overflow-x: hidden;
  border: 1px solid #e8e8e8;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.card p {
  color: #757575 !important;
}

.card-section {
  padding: 1rem;
  flex-grow: 1;
  overflow-wrap: break-word;
}

.action-buttons-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  gap: 0.25rem; /* Réduit de 0.5rem à 0.25rem pour minimiser l'espace */
  justify-content: space-between;
  flex-wrap: wrap;
  overflow-x: hidden;
}

.action-buttons-list li {
  flex: 1 0 22%;
  min-width: 70px;
  max-width: 100px;
}

.action-button,
.action-button button,
.action-button a {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem; /* Réduit de 0.4rem à 0.3rem pour compacter légèrement */
  height: 32px; /* Réduit de 36px à 32px pour compacter verticalement */
  font-weight: normal;
  font-size: 0.9rem !important; /* Réduit de 1rem pour compacter */
  color: #757575 !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.action-button i,
.action-button button i,
.action-button a i {
  font-size: 1.1rem !important; /* Réduit de 1.2rem pour compacter */
  vertical-align: middle;
  margin: 0;
}

.action-button span,
.action-button button span,
.action-button a span {
  font-size: 0.7rem !important; /* Réduit de 0.75rem pour compacter */
  user-select: none;
  white-space: nowrap;
}

.action-button:hover,
.action-button:focus {
  background-color: var(--pink);
  color: var(--pink) !important;
  border-color: var(--pink);
}

.action-button:hover i,
.action-button:focus i {
  color: var(--pink) !important;
}

.fav-button.favorite-on i,
.like-button.like-on i,
.share-button.share-on i,
.music-button.music-on i {
  color: var(--pink) !important;
}

.fav-button.favorite-off i,
.like-button.like-off i {
  color: #757575 !important;
}

.like-button,
.music-button {
  padding-right: 0 !important;
  margin-right: 0 !important;
  border-right: none !important;
  box-shadow: none !important;
  width: 100% !important;
}

.like-button i,
.music-button i {
  margin-right: 0 !important;
}

.pulse {
  animation: pulse 0.6s ease-out;
}

.shake {
  animation: shake 0.6s ease-in-out;
}

.bslink {
  border-bottom: 1px dotted var(--blue);
  color: #757575;
}

.bslink:hover {
  border-bottom: 1px dotted var(--pink);
  color: var(--pink);
}

.added-by {
  display: inline-block;
}

.edit-album-button {
  background-color: none;
  background: none;
  padding: 0;
  margin: 0;
  color: #757575;
  margin-left: 10px;
}

.edit-album-button:visited, .edit-album-button:focus {
  background-color: none;
  background: none;
  padding: 0;
  margin: 0;
  color: #757575;
  margin-left: 10px;
}

.edit-album-button:hover {
  background-color: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--pink);
  margin-left: 10px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@media (max-width: 400px) {
  .action-buttons-list {
    gap: 0.15rem; /* Réduit encore plus l'espace entre les boutons */
  }

  .action-buttons-list li {
    flex: 1 0 auto; /* Permet une largeur flexible basée sur le contenu */
    min-width: 50px; /* Réduit de 60px à 50px pour compacter */
    max-width: none; /* Conserve la suppression de max-width */
  }

  .action-button,
  .action-button button,
  .action-button a {
    height: 30px; /* Réduit de 32px pour compacter verticalement */
    font-size: 0.85rem !important; /* Réduit légèrement pour petits écrans */
    gap: 0.2rem; /* Réduit encore l'espace entre icône et texte */
  }

  .action-button i,
  .action-button button i,
  .action-button a i {
    font-size: 1rem !important; /* Réduit pour compacter */
  }

  .action-button span,
  .action-button button span,
  .action-button a span {
    font-size: 0.65rem !important; /* Réduit pour compacter */
  }
}

/* Overlay menu
#myNav.overlay {
  max-width: 100vw;
  overflow-x: hidden;
}

.overlay-content {
  max-width: 100vw;
  overflow-x: hidden;
}

.overlay .grid-container {
  max-width: 100vw;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
} */

 /* Aperçu de l’image sélectionnée */
  .image-preview {

    max-width: 80px;
    max-height: 80px;
    border-radius: 5px;
    border: 1px solid #ccc;

    margin: 10px 0 10px 0;
  }

  #fileName {
    padding: 5px 0 5px 0;
    font-size: 0.8em;
  }

.custom-file-label {
  font-size: 0.8em !important;
  margin: 10px 0 10px 0 !important;
  padding: 8px 12px 8px 12px !important;

}

.callout {
  padding: 20px 5px 20px 5px;
  text-align: center;
}

.connect, .connectok {
      margin-top: 15px;

}

.connect a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--pink);
  font-size: 0.8em;
}

.connect a:hover {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dotted var(--blue);
}

.connectok a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: none;
  font-size: 0.8em;
}

#backToTop {
  color: var(--pink) !important;
  font-size: 0.8em;
  padding: 0 0 80px 0;
  background-color: none;
  background: none;
}

#backToTop:hover {
  color: var(--pink) !important;
  font-size: 0.8em;
  padding: 0 0 80px 0;
  background-color: none;
  background: none;
}

#backToTop:active, #backToTop:focus {
  background-color: none;
  background: none;
  box-shadow: none;

}

#backToTop i {
    color: var(--pink) !important;
  font-size: 2em;
}