/* Planning d'événements - Styles */
.planning-container {
  /* background-color: #000000; */
  color: white;
  /* font-family: sans-serif; */
  padding: 1.5rem;
  /* min-height: 100vh; */
}

.current-week {
  color: #9ca3af;
  font-size: 2.5rem;
  font-weight: 400 !important;
  margin: 0;
}

.card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
  position: relative;
}

.card-header img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

.day {
  position: absolute;
  top: 0;
  left: 0;
  background: #2c2c2cd7;
  padding: 1rem;
  border-radius: 0 0 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 20%;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.day strong {
  font-size: 1.875rem;
  font-weight: bold;
}

.day p {
  margin: 0;
}

.card-content {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content:last-child {
  border-bottom: none;
}

.text h2 {
  font-size: 1.125rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
}

.text p {
  font-size: 0.875rem;
  margin: 0;
}

/* Couleurs pour les cartes */
.bg-red-500 { background-color: #ef4444; }
.bg-red-dark { background-color: #9f0e0e; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-dark { background-color: #0844a6; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-dark { background-color: #1b9e4b; }
.bg-yellow-500 { background-color: #eab308; }
.bg-yellow-dark { background-color: #bb8f06; }
.bg-purple-500 { background-color: #a855f7; }
.bg-purple-dark { background-color: #510797; }
.bg-pink-500 { background-color: #ec4899; }
.bg-pink-dark { background-color: #9c1055; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-dark { background-color: #be5105; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-teal-dark { background-color: #109385; }

/* Responsive */
@media (max-width: 1024px) {
  .card-row:first-child {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .planning-container {
    padding: 1rem;
  }
  
  .planning-header {
    flex-direction: column;
    text-align: center;
  }
  
  .planning-header h1,
  .current-week {
    font-size: 2rem;
  }
  
  .card-row:first-child,
  .card-row:last-child {
    grid-template-columns: 1fr;
  }
  
  .day {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
  }
  
  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* body {
    background: linear-gradient(to bottom, #1D1C1C, #000000);
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Arial', sans-serif;
    padding: 1.5rem;
} */

.planning-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.planning-header img {
  width: 80px;
  height: 80px;
}

.planning-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.card {
    border-radius: 0.5rem;
    /* overflow: hidden; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* width: 23%; */
}

.card-header {
    position: relative;
    /* overflow: hidden; */
}

.card-content {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-content .hour {
    font-size: 0.875rem;
    opacity: 0.8;
    /* color: #000000; */
    color: #ffffff;
    /* background-color: #ffffffa6; */
    background-color: #181a1ba6;
    width: fit-content;
    padding: 0.2rem 0.8rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 3px rgba(0, 0, 0, 0.1);
    /* border-bottom: #121c9ed0 2px solid; */
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-container .card-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.card-container .card-row:first-child .card {
    flex: 1; /* Chaque carte prend 25% de l'espace */
}

.card-container .card-row:last-child .card {
    flex: 1.5; /* Les deux autres cartes sont plus grandes (37.5% chacune) */
}

.btn-editUnit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #183453dc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Switch Apple Style */
.edit-mode-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.edit-mode-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.edit-mode-checkbox .switch {
    position: relative;
    width: 51px;
    height: 31px;
    /* background: #ccc; */
    background: #35393b;
    border-radius: 15.5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.edit-mode-checkbox .switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    /* background: white; */
    background: #181a1b;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.edit-mode-checkbox input[type="checkbox"]:checked + .switch {
    /* background: #34c759; */
    background: #2a9f47;
}

.edit-mode-checkbox input[type="checkbox"]:checked + .switch::before {
    transform: translateX(20px);
}

.edit-mode-checkbox .switch-label {
    margin-left: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.no-events {
    text-align: center;
    padding: 1rem;
    /* color: #3b3838; */
    color: #c4bfb7;
    justify-content: center !important;
}

.no-events-text {
    /* color: #3b3838; */
    /* color: #222121; */
    color: #d3cfc9;
    /* background-color: #ffffff69; */
    background-color: #181a1b69;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}
  