/* Corps et conteneur */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f4f9;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* Titres */
h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Grille de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Carte principale */
.card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  line-height: 1.4;
}

.card textarea {
  width: 90%;
  height: 80px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

/* Checkbox et date */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.date {
  font-size: 0.8em;
  color: #666;
}

/* Boutons navigation */
.nav-buttons {
  margin-top: 15px;
  text-align: center;
}

.nav-buttons button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  background: #333;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.nav-buttons button:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Popups */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-height: 90%;
  overflow-y: auto;
}


.popup-content textarea { 
  width: 100%; 
  min-height: 50px; 
  margin-bottom: 10px; 
}

.close, .close-popup {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Post-it */
.postits {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.postit {
  background: #fff3b0;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Bouton coin popup */
#ouvrirPopupCoin {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f88;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
}

#popupContent {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

/* Blocs colorés */
.card-color1 { background: #FFD6A5; color: #081226; }
.card-color2 { background: #A0C4FF; color: #081226; }
.card-color3 { background: #B5E48C; color: #081226; }
.card-color4 { background: #FFB5E8; color: #081226; }

/* Ajouter dans style.css ou dans <style> */
#helpModal2 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-height: 80vh; /* hauteur max 80% de la fenêtre */
  background: white;
  border: 2px solid #ccc;
  padding: 15px;
  overflow-y: auto; /* scroll vertical si nécessaire */
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 10px;
}