/* Styles spécifiques à l'application */

@media screen and (max-width: 768px) {
  .modal-card,
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0; /* supprime l'espace autour */
    height: 100% !important;
    max-height: 100% !important;
  }
  .modal-card-head {  
    border-radius: 0 !important;
  }
  .modal-close {
    --bulma-delete-color: black !important;
    margin-top: 1em !important;
    margin-right: 0.2em !important;
  }
  
  html[data-theme="dark"] .modal-close {
	--bulma-delete-color: white !important;	
  }
}

.event-selector {
	margin-top: 2rem !important;
}

.navbar-item svg {
  color: rgb(46,48,146); /* couleur par défaut (mode clair) */
}

html[data-theme="dark"] .navbar-item svg {
  color: white; /* couleur en mode sombre */
}

.overlay-tags {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}


.main-content {
    margin-top: 3.25rem;
    padding: 0.5rem;
}

.icon-inner {
    padding: 0.5rem;
} 

.icon svg {
  height: 100%;
  width: 100%;
  fill: currentColor;
}

.small-icon-in-text {
    height: 1rem;
}

.text-limit-height {
  height: 5rem;
  overflow: hidden;        
  text-overflow: ellipsis;  
}

.dropdown-menu {
 /* display: none; */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.is-active {
 /* display: block; */
  opacity: 1;
  transform: translateY(0);
}

.jump-page {
  margin-bottom: 100vh;
}

.is-div-disabled {
    filter: grayscale(1) opacity(0.3);
}

/* Styles pour les plannings */

/* Base styles for all planning cells */

:root {
  --height-multiplier: 1;
}

.planning-cell {
  height: calc(4rem * var(--height-multiplier));
  display: flex;
  align-items: center;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  z-index: 0;
}

.planning-cell-first-col {
	align-items: flex-end;
}

/* Header cells (e.g., "Espaces") */
.planning-cell-heading {
  font-weight: 600;
  border-bottom: 1px solid #00b89c;
  z-index: 0;
}

/* Wide header cells (e.g., time columns) */
.planning-cell-period {
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  z-index: 0;
}

.planning-cell-force-large {
  width: 100%;
}

/* Free (available) slot */
.planning-cell-free {
  border-bottom: 1px solid #ccc;
  z-index: 0;
  justify-content: center;
}


/* Locked slot */
.planning-cell-locked {
  border-bottom: 1px solid #ccc;
  z-index: 0;
  justify-content: center;
  background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="none" stroke="%23ccc" stroke-width="1" stroke-opacity="0.66"><path d="M0 8 L8 0"/></svg>');
}

/* Hidden slot */
.planning-cell-hidden {
  background-color: transparent;
  color: transparent;
  border-bottom: 1px solid #ccc;
  z-index: 0;
}

.planning-cell-game-parent {
  position: relative;
  overflow: visible;
  border: none !important;
  z-index: 0 !important;
  pointer-events: none;
}

.planning-cell-game {
  border: solid 0.2rem transparent;
  background-color: transparent;
  width: 100%;
  position: absolute;
  top: 0rem;
  left: 0rem;
  /*z-index: 99 !important;*/
  white-space: normal;
  text-overflow: clip;
  overflow: hidden;
  pointer-events: all;
  cursor: zoom-in;
}

.planning-cell-game-isfull {
  filter: grayscale(1) opacity(0.3);
}

/* Optional: highlight on hover globally */
.planning-cell:hover:not(.planning-cell-hidden):not(.planning-cell-heading):not(.planning-cell-wide):not(.planning-cell-game):not(.planning-cell-game-parent) {
  filter: brightness(0.98);
}

.planning-cell-game .card {
  padding: 0.2rem;
  overflow: hidden;
  background-size: cover;         /* remplit toute la div */
  background-position: center;    /* centre l’image */
  background-repeat: no-repeat;   /* pas de répétition */
  background-color: hsl(
      var(--bulma-primary-h),
      var(--bulma-primary-s),
      var(--bulma-primary-45-l)
  );
  background-blend-mode: multiply; 
}

.planning-cell-game .card::after {
  content: "";
  position: absolute;
  inset: 0; /* couvre toute la carte */
  background: rgba(255, 255, 255, 0.8); /* calque sombre semi‑transparent */
  pointer-events: none; /* clics passent à travers */
  z-index: 10;
}

.planning-cell-game .card > * {
  position: relative;
  z-index: 20; /* texte au-dessus */
}

.planning-cell-game .card-header {
  border: none;
  box-shadow: none;
}

.planning-cell-game img {
  border: 1px solid white;
}

