.grid-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
  min-height: calc(100vh - 100px); /* Ajuste selon la hauteur de ton header ou bouton */
  box-sizing: border-box;
}

.grid-item {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Responsive pour tablette et mobile */
@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}





.drop-zone {
  border: 2px dashed #aaa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.drop-zone:hover {
  background-color: #f0f0f0;
}

#imagePreview {
  margin-top: 15px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

#cropConfirmButton {
  background-color: #0ea5e9;
  color: white;
  padding: 10px 20px;
  display: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pdf-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.pdf-button {
  background-color: #006D77;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pdf-button:hover {
  background-color: #005259;
}

.info-label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}


.ql-container.ql-snow {
  height: auto !important;
}



#evenement-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

#evenement-form input, #evenement-form button {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#event-list {
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
}

#event-list li {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f8f8f8;
  border-left: 4px solid #007BFF;
}













#calendar-container {
  padding: 15px;
}
#calendar-container h2 {
  margin-top: -10px;
  margin-bottom: 5px
}
/* Rectangle générique */
.grid-itemCalendar {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}


/* Conteneur horizontal pour les 2 blocs du bas */
.grid-rowCalendar {
  display: flex;
  gap: 20px;
}

/* Les deux rectangles du bas prennent chacun 50% */
.grid-rowCalendar .grid-itemCalendar {
  flex: 1;
}

/* Formulaire */
#site-hours-form,
#location-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#site-hours-form input,
#site-hours-form button,
#location-form input,
#location-form button {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#site-hours-form button,
#location-form button {
  background-color: #0ea5e9;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#site-hours-form button:hover,
#location-form button:hover {
  background-color: #0284c7;
}

/* Quill height */
#calendar-text {
  height: 200px;
}

/* Conteneur horizontal pour les 3 blocs du bas */
.grid-rowCalendar {
  display: flex;
  gap: 20px;
}

/* Les trois rectangles prennent chacun 1/3 de la largeur */
.grid-rowCalendar .grid-itemCalendar {
  flex: 1 1 0;
  min-width: 0; /* pour éviter overflow sur petits écrans */
}

@media (max-width: 768px) {
  .grid-rowCalendar {
    flex-direction: column;
  }

  .grid-rowCalendar .grid-itemCalendar {
    width: 100%;
  }
}



#documents-container {
  padding: 15px;
}


#chapters-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.chapter-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background-color: #f9fafb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.chapter-block h3 {
  margin-bottom: 10px;
}

.chapter-block input[type="text"] {
  padding: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 98%;
}

.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: #f0f9ff;
  transition: background-color 0.2s ease;
  position: relative;
}

.drop-zone:hover {
  background-color: #e0f2fe;
}

.drop-zone input[type="file"] {
  display: none;
}

.file-list {
  margin-top: 10px;
  font-size: 14px;
}

#add-root-chapter-btn,
.add-subchapter-btn {
  background-color: #0ea5e9;
  color: white;
  border: none;
  padding: 5px 7px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
}

#add-root-chapter-btn:hover,
.add-subchapter-btn:hover {
  background-color: #0284c7;
}









#deposer-container {
  max-width: 900px;
  margin: auto;
  background-color: #f8fafc;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

#deposer-container h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #0f172a;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  position: relative;
  flex: 1 1 45%;
  min-width: 250px;
}

.form-group input {
  width: 98%;
  padding: 14px 12px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: white;
}

.form-group label {
  position: absolute;
  top: -5px;
  left: 12px;
  font-size: 12px;
  color: #64748b;
  background: white;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 10px;
  color: #0ea5e9;
}

.form-group-full {
  margin-top: 24px;
}

.quill-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #0f172a;
}

#message-editor {
  height: 200px;
  background-color: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.submit-button {
  margin-top: 24px;
  background-color: #0ea5e9;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
}

.submit-button:hover {
  background-color: #0284c7;
}

@media (max-width: 768px) {
  .form-grid {
    flex-direction: column;
  }
}


/* Dropzone style */
.dropzone {
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #555;
  margin-top: 20px;
  cursor: pointer;
}

.dropzone.highlight {
  background-color: #f0f9ff;
  border-color: #0ea5e9;
}

.dropzone .file-click {
  color: #0ea5e9;
  text-decoration: underline;
  cursor: pointer;
}

#file-list {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

#file-list li {
  margin-bottom: 5px;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: left;
}

#add-user-btn {
  margin-top: 10px;
  background-color: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#add-user-btn:hover {
  background-color: #0284c7;
}


#save-user-btn {
  margin-top: 10px;
  background-color: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#save-user-btn:hover {
  background-color: #0284c7;
}

.grid-item input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background-color: #f1f5f9;
  transition: all 0.25s ease;
  position: relative;
}

.grid-item input[type="checkbox"]:checked {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
}

.grid-item input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.grid-item input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

