.montserrat-uniquifier {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


body {
    font-family: montserrat, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* aligne en haut au lieu du centre */
    height: 100vh;
    background-color: #f4f4f4;
    padding-top: 40px;       /* espace minimal en haut */
    box-sizing: border-box;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80%;
    max-height: 85vh;        /* limite la hauteur initiale */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 10px;
    overflow: auto;          /* scroll si contenu dépasse */
}

#password {
    background-color: #404040;
}

.column {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.column h2 {
    text-align: center;
    margin-top: 20px;
    font-size: 2rem;
}

/* Conteneur pour les deux colonnes (Perso et Devoir) dans la section "Tâches à faire" */
.task-columns {
    display: flex;
    flex-grow: 1;
    gap: 20px;
}

.task-column {
    flex: 1;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #ddd;
    overflow-y: auto;
    max-height: 95%;
    width: 350px;
}

.task-column h3 {
    text-align: center;
    font-size: 1.5rem;
}

#tasks-list-perso, #tasks-list-devoir, #completed-list {
    list-style-type: none;
    padding: 0;
    overflow-y: auto;
}

li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

li input[type="checkbox"] {
    position: absolute;
    box-align: left;
    height: 20px;
    width: 20px;
    bottom: 10px;
}
span {
    width: 100%; height: 100%;
    text-align: center;
    font-weight: 600;
}

    

/* Centrage du texte pour les tâches de la liste de droite */
#completed-list .task-text {
    text-align: center;
}

.add-task {
    margin-top: 20px;
    font-family: montserrat;
    display: flex;
}

.add-task input[type="text"] {
    flex: 1;
    font-family: montserrat;
    background-color: #e9ecef;
    padding: 20px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.add-task button {
    font-family: montserrat;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.add-task button:hover {
    background-color: #218838;
}

select {
    font-family: montserrat;
    margin-left: 8px;
    font-size: 18px;
}

.task-text {
    flex-grow: 1;
    margin-left: 8px; /* Alignement à gauche des tâches dans les colonnes Perso et Devoir */
}


/* Style pour les boutons de suppression (croix) */
.delete-btn {
    cursor: pointer;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style pour les boutons de sélection de couleur */
.color-btn {
    width: 20px;
    height: 20px;
    background-color: whitesmoke; /* Par défaut, rouge */
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

/* Popup de sélection de couleur */
.color-popup {
    display: none; /* Masqué par défaut */
    position: absolute;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
}

/* Style pour les choix de couleur dans le popup */
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 10%;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
}

.color-option.red { 
    background-color: red; 
}

.color-option.orange { 
    background-color: orange; 
}

.color-option.green { 
    background-color: green; 
}

.color-option.purple { 
    background-color: purple; 
}

.color-option.lightblue { 
    background-color: lightblue; 
}


#login {
  position: absolute;
   font-size: 2rem;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#login input {
  padding: 10px;
  font-family: montserrat;
   font-size: 1.5rem;
  margin: 5px;
  border: none;
  border-radius: 5px;
}
#login button {
  padding: 10px 20px;
  font-family: montserrat;
   font-size: 1.5rem;   
  background: #4CAF50;
  margin-top: 100px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}
#content {
  display: none; /* caché au départ */
  padding: 20px;
}

    
li.dragging {
    opacity: 0.5; /* Réduit l'opacité lorsqu'on déplace un élément */
    background-color: lightgray;
}

.placeholder {
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px dashed #ccc;
    margin: 5px 0;
    height: 40px; /* Ajustez en fonction de vos éléments */
}


/* On transforme les listes en grilles */
ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Chaque tâche devient une carte */
ul li {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol */
ul li:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Bouton supprimer dans un coin */
ul li button {
    align-self: flex-end;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

ul li button:hover {
    background: #c0392b;
}

/* Style pour une tâche terminée */
ul li.done {
    background: #dcdcdc;
    text-decoration: line-through;
    color: gray;
}


.color-option orange{


}
