/* -------- SESSIONS-------- */
.session-container .modules-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem 2rem;
	max-width: 50rem;
	margin: 2rem auto;
}

.session-container .module-option {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 8rem;
  	width: auto;
}

.session-container .module-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-color: #e5e5f7;
	border: 2px solid #9e2d66;
	border-radius: 12px;
	font-weight: bold;
	color: #333;
	text-align: center;
	cursor: pointer;
	padding: 0.5rem;
	transition: all 0.3s ease;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: normal;
	word-wrap: break-word;
	text-align: center;
	text-decoration: none;
}

.session-container .module-button:hover {
	background-color: #9e2d66;
	color: white;
	transform: scale(1.03);
}

.session-container input[type="checkbox"] {
	display: none;
}

.session-container input[type="checkbox"]:checked+label {
	background-color: #9e2d66;
	color: white;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* -------- BUTTON SUBMIT -------- */
.session-container #session {
	margin-top: 2rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
	background-color: #9e2d66;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 2rem;
	font-size: 2rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.session-container #session:hover {
	background-color: #7b234f;
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
	#session-container .modules-container {
		grid-template-columns: 1fr;
	}
}

/* -------- TABLEAU SESSIONS -------- */
.session-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.session-table th,
.session-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.icon-action {
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.icon-action:hover {
  color: #9e2d66;
}

/* -------- RESPONSIVE TABLE -------- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .session-container {
    padding: 1rem;
  }

  .session-table th, 
  .session-table td {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .session-table {
    margin: 0 auto;
    min-width: 500px;
  }
}