/* ————————————————————————————————————————————————
   Muno : thème « aurore »
   Fond nuit, lueurs violet et orange, cartes en verre.
   Accueil : calendrier du mois + réponse à gauche, timeline verticale droite.
   ———————————————————————————————————————————————— */
:root {
  --bg: #120e21;
  --panel: #1b1532;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-3: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f0ff;
  --text-2: #c9c1e6;
  --muted: #a9a1c7;
  --dim: #7d7599;
  --violet: #8b5cf6;
  --violet-2: #b98cff;
  --orange: #ff8a4c;
  --ok: #4ade80;
  --mid: #fbbf24;
  --old: #f87171;
  --grad: linear-gradient(115deg, #7c3aed 0%, #c026d3 55%, #ff8a4c 100%);
  --grad-text: linear-gradient(100deg, #c4a5ff 0%, #f0abfc 50%, #ffb38a 100%);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.noscroll {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 8px;
}
.icon {
  flex: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 6% 0%, rgba(124, 58, 237, 0.34), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(255, 138, 76, 0.17), transparent 70%),
    radial-gradient(40% 35% at 70% 8%, rgba(192, 38, 211, 0.14), transparent 70%);
}
.app {
  position: relative;
  min-height: 100dvh;
}
.topbar,
.main,
.mobile-search {
  position: relative;
  z-index: 1;
}

/* ——— barre du haut ——— */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
  background: linear-gradient(var(--bg) 55%, rgba(18, 14, 33, 0));
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
.brand__logo {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  box-shadow: 0 10px 30px -10px rgba(192, 38, 211, 0.8);
}
.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand__text strong {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__text small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
}
.iconbtn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text);
}
.iconbtn:hover {
  background: var(--glass-2);
}
.iconbtn--sm {
  width: 36px;
  height: 36px;
}

/* recherche */
.search {
  position: relative;
  flex: 0 1 400px;
  min-width: 0;
}
.search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
}
.search__box:focus-within {
  border-color: rgba(185, 140, 255, 0.55);
  background: var(--glass-2);
}
.search__box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 15px;
  color: var(--text);
}
.search__box input::placeholder {
  color: var(--dim);
}
.search__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 330px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--r);
  background: #221b3c;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  z-index: 40;
}
.search__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  text-align: left;
}
.search__menu button.is-active,
.search__menu button:hover {
  background: var(--glass-2);
}
.search__menu strong {
  display: block;
  font-weight: 600;
}
.search__menu small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.search__ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-2);
  color: var(--violet-2);
}
.mobile-search {
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  position: sticky;
  top: calc(76px + env(safe-area-inset-top, 0px));
  z-index: 19;
}
.mobile-search .search {
  flex: none;
}

/* ——— contenu ——— */
.main {
  padding-block: 6px 140px;
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
}
.page {
  max-width: 1000px;
  margin: 0 auto;
}
.page--detail {
  max-width: 760px;
}
.page--wide {
  max-width: 1180px;
}

/* ——— accueil ——— */
.home {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 620px);
  justify-content: center;
  gap: 48px;
  align-items: start;
}
.home__side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home__tl {
  min-width: 0;
}

/* calendrier */
.cal {
  padding: 18px 16px 14px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.cal__head h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cal__head h1 span,
.tl__month h2 span {
  font-size: 0.62em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cal__nav {
  display: flex;
  gap: 6px;
}
.cal__count {
  color: var(--muted);
  font-size: 13.5px;
  padding: 4px 4px 0;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-top: 12px;
}
.cal__wd {
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
  padding-bottom: 4px;
}
.cal__day {
  position: relative;
  height: 44px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: background 0.15s;
}
.cal__day:hover {
  background: var(--glass-2);
}
.cal__day.has {
  color: var(--text);
  font-weight: 700;
}
.cal__day.is-future {
  color: var(--dim);
}
.cal__day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--violet-2);
}
.cal__day.is-picked {
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(192, 38, 211, 0.9);
}
.cal__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.cal__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.cal__day.is-picked .cal__dots i {
  background: #fff !important;
  box-shadow: none !important;
}
.cal__hint {
  color: var(--dim);
  font-size: 12.5px;
  padding: 10px 4px 0;
}

/* réponse de recherche */
.result {
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.28), rgba(255, 138, 76, 0.13));
  border: 1px solid rgba(185, 140, 255, 0.3);
}
.result__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(185, 140, 255, 0.4);
  font-weight: 600;
  font-size: 13.5px;
}
.fchip:hover {
  background: rgba(139, 92, 246, 0.38);
}
.linkbtn {
  color: var(--violet-2);
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 6px;
}
.linkbtn:hover {
  text-decoration: underline;
}
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.answer__avatars {
  display: flex;
  flex: none;
}
.answer__avatars .avatar {
  box-shadow: 0 0 0 2px #2a1f4a;
}
.answer__avatars .avatar + .avatar {
  margin-left: -9px;
}
.answer__text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.3;
}
.answer__text small {
  display: block;
  color: var(--text-2);
  font-size: 13px;
}
.answer__text strong {
  display: block;
  font-size: 14.5px;
  margin-top: 2px;
}
.answer__big {
  flex: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.result__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  font-size: 13px;
}
.result__none {
  color: var(--text-2);
  font-size: 14px;
}

/* timeline verticale */
.tl {
  position: relative;
  padding-left: 66px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#b98cff, #c026d3 25%, #ff8a4c 50%, #a78bfa 75%, #38bdf8);
  box-shadow: 0 0 14px rgba(185, 140, 255, 0.55);
}
.tl__now {
  position: relative;
  margin-left: -66px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2a2048;
  border: 1px solid rgba(185, 140, 255, 0.5);
  font-weight: 700;
  font-size: 13.5px;
}
.tl__now i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 10px var(--violet-2);
}
.tl__month h2 {
  margin: 26px 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tl__item {
  position: relative;
  margin-bottom: 14px;
  scroll-margin-top: 120px;
}
.tl__node {
  position: absolute;
  left: -66px;
  top: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: #171129;
  border: 2px solid var(--tone);
  box-shadow: 0 0 16px -2px var(--tone);
}
.tl__node b {
  font-family: var(--display);
  font-size: 16px;
}
.tl__node small {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}
.tl__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}
.tl__card:hover {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
}
.tl__item.is-hl .tl__card {
  border-color: var(--violet-2);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(255, 138, 76, 0.08));
}
.tl__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl__who {
  min-width: 0;
}
.tl__who strong {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl__who small {
  color: var(--muted);
  font-size: 13px;
}
.tl__place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.tl__note {
  padding-left: 10px;
  border-left: 2px solid var(--tone);
  font-size: 14px;
  font-style: italic;
  color: #ddd5f5;
}
.tl__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}
.tl__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tone);
  font-weight: 700;
  font-size: 12.5px;
}

/* ——— éléments communs ——— */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.avatar--ring {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(185, 140, 255, 0.55);
}
.avatar--more {
  background: var(--glass-3);
  color: var(--muted);
  text-shadow: none;
}
.stack {
  display: inline-flex;
}
.stack .avatar {
  box-shadow: 0 0 0 2px #1d1734;
}
.stack .avatar + .avatar {
  margin-left: -7px;
}
.badge {
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--tone);
  flex: none;
}
.fresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.fresh i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.fresh--ok i {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.fresh--mid i {
  background: var(--mid);
}
.fresh--old i {
  background: var(--old);
}
.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 17px;
}
.stars__off {
  color: var(--glass-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--glass-3);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn--small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn--ghost {
  background: transparent;
}
.btn--primary {
  background: var(--grad);
  border: 0;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(192, 38, 211, 0.8);
}
.btn--primary:hover {
  background: var(--grad);
  filter: brightness(1.08);
}
.btn--danger {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
}
.chip:hover {
  background: var(--glass-2);
}
.chip small {
  color: var(--muted);
  font-weight: 500;
}
.chip.is-on {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(185, 140, 255, 0.45);
}
.chip--new {
  border-style: dashed;
  color: var(--violet-2);
  padding-left: 12px;
}
.hint {
  color: var(--dim);
  font-size: 13.5px;
  margin-top: 10px;
}
.empty {
  color: var(--muted);
  padding: 18px 0;
}
.empty-big {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 70px 20px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

/* ——— « dernière fois » des fiches ——— */
.last {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 22px;
}
.last__label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.last__big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 6px;
}
.last__big small {
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.last__big em {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: -0.02em;
}
.last__date {
  font-size: 16px;
}
.last__date a {
  text-decoration: underline;
  text-decoration-color: rgba(185, 140, 255, 0.5);
  text-underline-offset: 3px;
}

/* ——— écrans ——— */
.phead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin-left: -4px;
}
.backlink:hover {
  color: var(--violet-2);
}
.phead__text {
  min-width: 0;
}
.phead h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.phead p {
  color: var(--muted);
  margin-top: 8px;
}
.phead p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.titlewith {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.segments {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segments button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.segments button.is-on {
  background: var(--glass-3);
  color: var(--text);
}
.addline {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 18px;
  margin-bottom: 20px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
}
.addline input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: var(--text);
}
.addline input::placeholder {
  color: var(--dim);
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.ptile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 12px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  text-align: center;
}
.ptile:hover {
  background: var(--glass-2);
  border-color: var(--line-2);
}
.ptile strong {
  font-family: var(--display);
  font-size: 21px;
  margin-top: 8px;
}
.ptile__meta {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 6px;
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  text-align: left;
}
.row:hover {
  background: var(--glass-2);
}
.row__body {
  flex: 1;
  min-width: 0;
}
.row__body strong {
  display: block;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__body small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.row__end small {
  color: var(--dim);
  font-size: 12.5px;
}
.row__ago {
  font-family: var(--display);
  font-size: 17px;
  white-space: nowrap;
}
.rows--tight .row {
  background: transparent;
  border-color: transparent;
  padding: 10px 8px;
}
.rows--tight .row:hover {
  background: var(--glass);
}
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.ctile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.ctile:hover {
  background: var(--glass-2);
}
.ctile strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ctile span:not(.fresh) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.stat {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  min-width: 0;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat span {
  color: var(--muted);
  font-size: 13.5px;
}
.nudge {
  margin: -10px 0 22px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fecaca;
  font-size: 15px;
}
.block {
  margin-bottom: 30px;
}
.block h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.block__head h3 {
  margin: 0;
}
.mlist__year {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--dim);
  margin: 16px 0 6px 4px;
}
.mlist > div:first-child .mlist__year {
  margin-top: 0;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r);
}
.mrow:hover {
  background: var(--glass);
}
.mrow__date {
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.mrow__date b {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}
.mrow__date small {
  color: var(--dim);
  font-size: 12px;
}
.mrow__body {
  flex: 1;
  min-width: 0;
}
.mrow__body strong {
  display: block;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow__body small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  min-width: 0;
}
.panel h3 {
  font-size: 23px;
  margin-bottom: 16px;
}
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 12px;
}
.bar:hover {
  background: var(--glass);
}
.bar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.bar__label .icon {
  color: var(--accent);
}
.bar__num {
  font-family: var(--display);
  font-weight: 700;
}
.bar__num small {
  color: var(--dim);
  font-family: var(--body);
  font-weight: 500;
  margin-left: 6px;
}
.bar__track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: var(--glass-2);
  overflow: hidden;
}
.bar__track span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}
.bar__last {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 12.5px;
}
.heat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.heat__head h3 {
  margin: 0;
}
.heat__hover {
  color: var(--muted);
  font-size: 14px;
}
.heat__scroll {
  overflow-x: auto;
}
.heat__grid {
  display: grid;
  grid-template-rows: 18px repeat(7, 1fr);
  gap: 5px;
  min-width: 540px;
}
.heat__month {
  grid-row: 1;
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}
.heat__cell {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}
.heat__cell[data-on] {
  background: rgba(185, 140, 255, var(--lvl));
  box-shadow: 0 0 12px rgba(185, 140, 255, calc(var(--lvl) * 0.6));
}
.heat__cell:disabled {
  opacity: 0.25;
  cursor: default;
}
.mapwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.map {
  width: 100%;
  max-height: calc(100dvh - 260px);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}
.map__grid {
  fill: rgba(255, 255, 255, 0.08);
}
.map__land {
  fill: rgba(139, 92, 246, 0.1);
  stroke: rgba(185, 140, 255, 0.55);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.map__pin {
  cursor: pointer;
  outline: none;
  --accent: #b98cff;
}
.map__dot {
  fill: #7c3aed;
  stroke: #e9d5ff;
  stroke-width: 2;
}
.map__pin:hover .map__dot,
.map__pin:focus-visible .map__dot,
.map__pin.is-on .map__dot {
  fill: #c026d3;
}
.map__count {
  fill: #fff;
  font: 700 13px var(--body);
  text-anchor: middle;
  pointer-events: none;
}
.map__city {
  fill: var(--text-2);
  font: 600 13px var(--body);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
}
.map__city--left {
  text-anchor: end;
}
.mapside {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mapside h3 {
  font-size: 28px;
}
.mapside__sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: -6px;
}

/* ——— navigation ——— */
.nav {
  position: fixed;
  z-index: 30;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(27, 21, 50, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.nav__item span {
  display: none;
}
.nav__item:hover {
  color: var(--text);
  background: var(--glass);
}
.nav__item.is-on {
  background: var(--grad);
  color: #fff;
  padding: 0 20px 0 16px;
  box-shadow: 0 8px 24px -8px rgba(192, 38, 211, 0.9);
}
.nav__item.is-on span {
  display: inline;
}
.cta {
  position: fixed;
  z-index: 30;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 16px 40px -12px rgba(192, 38, 211, 0.9);
}
.cta:hover {
  filter: brightness(1.08);
}

/* ——— menu réglages ——— */
.menu {
  position: relative;
}
.menu__scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.menu__pop {
  position: absolute;
  right: 0;
  top: 54px;
  z-index: 41;
  width: 270px;
  padding: 16px;
  border-radius: var(--r);
  background: #221b3c;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu__pop p {
  color: var(--muted);
  font-size: 14px;
}

/* ——— fenêtres ——— */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}
.sheet__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet__panel--wide {
  width: min(680px, 100%);
}
.sheet__close {
  position: absolute;
  top: 18px;
  right: 18px;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.mdetail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mdetail__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 50px;
}
.mdetail__act {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.mdetail h2 {
  font-size: 30px;
  font-weight: 800;
}
.mdetail__when {
  font-size: 16px;
}
.mdetail__when span {
  color: var(--muted);
}
.mdetail__line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
}
.mdetail__line span {
  flex: 1;
}
.mdetail__line strong {
  display: block;
  color: var(--text);
}
.mdetail__line small {
  font-size: 13.5px;
}
.mdetail__people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mdetail__note {
  margin: 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  font-size: 18px;
  font-style: italic;
  color: #e4ddfa;
}
.mdetail__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form h2 {
  font-size: 32px;
  font-weight: 800;
  padding-right: 50px;
}
.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.form legend,
.form label > span {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.form label {
  display: block;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  outline: 0;
  font-size: 16px;
}
.form input:focus,
.form textarea:focus {
  border-color: rgba(185, 140, 255, 0.6);
  background: var(--glass-2);
}
.form textarea {
  resize: vertical;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: -28px;
  margin: 0 -28px -28px;
  padding: 16px 28px 22px;
  background: linear-gradient(rgba(27, 21, 50, 0), var(--panel) 30%);
}
.actpick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.actpick button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.actpick button .icon {
  color: var(--accent);
}
.actpick button.is-on {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.picker:focus-within {
  border-color: rgba(185, 140, 255, 0.6);
}
.form .picker input {
  flex: 1;
  min-width: 140px;
  border: 0;
  background: none;
  padding: 6px 4px;
}
.chips--suggest .chip {
  height: 34px;
  font-size: 14px;
}
.newplace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed rgba(185, 140, 255, 0.4);
}
.newplace .btn {
  height: 47px;
}
.ratepick {
  display: flex;
  gap: 4px;
}
.ratepick button {
  font-size: 30px;
  line-height: 1;
  color: var(--glass-3);
  padding: 2px;
}
.ratepick button.is-on {
  color: #fbbf24;
}
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #2a2148;
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #d1fae5;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease;
  white-space: nowrap;
}

/* ——— filtres ——— */
.filters {
  position: relative;
  flex: none;
}
.filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}
.filters__btn:hover,
.filters__btn[aria-expanded="true"] {
  background: var(--glass-2);
}
.filters__btn.is-on {
  border-color: rgba(185, 140, 255, 0.55);
}
.filters__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 12px;
}
.filters__scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
}
.filters__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 45;
  width: 460px;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 18px;
  border-radius: var(--r-lg);
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 0.2s ease;
}
.filters__pop h3 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 10px;
}
.filters__people {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.fperson {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
  width: 70px;
  color: var(--text-2);
  font-size: 13px;
}
.fperson .avatar {
  box-shadow: 0 0 0 3px #1d1735, 0 0 0 4px var(--line-2);
}
.fperson span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fperson.is-on {
  color: var(--text);
  font-weight: 700;
}
.fperson.is-on .avatar {
  box-shadow: 0 0 0 3px #1d1735, 0 0 0 6px #c026d3, 0 8px 20px -6px rgba(192, 38, 211, 0.9);
}
.fchoice {
  padding: 0 14px 0 12px;
}
.fchoice .icon {
  color: var(--tone, var(--violet-2));
}
.filters__pop .segments {
  margin: 0;
}
.filters__foot {
  position: sticky;
  bottom: -18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -18px -18px;
  padding: 14px 18px 18px;
  background: #1d1735;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .filters__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    position: relative;
  }
  .filters__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .filters__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .filters__pop {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    top: calc(74px + env(safe-area-inset-top, 0px));
    width: auto;
    max-height: calc(100dvh - 180px);
  }
}

/* ——— tuiles d'activités ——— */
.atile__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 75%, #ffffff), var(--tone) 70%);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--tone) 55%, transparent), 0 10px 26px -10px var(--tone);
}
.actpick__new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 14px;
  border: 1px dashed rgba(185, 140, 255, 0.5);
  color: var(--violet-2);
  font-weight: 600;
  font-size: 14px;
}
.actpick__input {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.actpick__input input {
  flex: 1;
}

/* ——— statistiques ——— */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.kpi b {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.kpi span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  height: 200px;
  align-items: end;
}
.months__col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.months__bar {
  width: 100%;
  max-width: 42px;
  min-height: 3px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #b98cff, #7c3aed);
  opacity: 0.75;
}
.months__col.is-now .months__bar {
  background: var(--grad);
  opacity: 1;
  box-shadow: 0 8px 24px -8px rgba(192, 38, 211, 0.9);
}
.months__n {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.months__label {
  font-size: 12px;
  color: var(--dim);
}
.stack-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.rank {
  width: 22px;
  flex: none;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  color: var(--dim);
}

/* ——— tri et affichage ——— */
.vctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.vctl__group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.vctl__label {
  padding: 0 8px 0 10px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}
.vctl__group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.vctl__group button[aria-label] {
  width: 38px;
  padding: 0;
  justify-content: center;
}
.vctl__group button:hover {
  color: var(--text);
}
.vctl__group button.is-on {
  background: var(--glass-3);
  color: var(--text);
}
.vctl .vctl__group {
  padding: 3px;
}
.vctl .vctl__group button {
  height: 30px;
  width: 34px;
}
.vctl__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.vctl__sort:hover {
  color: var(--text);
}
/* liste façon « Par activité » */
.blist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px;
}
.blist .bar {
  padding: 10px;
}
.blist .bar__label {
  gap: 12px;
  min-width: 0;
}
.blist .atile__icon--sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.blist__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.blist__name small {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 500;
}
.blist .bar__num {
  align-self: center;
}
.atile__icon--sm {
  width: 44px;
  height: 44px;
  box-shadow: none;
}
.atile__icon--city {
  --tone: #8b5cf6;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  background: var(--grad);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(185, 140, 255, 0.45), 0 10px 26px -10px rgba(192, 38, 211, 0.9);
}
.badge--city {
  border-radius: 50%;
  background: var(--grad);
  border: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}

/* ——— tableau de bord ——— */
.dash__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 6px 0 22px;
}
.dash__date {
  color: var(--muted);
  font-size: 15px;
}
.dash__head h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 4px;
}
.dash__actions {
  display: flex;
  gap: 8px;
}
.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.wcard {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wcard--wide {
  grid-column: span 2;
}
.dash__grid {
  grid-auto-flow: row dense;
}
.wcard--cal {
  grid-row: span 2;
}
.wcard .cal {
  padding: 0;
  background: none;
  border: 0;
}
.wcard .cal__head h1 {
  font-size: 28px;
}
.wcard .cal__hint {
  padding-top: 6px;
}
.home--cal {
  grid-template-columns: minmax(0, 560px);
}
.home--cal .home__side {
  position: static;
}
.home--cal .cal__day {
  height: 56px;
  font-size: 16px;
}
.tl-toggle {
  width: 100%;
}
.is-editing .wcard {
  border-style: dashed;
  border-color: rgba(185, 140, 255, 0.45);
  padding-top: 54px;
}
.wcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wcard__head h3 {
  font-size: 19px;
  font-weight: 700;
}
.wcard__more {
  color: var(--violet-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.wcard__more:hover {
  text-decoration: underline;
}
.wcard__tools {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.wtool {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.wtool:hover {
  background: var(--glass-3);
  color: var(--text);
}
.wtool:disabled {
  opacity: 0.3;
  cursor: default;
}
.wtool--danger:hover {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}
.wset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.wset label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 120px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.wset select {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #241c40;
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.wlist {
  display: flex;
  flex-direction: column;
  margin: 0 -8px;
}
.wlist .mrow {
  padding: 8px;
}
.wrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
}
.wrow:hover {
  background: var(--glass);
}
.wrow__body {
  flex: 1;
  min-width: 0;
}
.wrow__body strong {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wrow__body small {
  color: var(--muted);
  font-size: 12.5px;
}
.wrow__end {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.wsum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wsum > div {
  padding: 12px;
  border-radius: 14px;
  background: var(--glass);
  min-width: 0;
}
.wsum b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wsum .wsum__act {
  font-size: 20px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsum span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.wcounter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
}
.wcounter__label {
  font-weight: 700;
  font-size: 16px;
}
.wcounter__n {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 72px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--tone);
  text-shadow: 0 0 30px color-mix(in srgb, var(--tone) 45%, transparent);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.wcounter small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}
.wperson {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wperson__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wperson__text > span {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14.5px;
}
.wperson__text b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wperson__text small {
  color: var(--muted);
  font-size: 13px;
}
.wcard--add {
  min-height: 160px;
  padding: 0 !important;
  border-style: dashed;
}
.wadd__open {
  flex: 1;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--violet-2);
  font-weight: 700;
  border-radius: var(--r-lg);
}
.wadd__open:hover {
  background: var(--glass);
}
.wadd {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wadd h3 {
  font-size: 19px;
}
.wadd__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wadd__item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.wadd__item:hover {
  background: var(--glass-2);
  border-color: rgba(185, 140, 255, 0.45);
}
.wadd__item strong {
  display: block;
  font-weight: 700;
}
.wadd__item small {
  color: var(--muted);
  font-size: 12.5px;
}

.form__need {
  flex: 1;
  align-self: center;
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.form__need.is-alert {
  color: #fecaca;
}
.tl__tag--none {
  color: var(--muted);
}

/* ——— accueil : fenêtres « En bref » au-dessus ——— */
.homewrap {
  max-width: 1068px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.homewrap .home {
  justify-content: space-between;
}
.sidew--row .sidew__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}
.tl::before {
  top: 54px;
}
.tl__month:first-child h2 {
  margin-top: 0;
}

/* ——— accueil : colonne de gauche ——— */
.home__side {
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}
.home__side::-webkit-scrollbar {
  display: none;
}
.sidew {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidew__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 0;
}
.sidew__head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-2);
}
.sidew__actions {
  display: flex;
  gap: 4px;
}
.sidew__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidew .wcard {
  padding: 14px 16px;
}
.sidew.is-editing .wcard {
  padding-top: 52px;
}
.sidew .wcounter__n {
  font-size: 54px;
  margin-top: 4px;
}
.sidew .wcard--add,
.sidew .wadd__open {
  min-height: 110px;
}
.tl__end {
  position: relative;
  margin: 10px 0 0 -66px;
  padding-left: 66px;
  color: var(--dim);
  font-size: 13.5px;
}
.cal__day.is-other {
  color: var(--dim);
}

/* ——— écrans moyens ——— */
@media (max-width: 1000px) {
  .dash__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home {
    grid-template-columns: minmax(0, 620px);
    gap: 28px;
  }
  .home__side {
    position: static;
  }
}

/* ——— téléphone ——— */
@media (max-width: 760px) {
  .topbar {
    padding-block: 14px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .brand__logo {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 12px;
  }
  .brand__text strong {
    font-size: 23px;
  }
  .brand__text small {
    font-size: 12px;
  }
  .brand__more {
    display: none;
  }
  .main {
    padding-block: 0 120px;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .home {
    gap: 22px;
  }
  .cal {
    padding: 16px 12px 12px;
  }
  .cal__head h1 {
    font-size: 30px;
  }
  .cal__day {
    height: 40px;
  }
  .answer__big {
    font-size: 30px;
  }
  .tl {
    padding-left: 62px;
  }
  .tl__now {
    margin-left: -62px;
  }
  .tl::before {
    left: 20px;
  }
  .tl__node {
    left: -62px;
    width: 42px;
    height: 42px;
  }
  .nav {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
    align-items: center;
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .nav__item {
    flex-direction: column;
    gap: 2px;
    height: 54px;
    padding: 0 6px;
    min-width: 56px;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
  }
  .nav__item span {
    display: inline;
  }
  .nav__item.is-on {
    background: none;
    box-shadow: none;
    color: var(--violet-2);
    padding: 0 6px;
  }
  .nav__item:hover {
    background: none;
  }
  .nav__add {
    width: 56px;
    height: 56px;
    margin-top: -26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    box-shadow: 0 10px 28px -8px rgba(192, 38, 211, 0.95), 0 0 0 5px var(--bg);
    flex: none;
  }
  .phead h1 {
    font-size: 40px;
  }
  .pgrid,
  .cgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ptile {
    padding: 20px 10px 16px;
  }
  .ctile {
    padding: 16px;
  }
  .ctile strong {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vctl {
    flex-wrap: nowrap;
  }
  /* accueil sur téléphone : la colonne s'efface pour que la semaine reste collée en haut de toute la page */
  .home__side {
    display: contents;
  }
  .home__cal {
    position: sticky;
    top: calc(70px + env(safe-area-inset-top, 0px));
    z-index: 8;
  }
  .home__cal .cal {
    background: #1b1530;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  }
  .cal--week {
    padding: 12px 10px 10px;
  }
  .cal--week .cal__head h1,
  .home__cal .cal__head h1 {
    font-size: 24px;
    white-space: nowrap;
  }
  .cal--week .cal__grid {
    margin-top: 8px;
  }
  .cal__day.is-focus:not(.is-picked) {
    background: var(--glass-2);
  }
  .sidew--row {
    margin: 0 -14px;
  }
  .homewrap {
    gap: 12px;
  }
  .sidew--row .sidew__head {
    padding: 0 18px;
  }
  .sidew--row .sidew__list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 14px 6px;
    scrollbar-width: none;
  }
  .sidew--row .sidew__list::-webkit-scrollbar {
    display: none;
  }
  .sidew--row .wcard {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
  }
  .sidew--row .wcard:has(.wlist) {
    width: 300px;
  }
  .sidew--row .wcounter {
    grid-template-columns: auto 1fr;
  }
  .sidew--row .wcounter__n {
    grid-column: 1 / -1;
    grid-row: auto;
    font-size: 44px;
    margin-top: 4px;
  }
  .sidew--row .wcounter small {
    grid-column: 1 / -1;
  }

  .dash__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wcard--wide {
    grid-column: auto;
  }
  .wcard--cal {
    grid-row: auto;
  }
  .home--cal .cal__day {
    height: 44px;
  }
  .wcounter {
    grid-template-columns: auto 1fr auto;
  }
  .wcounter__n {
    grid-column: 3;
    grid-row: 1 / 3;
    font-size: 54px;
    margin: 0;
  }
  .wcounter small {
    grid-column: 2;
  }
  .nav__item {
    min-width: 0;
    flex: 1;
    font-size: 10px;
    padding: 0 2px;
  }
  .vctl__label {
    display: none;
  }
  .vctl__group button {
    padding: 0 11px;
    font-size: 13.5px;
  }
  .vctl__group button[aria-label] {
    width: 34px;
  }
  .kpi b {
    font-size: 32px;
  }
  .months {
    gap: 4px;
    height: 160px;
  }
  .months__label {
    font-size: 10.5px;
  }
  .duo,
  .mapwrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 18px;
  }
  .sheet {
    padding: 0;
    place-items: end stretch;
  }
  .sheet__panel,
  .sheet__panel--wide {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding: 24px max(18px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  }
  .form__actions {
    margin: 0 -18px -28px;
    padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .form__actions {
    flex-wrap: wrap;
  }
  .form__need {
    flex-basis: 100%;
  }
  .form__actions .btn {
    flex: 1;
  }
  .newplace {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ——— fenêtres « En bref » : modification individuelle ——— */
.wcard__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.wcard:hover .wcard__edit,
.wcard__edit:focus-visible,
.wcard__edit.is-on {
  opacity: 1;
}
.wcard__edit:hover {
  background: var(--glass-2);
  color: var(--text);
}
.wcard__edit.is-on {
  background: var(--grad);
  color: #fff;
}
.sidew .wcard.is-editing {
  border-style: dashed;
  border-color: rgba(185, 140, 255, 0.5);
  padding-top: 14px;
}
.sidew .wcard__tools {
  position: static;
  justify-content: flex-start;
}
.sidew .wcard__tools .wtool--danger {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  display: inline-flex;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.wtool--ghost {
  background: transparent;
  border-color: transparent;
}
.wadd--pop {
  padding: 14px;
  border-radius: var(--r-lg);
  background: #1d1735;
  border: 1px solid var(--line-2);
}
.wadd--pop .wadd__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}
.wcounter__label,
.wcard__head {
  padding-right: 26px;
}
@media (hover: none) {
  .wcard__edit {
    opacity: 0.7;
  }
}

/* ——— filtres intégrés au champ de recherche ——— */
.search__box {
  cursor: text;
  padding-right: 5px;
}
.search__box .filters {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.search__box .filters__btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.search__box .filters__btn:hover,
.search__box .filters__btn[aria-expanded="true"] {
  background: var(--glass-2);
  color: var(--text);
}
.search__box .filters__btn.is-on {
  color: var(--violet-2);
}
.search__box .filters__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
}
.search__box .filters__pop {
  right: -6px;
  top: calc(100% + 12px);
  cursor: default;
}
.iconbtn--badge {
  position: relative;
}
.iconbtn__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c026d3;
  box-shadow: 0 0 0 2px var(--bg);
}
@media (max-width: 760px) {
  .search__box .filters__pop {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    top: calc(132px + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 240px);
  }
}

/* ——— résultats de recherche ——— */
.results {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.results__title {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--body);
  letter-spacing: 0;
  color: var(--muted);
}
.results .tl__month:first-child h2 {
  margin-top: 0;
}

/* ——— statistiques : panneaux modifiables et déplaçables ——— */
.spanels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spanels__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.spanels__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 60px;
}
.spanel {
  padding: 22px;
  gap: 14px;
}
.spanel__grip {
  position: absolute;
  top: 10px;
  right: 44px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.spanel:hover .spanel__grip,
.spanel__grip:focus-visible {
  opacity: 1;
}
.spanel__grip:hover {
  background: var(--glass-2);
  color: var(--text);
}
.spanel-ph {
  border-radius: var(--r-lg);
  border: 2px dashed rgba(185, 140, 255, 0.55);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: inset 0 0 40px rgba(192, 38, 211, 0.12);
  transition: height 0.15s;
}
.spanel-ghost {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--r-lg);
  background: #241c40;
  border: 1px solid rgba(185, 140, 255, 0.6);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  rotate: 1.2deg;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
body.is-dragging,
body.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.spanels.is-dragging .spanel {
  transition: none;
}
.spanel__title {
  font-size: 23px;
  padding-right: 74px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.spanel__title small {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dim);
}
.spanel .kpis {
  margin-bottom: 0;
}
.spanel.is-editing {
  border-style: dashed;
  border-color: rgba(185, 140, 255, 0.5);
}
.spanel .wcard__tools {
  position: static;
  justify-content: flex-start;
  order: -2;
  padding-right: 74px;
}
.spanel__set {
  order: -1;
  border-top: 0;
  padding-top: 0;
  padding-right: 74px;
}
.spanel .wcard__tools .wtool--danger,
.wtool--text {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
}
.spanels__add {
  margin-bottom: 16px;
}
@media (hover: none) {
  .spanel__grip {
    opacity: 0.75;
  }
}
@media (max-width: 760px) {
  .spanel {
    padding: 18px;
  }
}

/* ——— photos et vidéos ——— */
.mthumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--glass-2);
}
.mthumb img,
.mthumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mthumb__wait {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%) var(--glass-2);
}
.mthumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 24, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}
.mthumb__play .icon {
  fill: currentColor;
  margin-left: 2px;
}
.mstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-width: 360px;
}
.mstrip__cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}
.mstrip__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 24, 0.6);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.mgallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.mgallery--one {
  grid-template-columns: minmax(0, 1fr);
}
.mgallery__item {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}
.mgallery--one .mgallery__item {
  aspect-ratio: 4 / 3;
}
.mgallery__item:hover {
  outline: 2px solid rgba(185, 140, 255, 0.6);
}
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 56px 16px;
}
.viewer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 14, 0.94);
}
.viewer__media {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px #000;
}
.viewer__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
}
.viewer__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}
.viewer__nav--prev {
  left: 12px;
}
.viewer__nav--next {
  right: 12px;
}
.viewer__count {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.medit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.medit__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}
.medit__del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 6, 24, 0.7);
  color: #fff;
}
.medit__add {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px dashed var(--line-2);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.medit__add:hover {
  color: var(--text);
  border-color: rgba(185, 140, 255, 0.6);
  background: var(--glass);
}
@media (max-width: 760px) {
  .newplace {
    grid-template-columns: minmax(0, 1fr);
  }
  .viewer__nav {
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    translate: none;
  }
}

/* ——— abonnement ——— */
.menu__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: -4px -4px 0;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.menu__sub:hover {
  background: var(--glass-2);
}
.menu__sub > .icon:first-child {
  color: #f0abfc;
}
.menu__sub span {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.menu__sub small {
  color: var(--muted);
  font-size: 12.5px;
}
.substatus {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.substatus.is-active {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.28), rgba(192, 38, 211, 0.18) 60%, rgba(255, 138, 76, 0.14));
  border-color: rgba(185, 140, 255, 0.4);
}
.substatus__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}
.substatus__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.substatus__text strong {
  font-size: 16.5px;
}
.substatus__text small {
  color: var(--muted);
  font-size: 13.5px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.plan--main,
.plan.is-on {
  border-color: rgba(185, 140, 255, 0.55);
  box-shadow: 0 20px 60px -30px rgba(192, 38, 211, 0.8);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.plan__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.plan__tag--extra {
  background: var(--glass-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.plan.is-on .plan__tag--extra {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: -8px;
}
.plan__price b {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan__price span,
.plan__sub {
  color: var(--muted);
  font-size: 14px;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-2);
}
.plan__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.plan__list .icon {
  flex: none;
  margin-top: 2px;
  color: #c4b5fd;
}
.plan .btn {
  justify-content: center;
}
.plan__sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.plan__sizes button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  text-align: left;
}
.plan__sizes button.is-on {
  border-color: rgba(185, 140, 255, 0.7);
  background: rgba(139, 92, 246, 0.16);
}
.plan__sizes strong {
  font-family: var(--display);
  font-size: 19px;
}
.plan__sizes small {
  color: var(--muted);
  font-size: 12.5px;
}
.plan__sizes span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #e9d5ff;
}
.usage {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.usage__bar {
  height: 8px;
  border-radius: 99px;
  background: var(--glass-2);
  overflow: hidden;
}
.usage__bar span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 99px;
  background: var(--grad);
}
.usage small {
  color: var(--muted);
  font-size: 13px;
}
.subfaq {
  margin-top: 26px;
}
.subfaq h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.subfaq dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subfaq dt {
  font-weight: 700;
  margin-top: 8px;
}
.subfaq dd {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.subdemo {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
}
.mlock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.2), rgba(192, 38, 211, 0.12));
  border: 1px dashed rgba(185, 140, 255, 0.45);
}
.mlock:hover {
  border-style: solid;
}
.mlock__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}
.mlock__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mlock__text small {
  color: var(--muted);
  font-size: 13px;
}
.mlock__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: #e9d5ff;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    padding: 20px;
  }
  .mlock__cta {
    display: none;
  }
}

/* ——— fenêtres « En bref » : glisser-déposer ——— */
.wcard__grip {
  position: absolute;
  top: 10px;
  right: 42px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.wcard:hover .wcard__grip,
.wcard__grip:focus-visible {
  opacity: 1;
}
.wcard__grip:hover {
  background: var(--glass-2);
  color: var(--text);
}
.wcard-ph {
  flex: 0 0 auto;
  border-radius: var(--r-lg);
  border: 2px dashed rgba(185, 140, 255, 0.55);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: inset 0 0 30px rgba(192, 38, 211, 0.12);
}
.wcard-ghost {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
  background: #241c40;
  border-color: rgba(185, 140, 255, 0.6);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8);
  rotate: 1.5deg;
  opacity: 0.94;
}
.sidew.is-dragging .sidew__list {
  scroll-snap-type: none;
}
.sidew--row .wcounter__label,
.sidew--row .wcard__head {
  padding-right: 62px;
}
@media (hover: none) {
  .wcard__grip {
    opacity: 0.75;
  }
}

/* ——— lieux : annuaire et villes ——— */
.placesugg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.placesugg .chips--suggest {
  margin-top: 0;
}
.dirlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.dirlist__label {
  padding: 4px 8px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
}
.dirlist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  text-align: left;
}
.dirlist__item:hover {
  background: var(--glass-2);
}
.dirlist__item > .icon {
  flex: none;
  color: #c4b5fd;
}
.dirlist__item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dirlist__item small {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cityin {
  position: relative;
  display: block;
}
.cityin input {
  width: 100%;
}
.cityin__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 12px;
  background: #241c40;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.cityin__list button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
}
.cityin__list button:hover {
  background: var(--glass-2);
}
.cityin__list small {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
}
.cityin__wait {
  padding: 8px;
  color: var(--dim);
  font-size: 13px;
}
.form__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.placeedit {
  margin: 0 0 18px;
}
.chip--city {
  height: 30px;
  font-size: 13.5px;
}
.chip--citysugg .icon {
  color: #c4b5fd;
}
.chip--citysugg small {
  color: var(--dim);
}
.substatus__bar {
  display: block;
  margin-top: 8px;
  max-width: 360px;
}
.plan--single {
  max-width: 520px;
}
.paywall {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 18px 8px 6px;
}
.paywall h2 {
  font-size: 26px;
}
.paywall p {
  color: var(--muted);
  max-width: 400px;
}
.paywall__price b {
  font-family: var(--display);
  font-size: 30px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.paywall__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.form__quota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(185, 140, 255, 0.4);
  color: #e9d5ff;
  font-size: 13.5px;
  font-weight: 600;
}

/* ——— catégories de contacts ——— */
.segrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 100%;
}
.segrow .segments {
  margin-bottom: 0;
  min-width: 0;
}
.segrow__edit {
  flex: none;
}
.segrow__edit.is-on {
  background: var(--grad);
  color: #fff;
}
.groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px dashed rgba(185, 140, 255, 0.45);
}
.groups__hint {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 4px;
}
.groups__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.groups__row input,
.groups__add input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
.groups__row small {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
  min-width: 74px;
}
.groups__add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
}
.groups__add input {
  font-weight: 500;
}
.relpick {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .groups__row small {
    display: none;
  }
}
.groups__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.groups__grip {
  flex: none;
  width: 30px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  border-radius: 8px;
}
.groups__grip:hover {
  color: var(--text);
  background: var(--glass-2);
}
.groups__row.is-lifted {
  opacity: 0.95;
  border-radius: 12px;
  outline: 2px dashed rgba(185, 140, 255, 0.6);
  outline-offset: 3px;
  background: rgba(139, 92, 246, 0.12);
}
.segments button.is-lifted {
  outline: 2px dashed rgba(185, 140, 255, 0.7);
  background: rgba(139, 92, 246, 0.2);
  color: var(--text);
}
@media (hover: hover) {
  .segments button[data-sort-id] {
    cursor: grab;
  }
}

/* ——— séjours ——— */
.cal__day.in-stay {
  isolation: isolate;
}
.cal__day.in-stay::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7px;
  bottom: 7px;
  left: -2px;
  right: -2px;
  background: color-mix(in srgb, var(--stay) 7%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--stay) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--stay) 16%, transparent);
}
.cal__day.stay-start::before {
  left: 3px;
  border-left: 1px solid color-mix(in srgb, var(--stay) 16%, transparent);
  border-radius: 12px 0 0 12px;
}
.cal__day.stay-end::before {
  right: 3px;
  border-right: 1px solid color-mix(in srgb, var(--stay) 16%, transparent);
  border-radius: 0 12px 12px 0;
}
.cal__day.stay-start.stay-end::before {
  border-radius: 12px;
}
.tl__staycard {
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 16%, transparent), rgba(255, 255, 255, 0.03) 70%);
}
.tl__stayhead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}
.tl__node--stay {
  border-style: double;
  border-width: 4px;
}
.tl__node--stay small {
  margin-top: 1px;
}
.tl__staytoggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-top: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  color: var(--tone);
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
}
.tl__staytoggle:hover {
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}
.tl__staylist {
  display: flex;
  flex-direction: column;
  padding: 4px 6px 8px 18px;
  margin-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--tone) 55%, transparent);
  margin-bottom: 10px;
}
.tl__staylist > div {
  scroll-margin-top: 140px;
  border-radius: var(--r);
}
.tl__staylist > div.is-hl {
  background: rgba(139, 92, 246, 0.18);
}
.tl__stay.is-hl .tl__staycard {
  border-color: var(--violet-2);
}
.stayhint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone, #38bdf8) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, #38bdf8) 40%, transparent);
  font-size: 14px;
}
.stayhint .icon {
  color: var(--tone, #38bdf8);
  flex: none;
}
.stayhint label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.linkbtn--date {
  align-self: flex-start;
  font-size: 13.5px;
}
.form__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mdetail__stay {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mdetail__stay h3 {
  font-size: 17px;
}
@media (max-width: 760px) {
  .form__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.spanel .kpis {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

/* ——— onglets en haut de page (ordinateur) ——— */
.nav--top {
  position: static;
  margin: 0 auto;
  padding: 4px;
  gap: 2px;
  background: var(--glass);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav--top .nav__item {
  height: 40px;
  padding: 0 14px;
  font-size: 14.5px;
}
.nav--top .nav__item span {
  display: inline;
}
.nav--top .nav__item.is-on {
  padding: 0 16px 0 14px;
  box-shadow: 0 6px 18px -8px rgba(192, 38, 211, 0.9);
}
.topbar:has(.nav--top) .brand {
  margin-right: 0;
}
.topbar:has(.nav--top) .brand__more {
  display: none;
}
.topbar:has(.nav--top) .search {
  flex: 0 1 380px;
}
@media (max-width: 1240px) {
  .nav--top .nav__item:not(.is-on) span {
    display: none;
  }
}
@media (max-width: 960px) {
  .topbar:has(.nav--top) .brand__text small {
    display: none;
  }
}

/* ——— recherche : les filtres s'ouvrent dès qu'on touche le champ ——— */
.search.is-open {
  z-index: 46;
}
.search.is-open .search__box {
  position: relative;
  z-index: 47;
  border-color: rgba(185, 140, 255, 0.55);
}
.search .search__menu {
  z-index: 48;
}
.search > .filters__pop {
  z-index: 48;
  cursor: default;
}
.search__count {
  flex: none;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-right: 6px;
}
@media (max-width: 760px) {
  .mobile-search .filters__pop {
    top: calc(132px + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 240px);
  }
}

.mdetail__badge {
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mdetail__badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--accent);
}
a.mdetail__act {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
a.mdetail__act:hover {
  text-decoration: underline;
}
.block__count {
  margin-left: 6px;
  color: var(--dim);
  font-size: 0.7em;
  font-weight: 600;
}

/* ——— partage ——— */
.sharebtn {
  position: relative;
}
.sharebtn .search__count {
  margin: 0 0 0 4px;
}
.sharelist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sharerow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
}
.sharerow--in {
  border-color: rgba(185, 140, 255, 0.5);
  background: rgba(139, 92, 246, 0.12);
}
.sharerow__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sharerow__text small {
  color: var(--muted);
  font-size: 13px;
}
.sharerow__who {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sharecols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.block__hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: -6px 0 10px;
}
.sharefeed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.sharecard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.sharecard header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.sharecard header strong {
  color: var(--text);
}
.sharecard header small {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
}
.sharecard__body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sharecard__body span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sharecard__body small {
  color: var(--muted);
  font-size: 13px;
}
.sharecard__note {
  padding-left: 10px;
  border-left: 2px solid var(--violet-2);
  font-style: italic;
  font-size: 14px;
  color: #ddd5f5;
}
.invite {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px dashed rgba(185, 140, 255, 0.45);
}
.invite label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.invite input,
.invite select {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.invite .segments {
  margin-bottom: 0;
  align-self: flex-start;
}
.invite .btn {
  align-self: flex-start;
}
.personshare h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.personshare .chips {
  margin-bottom: 10px;
}
.personshare .invite {
  margin-top: 6px;
}
.mdetail__share {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.tl__people {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tl__shared {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
fieldset .segments .icon {
  margin-right: 4px;
  vertical-align: -2px;
}
@media (max-width: 760px) {
  .sharecols {
    grid-template-columns: minmax(0, 1fr);
  }
  .sharerow {
    flex-wrap: wrap;
  }
}

/* ——— en-tête de fiche : stylo de modification et bouton à droite ——— */
.phead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.phead h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phead__edit {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.phead:hover .phead__edit,
.phead__edit:focus-visible,
.phead__edit.is-on {
  opacity: 1;
}
.phead__edit:hover {
  background: var(--glass-2);
  color: var(--text);
}
.phead__edit.is-on {
  background: var(--grad);
  color: #fff;
}
@media (hover: none) {
  .phead__edit {
    opacity: 0.6;
  }
}
.phead__side {
  flex: none;
  position: relative;
}
.editpanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 14px;
  margin: -6px 0 18px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed rgba(185, 140, 255, 0.4);
}
.editpanel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.editpanel input {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.swatches button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.swatches button.is-on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--bg) inset;
}
/* partage sur la fiche d'un contact : une icône cochée ou non */
.sharetoggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.sharetoggle:hover {
  color: var(--text);
  background: var(--glass-2);
}
.sharetoggle.is-on {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(192, 38, 211, 0.9);
}
.sharetoggle__mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 0 0 2px var(--bg);
}
.sharetoggle__mark--off {
  background: #3b3358;
  color: var(--muted);
}
.sharepop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: min(340px, 86vw);
  padding: 14px;
  border-radius: var(--r-lg);
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
}
.sharepop .personshare {
  margin: 0;
}
.sharepop .personshare h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.stat .stack {
  margin-top: 2px;
}

.stat b .avatar {
  color: #fff;
}
.stack--links a {
  display: inline-flex;
  border-radius: 50%;
}
.stack--links a + a {
  margin-left: -7px;
}
.stack--links a:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
}
.stack--links .avatar {
  box-shadow: 0 0 0 2px #1d1734;
}
.stat b:has(.stack) {
  overflow: visible;
  padding-top: 2px;
}
.phead__side .sharepop {
  z-index: 50;
}

.phead__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.phead__row {
  align-items: flex-start;
}
.phead__side {
  padding-top: 10px;
}
.addbtn {
  position: relative;
}
.addbtn .btn.is-on {
  background: var(--glass-2);
}
.addbtn__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: flex;
  gap: 8px;
  width: min(340px, 86vw);
  padding: 10px;
  border-radius: 14px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}
.addbtn__pop input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
}
.btn.sharetoggle {
  width: auto;
  height: auto;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}
.btn.sharetoggle.is-on {
  color: var(--text);
  background: transparent;
  border-color: rgba(34, 197, 94, 0.45);
}
.btn.sharetoggle .sharetoggle__mark {
  position: static;
  width: 18px;
  height: 18px;
  box-shadow: none;
}
.wentwith {
  display: block;
  padding: 0;
  cursor: pointer;
}
.stat:has(.wentwith) {
  position: relative;
  cursor: pointer;
}
.stat:has(.wentwith):hover {
  border-color: rgba(185, 140, 255, 0.5);
}
.wentwith__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(300px, 86vw);
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  font-family: var(--body);
}
.wentwith__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 14.5px;
}
.wentwith__row:hover {
  background: var(--glass-2);
}
.wentwith__row strong {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}
.stat .wentwith__row small {
  color: var(--dim);
  font-size: 12.5px;
}
.stat b:has(.wentwith) {
  overflow: visible;
}

.wentwith::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* filtres choisis, rappelés dans le champ de recherche */
.search__box {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.search__box::-webkit-scrollbar {
  display: none;
}
.fchip--in {
  flex: none;
  height: 30px;
  padding: 0 8px 0 6px;
  gap: 5px;
  font-size: 13px;
  max-width: 150px;
  white-space: nowrap;
}
.fchip--in .avatar {
  width: 20px !important;
  height: 20px !important;
  font-size: 9px !important;
}
.search__box input {
  min-width: 70px;
}

.search__box .fchip--in {
  color: var(--text);
  opacity: 1;
  background: rgba(139, 92, 246, 0.32);
}
.search__box .fchip--in .icon {
  color: var(--text);
}

.addplace {
  flex-direction: column;
  width: min(380px, 90vw);
}
.addplace input {
  flex: none;
  width: 100%;
}
.addplace .btn {
  align-self: flex-end;
}

/* ——— trois panneaux de fiche : choisir et ranger ——— */
.qstat {
  position: relative;
}
.qstat__tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.qstat:hover .qstat__tools,
.qstat.is-menu .qstat__tools,
.qstat__tool:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .qstat__tools {
    opacity: 0.6;
  }
}
.stat .qstat__tool {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0;
}
.stat .qstat__tool:hover {
  background: var(--glass-2);
  color: var(--text);
}
.qstat__grip {
  cursor: grab;
  touch-action: none;
}
.qstat.is-lifted {
  border-style: dashed;
  border-color: rgba(185, 140, 255, 0.7);
  background: rgba(139, 92, 246, 0.14);
}
.qstat__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: max(100%, 230px);
  padding: 6px;
  border-radius: 14px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}
.stat .qstat__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.stat .qstat__menu button:hover {
  background: var(--glass-2);
}
.stat .qstat__menu button.is-on {
  color: var(--violet-2);
  font-weight: 700;
}
.stat .qstat__menu small {
  color: var(--dim);
  font-size: 11.5px;
}
.qstat b {
  padding-right: 54px;
}
.qstat b:has(.wentwith) {
  padding-right: 0;
}

.tl__with {
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  margin-right: -2px;
}

/* ——— « Avec qui ? » : liste sous le champ, création d'un contact en dernière ligne ——— */
.ppl {
  position: relative;
}
.ppl__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 14px;
  background: #241c40;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}
.ppl__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
}
.ppl__menu button.is-active {
  background: var(--glass-2);
}
.ppl__menu button > span:not(.ppl__plus):not(.avatar) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ppl__menu small {
  color: var(--muted);
  font-size: 12.5px;
}
.ppl__plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}
.ppl__new {
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.ppl__new.is-active {
  background: rgba(139, 92, 246, 0.2) !important;
}
.ppl__menu kbd {
  font: inherit;
  font-size: 11.5px;
  color: var(--dim);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
}

.tabsrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}
.tabsrow .segments {
  margin-bottom: 0;
}
.ppl__menu .avatar {
  flex: none;
}

/* ——— « Avec qui ? » : bouton « Nouveau contact » juste après le prénom tapé ——— */
.picker input.picker__typed {
  flex: none;
  min-width: 0;
}
.picker__new {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.picker__new:hover {
  filter: brightness(1.1);
}

.newplace--city {
  grid-template-columns: minmax(0, 1fr);
  max-width: 360px;
}

/* ——— activités du formulaire : en ronds, comme les contacts ——— */
.actpick--round {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 12px 6px;
}
.actpick--round .actround {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.actround__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, var(--violet-2));
  background: color-mix(in srgb, var(--accent, #8b5cf6) 14%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 35%, transparent);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.actpick--round .actround .icon {
  color: inherit;
}
.actround:hover .actround__icon {
  transform: translateY(-2px);
}
.actround.is-on .actround__icon {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 3px #1d1735, 0 0 0 5px var(--accent), 0 8px 20px -6px var(--accent);
}
.actround.is-on {
  color: var(--text);
}
.actround__name {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.actround--more .actround__icon,
.actround--new .actround__icon {
  --accent: #b98cff;
  background: transparent;
  border-style: dashed;
}
.actround--new {
  color: var(--violet-2) !important;
}
.actpick--round .actpick__input {
  grid-column: span 3;
  align-self: center;
}

.editpanel__danger {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 13.5px;
}
.editpanel__danger > span {
  flex: 1 1 220px;
}
.linkbtn--danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fca5a5;
}

/* ——— activités du formulaire : en bulles (icône à gauche, nom à droite) ——— */
.actpick--round {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actpick--round .actround {
  flex-direction: row;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.actpick--round .actround:hover {
  background: var(--glass-2);
}
.actpick--round .actround__icon {
  width: 28px;
  height: 28px;
  border: 0;
}
.actpick--round .actround:hover .actround__icon {
  transform: none;
}
.actpick--round .actround.is-on {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.actpick--round .actround.is-on .actround__icon {
  box-shadow: none;
}
.actpick--round .actround__name {
  overflow: visible;
}
.actpick--round .actround--more,
.actpick--round .actround--new {
  border-style: dashed;
}
.actpick--round .actround--more .actround__icon,
.actpick--round .actround--new .actround__icon {
  background: transparent;
  border: 0;
}
.actpick--round .actpick__input {
  flex: 1 1 260px;
}
/* bulles d'activités : nom bien blanc, icône blanche sur un rond de la couleur de l'activité */
.actpick--round .actround {
  color: var(--text);
}
.actpick--round .actround:not(.actround--more):not(.actround--new) .actround__icon {
  background: var(--accent);
  color: #fff;
}
.actpick--round .actround.is-on {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.actpick__preview {
  flex: none;
  width: 34px !important;
  height: 34px !important;
  background: var(--grad) !important;
  color: #fff !important;
  border: 0 !important;
}
.actpick--round .actpick__input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editpanel__wide {
  grid-column: 1 / -1;
}
.iconpick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.iconpick button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.iconpick button:hover {
  background: var(--glass-2);
  color: var(--text);
}
.iconpick button.is-on {
  background: var(--tone);
  border-color: transparent;
  color: #fff;
}

.chip--place .icon {
  color: #c4b5fd;
}
.chip--place small {
  color: var(--dim);
}

/* Recherche d'activité, au-dessus des bulles */
.picker--act {
  margin-bottom: 12px;
}
.picker--act > .icon {
  flex: none;
  opacity: 0.7;
}
.actpick__none {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}

/* Statistiques : panneaux plus compacts, pour moins défiler */
.spanels {
  gap: 14px;
}
.spanel {
  padding: 16px 18px;
  gap: 10px;
}
.spanel__title {
  font-size: 18px;
}
.spanel .kpis {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.spanel .kpi {
  padding: 10px 12px;
  border-radius: 14px;
}
.spanel .kpi b {
  font-size: 26px;
}
.spanel .kpi span {
  margin-top: 4px;
  font-size: 12px;
}
.spanel .rows--tight .row {
  padding: 5px 8px;
  gap: 10px;
  font-size: 14px;
}
.spanel .rows--tight .row small {
  font-size: 12px;
}
.spanel .bars {
  gap: 2px;
}
.spanel .bar {
  padding: 5px 10px;
  gap: 4px 10px;
  font-size: 14px;
}
.spanel .bar__track {
  height: 6px;
}
.spanel__more {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
}
.spanel .months {
  height: 130px;
}

/* Page d'une ville : onglets Évènements / Lieux */
.segments--city {
  align-self: flex-start;
  margin: 4px 0 14px;
}
.segments--city small {
  margin-left: 6px;
  opacity: 0.65;
  font-weight: 600;
}
.spanel .row__ago {
  font-size: 14px;
}
.spanel .rows--tight .search__ico {
  width: 28px;
  height: 28px;
}

/* Fiche d'un évènement à plusieurs activités */
.mdetail__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}

/* Stats : « En bref », 3 cases en haut, 3 en bas */
.sumgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sumcell__act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sumcell__act .icon {
  color: var(--accent);
}
.spanel .sumgrid .kpi span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* « + Ajouter » un lieu : le nom, puis la ville */
.addplace .picker {
  width: 100%;
}
.addplace .picker input {
  flex: 1;
  min-width: 120px;
  height: 32px;
  border: 0;
  background: none;
  padding: 0 4px;
}
.addplace .picker input.picker__typed {
  flex: none;
  min-width: 0;
}
.addplace .chips--suggest {
  margin: 0;
}
.addplace__name {
  margin: 0;
}
.addplace__city {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.addplace .picker input,
.addplace .picker input:focus {
  outline: none;
  box-shadow: none;
  border: 0;
  background: none;
}

/* Barre Affichage | + Ajouter | Tri */
.vctl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.vctl__middle {
  display: flex;
  justify-content: center;
  min-width: 0;
}
/* « + Ajouter » ouvert : un champ texte comme dans le formulaire, le bouton apparaît à droite du texte */
.addinline__wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}
.addinline {
  min-width: min(340px, 100%);
  max-width: 100%;
  padding: 4px 6px 4px 12px;
  flex-wrap: nowrap;
}
.addinline input {
  flex: 1;
  min-width: 120px;
  height: 32px;
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: none;
}
.addinline input:focus {
  outline: none;
  box-shadow: none;
  border: 0;
  background: none;
}
.addinline input.picker__typed {
  flex: none;
  min-width: 0;
  max-width: 60%;
}
.addinline__x {
  margin-left: auto;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.addinline__x:hover {
  background: var(--glass-2);
  color: var(--text);
}
.addinline__pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(420px, 90vw);
  padding: 10px;
  border-radius: 14px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addinline__pop .chips--suggest {
  margin: 0;
}
.addinline__pop--city .btn {
  align-self: flex-end;
}
@media (max-width: 560px) {
  .vctl {
    grid-template-columns: auto auto;
  }
  .vctl__middle {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .addinline {
    min-width: 100%;
  }
}

/* ——— Carte des voyages (bas des statistiques) ——— */
.tmap {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tmap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tmap__head select {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.tmap__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 40% 30%, rgba(124, 58, 237, 0.16), transparent 60%), #0e0b1c;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.tmap__stage:active {
  cursor: grabbing;
}
.tmap__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tmap__land {
  fill: rgba(139, 92, 246, 0.08);
  stroke: rgba(185, 140, 255, 0.35);
  stroke-linejoin: round;
}
.tmap__leg {
  fill: none;
  stroke: url(#tmapRoute);
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  opacity: 0.45;
  animation: tmapflow 1.6s linear infinite;
}
.tmap__leg.is-recent {
  opacity: 0.95;
  stroke-dasharray: none;
  animation: none;
  filter: drop-shadow(0 0 4px rgba(249, 115, 98, 0.55));
}
@keyframes tmapflow {
  to {
    stroke-dashoffset: -26;
  }
}
.tmap__city {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #a855f7, #7c3aed 45%, #f97362 110%);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.16), 0 0 28px 6px rgba(168, 85, 247, 0.35);
  color: #fff;
  transition: transform 0.15s;
}
.tmap__city:hover,
.tmap__city.is-on {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 6px rgba(249, 115, 98, 0.3), 0 0 32px 8px rgba(249, 115, 98, 0.4);
}
.tmap__city b {
  font: 800 15px var(--display);
  line-height: 1;
}
.tmap__label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 12px var(--body);
  color: var(--text-2);
  text-shadow: 0 1px 3px #000, 0 0 6px #000;
  pointer-events: none;
}
.tmap__photo {
  position: absolute;
  transform: translate(-50%, calc(-100% - var(--d) - 8px));
  width: 74px;
  padding: 3px 3px 12px;
  border-radius: 12px;
  background: #f4f1fb;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8);
}
.tmap__photo .mthumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
}
.tmap__photo .mthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmap__faces {
  position: absolute;
  left: 6px;
  bottom: -8px;
  display: flex;
}
.tmap__faces .avatar {
  margin-right: -6px;
  box-shadow: 0 0 0 2px #f4f1fb;
}
.tmap__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 16, 38, 0.85);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.tmap__tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tmap__tools button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 38, 0.85);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.tmap__tools button:hover {
  background: rgba(60, 40, 110, 0.9);
}
.tmap__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.tmap__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--muted);
}
.tmap__side strong {
  font-size: 17px;
  color: var(--text);
}
.tmap__side .btn {
  margin-left: auto;
}
.addinline__wrap {
  min-width: min(340px, 100%);
}
.addinline__wrap > .addinline {
  flex: 1;
}
.addinline__pop input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
}

/* Timeline : « Avec » + les proches en petites bulles (nom en entier), le lieu à droite */
.tl__people {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.chip--mini {
  height: 26px;
  padding: 0 9px 0 4px;
  gap: 5px;
  font-size: 12.5px;
  pointer-events: none;
}
.tl__tag--place {
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
}
.tl__foot {
  align-items: flex-end;
}
.mdetail__when .mdetail__what {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-weight: 600;
}

/* Accueil : les trois fenêtres « En bref » de la même taille */
.sidew--row .sidew__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.sidew .wcard {
  height: 100%;
  min-height: 150px;
}
.wmonth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.wmonth__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wmonth__nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.wmonth__nums b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 54px;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.wmonth__nums span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.sidew .wtool--text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .sidew--row .sidew__list {
    display: flex;
    overflow-x: auto;
  }
  .sidew--row .sidew__list > .wcard {
    flex: 0 0 78%;
  }
}

/* Stats : les panneaux côte à côte ont tous la même taille */
.spanels__col .spanel {
  height: 324px;
  overflow: hidden;
}
.spanels__col .spanel .rows--tight .row {
  padding-top: 4px;
  padding-bottom: 4px;
}
.spanels__col .spanel .sumgrid {
  flex: 1;
  grid-auto-rows: 1fr;
}
.spanels__col .spanel .sumgrid .kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spanels__col .spanel .bars {
  flex: 1;
  justify-content: space-around;
}

/* Recherche d'activité : discrète, simple ligne fine */
.picker.picker--act {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 2px 2px;
  margin-bottom: 10px;
  max-width: 260px;
  opacity: 0.75;
  transition: opacity 0.15s, border-color 0.15s;
}
.picker.picker--act:focus-within {
  opacity: 1;
  border-color: rgba(185, 140, 255, 0.6);
}
.form .picker.picker--act input {
  padding: 4px 2px;
  font-size: 13.5px;
  min-width: 120px;
}
.picker--act > .icon {
  width: 14px;
  height: 14px;
}
.picker--act .picker__new {
  height: 24px;
  font-size: 12px;
}

/* ——— Compte : profil, paramètres, sécurité ——— */
.menu__me {
  padding: 0;
  overflow: hidden;
}
.menu__me .avatar {
  width: 100% !important;
  height: 100% !important;
}
.menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.menu__head strong {
  display: block;
  font-size: 16px;
}
.menu__head small {
  color: var(--muted);
  font-size: 13px;
}
.acct {
  max-width: 760px;
}
.acct__tabs {
  align-self: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.acct__tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.acct__hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.acct__hero h2 {
  font-size: 26px;
}
.acct__hero p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.acct__card {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.acct__card > header {
  margin-bottom: 8px;
}
.acct__card h3 {
  font-size: 18px;
}
.acct__card > header p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}
.acct__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.acct__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.acct__field input {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15px;
}
.acct__field input:focus {
  outline: none;
  border-color: rgba(185, 140, 255, 0.6);
}
.acct__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.acct__card > header + .acct__row {
  border-top: 0;
}
.acct__label strong {
  display: block;
  font-size: 15px;
}
.acct__label small {
  color: var(--muted);
  font-size: 13px;
}
.acct__ctl {
  flex: none;
}
.acct__btns {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.acct__hues {
  display: inline-flex;
  gap: 8px;
}
.acct__hues button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.acct__hues button.is-on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff;
}
.acct__note {
  color: var(--dim);
  font-size: 12.5px;
  margin-top: 4px;
}
.acct__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}
.acct__card > header + .acct__link {
  border-top: 0;
}
.acct__link span {
  flex: 1;
}
.acct__link strong {
  display: block;
}
.acct__link small {
  color: var(--muted);
  font-size: 13px;
}
.acct__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--glass-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.acct__value {
  color: var(--muted);
  font-size: 14px;
}
.acct__danger {
  color: #ff8a8a;
}
.acct__pin {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}
.acct__pin input {
  width: 120px;
  letter-spacing: 0.4em;
  text-align: center;
}
.acct__err {
  width: 100%;
  color: #ff8a8a;
  font-size: 13px;
}
.segments--small button {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  transition: background 0.15s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.toggle.is-on {
  background: var(--grad);
}
.toggle.is-on::after {
  transform: translateX(20px);
}
@media (max-width: 560px) {
  .acct__grid {
    grid-template-columns: 1fr;
  }
  .acct__row {
    flex-wrap: wrap;
  }
}

/* Écran de verrouillage */
.lock {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(124, 58, 237, 0.35), transparent 60%), var(--bg);
  outline: none;
}
.lock__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.lock__logo {
  width: 56px !important;
  height: 56px !important;
  font-size: 26px !important;
}
.lock h1 {
  font-size: 30px;
}
.lock p {
  color: var(--muted);
}
.lock__dots {
  display: flex;
  gap: 14px;
  margin: 14px 0 10px;
}
.lock__dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.lock__dots i.is-on {
  background: #fff;
  border-color: #fff;
}
.lock__dots.is-bad {
  animation: lockshake 0.35s;
}
.lock__dots.is-bad i.is-on {
  background: #ff6b6b;
  border-color: #ff6b6b;
}
@keyframes lockshake {
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}
.lock__pad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 14px;
}
.lock__pad button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line-2);
  font: 600 24px var(--display);
  color: var(--text);
}
.lock__pad button:active {
  background: var(--glass-2);
}
.segments a {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.segments a.is-on {
  background: var(--glass-3);
  color: var(--text);
}
.segments--small {
  margin-bottom: 0;
}
.chip--mini.chip--more {
  padding: 0 9px;
  color: var(--muted);
}
/* Timeline : cartes un peu plus aérées */
.tl__card {
  gap: 10px;
}
.tl__place {
  font-size: 14px;
}
/* Recherche d'activité : discrète, mais de la taille d'un champ normal */
.picker.picker--act {
  max-width: none;
  padding: 4px 4px 6px;
  margin-bottom: 14px;
}
.form .picker.picker--act input {
  padding: 8px 4px;
  font-size: 15px;
}
.picker--act > .icon {
  width: 16px;
  height: 16px;
}
.picker--act .picker__new {
  height: 28px;
  font-size: 12.5px;
}
/* Recherche d'activité : trait du bas bien visible */
.picker.picker--act {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}
/* Contacts de la timeline un peu plus grands */
.tl__card .chip--mini {
  height: 30px;
  padding: 0 11px 0 4px;
  gap: 6px;
  font-size: 13.5px;
}
.tl__card .chip--mini.chip--more {
  padding: 0 11px;
}

/* Formulaire : le trait plus près du texte, les suggestions juste dessous */
.picker.picker--act {
  padding: 0 4px 1px;
  margin-bottom: 6px;
}
.form .picker.picker--act input {
  padding: 4px 4px 3px;
}
.form fieldset .slider {
  margin-top: 0;
}
.form .placesugg {
  margin-top: 0;
}
/* Rangées de bulles qui défilent vers la droite */
.slider {
  position: relative;
  min-width: 0;
}
.slider__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.slider__track::-webkit-scrollbar {
  display: none;
}
.slider__track > * {
  flex: none;
  scroll-snap-align: start;
}
.slider::before,
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}
.slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel), transparent);
}
.slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--panel), transparent);
}
.slider.has-before::before,
.slider.has-after::after {
  opacity: 1;
}
/* L'heure : cachée derrière « + Une heure » */
.form__row--1 {
  grid-template-columns: minmax(0, 1fr);
}
.form__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.linkbtn--inline {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}
/* Activité choisie, dans le champ de recherche */
.chip--act {
  padding-left: 4px;
}
.chip__acticon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.picker.picker--act {
  opacity: 1;
}
.picker.picker--act > .icon {
  opacity: 0.6;
}
/* Barres du formulaire : un peu d'air sous le texte, les propositions collées au trait */
.form .picker.picker--act input {
  padding: 6px 4px 8px;
}
.picker.picker--act {
  margin-bottom: 0;
}
.form fieldset > .picker--act + .slider,
.form fieldset > .picker--act + .placesugg {
  margin-top: -6px;
}
.form .slider__track.chips--suggest {
  margin-top: 0;
}
.form input[type="date"],
.form input[type="time"] {
  cursor: pointer;
}

/* Champ date de Muno, avec son petit calendrier */
.form .form__field > span {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.datefield {
  position: relative;
  display: block;
}
.datefield__btn {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.datefield__btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.datefield__btn .icon {
  flex: none;
  color: var(--muted);
}
.datefield__btn[aria-expanded="true"] {
  border-color: rgba(185, 140, 255, 0.6);
}
.datefield__pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 300px;
  max-width: 86vw;
  padding: 12px;
  border-radius: 16px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.datefield__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.datefield__head strong {
  font-size: 15px;
}
.datefield__head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.datefield__head button:hover {
  background: var(--glass-2);
}
.datefield__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.datefield__grid small {
  color: var(--dim);
  font-size: 11.5px;
  padding: 4px 0;
}
.datefield__grid button {
  height: 36px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.datefield__grid button:hover {
  background: var(--glass-2);
}
.datefield__grid button.is-today {
  box-shadow: inset 0 0 0 1px rgba(185, 140, 255, 0.6);
}
.datefield__grid button.is-on {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.datefield__grid button:disabled {
  opacity: 0.3;
  cursor: default;
}
.datefield__foot {
  display: flex;
  justify-content: flex-end;
}

/* Formulaire aéré : de vrais titres pour « Avec qui ? », « Date », « Qu'as-tu fait ? », « Où ? » */
.form {
  gap: 24px;
}
.form h2 {
  font-size: 32px;
}
.form fieldset {
  gap: 8px;
}
.form legend,
.form label > span,
.form .form__field > span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form .form__fieldhead {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.form__fieldhead .form__links {
  gap: 4px 14px;
}
.form__fieldhead .linkbtn--date {
  font-size: 13px;
  padding: 0;
}

/* Un peu d'air entre la barre et les bulles */
.form fieldset > .picker--act + .slider,
.form fieldset > .picker--act + .placesugg {
  margin-top: 2px;
}

/* Barre d'ajout (Contacts, Activités, Lieux) : toujours ouverte, bouton fixe à droite */
.addbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
  height: 48px;
  padding: 0 6px 0 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.addbar:focus-within {
  border-color: rgba(185, 140, 255, 0.6);
}
.addbar > .icon {
  flex: none;
}
.addbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.addbar input::placeholder {
  color: var(--muted);
}
.addbar__fill {
  flex: 1;
}
.addbar__btn {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.addbar__btn:disabled {
  background: var(--glass-3);
  color: var(--muted);
  cursor: default;
}
.addbar__btn--ghost {
  background: var(--glass-2);
  color: var(--text-2);
}
.addinline__wrap {
  width: min(460px, 100%);
}
.form__fieldhead .linkbtn--date {
  font-weight: 600;
}
.chip--more {
  color: var(--muted);
  gap: 6px;
  padding: 0 14px;
}
.actpick--all {
  padding-top: 2px;
}

/* Formulaire : les trois champs comme les barres des pages Contacts / Activités / Lieux */
.form .picker.picker--act {
  min-height: 48px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--glass);
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 2px;
}
.form .picker.picker--act:focus-within {
  border-color: rgba(185, 140, 255, 0.6);
}
.form .picker.picker--act > .icon {
  opacity: 1;
  color: var(--muted);
}
.form .picker.picker--act input,
.form .picker.picker--act input.picker__typed {
  flex: 1 1 120px;
  width: auto !important;
  min-width: 120px;
  padding: 6px 2px;
  font-size: 15px;
}
.form .picker.picker--act .addbar__btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.form fieldset > .picker--act + .slider,
.form fieldset > .picker--act + .placesugg {
  margin-top: 4px;
}
/* Boutons du bas : moins ronds, comme le bouton Ajouter */
.form__actions .btn {
  border-radius: 12px;
}
.form .picker.picker--act input {
  color: var(--text);
}

/* Fenêtre d'ajout plus haute ; boutons du bas sur fond plein, sans fondu qui se mélange au contenu */
.sheet {
  padding: 12px 24px;
}
.sheet__panel {
  max-height: calc(100dvh - 24px);
}
.form__actions {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 14px 28px 20px;
  margin-top: 4px;
}
.form .form__need {
  margin: -8px 0 0;
}
/* Moins de place au-dessus de « Nouvel évènement » et entre le titre et « Avec qui ? » */
.sheet__panel:has(.form) {
  padding-top: 16px;
}
.form h2 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: -10px;
}
.sheet__panel:has(.form) .sheet__close {
  top: 12px;
}
.addinline__label {
  font-size: 12.5px;
  color: var(--muted);
}

/* Partage : choisir ce qu'on partage */
.scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--line);
}
.scope__title {
  font-weight: 700;
  font-size: 14.5px;
}
.scope__acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.scope__pick {
  max-height: 180px;
  overflow-y: auto;
}
.scope__pick .actround {
  height: 34px;
}
.scope__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  color: var(--muted);
}
.scope__row input {
  width: 18px;
  height: 18px;
  accent-color: #a855f7;
  flex: none;
}
.scope__row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.scope__row small {
  font-size: 12.5px;
}
.scope__box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.chip--off {
  opacity: 0.4;
  cursor: not-allowed;
}
/* les cases de « Ce que tu partages » : à plat, même dans le formulaire d'invitation */
.invite .scope__row,
.scope .scope__row {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.invite .scope__row input {
  height: 18px;
  padding: 0;
}
.scope .segments {
  flex-wrap: wrap;
}
.sharepop {
  width: min(440px, 92vw);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
}

/* ——— Même style que les barres des pages (rectangle arrondi, bouton actif façon « Ajouter ») ——— */
.nav--top {
  height: 48px;
  padding: 5px;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--glass);
}
.nav--top .nav__item {
  height: 36px;
  border-radius: 11px;
}
.nav--top .nav__item.is-on {
  box-shadow: none;
}
.search__box {
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  padding-left: 16px;
}
.search__box:focus-within {
  border-color: rgba(185, 140, 255, 0.6);
  background: var(--glass);
}
.search__box .filters__btn {
  border-radius: 11px;
}
/* Le panneau des filtres commence au bord gauche de la barre et passe devant « Ajouter un évènement » */
.filters__pop {
  left: 0;
  right: auto;
  width: max(100%, 380px);
  max-width: calc(100vw - 32px);
  z-index: 60;
}
.filters__pop .slider__track {
  padding-bottom: 6px;
}
/* Boutons moins ronds, partout */
.btn {
  border-radius: 12px;
}
.btn--small {
  border-radius: 10px;
}
.cta {
  height: 54px;
  border-radius: 16px;
  padding: 0 22px 0 18px;
  font-size: 16px;
}
.segments {
  border-radius: 14px;
}
.segments button,
.segments a {
  border-radius: 10px;
}
.vctl__group {
  border-radius: 12px;
}
.vctl__group button {
  border-radius: 9px;
}
/* Filtres : « Voir N évènements » juste à côté de « Tout effacer », et le bouton flottant s'efface pendant ce temps */
.filters__foot {
  justify-content: flex-start;
}
body:has(.filters__pop) .cta {
  display: none;
}
.filters__pop .slider__track.chips {
  gap: 8px;
}
.scope__choice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
/* Activités en vignettes tampon */
.ptile--stamp {
  padding-top: 18px;
}
.ptile--stamp .actstamp {
  transition: transform 0.15s;
}
.ptile--stamp:hover .actstamp {
  transform: rotate(-4deg) scale(1.04);
}

/* ——— Téléphone ——— */
@media (max-width: 760px) {
  /* l'aperçu d'un évènement : centré à l'écran */
  .sheet:has(.mdetail) {
    place-items: center;
    padding: 16px;
  }
  .sheet:has(.mdetail) .sheet__panel {
    border-radius: 22px;
    max-height: calc(100dvh - 32px);
    padding-bottom: 22px;
  }
}
@media (max-width: 760px) {
  /* « Stats » en tête des trois fenêtres : un lien vers la page des statistiques */
  .sidew__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
  }
  .sidew__link .icon {
    color: #c084fc;
  }
  /* trois fenêtres plus compactes */
  .sidew--row .sidew__list > .wcard {
    flex: 0 0 62%;
    min-height: 0;
    padding: 11px 13px;
    gap: 6px;
  }
  .sidew .wcounter__n,
  .wmonth__nums b {
    font-size: 34px;
    margin-top: 0;
  }
  .sidew .wcounter__label {
    font-size: 14px;
  }
  .sidew .atile__icon--sm {
    width: 30px;
    height: 30px;
  }
  .sidew .wcounter small,
  .wmonth__nums span {
    font-size: 12px;
  }
  .wcard--more {
    flex: 0 0 34% !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-2);
    font-weight: 700;
    font-size: 13.5px;
  }
  .wcard--more .icon:first-child {
    color: #c084fc;
  }
}

/* Nombre après le titre : « Contacts 15 » */
.phead__count {
  margin-left: 8px;
  font-size: 0.5em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  vertical-align: middle;
}
.segments .phead__count {
  font-size: 12.5px;
  margin-left: 4px;
}
@media (max-width: 760px) {
  /* Listes : 3 colonnes d'icônes */
  .pgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .ptile {
    padding: 14px 6px 10px;
    gap: 4px;
  }
  .ptile .avatar,
  .ptile .atile__icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 20px !important;
  }
  .ptile .atile__icon .icon {
    width: 24px;
    height: 24px;
  }
  .ptile strong {
    font-size: 13.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .ptile__meta {
    font-size: 11px !important;
  }
  .ptile .fresh {
    transform: scale(0.88);
  }
  /* barre : recherche/ajout en entier, puis icônes/liste à côté du tri */
  .vctl--mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .vctl--mobile .vctl__middle {
    justify-content: stretch;
  }
  .vctl--mobile .vctl__middle > * {
    width: 100%;
  }
  .vctl__tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }
  .vctl__toggle {
    width: 34px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--glass);
    border: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  /* Fiches : les trois panneaux sur une seule ligne */
  .qstats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
  }
  .qstats .stat {
    padding: 10px 9px;
  }
  .qstats .stat b {
    font-size: 16px;
  }
  .qstats .stat > span:not(.qstat__tools) {
    display: block;
    font-size: 11px;
    line-height: 1.25;
  }
  .qstats .stat .avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }
  .qstats .qstat__tools {
    transform: scale(0.85);
    transform-origin: top right;
  }
}
@media (max-width: 760px) {
  /* Menu du bas : appui long pour ranger les onglets */
  .nav__item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .nav__scrim {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(8, 5, 18, 0.35);
  }
  .nav.is-arranging {
    z-index: 31;
  }
  .nav__item.is-lifted {
    color: #fff;
    background: rgba(168, 85, 247, 0.35);
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 10px 22px -8px rgba(192, 38, 211, 0.9);
  }
  .nav__item.is-target {
    animation: navwiggle 0.6s ease-in-out infinite;
    color: var(--text);
  }
  @keyframes navwiggle {
    0%,
    100% {
      transform: rotate(0);
    }
    25% {
      transform: rotate(-4deg);
    }
    75% {
      transform: rotate(4deg);
    }
  }
  /* Listes : recherche/ajout et boutons d'affichage sur la même ligne */
  .vctl--mobile {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .vctl--mobile .vctl__middle {
    flex: 1;
    min-width: 0;
  }
  .vctl--mobile .addbar,
  .vctl--mobile .addinline__wrap {
    width: 100%;
    min-width: 0;
  }
  .vctl--mobile .addbar {
    height: 42px;
    padding: 0 4px 0 12px;
    gap: 8px;
  }
  .vctl--mobile .addbar input {
    font-size: 14px;
  }
  .vctl--mobile .addbar__btn {
    height: 32px;
    padding: 0 11px;
    font-size: 13px;
  }
  .vctl--mobile .vctl__tools {
    flex: none;
    gap: 4px;
  }
  .vctl--mobile .vctl__sort {
    padding: 0 4px;
    font-size: 12.5px;
  }
  /* « Plus de stats » : une petite carte soignée au bout des fenêtres */
  .wcard--more {
    flex: 0 0 104px !important;
    flex-direction: column;
    gap: 8px !important;
    background: linear-gradient(160deg, rgba(168, 85, 247, 0.16), rgba(249, 115, 98, 0.08));
    border: 1px solid rgba(185, 140, 255, 0.3);
  }
  .wcard--more .icon:first-child {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(192, 38, 211, 0.9);
  }
  .wcard--more .icon:last-child {
    display: none;
  }
  .wcard--more span {
    font-size: 12.5px;
    line-height: 1.25;
  }
}
@media (max-width: 760px) {
  /* Bouton rond flottant « ajouter un évènement », au-dessus du menu du bas */
  .fab {
    position: fixed;
    z-index: 32;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 14px 30px -10px rgba(192, 38, 211, 0.95);
  }
  .fab:active {
    transform: scale(0.95);
  }
  body:has(.sheet) .fab,
  body:has(.filters__pop) .fab {
    display: none;
  }
  .nav .nav__item {
    flex: 1;
    min-width: 0;
  }
  /* boutons d'affichage et de tri à droite du titre */
  .phead__actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .phead__side .vctl__tools,
  .tabsrow .vctl__tools {
    display: flex;
    gap: 4px;
  }
  .tabsrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .tabsrow .segments {
    margin-bottom: 0;
  }
  .vctl--bar {
    display: block;
    margin-bottom: 14px;
  }
  .vctl--bar .addbar,
  .vctl--bar .addinline__wrap {
    width: 100%;
  }
  .sharebtn {
    padding: 0 10px;
  }
  /* filtres ouverts : la liste des filtres défile seule */
  .filters__pop {
    overscroll-behavior: contain;
  }
  /* fiche d'un lieu : « avec qui » ne déborde plus */
  .qstats .wentwith {
    max-width: 100%;
  }
}
@media (max-width: 760px) {
  .phead h1 {
    font-size: 32px;
  }
  .phead__row {
    align-items: center;
  }
  .qstats .stack {
    display: inline-flex;
    flex-wrap: nowrap;
  }
  .qstats .wentwith .stack .avatar + .avatar {
    margin-left: -8px;
  }
}

/* Fiches (téléphone) : les stats en une ligne de pastilles, une bulle au toucher */
.qchips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px 0 18px;
}
.qchips::-webkit-scrollbar {
  display: none;
}
.qchip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 48%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  background: var(--glass);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.qchip b {
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.qchip > span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qchip .stack .avatar + .avatar {
  margin-left: -6px;
}
.qbubble {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.qbubble__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 18, 0.55);
  backdrop-filter: blur(6px);
}
.qbubble__card {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background: #1d1735;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: qpop 0.18s ease-out;
}
@keyframes qpop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}
.qbubble__close {
  position: absolute;
  top: 10px;
  right: 10px;
}
.qbubble__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.qbubble__value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  padding-right: 30px;
}
.qbubble__sub {
  color: var(--muted);
  font-size: 14px;
}
.qbubble__people {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qbubble__swap {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qbubble__swap > span {
  font-size: 12.5px;
  color: var(--muted);
}
.qbubble__swap .chip {
  height: 32px;
  font-size: 13px;
  padding: 0 12px;
}
/* pastilles : trois parts égales, la valeur au-dessus, le libellé dessous */
.qchip {
  flex: 1 1 0;
  max-width: none;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 7px 10px;
  text-align: left;
}
.qchip b {
  max-width: 100%;
  font-size: 15px;
}
.qchip > span {
  max-width: 100%;
  font-size: 11px;
}
.qchips {
  overflow: visible;
}

/* Stats : les six cases, cliquables */
.kpi--btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.kpi--btn:hover {
  border-color: rgba(185, 140, 255, 0.45);
  background: var(--glass-2);
}
.kpi--btn b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spanels > .spanel .sumgrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .spanels > .spanel .sumgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Ligne d'un lieu : le nom à gauche, la précision à droite (chacun sur deux lignes au besoin) */
.row__body--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.row__body--inline strong {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}
.row__body--inline small {
  flex: 0 1 45%;
  min-width: 0;
  text-align: right;
  line-height: 1.25;
  margin: 0;
}
.editpanel__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.swatches--grid {
  display: grid;
  grid-template-columns: repeat(12, 26px);
  gap: 6px;
}
.swatches--grid button {
  width: 26px;
  height: 26px;
}
.swatches__other {
  grid-column: span 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.swatches__other input {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
@media (max-width: 760px) {
  .swatches--grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .swatches--grid button {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }
}
/* « Autre » : un rond arc-en-ciel qui ouvre le sélecteur de couleur */
.swatches__other {
  position: relative;
}
.swatches__other::before {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
}
.swatches__other input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
@media (max-width: 760px) {
  .swatches__other {
    grid-column: span 4;
  }
}
/* nom et précision d'un lieu : sur deux lignes plutôt que coupés */
.row__body--inline strong,
.row__body--inline small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 760px) {
  .row__body--inline small {
    flex-basis: 42%;
    font-size: 11.5px;
  }
}
/* palette : 16 colonnes (une par teinte), 3 rangées (foncée, moyenne, claire) */
.swatches--grid {
  grid-template-columns: none;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: 26px;
  gap: 6px;
}
@media (max-width: 760px) {
  .swatches--grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
.row__body--inline small {
  -webkit-line-clamp: 3;
}
@media (max-width: 760px) {
  /* Top 5 des lieux (Stats) : sur téléphone, la précision reste sous le nom, comme avant */
  .row__body--inline {
    display: block;
  }
  .row__body--inline strong,
  .row__body--inline small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    -webkit-line-clamp: unset;
  }
}

/* Fiche d'un lieu (téléphone) : la précision sous le nom, deux fois plus près */
@media (max-width: 760px) {
  .page--place .phead p {
    margin-top: 0;
    line-height: 1.25;
  }
}

/* Titre de page avec stylo : le stylo suit le dernier mot, même sur 2 lignes */
.phead h1.phead__h1--inline {
  display: block;
}
.phead__last {
  white-space: nowrap;
}
.phead__h1--inline .phead__edit {
  display: inline-grid;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -0.08em;
}

/* Téléphone : pendant la saisie, de la place en bas pour que même la dernière question puisse remonter tout en haut */
@media (max-width: 760px) {
  .sheet__panel.is-typing .form {
    padding-bottom: 60vh;
  }
}

/* « Supprimer… » puis « Valider », côte à côte à droite du panneau de personnalisation */
.editpanel__danger:has(.editpanel__done) {
  justify-content: flex-end;
  gap: 14px;
}

/* Téléphone : le calendrier de l'accueil va d'un bord à l'autre de l'écran, comme un bandeau */
@media (max-width: 760px) {
  .home__cal {
    margin-inline: calc(-1 * max(14px, env(safe-area-inset-left, 0px)));
  }
  .home__cal .cal {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-inline: max(14px, env(safe-area-inset-left, 0px));
  }
}

/* Téléphone : la timeline démarre juste sous le bandeau du calendrier */
@media (max-width: 760px) {
  .home .tl {
    margin-top: -12px;
  }
}

/* Accueil (ordinateur) : les trois chiffres des 30 derniers jours */
.homekpis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.homekpis .kpi {
  padding: 14px 16px;
}
.homekpis .kpi b {
  font-size: 30px;
}
.homekpis .kpi span {
  font-size: 14px;
}
.homekpis__title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.homekpis__title select {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.homekpis .qbubble__swap .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Choix de l'icône d'une activité : rangé par thème */
.editpanel__wide:has(.iconpick__group) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editpanel__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.iconpick__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iconpick__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

/* Ordinateur : les trois panneaux des fiches, cliquables comme sur téléphone, en grand */
@media (min-width: 761px) {
  .qchips {
    gap: 12px;
    margin: 0 0 22px;
  }
  .qchip {
    padding: 16px 18px;
    border-radius: 16px;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .qchip:hover {
    border-color: rgba(185, 140, 255, 0.45);
    background: var(--glass-2);
  }
  .qchip b {
    font-size: 24px;
  }
  .qchip > span {
    font-size: 13.5px;
  }
}
.homekpis .sumgrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Icône dans la pastille ronde des listes (activités, lieux) : toujours blanche */
.bar__label .badge--city .icon {
  color: #fff;
}

/* Pastille carrée d'une activité (timeline, listes) : remplie de sa couleur, icône blanche, comme sur la page Activités */
.badge--act {
  color: #fff;
  border-color: transparent;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 75%, #ffffff), var(--tone) 70%);
  box-shadow: 0 8px 18px -10px var(--tone);
}

/* Page Activités : icônes rondes, de la couleur de l'activité */
.atile__icon--sq {
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 75%, #ffffff), var(--tone) 70%);
  position: relative;
  box-shadow: none;
}
/* le bord : un anneau de la couleur de l'activité, détaché de la pastille comme pour les contacts */
.atile__icon--sq::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 2px;
  background: var(--tone);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bar__label .badge--act .icon {
  color: #fff;
}
.badge--round {
  border-radius: 50%;
}

/* Fenêtre d'ajout : pas d'« ancrage » automatique du défilement — sinon, quand des suggestions apparaissent sous un champ,
   le navigateur fait remonter le champ et sa question disparaît en haut */
.sheet__panel {
  overflow-anchor: none;
}

/* Calendrier : petit glissement quand on change de semaine du bout du doigt */
.cal.is-slide-l .cal__grid {
  animation: calslide-l 0.26s ease-out;
}
.cal.is-slide-r .cal__grid {
  animation: calslide-r 0.26s ease-out;
}
@keyframes calslide-l {
  from {
    transform: translateX(28px);
    opacity: 0.4;
  }
}
@keyframes calslide-r {
  from {
    transform: translateX(-28px);
    opacity: 0.4;
  }
}
.cal {
  touch-action: pan-y;
}

/* Fiche d'un évènement : la date sur une seule ligne */
.mdetail h2.mdetail__date {
  white-space: nowrap;
}

/* Contacts : rond de la couleur du contact, avec un anneau de la même couleur */
.avatar--tonering {
  position: relative;
  overflow: visible;
}
.avatar--tonering::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 2px;
  background: var(--tone);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Villes : initiales dans le rond coloré */
.atile__icon--initials {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

/* Réglage « une seule couleur » : toutes les pastilles de la couleur choisie (le dégradé du logo par défaut) */
body {
  --mono: var(--grad);
}
body.mono-icons .atile__icon--sq,
body.mono-icons .badge--act,
body.mono-icons main .avatar,
body.mono-icons .sheet .avatar {
  background: var(--mono) !important;
}
body.mono-icons .atile__icon--sq::before,
body.mono-icons .avatar--tonering::before {
  background: var(--mono);
}
body.mono-icons .badge--act {
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}
.acct__mono {
  padding: 4px 0 8px;
}

/* Plusieurs lieux dans un évènement : les suivants sous « Où ? » */
.moreplaces {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -6px;
}
.moreplaces__add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-2);
  font-weight: 600;
  font-size: 14px;
}

/* Plusieurs jours : Week-end / Séjour / Voyage / Vacances, une seule case cochée (facultatif) */
.staykind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 6px; margin: -4px 0 16px; }
.staykind__opt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 0; background: none; border: 0; color: var(--ink-2, rgba(255,255,255,.78)); font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.staykind__box { flex: none; width: 16px; height: 16px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.35); display: inline-grid; place-items: center; color: #fff; transition: background .15s, border-color .15s; }
.staykind__opt.is-on { color: #fff; }
.staykind__opt.is-on .staykind__box { background: var(--tone, #8b5cf6); border-color: var(--tone, #8b5cf6); }
.staykind__one { margin-left: auto; font-size: 13px; }

/* ——— Premier lancement : ce qu'est Muno, puis connexion, sans compte ou exemples ——— */
.welcome { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.welcome__box { position: relative; z-index: 1; width: 100%; max-width: 420px; text-align: center; }
.welcome__logo { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45); }
.welcome h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.welcome__tag { margin: 8px 0 0; font-size: 20px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome__sub { margin: 10px auto 0; max-width: 340px; color: var(--text-2); line-height: 1.45; }
.welcome__q { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.welcome__q li { padding: 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; text-align: left; }
.welcome__q li::before { content: "« "; color: var(--violet); font-weight: 700; }
.welcome__q li::after { content: " »"; color: var(--violet); font-weight: 700; }
.welcome__form { margin-top: 26px; display: grid; gap: 10px; text-align: left; padding: 18px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.welcome__form label { font-weight: 700; font-size: 14px; }
.welcome__form input { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); color: var(--text); font: inherit; font-size: 16px; }
.welcome__form input:focus { outline: none; border-color: var(--violet); }
.welcome__form .btn { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.welcome__form small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.welcome__form .linkbtn { justify-self: center; }
.welcome__err { margin: 0; color: #ff8fa3; font-size: 14px; }
.welcome__alt { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--dim); }
.welcome__alt .linkbtn { color: var(--text-2); }

/* Exemples affichés : un bandeau pour commencer sa vraie archive */
.demobar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 16px 12px; padding: 10px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.empty-big__sub { margin-top: -6px; color: var(--muted); font-size: 14px; max-width: 320px; margin-left: auto; margin-right: auto; }
/* Détail d'une case « En bref » : la liste des contacts, lieux, activités ou évènements */
.qbubble__rows { flex-shrink: 0; max-height: min(46vh, 360px); overflow-y: auto; margin: 8px -6px 0; padding: 0 6px; }
.qrow__ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent, var(--glass-3)); }
.qbubble__rows small { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.qbubble__rows strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Le titre écrit d'un évènement : en gras, sous le lieu ; les retours à la ligne du souvenir sont gardés */
.tl__title { display: block; margin-top: 0; color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.3; }
.tl__title + .tl__note { margin-top: 4px; }
.tl__note, .mdetail__note { white-space: pre-line; }
.mdetail__title { margin: 2px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); }
.mdetail__title + .mdetail__note { margin-top: 8px; }
.acct__version { margin: 18px 0 0; text-align: center; color: var(--dim); font-size: 12.5px; }

/* ——— Mentions légales et confidentialité ——— */
.legal { max-width: 760px; }
.legal__tabs { margin: 4px 0 18px; }
.legal__section { margin: 0 0 22px; }
.legal__section h2 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; }
.legal__section p, .legal__section li { color: var(--text-2); line-height: 1.6; font-size: 15px; }
.legal__section p { margin: 0 0 8px; }
.legal__section ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.legal__section a, .acct__legal a, .welcome__legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.acct__legal { margin: 22px 0 0; text-align: center; font-size: 13.5px; color: var(--dim); }
.welcome__legal { margin: 22px 0 0; font-size: 12.5px; color: var(--dim); }
.welcome__legal a { color: var(--muted); }
.acct__danger { color: #ff8fa3; }

/* ——— Partage réel ——— */
.acct__login .acct__field:has(input[type="email"]) {
  flex: 1 1 220px;
}
.acct__login input[type="email"] {
  width: 100%;
  letter-spacing: normal;
  text-align: left;
}
.sharerow--col {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.sharerow__line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sharerow__line .sharerow__who {
  flex: 1 1 auto;
  min-width: 0;
}
.sharerow--col .form__hint {
  margin: 0;
}
.sharerow--col .linkbtn {
  align-self: flex-start;
}
.sharerow__link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
}
.sharerow > .sharerow__who {
  flex: 1 1 auto;
  min-width: 0;
}
.sharecard header strong {
  white-space: nowrap;
}
.sharecard header small {
  text-align: right;
}
.sharecard__body small + small {
  display: block;
}
.sharecard__photos {
  display: flex;
  gap: 6px;
}
.sharecard__photos img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.sharecard__foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.invite--done p {
  margin: 0;
}
.invite__link {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
}
.invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sharehow {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
  color: var(--muted);
}
.invitation .invite {
  margin-top: 4px;
}
/* Activités partagées : bien colorées ; les autres en retrait */
.scope__pick.actpick--round .actround {
  opacity: 0.6;
}
.scope__pick.actpick--round .actround:hover {
  opacity: 0.85;
}
.scope__pick.actpick--round .actround.is-on {
  opacity: 1;
  color: #fff;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 78%, #000 0%);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.scope__pick.actpick--round .actround.is-on .actround__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.invite__linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.invite__linkrow .invite__link {
  flex: 1 1 260px;
}
.invite__mail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invite__mail input {
  flex: 1 1 220px;
}
.acct__save {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
button.menu__sub.menu__logout {
  width: calc(100% + 8px);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu__logout > .icon:first-child {
  color: #fca5a5;
}
.menu__out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: -4px -4px 0;
  border-radius: 12px;
  border: 1px solid rgba(252, 165, 165, 0.4);
  font-size: 13px;
  color: var(--muted);
}
.menu__out span {
  flex: 1 1 100%;
}
.peoplepick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.peoplepick__search {
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
}
.peoplepick__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.7;
}
.peoplepick__chip:hover {
  opacity: 0.9;
}
.peoplepick__chip.is-on {
  opacity: 1;
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(185, 92, 255, 0.35);
}
.invite__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite__one {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.peoplefield {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: text;
}
.peoplefield:focus-within {
  border-color: rgba(185, 140, 255, 0.7);
}
.peoplefield input {
  flex: 1 1 120px;
  min-width: 100px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 6px 4px;
}
.peoplefield__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px 0 5px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.peoplefield__tag button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
}
.invite__remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
}
.invite__remove:hover {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.5);
}
.saveprompt {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}
.saveprompt__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 18, 0.7);
  backdrop-filter: blur(4px);
}
.saveprompt__box {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-2, #1b1730);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.saveprompt__box h2 {
  margin: 0;
  font-size: 22px;
  padding-right: 48px;
}
.saveprompt__box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.saveprompt__x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.saveprompt__box .linkbtn {
  align-self: center;
}
.acct__fieldhint {
  font-size: 12.5px;
  color: var(--dim, var(--muted));
}
.acct__login .acct__fieldhint {
  flex: 1 1 100%;
  text-align: left;
  margin-top: -4px;
}
.sharetabs {
  margin: 4px 0 14px;
  flex-wrap: nowrap;
  max-width: 100%;
}
.sharetabs button {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .sharetabs {
    display: flex;
    width: 100%;
  }
  .sharetabs button {
    flex: 1 1 auto;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
  .sharerow {
    flex-wrap: wrap;
  }
  .sharerow > .sharerow__text {
    flex: 1 1 150px;
  }
}
.invite input.is-err {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}
.invite__err {
  color: #fca5a5;
  font-size: 13px;
}
button.tl__card.sharetl__card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.sharetl__owner {
  margin-left: auto;
  align-self: flex-start;
}
.sharecard__photos--small img {
  width: 56px;
  height: 56px;
}
.sharetl {
  margin-top: 6px;
}
.saveprompt__box .welcome__form {
  margin-top: 4px;
}
.welcome__expired {
  margin: 22px 0 -10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 14px;
}
.menu__login > .icon:first-child {
  color: #86efac;
}
/* Partage, mis en avant dans le menu du compte */
.menu__sub.menu__sub--share {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(251, 146, 60, 0.14));
  border-color: rgba(250, 204, 21, 0.45);
}
.menu__sub.menu__sub--share:hover {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(251, 146, 60, 0.2));
}
.menu__sub.menu__sub--share > .icon:first-child {
  color: #fde047;
}
.acct__tabs {
  flex-wrap: nowrap;
  max-width: 100%;
}
.acct__tabs a {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .acct__tabs {
    display: flex;
    width: 100%;
  }
  .acct__tabs a {
    flex: 1 1 auto;
    justify-content: center;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 13px;
    gap: 5px;
  }
}
.peoplepick__new {
  opacity: 1;
  border-style: dashed;
  color: var(--text);
}
.invite__title {
  margin: 0;
  font-size: 18px;
}
