.planning-container {
  padding: 0;
}

/* Container plus large pour le planning */
body.planning-page .container {
  max-width: 1400px;
}

.planning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}

.week-navigation {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1f2937;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-btn:hover {
  background-color: #f3f4f6;
  border-color: #2563eb;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.button-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.button-icon:hover {
  background-color: #1d4ed8;
}

.button-icon.button-danger {
  background-color: #dc2626;
}

.button-icon.button-danger:hover {
  background-color: #b91c1c;
}

.calendar-wrapper {
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
}

.day-column {
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.day-header {
  background: #fff;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
}

.day-events {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
}

.event {
  background: rgba(96, 165, 250, 0.15);
  border-left: 4px solid #60a5fa;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s;
  position: relative;
  cursor: default;
}

.event:hover {
  background: rgba(96, 165, 250, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-time {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.event-text {
  color: #1f2937;
  margin-top: 0.25rem;
}

.event-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(220, 38, 38, 0.2);
  border: none;
  color: #dc2626;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.event:hover .event-delete {
  display: flex;
}

.event-delete:hover {
  background: rgba(220, 38, 38, 0.3);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .planning-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .week-navigation {
    justify-content: space-between;
  }
  
  .header-actions {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}