/* Styles spécifiques à l'application */ .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 */ /* Style par défaut pour les cellules .planning-cell { display: flex; align-items: center; justify-content: center; height: 3rem; text-align: center; padding: 0.5rem; box-sizing: border-box; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /* Style pour les cellules d'entête .planning-cell-heading { background: black; color: white; font-weight: bold; border-bottom: 1px solid white; } /* Style pour les cellules pleine largeur (ex. en-tête de périodes) .planning-cell-wide { background: lightgray; border-bottom: 1px solid white; } /* Style pour les cellules disponibles .planning-cell-free { border-bottom: 1px solid lightgray; } /* Style pour les cellules vérouillées .planning-cell-locked { background-color: gray; color: white; border-bottom: 1px solid lightgray; } /* Style pour les cellules masquées .planning-cell-hidden { background-color: none; border-bottom: 1px solid lightgray; } /* Base styles for all planning cells */ :root { --height-multiplier: 1; } .planning-cell { height: calc(4rem * var(--height-multiplier)); } .planning-cell { display: flex; align-items: center; /*justify-content: 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; } /* 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-wide { font-weight: 500; border-bottom: 1px solid #ccc; z-index: 0; } /* 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,\ \ \ '); ); } /* 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; }