:root {
  /* thème par défaut (valeurs actuelles) */
  --bg-color: #3cbeff;
  --text-color: #333;
  --add-task-btn: #b7d3ff;
  --todo-c:#ffc369;
  --todo-b:#ffac2f;
  --progress-c:#ffe667;
  --progress-b:#ffde37;
  --done-c:#aef2b0;
  --done-b:#41b23b;
  --li-bg-color:#ffffff;
  --modal-bg: rgba(0,0,0,0.4);
  --btn-yellow:#ffd600;
  --btn-green:#4CAF50;
  --btn-blue:#2196F3;
  --btn-red:#f44336;
  --btn-orange:#FF9800;
  --back-color:#4285f4;
  --auth-bg:#3cbeff;
  --auth-text-colour:#000000;

  --clipboard-txt: #000;
  --clipboard-bg: #fff;
  --clipboard-item:#ebebeb;
  --clipboard-item-hover:#c9c9c9;
  --lists-bg:    #d6d6d6;
  --list-items:#ebebeb;
  --list-items-hover:#c9c9c9;
  --panel-border: #ddd;
  --panel-shadow: rgba(0, 0, 0, 0.05);
  --primary:     #4285f4;
  --secondary-hover:   #fdcd73;
  --secondary:   #FFA500;
  --success-hover:     #8ddb8f;
  --success:     #4caf50;
}

/* Thème clair */
.theme-light {
  --bg-color: #ffffff;
  --text-color: #333;
  --add-task-btn: #e4e4e4;
  --todo-c:#e4e4e4;
  --todo-b:#8a8a8a;
  --progress-c:#e4e4e4;
  --progress-b:#8a8a8a;
  --done-c:#e4e4e4;
  --done-b:#8a8a8a;
  --li-bg-color:#f4f4f4;
  --modal-bg: rgba(0,0,0,0.3);
  --btn-yellow:#d8d8d8;
  --btn-green:#d8d8d8;
  --btn-blue:#d8d8d8;
  --btn-red:#d8d8d8;
  --btn-orange:#d8d8d8;
  --back-color:#4285f4;
  --auth-bg:#ffffff;
  --auth-text-colour:#000000;

  --clipboard-txt: #000;
  --clipboard-bg: #ebebeb;
  --clipboard-item:#fff;
  --clipboard-item-hover:#c9c9c9;
  --lists-bg:    #fff;
  --list-items:#ebebeb;
  --list-items-hover:#c9c9c9;
  --panel-border: #ddd;
  --panel-shadow: rgba(0, 0, 0, 0.05);
  --primary:     #4285f4;
  --secondary-hover:   #c9c9c9;
  --secondary:   #fff;
  --success-hover:     #8ddb8f;
  --success:     #4CAF50;
}

/* Thème sombre */
.theme-dark {
  --bg-color: #000000;
  --text-color: #000000;
  --add-task-btn: #ffffff;
  --todo-c:#494949;
  --todo-b:#9d9d9d;
  --progress-c:#494949;
  --progress-b:#9d9d9d;
  --done-c:#494949;
  --done-b:#9d9d9d;
  --li-bg-color:#646464;
  --modal-bg: rgba(0,0,0,0.7);
  --btn-yellow:#4b4b4b;
  --btn-green:#4b4b4b;
  --btn-blue:#4b4b4b;
  --btn-red:#4b4b4b;
  --btn-orange:#4b4b4b;
  --back-color:#ffffff;
  --auth-bg:#393939;
  --auth-text-colour:#ffffff;
  
  --clipboard-txt: #d4d4d4;
  --clipboard-bg: #4e4e4e;
  --clipboard-item:#636363;
  --clipboard-item-hover:#969696;
  --lists-bg:    #fff;
  --list-items:#ebebeb;
  --list-items-hover:#c9c9c9;
  --panel-border: #535353;
  --panel-shadow: rgba(0, 0, 0, 0.05);
  --primary:     #747474;
  --secondary-hover:   #969696;
  --secondary:   #636363;
  --success-hover:     #6b6b6b;
  --success:     #444444;
}

/* =============================
   Styles généraux (version PC)
   ============================= */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    background: var(--bg-color);
  }
  
  .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 15px;
  }

  .add-task form {
    display: flex;
    align-items: center; /* Aligne verticalement les éléments */
    justify-content: center; /* Facultatif, pour centrer horizontalement */
    gap: 10px; /* Espace entre la zone de saisie et le bouton */
  }
  
  .add-task {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  /* Met à jour le textarea pour qu'il occupe 33% de la largeur du conteneur */
  .add-task textarea {
    width: 33vw;
    height: 80px;
    font-size: 1.2rem;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }
  
  .add-task button {
    padding: 12px 16px;
    font-size: 1.2rem;
    border: none;
    background: var(--add-task-btn);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* Affichage des colonnes en ligne sur PC */
  .columns {
    display: flex;
    width: 100%;
    height: 100vh;
    gap: 10px;
  }
  
  .column {
    flex: 1;
    padding: 15px;
    border-radius: 30px;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .column h2 {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .column ul {
    list-style: none;
    padding: 0;
  }
  
  .column ul li {
    background: var(--li-bg-color);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .column ul li span {
    display: block;
    flex: 1;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break:break-all;
  }
  
  /* Styles pour les icônes d'actions */
  .column ul li .actions a {
    margin-left: 5px;
    font-size: 1.2rem;
    text-decoration: none;
  }
  
  /* Couleurs spécifiques pour chaque colonne (optionnel) */
  .column.todo {
    border: 10px solid var(--todo-b);
    background:  var(--todo-c);
    color: var(--text-color);
  }
  
  .column.inprogress {
    border: 10px solid var(--progress-b);
    background: var(--progress-c);
    color: var(--text-color);
  }
  
  .column.done {
    border: 10px solid var(--done-b);
    background: var(--done-c);
    color: var(--text-color);
  }
  
  /* ================================
     Styles pour la page d'édition
     ================================ */
  .edit-container {
    max-width: 33vw;
    margin: 20px auto;
    background: var(--li-bg-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
  }
  
  .edit-container h1 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .edit-container textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }
  
  .edit-container button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    background: var(--add-task-btn);
    color: var(--btn-bg);
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
  }

  /* =====================================
     Styles pour la page de visualisation
     ===================================== */

  .view-container {
    max-width: 600px;         /* Largeur max, ajustable */
    margin: 20px auto;        /* Centre horizontalement */
    padding: 20px;            
    background-color: var(--li-bg-color);   
    border: 4px solid var(--bg-color);/* Bordure bleue épaisse */
    border-radius: 15px;      /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: var(--text-color);
  }

  /* Titre principal de la tâche */
  .view-container h1 {
    font-size: 2rem;
    text-align: left;         /* Ou center, selon préférence */
    margin-bottom: 20px;
    color: #333;
  }

  /* Zone de texte de la tâche */
  .task-detail p {
    font-size: 1.2rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 20px;
  }

  /* Bloc contenant les 4 boutons */
  .actions-detail {
    display: flex;
    gap: 10px;                /* Espace entre les boutons */
    justify-content: center;  /* Centre les boutons horizontalement */
    flex-wrap: wrap;          /* Permet de passer à la ligne si trop large */
  }

  /* Styles communs à tous les boutons */
  .btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    min-width: 100px;         /* Largeur minimale pour uniformiser l'affichage */
  }

  /* Bouton En cours (jaune) */
  .yellow-btn {
    background-color: var(--btn-yellow); /* Jaune type #FFEB3B possible aussi */
  }

  /* Bouton fait (vert) */
  .green-btn {
    background-color: var(--btn-green); /* Vert */
  }

  /* Bouton modifier (bleu) */
  .blue-btn {
    background-color: var(--btn-blue); /* Bleu */
  }

  /* Bouton supprimer (rouge) */
  .red-btn {
    background-color: var(--btn-red); /* Rouge */
  }

  .orange-btn {
    background-color: var(--btn-orange); /* Orange */
  }

  /* On peut ajouter un hover plus prononcé si besoin */
  .btn:hover {
    opacity: 0.9;
  }

  /* Lien "Retour" */
  .back-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--back-color);
  }

  /* Petit encart date de création */
  .date-box {
    display: inline-block;
    background-color: #eef5fd;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  /* Modal (couvre tout l'écran) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: var(--modal-bg);
  }

  /* Fenêtre de contenu */
  .modal-content {
    background-color: #ffffff;      /* Toujours blanc */
    color: #000000;                 /* Texte noir pour la lisibilité */
    margin: 15% auto;              
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);  /* Ombre plus marquée */
    border: 1px solid #ddd;        /* Légère bordure grise */
  }

  /* Bouton fermer */
  #close-modal {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

    /* =============== */
  /* Color picker    */
  /* =============== */
  .color-picker {
    margin-top: 20px;
    text-align: center;
  }

  .color-picker h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }

  .color-picker form {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Boutons prédéfinis */
  .color-option {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
  }

  .color-option.selected {
    border-color: #000;  /* Indique la couleur active */
  }

  /* Bouton ✓ pour la couleur custom */
  .apply-custom {
    padding: 0 8px;
    height: 30px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    border-radius: 4px;
    cursor: pointer;
  }

    /* Corbeille */
  .trash-list {
    list-style: none;
    padding: 0;
  }
  .trash-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
  }
  .trash-list li span {
    flex: 1;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-all;
  }

    /* --- Header global --- */
  .app-header {
    display: flex;
    justify-content: space-between;  /* aligne tout à droite */
    align-items: center;
    padding: 10px 20px;         /* un peu d’air autour */
    position: relative;
    background-color: var(--header-bg);  /* comme défini par ton thème */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* Icônes / boutons du header */
  .header-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;          /* espace entre chaque icône */
    color: var(--btn-text);     /* adapter selon ton thème */
    text-decoration: none;
  }

  /* Conteneur pour les icônes */
  .header-icons {
  display: flex;
  gap: 15px;
  }

  .header-back-placeholder {
  width: 80px; /* même largeur que .header-back pour compenser */
  }

  /* Bouton Retour */
  .header-back {
  color: var(--btn-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  }

  .header-back:hover {
  opacity: 0.8;
  }

  /* Effet au survol */
  .header-icon:hover {
    opacity: 0.7;
  }

  /* ============= */
  /* Auth forms    */
  /* ============= */
  .form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: var(--auth-bg);
    border: 3px solid var(--header-bg);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-align: center;
  }

  .form-container h2 {
    margin-bottom: 20px;
    color: var(--auth-text-colour);
    font-size: 1.6rem;
  }

  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .auth-form label {
    text-align: left;
    font-weight: bold;
    color: var(--auth-text-colour);
    font-size: 0.95rem;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--column-border);
    border-radius: 6px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .form-input:focus {
    outline: none;
    border-color: var(--btn-bg);
    box-shadow: 0 0 4px rgba(66, 133, 244, 0.5);
  }

  .form-button {
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    color: var(--auth-text-colour);
  }

  .form-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  .form-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--auth-text-colour);
  }

  .form-footer a {
    color: var(--btn-bg);
    text-decoration: none;
  }

  .form-footer a:hover {
    text-decoration: underline;
  }

  /* ================================= */
/* Clipboard & Listes                */
/* ================================= */
/* =================================
   Conteneur global
   ================================= */
.clipboard-container {
  display: flex;
  gap: 20px;
  height: calc(100vh - 100px);
  padding: 10px;
  box-sizing: border-box;
}

/* =================================
   Styles communs aux panneaux
   ================================= */
.clipboard-panel,
.lists-panel {
  flex: 1;
  background: var(--clipboard-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--panel-shadow);
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
}

/* =================================
   Panel Clipboard
   ================================= */
.clipboard-panel h2 {
  margin-bottom: 10px;
  color: var(--clipboard-txt);
}

.clipboard-panel ul {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.clipboard-panel ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--clipboard-item);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.clipboard-panel ul li:hover {
  background: var(--clipboard-item-hover);
}

.clipboard-panel .item-text {
  flex: 1;
  color: var(--clipboard-txt);
  word-break: break-word;
  font-size: 1.2rem;
}

.clipboard-panel .item-actions {
  display: flex;
  gap: 8px;
  font-size: 1.2rem;
}

.clipboard-panel .item-actions button{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 1.2rem;

}
.clipboard-panel .item-actions a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.clipboard-panel .item-actions button:hover,
.clipboard-panel .item-actions a:hover {
  opacity: 0.7;
}

.clipboard-panel .clipboard-controls button:hover {
  opacity: 0.85;
}

/* Formulaire en bas */
.clipboard-form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.clipboard-form textarea {
  flex: 1;
  height: 60px;
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  resize: vertical;
  font-size: 1rem;
}

.clipboard-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.clipboard-form button:hover {
  opacity: 0.85;
}

/* =================================
   Panel Lists
   ================================= */
.lists-panel h2 {
  margin-bottom: 10px;
  color: var(--clipboard-txt);
}

.lists-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: var(--secondary);
  color: var(--clipboard-txt);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.list-button:hover {
  background: var(--secondary-hover)
}

.add-list-button {
  background: var(--success);
}

.add-list-button:hover {
  background: var(--success-hover);
}

/* =================================
   Vue d’une liste (view_list.html)
   ================================= */
#list-items {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

#list-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--list-items);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

#list-items li:hover {
  background: var(--list-items-hover);
}

#list-items li .form-input {
  flex: 1;
}

.form-input {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
}

.btn.red-btn {
  background: #e74c3c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}

  
  /* ==================================
     Responsive : version mobile
     ================================== */
  @media screen and (orientation: portrait) {
    /* On empile les colonnes verticalement et on ajuste la hauteur */
    .columns {
      flex-direction: column;
      height: auto;
    }
    .column {
      width: 100%;
      /* On peut ajouter une marge verticale entre chaque colonne */
      margin-bottom: 10px;
      border-radius: 60px;
    }
    
    /* Augmente un peu la taille de la police pour une lecture plus confortable */
    body {
      font-size: 2em;
    }

    .add-task form {
      flex-direction: column; /* les éléments s'empilent verticalement */
      align-items: center;    /* centre les éléments horizontalement */
    }
    
    /* Élargir le textarea du formulaire d'ajout sur mobile */
    .add-task textarea {
      width: 90vw;
      height: 30vw;
      font-size: 3rem;
      border-radius: 20px;
    }

    .add-task button {
      width: 70vw;
      height: 10vw;
      padding: 12px 16px;
      font-size: 1.2rem;
      border: none;
      background: #b7d3ff;
      color: #fff;
      border-radius: 20px;
      cursor: pointer;
    }
    
    /* On peut aussi augmenter la taille des icônes si besoin */
    .column ul li .actions {
      display: flex;
      flex-direction: column;
      align-items: center;   /* Optionnel : pour centrer les icônes horizontalement */
      gap: 5px;  /* Espace entre chaque icône */
    }
    
    /* Tu peux éventuellement ajuster la marge et la taille des icônes uniquement en mobile */
    .column ul li .actions a {
      font-size: 4rem;
      margin: 0;  /* On retire la marge initiale */
    }
    
    /* Si besoin, augmenter les marges ou paddings pour une meilleure ergonomie tactile */
    .column ul li {
      padding: 12px;
    }

    .view-container {
      max-width: 90vw;        /* Largeur max, ajustable */
      margin: 20px auto;        /* Centre horizontalement */
      padding: 20px;            
      background-color: #fff;   
      border: 4px solid #00a0ff;/* Bordure bleue épaisse */
      border-radius: 15px;      /* Coins arrondis */
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
  
    /* Titre principal de la tâche */
    .view-container h1 {
      font-size: 4rem;
      text-align: left;         /* Ou center, selon préférence */
      margin-bottom: 20px;
      color: #333;
    }

    .task-detail p {
      font-size: 3rem;
      line-height: 1.5;
      white-space: pre-wrap;
      word-break: break-all;
      margin-bottom: 20px;
    }
  
    /* Bloc contenant les 4 boutons */
    .actions-detail {
      display: flex;
      gap: 10px;                /* Espace entre les boutons */
      justify-content: center;  /* Centre les boutons horizontalement */
      flex-wrap: wrap;          /* Permet de passer à la ligne si trop large */
    }
  
    /* Styles communs à tous les boutons */
    .btn {
      display: inline-block;
      padding: 12px 20px;
      font-size: 2.5rem;
      font-weight: bold;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      min-width: 100px;         /* Largeur minimale pour uniformiser l'affichage */
    }

      /* Lien "Retour" */
    .back-link {
      display: inline-block;
      margin-top: 10px;
      font-size: 2rem;
      text-decoration: none;
      color: #4285f4;
    }

    .edit-container {
      max-width: 90vw;
      margin: 20px auto;
      background: #fff;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .edit-container h1 {
      text-align: center;
      margin-bottom: 15px;
    }
    
    .edit-container textarea {
      width: 100%;
      padding: 10px;
      font-size: 1.5rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      resize: vertical;
    }
    
    .edit-container button {
      display: block;
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      border: none;
      background: #4285f4;
      color: #fff;
      font-size: 2.5rem;
      border-radius: 4px;
      cursor: pointer;
    }

    .form-container {
      max-width: 80%;
      margin: 40px auto;
      padding: 30px 20px;
      background-color: var(--auth-bg);
      border: 3px solid var(--header-bg);
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      text-align: center;
    }

    .auth-form label {
      text-align: left;
      font-weight: bold;
      color: var(--auth-text-colour);
      font-size: 2rem;
    }

    .form-container h2 {
      margin-bottom: 20px;
      color: var(--auth-text-colour);
      font-size: 3rem;
    }

    .form-input {
      padding: 10px 12px;
      font-size: 2rem;
      border: 1px solid var(--column-border);
      border-radius: 6px;
      background: #fff;
      color: #000;
      transition: border-color 0.2s;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .form-button {
      padding: 12px;
      font-size: 2rem;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.1s;
      color: var(--auth-text-colour);
    }
  
    .form-footer {
      margin-top: 20px;
      font-size: 1.5rem;
      color: var(--auth-text-colour);
    }

    /* Icônes / boutons du header */
    .header-icon {
      background: none;
      border: none;
      font-size: 3rem;
      cursor: pointer;
      margin-left: 15px;          /* espace entre chaque icône */
      color: var(--btn-text);     /* adapter selon ton thème */
      text-decoration: none;
    }

    .color-picker {
      margin-top: 30px;
      text-align: center;
    }
  
    .color-picker h3 {
      margin-bottom: 10px;
      font-size: 2.2rem;
    }
  
    .color-picker form {
      display: flex;
      gap: 8px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }
  
    /* Boutons prédéfinis */
    .color-option {
      width: 7vw;
      height: 7vw;
      border: 2px solid transparent;
      border-radius: 7px;
      cursor: pointer;
    }
  
    .color-option.selected {
      border-color: #000;  /* Indique la couleur active */
    }
  
    /* Bouton ✓ pour la couleur custom */
    .apply-custom {
      padding: 0 8px;
      height: 7vw;
      border: none;
      background: var(--btn-bg);
      color: var(--btn-text);
      border-radius: 7px;
      cursor: pointer;
    }

      /* Modal (couvre tout l'écran) */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: var(--modal-bg);
    }

    /* Fenêtre de contenu */
    .modal-content {
      background-color: #ffffff;      /* Toujours blanc */
      color: #000000;                 /* Texte noir pour la lisibilité */
      margin: 15% auto;              
      padding: 20px;
      border-radius: 10px;
      width: 80%;
      max-width: 80%;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);  /* Ombre plus marquée */
      border: 1px solid #ddd;        /* Légère bordure grise */
      font-size: 4rem;
    }

    /* Bouton fermer */
    #close-modal {
      margin-top: 10px;
      padding: 8px 12px;
      background: var(--btn-bg);
      color: var(--btn-text);
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 3rem;
    }

    /* ==================================
     Responsive : Clipboard
     ================================== */

    .clipboard-container {
    flex-direction: column;
    height: 100vh;            /* occupe tout l’écran */
    }

    .clipboard-panel,
    .lists-panel {
      /* chaque panneau fait la moitié de l’écran */
      height: 50vh;
      padding: 10px;
      box-sizing: border-box;

      /* scroll interne si trop de contenu */
      overflow-y: auto;
    }

    /* Garde un peu de gap vertical */
    .clipboard-container {
      gap: 10px;
    }

    /* Agrandit un peu les titres pour mobile */
    .clipboard-panel h2,
    .lists-panel h2 {
      font-size: 1.5rem;
    }

    .clipboard-panel .item-text {
      flex: 1;
      color: var(--clipboard-txt);
      word-break: break-word;
      font-size: 3rem;
    }

    .clipboard-panel .item-actions {
      display: flex;
      gap: 8px;
      font-size: 3rem;
    }

    .clipboard-panel .item-actions button{
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-color);
      text-decoration: none;
      transition: opacity 0.2s;
      font-size: 3rem;

    }

    .clipboard-panel h2 {
      margin-bottom: 10px;
      color: var(--clipboard-txt);
      font-size: 3rem;
      text-align: center;
    }

    .lists-panel h2 {
      margin-bottom: 10px;
      color: var(--clipboard-txt);
      font-size: 3rem;
      text-align: center;
    }

    .clipboard-form textarea {
      height: 7vh;
      font-size: 3rem;
    }

    .clipboard-form button {
      font-size: 3rem;
    }

    .list-button {
      font-size: 3rem;
    }
  }
  