/* Piro & Miro : complète style.css et carnet.css */

.liste .c-head h1 span { color: var(--red); font-size: 0.8em; }

/* --- qui tient le stylo --- */
.who { padding: 10px 26px 60px; text-align: center; }
.who .hw { font-size: 30px; margin-bottom: 20px; }
.who-btns { display: flex; justify-content: center; gap: 22px; }
.who-btns button {
  border: 1.5px solid var(--ink);
  border-radius: 46% 54% 50% 50% / 56% 48% 52% 44%;
  background: none;
  font-family: var(--hw);
  font-size: 34px;
  color: var(--ink);
  padding: 8px 26px;
  cursor: pointer;
}
.who-btns button[data-who='miro'] { color: var(--red); border-color: var(--red); transform: rotate(2deg); }
.who-btns button[data-who='piro'] { transform: rotate(-2deg); }

/* --- la liste : papier ligné, marge rouge --- */
.list-wrap { padding: 4px 14px 20px; }

.count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-align: right;
  padding: 0 10px 10px;
  opacity: 0.8;
}

.items {
  list-style: none;
  margin: 0;
  padding: 10px 12px 10px 46px;
  background-color: #fbf8f1;
  background-image:
    linear-gradient(90deg, transparent 34px, rgba(179, 38, 46, 0.45) 34px, rgba(179, 38, 46, 0.45) 35.5px, transparent 35.5px),
    var(--grain);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 22px rgba(60, 40, 10, 0.1);
  transform: rotate(-0.4deg);
}

.it {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 52px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(31, 46, 134, 0.18);
  transition: transform 0.5s, opacity 0.5s;
}
.it:last-child { border-bottom: 0; }
.it.fresh { animation: drop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.it.gone { transform: translateX(30px) rotate(3deg); opacity: 0; }

.box {
  flex: none;
  width: 38px;
  height: 38px;
  margin-left: -44px; /* la case vit dans la marge */
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.box canvas { width: 38px; height: 38px; }
.box:active { transform: scale(0.92); }

.it-body { flex: 1; min-width: 0; }
.it-text {
  display: block;
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  font-family: var(--hw);
  font-size: 27px;
  line-height: 1.25;
  color: var(--ink);
  padding: 2px 0 0;
  resize: none;
  overflow: hidden;
}
.it[data-by='miro'] .it-text { color: var(--red); }
.it.done .it-text {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  opacity: 0.62;
}
.it-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0.6;
  min-height: 4px;
}
.it-meta:empty { display: none; }

.rm {
  flex: none;
  border: 0;
  background: none;
  font-family: var(--hw);
  font-size: 26px;
  line-height: 1;
  color: var(--red);
  opacity: 0.4;
  padding: 8px 4px;
  cursor: pointer;
}
.rm:active { opacity: 1; }

/* --- ajouter --- */
.add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 8px 6px;
  padding-bottom: 4px;
  border-bottom: 1.5px dashed var(--ink-soft);
}
.add canvas { width: 40px; height: 40px; flex: none; }
.add input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-family: var(--hw);
  font-size: 28px;
  color: var(--ink);
  caret-color: var(--red);
}
.add input::placeholder { color: rgba(31, 46, 134, 0.42); }

.list-wrap .book-foot { padding-top: 26px; }

/* --- les deux catégories --- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 0 8px 14px;
}
.tabs button {
  flex: 1;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  font-family: var(--hw);
  font-size: 25px;
  line-height: 1.1;
  color: var(--ink);
  opacity: 0.5;
  padding: 6px 4px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabs button.on {
  opacity: 1;
  border-bottom-color: var(--red);
  border-radius: 0 0 40% 60% / 0 0 6px 4px;
}
.tabs small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--red);
  vertical-align: super;
}

/* --- une adresse : genre, rue, carte --- */
.it-addr {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.35;
  margin: 1px 0 2px;
  opacity: 0.85;
}
.it-map {
  color: var(--red);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* --- suggestions sous le champ --- */
.add-help {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  opacity: 0.65;
  margin: 6px 12px 0;
}
.sugg {
  list-style: none;
  margin: 8px 8px 0;
  padding: 4px 0;
  background-color: #fbf8f1;
  background-image: var(--grain);
  box-shadow: 0 6px 18px rgba(60, 40, 10, 0.14);
  border-left: 1.5px solid var(--red);
}
.sg {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(31, 46, 134, 0.14);
  background: none;
  color: var(--ink);
  padding: 8px 14px 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sugg li:last-child .sg { border-bottom: 0; }
.sg:active { background: rgba(179, 38, 46, 0.06); }
.sg-name { display: block; font-family: var(--hw); font-size: 24px; line-height: 1.15; }
.sg-sub { display: block; font-family: var(--serif); font-size: 12.5px; opacity: 0.75; margin-top: 1px; }
.sg-free .sg-name { color: var(--red); }
.sg-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  opacity: 0.7;
  padding: 8px 14px;
}
