:root {
  color-scheme: light dark;
  --fond: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --texte: #1d1d1f;
  --texte-2: #6e6e73;
  --texte-3: #86868b;
  --ligne: rgba(0, 0, 0, 0.08);
  --ligne-forte: rgba(0, 0, 0, 0.16);
  --accent: #e8690f;
  --accent-fort: #b5520a;
  --accent-doux: rgba(232, 105, 15, 0.12);
  --bouton: #1d1d1f;
  --bouton-texte: #ffffff;
  --rouge: #d70015;
  --orange-texte: #a64b00;
  --vert: #34c759;
  --ombre: 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 18px rgba(0, 0, 0, 0.05);
  --ombre-forte: 0 16px 60px rgba(0, 0, 0, 0.22);
  --rayon: 16px;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #000000;
    --surface: #1c1c1e;
    --surface-2: #242426;
    --texte: #f5f5f7;
    --texte-2: #a1a1a6;
    --texte-3: #8d8d93;
    --ligne: rgba(255, 255, 255, 0.1);
    --ligne-forte: rgba(255, 255, 255, 0.2);
    --accent-fort: #ffa257;
    --accent-doux: rgba(232, 105, 15, 0.22);
    --bouton: #f5f5f7;
    --bouton-texte: #1d1d1f;
    --rouge: #ff6961;
    --orange-texte: #ffb340;
    --vert: #30d158;
    --ombre: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --ombre-forte: 0 16px 60px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.feuille-ouverte,
html.feuille-ouverte body {
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

:focus-visible {
  outline: 3px solid rgba(232, 105, 15, 0.55);
  outline-offset: 2px;
}

a {
  color: var(--accent-fort);
}

[hidden] {
  display: none !important;
}

.visuel-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.icone {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icone.petite {
  width: 15px;
  height: 15px;
}

.chargement {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.roue {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--ligne-forte);
  border-top-color: var(--texte-2);
  animation: tourne 0.8s linear infinite;
}

@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}

.connexion {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
}

.connexion-carte {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.connexion h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
}

.surtitre {
  margin: 0;
  color: var(--texte-2);
  font-size: 15px;
  font-weight: 600;
}

.consigne {
  margin: 0;
  color: var(--texte-2);
  font-size: 17px;
}

.aide {
  margin: 0;
  color: var(--texte-3);
  font-size: 13px;
  line-height: 1.35;
}

.message {
  min-height: 1.35em;
  margin: 0;
  color: var(--rouge);
  font-size: 15px;
}

.feuille-corps .message:empty {
  display: none;
}

.grille-membres {
  list-style: none;
  margin: 14px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  width: 100%;
}

.membre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-radius: 20px;
  width: 100%;
  transition: background 0.15s, transform 0.15s;
}

@media (hover: hover) {
  .membre:hover {
    background: var(--surface);
  }
}

.membre:active {
  transform: scale(0.96);
}

.membre-nom {
  font-size: 15px;
  font-weight: 500;
}

.lien {
  color: var(--accent-fort);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.connexion-carte .retour {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 2;
}

.lien.langue {
  margin-top: 6px;
  color: var(--texte-2);
  font-size: 15px;
}

.avatar {
  --taille: 32px;
  width: var(--taille);
  height: var(--taille);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: #ffffff;
  font-size: calc(var(--taille) * 0.38);
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.08));
}

.avatar.mini {
  --taille: 20px;
  font-size: 9px;
}

.avatar.petit {
  --taille: 28px;
}

.avatar.moyen {
  --taille: 38px;
}

.avatar.grand {
  --taille: 76px;
  font-size: 27px;
}

.avatar.vide {
  background: transparent;
  border: 1.5px dashed var(--ligne-forte);
}

.c0 {
  background-color: #c2570c;
}

.c1 {
  background-color: #1f6fb2;
}

.c2 {
  background-color: #2e7d32;
}

.c3 {
  background-color: #7b3fa0;
}

.c4 {
  background-color: #b3261e;
}

.c5 {
  background-color: #00796b;
}

.c6 {
  background-color: #6d4c41;
}

.c7 {
  background-color: #4a5a66;
}

.points {
  display: flex;
  gap: 18px;
  margin: 8px 0 0;
}

.point {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--texte-2);
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.point.plein {
  background: var(--texte);
  border-color: var(--texte);
  transform: scale(1.05);
}

.points.secoue {
  animation: secoue 0.42s;
}

@keyframes secoue {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(4px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-8px);
  }
  40%,
  60% {
    transform: translateX(8px);
  }
}

.pave {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 16px 24px;
  justify-content: center;
  margin: 2px 0 4px;
}

.touche {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--ombre);
  font-size: 30px;
  font-weight: 400;
  display: grid;
  place-items: center;
  transition: background 0.1s, transform 0.1s;
}

.touche:active {
  background: var(--ligne-forte);
  transform: scale(0.95);
}

.touche.effacer {
  background: transparent;
  box-shadow: none;
}

.touche.effacer .icone {
  width: 26px;
  height: 26px;
}

@media (max-height: 720px) {
  .pave {
    grid-template-columns: repeat(3, 66px);
    gap: 12px 22px;
  }
  .touche {
    width: 66px;
    height: 66px;
    font-size: 27px;
  }
  .connexion-carte {
    gap: 10px;
  }
}

.champ-code {
  font: inherit;
  font-size: 32px;
  letter-spacing: 0.35em;
  text-align: center;
  width: 100%;
  max-width: 280px;
  padding: 12px 10px 12px calc(10px + 0.35em);
  border-radius: 14px;
  border: 1px solid var(--ligne-forte);
  background: var(--surface);
  color: var(--texte);
  font-variant-numeric: tabular-nums;
}

.champ-code:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-doux);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bouton);
  color: var(--bouton-texte);
  border-radius: 980px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 600;
  min-height: 46px;
  text-decoration: none;
  transition: transform 0.1s, opacity 0.15s;
}

.bouton:active {
  transform: scale(0.98);
}

.bouton.petit {
  padding: 7px 15px;
  min-height: 34px;
  font-size: 15px;
}

.bouton.secondaire {
  background: var(--surface);
  color: var(--texte);
  box-shadow: inset 0 0 0 1px var(--ligne-forte);
}

.bouton.large {
  width: 100%;
}

.bouton-texte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-fort);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 2px;
}

.bouton-texte.danger {
  color: var(--rouge);
}

.bouton-texte.centre {
  align-self: center;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px calc(120px + env(safe-area-inset-bottom));
}

.entete {
  padding: 18px 0 4px;
}

.entete-ligne {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.entete h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sous-titre {
  margin: 6px 0 0;
  color: var(--texte-2);
  font-size: 15px;
}

.insecable {
  white-space: nowrap;
}

.bouton-moi {
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  transition: transform 0.12s;
}

.bouton-moi:active {
  transform: scale(0.94);
}

.progression {
  margin-top: 18px;
}

.jauge {
  height: 6px;
  border-radius: 3px;
  background: var(--ligne);
  overflow: hidden;
}

.rempli {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progression-texte {
  margin: 8px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--texte-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.decompte {
  font-weight: 600;
  color: var(--texte);
}

.barre-vues {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px -20px 0;
  padding: 10px 20px;
  background: rgba(245, 245, 247, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

@media (prefers-color-scheme: dark) {
  .barre-vues {
    background: rgba(0, 0, 0, 0.8);
  }
}

.segments {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--ligne);
  border-radius: 10px;
  padding: 2px;
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}

.segment.actif {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .segment.actif {
    background: #3a3a3c;
  }
}

.segment .compte {
  color: var(--texte-3);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.segments.petits {
  flex: none;
  display: inline-grid;
  min-width: 220px;
}

.bouton.ajout {
  flex: none;
  min-height: 36px;
  padding: 7px 16px 7px 12px;
  font-size: 15px;
}

.flottant {
  display: none;
}

.filtres {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 2px -20px 0;
  padding: 4px 20px 6px;
  scrollbar-width: none;
}

.filtres::-webkit-scrollbar {
  display: none;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  border-radius: 980px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ligne);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 32px;
}

.puce:first-child {
  padding-left: 12px;
}

.puce.active {
  background: var(--texte);
  color: var(--fond);
  box-shadow: none;
}

.liste {
  padding-top: 4px;
}

.groupe {
  margin-top: 24px;
}

.groupe h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.groupe h2 .compte {
  color: var(--texte-3);
  font-size: 15px;
  font-weight: 500;
}

.groupe.retard h2 {
  color: var(--rouge);
}

.taches {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.tache {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px 0 4px;
  min-height: 58px;
  position: relative;
  transition: background 0.2s;
}

.tache + .tache::before {
  content: "";
  position: absolute;
  top: 0;
  left: 52px;
  right: 0;
  height: 1px;
  background: var(--ligne);
}

@media (hover: hover) {
  .tache:hover {
    background: var(--surface-2);
  }
}

.coche {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.cercle {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.75px solid var(--texte-3);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cercle .marque {
  width: 14px;
  height: 14px;
  color: #ffffff;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.15s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@media (hover: hover) {
  .coche:hover .cercle {
    border-color: var(--accent);
  }
}

.coche.cochee .cercle {
  background: var(--accent);
  border-color: var(--accent);
}

.coche.cochee .marque {
  opacity: 1;
  transform: scale(1);
}

.coche:active .cercle {
  transform: scale(0.88);
}

.corps {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 11px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: stretch;
  justify-content: center;
}

.titre {
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tache.faite .titre {
  color: var(--texte-3);
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--texte-2);
  font-size: 13px;
}

.date.retard {
  color: var(--rouge);
  font-weight: 600;
}

.date.bientot {
  color: var(--orange-texte);
  font-weight: 600;
}

.indice {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--texte-3);
}

.droite {
  flex: none;
  display: grid;
  place-items: center;
  margin-left: 6px;
}

.prendre {
  flex: none;
  margin-left: 6px;
  padding: 6px 13px;
  border-radius: 980px;
  background: var(--accent-doux);
  color: var(--accent-fort);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.1s;
}

.prendre:active {
  transform: scale(0.96);
}

.tache.recente {
  animation: estompe 1.1s ease forwards;
}

@keyframes estompe {
  0%,
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.voir-faites {
  display: block;
  margin: 22px auto 0;
  color: var(--texte-2);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}

.liste > .vide {
  text-align: center;
  padding: 56px 20px 24px;
  color: var(--texte-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.liste > .vide p {
  margin: 0;
  font-size: 17px;
}

#feuille {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}

#feuille.ouverte {
  pointer-events: auto;
  visibility: visible;
}

.voile {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#feuille.visible .voile {
  opacity: 1;
}

.feuille {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% - 10px - env(safe-area-inset-top));
  background: var(--fond);
  border-radius: 14px 14px 0 0;
  box-shadow: var(--ombre-forte);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  outline: none;
  padding-bottom: env(safe-area-inset-bottom);
}

#feuille.visible .feuille {
  transform: translateY(0);
}

@media (min-width: 720px) {
  .feuille {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(620px, calc(100% - 48px));
    height: auto;
    max-height: min(880px, calc(100% - 64px));
    border-radius: 18px;
    transform: translate(-50%, -47%) scale(0.97);
    opacity: 0;
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  }
  #feuille.visible .feuille {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.feuille-entete {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 6px 14px;
  background: rgba(245, 245, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ligne);
}

@media (prefers-color-scheme: dark) {
  .feuille-entete {
    background: rgba(0, 0, 0, 0.82);
  }
}

.feuille-entete > :first-child {
  justify-self: start;
}

.feuille-entete > :last-child {
  justify-self: end;
}

.feuille-titre {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50vw;
}

.feuille-corps {
  padding: 14px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feuille-corps.etroit {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  gap: 16px;
  padding-top: 22px;
}

.ligne-titre {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.ligne-titre .coche {
  margin-left: -9px;
}

.coche.grande {
  width: 48px;
  height: 48px;
}

.coche.grande .cercle {
  width: 27px;
  height: 27px;
}

.champ-titre {
  flex: 1;
  font: inherit;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  border: 0;
  background: transparent;
  color: var(--texte);
  resize: none;
  padding: 9px 0;
  outline: none;
  overflow: hidden;
  min-width: 0;
}

.champ-titre::placeholder {
  color: var(--texte-3);
}

.bloc h3 {
  margin: 0 0 10px 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.personnes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personne {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 980px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ligne);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.15s, background 0.15s;
}

.personne.choisie {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: var(--accent-doux);
}

.avis-responsable {
  margin-top: 10px;
}

.avis-responsable:empty {
  display: none;
}

.champ {
  font: inherit;
  font-size: 17px;
  color: var(--texte);
  background: var(--surface);
  border: 1px solid var(--ligne-forte);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  min-width: 0;
}

.champ:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-doux);
}

.champ-date {
  width: auto;
  min-width: 190px;
  min-height: 46px;
}

.champ-notes {
  resize: none;
  min-height: 96px;
  line-height: 1.45;
  overflow: hidden;
  font-size: 16px;
}

.rangee {
  display: flex;
  align-items: center;
  gap: 12px;
}

.liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lien-puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ligne);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-fort);
  max-width: 100%;
}

.lien-puce span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fil {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.commentaire {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.commentaire-corps {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border-radius: 4px 16px 16px 16px;
  padding: 8px 13px 10px;
  box-shadow: var(--ombre);
}

.commentaire-tete {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.commentaire-tete .quand {
  color: var(--texte-3);
}

.commentaire-tete .discret {
  margin-left: auto;
  color: var(--texte-3);
  font-size: 13px;
  padding: 0;
}

.commentaire-texte {
  margin: 3px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.45;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.champ-commentaire {
  resize: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 16px;
  overflow: hidden;
  min-height: 40px;
}

.pied-tache {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-top: 1px solid var(--ligne);
  padding-top: 14px;
}

.meta-tache {
  margin: 0;
  color: var(--texte-3);
  font-size: 13px;
}

.meta-tache:empty {
  display: none;
}

.profil {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profil-textes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  min-width: 0;
}

.profil-textes strong {
  font-size: 21px;
  letter-spacing: -0.01em;
}

.carte-reglages {
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.reglage {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.reglage + .reglage,
.rangee-nav + .rangee-nav,
.rangee-membre + .rangee-membre {
  border-top: 1px solid var(--ligne);
}

.reglage-texte {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reglage-titre {
  font-size: 16px;
}

.interrupteur {
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: var(--ligne-forte);
  position: relative;
  transition: background 0.2s;
}

.interrupteur .bille {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.26s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.interrupteur.actif {
  background: var(--vert);
}

.interrupteur.actif .bille {
  transform: translateX(20px);
}

.rangee-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-size: 16px;
}

.rangee-nav .valeur {
  margin-left: auto;
  color: var(--texte-3);
}

.rangee-nav .icone,
.rangee-membre .icone {
  color: var(--texte-3);
}

.rangee-membre {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
}

.rangee-membre-textes {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rangee-membre-textes strong {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.etiquette-admin {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-fort);
  background: var(--accent-doux);
  padding: 2px 6px;
  border-radius: 6px;
}

.attente {
  color: var(--orange-texte);
}

.etiquette {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--texte-2);
  text-align: left;
}

.champ-nip {
  letter-spacing: 0.5em;
  font-size: 22px;
}

.partage {
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 8px 8px 14px;
  box-shadow: var(--ombre);
}

.partage .adresse {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--texte-2);
}

.actions-admin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--ligne);
  padding-top: 12px;
}

.action-admin {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 60;
  padding: 0 16px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  background: rgba(29, 29, 31, 0.95);
  color: #ffffff;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .toast {
    background: rgba(58, 58, 60, 0.97);
  }
}

.toast-action {
  color: #ffb066;
  font-weight: 600;
  padding: 4px 6px;
}

@media (max-width: 640px) {
  .app {
    padding-left: 16px;
    padding-right: 16px;
  }
  .entete h1 {
    font-size: 30px;
  }
  .barre-vues {
    margin: 8px -16px 0;
    padding: 10px 16px;
  }
  .filtres {
    margin: 2px -16px 0;
    padding: 4px 16px 6px;
  }
  .segment {
    font-size: 13px;
    padding: 7px 4px;
    gap: 4px;
  }
  .bouton.ajout {
    display: none;
  }
  .flottant {
    display: grid;
    place-items: center;
    position: fixed;
    right: 18px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(232, 105, 15, 0.4);
    z-index: 10;
    transition: transform 0.12s;
  }
  .flottant .icone {
    width: 26px;
    height: 26px;
    stroke-width: 2.4;
  }
  .flottant:active {
    transform: scale(0.94);
  }
  #toasts {
    bottom: calc(94px + env(safe-area-inset-bottom));
  }
  .feuille-corps {
    padding: 12px 16px 32px;
  }
  .champ-date {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
