*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible) { outline: none; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, #FDFBF7 0%, var(--cream) 55%, #F5F1E9 100%);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-semi);
  color: var(--ink); line-height: var(--lh-tight); margin: 0; letter-spacing: -.01em; }

p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- COQUILLE APP ---------- */
.app {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.screen {
  flex: 1;
  padding: var(--sp-6) var(--sp-5);
  padding-top: calc(var(--apphead-h) + var(--safe-top) + var(--sp-3));
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--sp-8));
  animation: fade-up var(--t-slow) var(--ease) both;
}
.screen[hidden] { display: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ÉCRAN DE DÉMARRAGE ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--sp-2);
  background: radial-gradient(120% 80% at 50% 30%, #FBF8F2 0%, var(--cream) 55%, #EFE9DE 100%);
  transition: opacity var(--t-slow) var(--ease);
}
.splash--hide { opacity: 0; pointer-events: none; }
.splash__mark { height: 132px; width: auto; object-fit: contain; animation: splashpop var(--t-slow) var(--ease) both; }
.splash__logo { width: min(92vw, 480px); height: auto; object-fit: contain; animation: splashpop var(--t-slow) var(--ease) both; }
.splash__name { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: var(--fw-semi); color: var(--ink); letter-spacing: -.02em; margin-top: var(--sp-3); }
.splash__tag { font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink-soft); text-align: center; line-height: var(--lh-snug); margin-top: 0; }
@keyframes splashpop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ---------- EN-TÊTE FIXE (logo, tous les onglets) ---------- */
.apphead {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: 0; width: 100%; max-width: var(--app-max);
  height: calc(var(--apphead-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(249,246,240,.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.apphead[hidden] { display: none; }
.apphead__logo { height: 55px; width: auto; max-width: 90vw; object-fit: contain; }

body.nologohead .apphead {
  display: flex;
  height: calc(44px + var(--safe-top));
  padding-top: var(--safe-top);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.nologohead .apphead__logo { display: none; }
body.nologohead .screen {
  padding-top: calc(var(--safe-top) + 44px + var(--sp-3));
}

/* ---------- BANDEAU DE MARQUE ---------- */
.brandbar { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.brandbar__mark { height: 68px; width: auto; object-fit: contain; }
.brandbar__logo { height: 64px; width: auto; max-width: 90vw; object-fit: contain; }
.brandbar__name { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h1); color: var(--ink); letter-spacing: -.01em; }

/* ---------- EN-TÊTE DASHBOARD ---------- */
.greeting { margin-bottom: var(--sp-6); }
.greeting__hello {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-med);
  color: var(--ink-soft);
}
.greeting__name {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-semi);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-top: 2px;
}
.greeting__sun { color: var(--attention); font-style: normal; }
.greeting__sub {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  font-size: var(--fs-body);
}

@keyframes homeRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .screen:not(.screen--chat) > * { animation: homeRise .5s var(--ease-soft) both; }
  .screen:not(.screen--chat) > *:nth-child(2) { animation-delay: .05s; }
  .screen:not(.screen--chat) > *:nth-child(3) { animation-delay: .10s; }
  .screen:not(.screen--chat) > *:nth-child(4) { animation-delay: .15s; }
  .screen:not(.screen--chat) > *:nth-child(5) { animation-delay: .20s; }
  .screen:not(.screen--chat) > *:nth-child(6) { animation-delay: .25s; }
  .screen:not(.screen--chat) > *:nth-child(n+7) { animation-delay: .30s; }
}

/* ---------- BANDEAU ASSISTANTE (voix de l'IA) ---------- */
/* ---------- BOÎTE À POUX - ACTION PRINCIPALE ---------- */
.depositcta {
  width: 100%; display: flex; align-items: center; gap: var(--sp-4); text-align: left;
  background: #9e73b5;
  color: #fff; border-radius: var(--r-lg); padding: var(--sp-5);
  margin-bottom: var(--sp-5); box-shadow: 0 8px 24px -8px rgba(158, 115, 181, .55);
  border: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.depositcta:hover {
  background: #8a659e;
  box-shadow: 0 8px 24px -8px rgba(138, 101, 158, .6);
}
.depositcta:active {
  background: #9e73b5;
  transform: scale(.985);
}
.depositcta__icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--r-md);
  background: rgba(255,255,255,.20); display: grid; place-items: center; font-size: 26px;
}
.depositcta__txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.depositcta__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h3); line-height: 1.15; }
.depositcta__sub { font-size: var(--fs-sm); color: rgba(255,255,255,.86); line-height: var(--lh-snug); }
.depositcta__arrow { flex: 0 0 auto; font-size: 26px; color: rgba(255,255,255,.85); }

.sugg-dismiss { display: block; margin: var(--sp-3) auto 0; color: var(--ink-faint); font-size: var(--fs-xs); text-decoration: underline; padding: 4px 8px; }

/* ---------- PLAN DE LA SEMAINE (briefing) ---------- */
.weekplan {
  width: 100%; display: flex; align-items: center; gap: var(--sp-4); text-align: left;
  background: var(--surface); border: 1px solid var(--lavender); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease);
}
.weekplan:active { transform: scale(.985); }
.weekplan__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--lavender-soft); display: grid; place-items: center; font-size: 22px; }
.weekplan__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.weekplan__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h3); color: var(--ink); }
.weekplan__sub { font-size: var(--fs-sm); color: var(--ink-soft); }
.weekplan__arrow { flex: 0 0 auto; font-size: 22px; color: var(--ink-faint); }
.wp__day { margin-bottom: var(--sp-4); }
.wp__dayhead { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--ai); text-transform: capitalize; margin-bottom: var(--sp-2); padding-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.wp__row { display: flex; align-items: center; gap: var(--sp-3); padding: 6px 0; }
.wp__emoji { flex: 0 0 auto; font-size: 18px; width: 22px; text-align: center; }
.wp__t { font-size: var(--fs-sm); color: var(--ink); }
.wp__time { color: var(--ink-soft); }
.wp__who { color: var(--ai); font-weight: var(--fw-med); }
.wp__close { text-align: center; font-size: var(--fs-sm); color: var(--ink-soft); margin: var(--sp-4) 0; }

/* ---------- CHAT : confirmation d'action ---------- */
.chat-action {
  align-self: center; background: var(--ok-bg); color: var(--ink);
  border: 1px solid var(--sage); border-radius: var(--r-md);
  padding: 8px 12px; font-size: var(--fs-sm); margin: 4px 0; text-align: center; max-width: 90%;
}
.chat-action__see { color: #4d6147; font-weight: var(--fw-semi); text-decoration: underline; margin-left: 4px; }
.bubble-say { margin-left: 6px; font-size: 13px; opacity: .55; vertical-align: middle; }
.bubble-say:active { opacity: 1; }
.bubble-more { display: block; margin-top: 6px; color: #4d6147; font-weight: var(--fw-med); font-size: var(--fs-sm); text-decoration: underline; }

.bubble.nudge { background: linear-gradient(135deg, #FCF7EF, #fff); border: 1px solid var(--line); }
.nudge__acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.nudge__yes { background: var(--night); color: #fff; border-radius: var(--r-pill); padding: 9px 16px; font-weight: var(--fw-med); font-size: var(--fs-sm); }
.nudge__yes:active { transform: scale(.98); }
.nudge__no { background: transparent; color: var(--ink-faint); border-radius: var(--r-pill); padding: 9px 12px; font-size: var(--fs-sm); }

/* ---------- WOW : « J'ai trouvé N éléments » ---------- */
.found {
  background: linear-gradient(135deg, var(--lavender-soft) 0%, #FBF1DD 100%);
  border: 1px solid var(--lavender); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); text-align: center;
}
.found__big { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h2); color: var(--ink); }
.found__sub { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 4px; }

/* ---------- TEMPS POUR VOUS (soin du parent) ---------- */
.selfcare {
  background: linear-gradient(135deg, #FCF7EF 0%, #F8F1E4 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); margin-bottom: var(--sp-6); box-shadow: var(--shadow-sm);
}
.selfcare__head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.selfcare__heart { font-size: 17px; }
.selfcare__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h3); color: var(--ink); }
.selfcare__txt { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-snug); }

.selfcare__cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: var(--sp-4); padding: 15px; border: none; border-radius: 16px; font-family: inherit; font-size: 15px; font-weight: var(--fw-semi); color: #fff; cursor: pointer; background: linear-gradient(135deg, #8CA97E, #647F55); box-shadow: 0 7px 20px -7px rgba(94,122,80,.55); position: relative; overflow: hidden; }
.selfcare__cta:active { transform: scale(.99); }
.selfcare__cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.22) 50%, transparent 68%); transform: translateX(-100%); animation: sc-shimmer 4s ease-in-out infinite; }
.selfcare__leaf { display: inline-block; animation: sc-leaf 2.8s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sc-shimmer { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes sc-leaf { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .selfcare__cta::after, .selfcare__leaf { animation: none; } }
.scchips { display: flex; flex-direction: column; gap: 8px; }
.scchip, .scday {
  width: 100%; text-align: left; background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 14px var(--sp-4); font-size: var(--fs-base); color: var(--ink);
  display: flex; align-items: center; gap: var(--sp-3); transition: background var(--t-base), border-color var(--t-base);
}
.scday { justify-content: center; }
.scchip:active, .scday:active { background: var(--lavender-soft); border-color: var(--lavender); }

/* ---------- FICHE ENFANT (univers) ---------- */
.backlink { color: var(--ai); font-weight: var(--fw-semi); font-size: var(--fs-sm); padding: 4px 0; margin-bottom: var(--sp-3); }
.childhead { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--sp-5); }
.childhead__av { width: 76px; height: 76px; border-radius: var(--r-pill); background: radial-gradient(circle at 30% 30%, var(--lavender-soft), var(--lavender)); display: grid; place-items: center; font-size: 38px; margin-bottom: var(--sp-3); box-shadow: var(--shadow-sm); }
.childhead__name { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: var(--fw-semi); color: var(--ink); letter-spacing: -.02em; }
.childhead__sub { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }
.stagebadge { margin-top: var(--sp-2); background: var(--sage-soft); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semi); padding: 4px 12px; border-radius: var(--r-pill); }
.bday { background: linear-gradient(135deg, #FBE6EE, var(--pink)); color: var(--ink); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); font-size: var(--fs-sm); font-weight: var(--fw-med); text-align: center; }
.vacc__line { font-size: var(--fs-base); color: var(--ink); }
.vacc__line b { font-weight: var(--fw-semi); }
.vacc__vaccins { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 4px; }
.vacc__note { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--sp-3); line-height: var(--lh-snug); }
.vacc__src { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-3); }
.mednote { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink); }
.mednote__del { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-deep); color: var(--ink-soft); font-size: 16px; line-height: 1; }
.utiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.utile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-2); opacity: .9; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.utile:hover { border-color: var(--lavender); }
.utile:active { transform: scale(.96); }
.utile--on { opacity: 1; border-color: var(--lavender); background: var(--lavender-soft); }
.utile__emoji { font-size: 22px; }
.utile__label { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: var(--fw-med); }
.utile__count { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--ai); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- RANGÉE D'OUTILS COMPACTE (accueil) ---------- */
.quickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-6); }
.quick { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-2); box-shadow: var(--shadow-md); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.quick:active { transform: scale(.96); }
.quick__emoji { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--lavender-soft); display: grid; place-items: center; font-size: 22px; color: var(--night-soft, #2b1e3f); }
.quick__label { font-size: var(--fs-sm); color: var(--ink); font-weight: var(--fw-med); line-height: 1.2; }
/* Mobile : Germaine y pense en bas, pleine largeur (3 colonnes). */
.quick--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: var(--sp-3) var(--sp-4);
}

/* ---------- TUTORIEL D'ACCUEIL ---------- */
#tuto { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: var(--sp-5);
  background: radial-gradient(120% 80% at 50% 20%, rgba(43,30,63,.45), rgba(43,30,63,.7)); opacity: 0; transition: opacity var(--t-base) var(--ease); }
#tuto.is-open { opacity: 1; }
.tuto__card { width: 100%; max-width: 360px; background: var(--cream); border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-5) var(--sp-5); text-align: center; box-shadow: var(--shadow-lg); }
.tuto__emoji { font-size: 52px; }
.tuto__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h2); color: var(--ink); margin-top: var(--sp-3); }
.tuto__text { font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-snug); margin-top: var(--sp-2); }
.tuto__dots { display: flex; gap: 6px; justify-content: center; margin: var(--sp-4) 0; }
.tuto__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tuto__dots span.is-on { background: var(--ai); }
.tuto__skip { display: block; margin: var(--sp-2) auto 0; color: var(--ink-faint); font-size: var(--fs-sm); }

/* ---------- RADAR « QU'EST-CE QUE J'OUBLIE ? » ---------- */
.radar {
  width: 100%; display: flex; align-items: center; gap: var(--sp-4); text-align: left;
  background: linear-gradient(135deg, rgba(96,120,86,.06) 0%, rgba(96,120,86,.13) 100%); color: var(--ink);
  border: 1px solid rgba(96,120,86,.2);
  border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-5);
  box-shadow: 0 6px 18px -16px rgba(96,120,86,.4); transition: transform var(--t-base) var(--ease);
}
.radar:active { transform: scale(.985); }
.radar__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--r-md); background: rgba(255,255,255,.6); display: grid; place-items: center; font-size: 24px; }
.radar__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.radar__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h3); color: #4E6A42; }
.radar__sub { font-size: var(--fs-sm); color: var(--ink-soft); }
.radar__arrow { flex: 0 0 auto; font-size: 22px; color: #6E8356; }
.serenity { display: flex; align-items: center; gap: var(--sp-4); background: var(--lavender-soft); border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.serenity__score { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: 40px; color: var(--ai); line-height: 1; }
.serenity__score span { font-size: 18px; color: var(--ink-soft); }
.serenity__label { font-size: var(--fs-sm); color: var(--ink); font-weight: var(--fw-semi); }
.serenity__label span { font-weight: 400; color: var(--ink-soft); }
.radar-row { display: flex; align-items: center; gap: var(--sp-2); padding: 10px 0; border-top: 1px solid var(--line-soft); }
.radar-row__ic { flex: 0 0 auto; width: 24px; text-align: center; font-size: 16px; }
.radar-row__when { flex: 0 0 auto; font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---------- ALLERGIES / BESOINS MÉDICAUX (carte importante) ---------- */
.alertcard { background: linear-gradient(135deg, #FBE6EE, var(--peach)); border: 1px solid var(--peach-deep); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); }
.alertcard__line { font-size: var(--fs-sm); color: var(--ink); line-height: var(--lh-snug); }
.alertcard__line + .alertcard__line { margin-top: 6px; }

/* ---------- RESSOURCES « COMMENT FAIRE » ---------- */
.resslot { background: var(--ai-bg); border: 1px solid var(--lavender); border-radius: var(--r-md); padding: var(--sp-4); margin-top: var(--sp-4); }
.resslot__intro { font-size: var(--fs-sm); color: var(--ink); margin-bottom: var(--sp-2); }
.resslot__btn { display: block; width: 100%; text-align: center; background: #fff; border: 1px solid var(--lavender); color: var(--ai); font-weight: var(--fw-semi); border-radius: var(--r-md); padding: 10px; font-size: var(--fs-sm); margin-top: 8px; text-decoration: none; }
.resslot__partner { background: linear-gradient(135deg, #8FA98A, #6E8C77); color: #fff; border-color: transparent; }
.resslot__consent { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 6px; text-align: center; }

/* ---------- QUI FAIT QUOI (répartition) ---------- */
.rep-head { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--ink); margin-bottom: var(--sp-2); }
.rep-row { display: flex; align-items: center; gap: var(--sp-2); padding: 8px 0; border-top: 1px solid var(--line-soft); }
.rep-row .item__body { flex: 1; }
.rep-give { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--ai); background: var(--lavender-soft); border-radius: var(--r-pill); padding: 5px 10px; }
.rep-done { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 700; }

/* ---------- FILE DE TRIAGE (Boîte à Poux) ---------- */
.inbox-card { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.inbox-card--out { opacity: 0; transform: translateY(-8px) scale(.98); }
.inbox-card__msg { font-size: var(--fs-sm); color: var(--ink); line-height: var(--lh-snug); margin-bottom: var(--sp-3); }
.inbox-el { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 8px 0; border-top: 1px solid var(--line-soft); }
.inbox-el__ic { flex: 0 0 auto; font-size: 16px; width: 22px; text-align: center; }
.inbox-el__rm { flex: 0 0 auto; margin-left: auto; align-self: flex-start; background: none; border: none; color: var(--ink-faint); font-size: 15px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 8px; transition: color .15s, background .15s; }
.inbox-el__rm:hover { color: var(--urgent); background: var(--line-soft); }
.inbox-el__acts { flex: 0 0 auto; margin-left: auto; display: flex; gap: 2px; align-self: flex-start; }
.inbox-el__acts .inbox-el__rm { margin-left: 0; }
.inbox-el__ed { background: none; border: none; color: var(--ink-faint); font-size: 14px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 8px; transition: color .15s, background .15s; }
.inbox-el__ed:hover { color: var(--ai); background: var(--line-soft); }
.inbox-edit { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 12px 30px; }
.inbox-edit input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.inbox-edit .ie-row { display: flex; gap: 6px; }
.inbox-edit .ie-row input { flex: 1 1 0; min-width: 0; }
.inbox-edit__save { align-self: flex-start; background: var(--ai); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.inbox-edit__save:hover { filter: brightness(1.05); }
.emptybox { text-align: center; padding: var(--sp-7) var(--sp-4); animation: ahhh var(--t-slow) var(--ease) both; }
.emptybox__icon { font-size: 44px; }
.emptybox__title { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h2); color: var(--ink); margin-top: var(--sp-2); }
.emptybox__sub { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 4px; }
@keyframes ahhh { 0% { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
.cat-more { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.cat-more > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--ink-soft); font-weight: var(--fw-med); }

/* ---------- BOUTON FLOTTANT « + » (capture partout) ---------- */
.fab {
  position: fixed; right: 18px; z-index: 45;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px);
  left: auto; width: 60px; height: 60px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #8FA98A 0%, #6E8C77 100%); color: #fff;
  font-size: 32px; font-weight: 300; line-height: 1;
  box-shadow: 0 10px 26px -8px rgba(110,140,119,.65);
  display: grid; place-items: center;
  transition: transform var(--t-base) var(--ease);
}
.fab[hidden] { display: none; }
.fab:active { transform: scale(.92); }
@media (min-width: 520px) { .fab { right: calc(50% - 240px + 18px); } }

/* ---------- CAPTURE « VIDE TA TÊTE » ---------- */
.capbox {
  margin-bottom: var(--sp-4);
  background: #fff;
  border: 1.5px dashed #D8CEBE;
  box-shadow: 0 8px 26px -14px rgba(43,30,63,.16);
  border-radius: 22px;
  padding: var(--sp-4);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-fast) var(--ease);
}
.capbox.is-over { border-style: solid; border-color: #7C9270; background: rgba(96,120,86,.07); transform: scale(1.006); }
.capbox__hint { font-family: var(--fd); font-weight: var(--fw-semi); font-size: var(--fs-body); color: var(--night); margin-bottom: var(--sp-2); text-align: center; }
.capbox .capbox__text { width: 100%; border: none; background: transparent; padding: var(--sp-2) 0 0; min-height: 52px; }
.capbox .capbox__text:focus { outline: none; box-shadow: none; border: none; }
.capbox__io { display: flex; gap: 9px; margin-top: var(--sp-3); }
.cap-io { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; background: var(--cream-deep); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; font-size: 14px; font-weight: var(--fw-semi); color: var(--night); transition: transform var(--t-fast) var(--ease), background var(--t-base); }
.cap-io:active { transform: scale(.97); }
.capbox__mic.is-rec { background: #C25B4E; color: #fff; border-color: transparent; }
.capbox__send { display: block; width: 100%; margin-top: 9px; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; background: #86A079; color: #fff; border: none; border-radius: 14px; padding: 15px; font-size: 15px; font-weight: var(--fw-semi); box-shadow: 0 4px 12px rgba(134,160,121,.32); transition: transform var(--t-fast) var(--ease); }
.capbox__send:active { transform: scale(.99); }
.capbox__send:disabled { opacity: .6; }

.scan-card__hd { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); color: var(--night); font-weight: var(--fw-semi); }
.scan-orb { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 15px; background: radial-gradient(circle at 35% 30%, #CDBDF2, #A78BFA); box-shadow: 0 3px 10px rgba(122,107,168,.35); }
.scan-doc { position: relative; margin-top: var(--sp-3); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); max-height: 340px; }
.scan-doc img { display: block; width: 100%; height: auto; }
.scan-sweep { position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(167,139,250,.16) 45%, rgba(167,139,250,.30) 50%, rgba(167,139,250,.16) 55%, transparent); animation: gscan 2.2s ease-in-out infinite; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--ai), transparent); box-shadow: 0 0 12px rgba(167,139,250,.6); animation: gscan 2.2s ease-in-out infinite; }
@keyframes gscan { 0% { top: -10%; } 75% { top: 100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scan-sweep, .scan-line { display: none; } }

.depo-hero { text-align: center; padding: var(--sp-4) var(--sp-4) var(--sp-3); margin-bottom: var(--sp-3); }
.depo-hero__icon { width: 58px; height: 58px; margin: 0 auto var(--sp-3); border-radius: 50%; background: linear-gradient(135deg, #8FA98A, #6E8C77); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: var(--shadow-lg); }
.depo-hero__ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, var(--lavender-soft), var(--peach-soft)); box-shadow: 0 6px 16px -8px rgba(122,107,168,.4); }
.depo-steps { display: flex; align-items: stretch; justify-content: space-between; gap: 4px; margin-bottom: var(--sp-4); }
.depo-step { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 4px; }
.depo-step span { font-size: 22px; line-height: 1; }
.depo-step b { display: block; font-size: var(--fs-sm); color: var(--night); margin-top: 4px; }
.depo-step small { display: block; font-size: 10.5px; color: var(--ink-faint); }
.depo-step__arrow { display: flex; align-items: center; color: var(--ok); font-weight: 700; flex: 0 0 auto; }
.depo-eg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--sp-3); }
.depo-eg__lbl { font-size: var(--fs-xs); color: var(--ink-faint); }
.depo-eg__chip { font-size: var(--fs-xs); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--night-soft); }

.depo-reassure { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--night-soft); margin-top: var(--sp-4); }
.depo-reassure b { color: var(--night); font-weight: var(--fw-semi); }
.depo-reassure .sep { opacity: .4; }
.depo-child { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.depo-child__q { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--night); margin-bottom: 9px; }
.depo-child__row { display: flex; flex-wrap: wrap; gap: 6px; }
.depo-kid { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--night-soft); cursor: pointer; }
.depo-kid.is-on { border-color: var(--night-soft); background: rgba(43,30,63,.06); color: var(--night); }
.depo-docs__sum { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: var(--sp-2) 0; }
.depo-docs__sum::-webkit-details-marker { display: none; }
.depo-docs__sum::after { content: "▾"; margin-left: auto; font-size: 13px; }
.depo-docs[open] .depo-docs__sum::after { content: "▴"; }
.depo-cards .act-card {
  max-width: none;
  width: 100%;
  align-self: stretch;
  border-bottom-left-radius: 20px;
  --depo-pad-x: 28px;
}
.depo-cards .act-card > .ac__top,
.depo-cards .act-card > .ac__rows,
.depo-cards .act-card > .ac__act,
.depo-cards .act-card > .depo-event-edit,
.depo-cards .act-card > .depo-assign {
  padding-left: var(--depo-pad-x) !important;
  padding-right: var(--depo-pad-x) !important;
}
.depo-cards { display: flex; flex-direction: column; gap: 12px; }
.depo-cards__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.depo-cards__toolbar .homelbl { margin: 0; }
.depo-cards__bulk {
  margin: 10px 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(43, 30, 63, 0.05);
}
.depo-cards__bulk .depo-assign { margin: 0; }
.depo-cards__bulk-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.35;
}
.depo-cards--events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.depo-cards--rest {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.viewport--desktop .depo-cards.depo-cards--events,
body[data-viewport="desktop"] .depo-cards.depo-cards--events {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  width: 100%;
}
.viewport--desktop .depo-cards.depo-cards--events .act-card,
body[data-viewport="desktop"] .depo-cards.depo-cards--events .act-card {
  max-width: none !important;
  width: 100% !important;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 20px;
}
.viewport--desktop .depo-cards.depo-cards--events .act-card .ac__act,
body[data-viewport="desktop"] .depo-cards.depo-cards--events .act-card .ac__act {
  margin-top: auto;
}
.depo-docs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.depo-docs__item { padding: 14px; }
.depo-docs__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--ink-soft);
}
.depo-docs__meta strong { color: var(--night); }
.depo-docs__resume {
  margin: 8px 0 0; font-size: 13px; color: var(--ink-faint); line-height: 1.4;
}
.depo-docs__date {
  margin-top: 4px; font-size: 12px; color: var(--ink-faint);
}
.depo-docs__actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.depo-docs__del {
  color: var(--urgent, #A94442);
}
.depo-assign {
  padding: 6px 22px 14px;
}
.depo-assign__label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-faint);
  margin-bottom: 10px;
}
.depo-assign__people {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.depo-assign__people .calx-people__btn {
  opacity: 0.4;
  background: transparent;
  border: 1px solid transparent;
}
.depo-assign__people .calx-people__btn.is-on {
  opacity: 1;
  background: #fff;
  border-color: var(--line-soft);
}

.famtools { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; box-shadow: 0 3px 14px -8px rgba(43,30,63,.14); margin-bottom: var(--sp-4); }
.famtool { border-top: 1px solid var(--line-soft); }
.famtool:first-child { border-top: none; }
.famtool__sum { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.famtool__sum::-webkit-details-marker { display: none; }
.famtool__ic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--lavender-soft); }
.famtool__ic.tic--peach { background: var(--peach-soft); }
.famtool__ic.tic--sage { background: var(--sage-soft); }
.famtool__t { flex: 1; font-weight: var(--fw-semi); font-size: 14.5px; color: var(--night); }
.famtool__sum::after { content: "›"; color: var(--ink-faint); font-size: 20px; }
.famtool[open] > .famtool__sum::after { content: "⌄"; }
.famtool[open] > .famtool__sum { background: #FBF8F2; }
.famtool__body { padding: 4px 14px 16px; background: #FBF8F2; }
.fam-add { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-3); }
.fam-addchip { background: var(--cream-deep); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: var(--fw-semi); color: var(--night-soft); cursor: pointer; }
.fam-addchip:active { transform: scale(.97); }

.notif-row { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 13px; margin-bottom: 8px; cursor: pointer; }
.notif-row.is-unread { background: linear-gradient(90deg, rgba(167,139,250,.08), #fff 42%); border-color: #E7E0EF; }
.notif-ic { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 14px; background: var(--cream-deep); }
.notif-row.is-unread .notif-ic { color: #fff; background: radial-gradient(circle at 35% 30%, #CDBDF2, #A78BFA); box-shadow: 0 3px 9px rgba(122,107,168,.3); }
.notif-b { flex: 1; min-width: 0; }
.notif-t { font-weight: var(--fw-semi); font-size: 14px; line-height: 1.3; }
.notif-x { font-size: 13px; color: var(--night-soft); margin-top: 1px; }
.notif-w { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.notif-del { background: none; border: none; color: var(--ink-faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; flex: 0 0 auto; align-self: flex-start; }
.doc-del { background: transparent; border: none; font-size: 16px; opacity: .5; padding: 4px 6px; flex: 0 0 auto; }
.doc-del:active { opacity: 1; }

/* ---------- SOUVENIRS ---------- */
.souv { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.souv__body { flex: 1; }
.souv__text { font-size: var(--fs-sm); color: var(--ink); line-height: var(--lh-snug); }
.souv__meta { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 2px; }
.souv__del { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-deep); color: var(--ink-soft); font-size: 15px; line-height: 1; }

/* ---------- SUGGESTIONS PROFIL (jauge) ---------- */
.know-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.know-sugg__chip {
  background: var(--cream);
  border: 1px solid var(--lavender);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: var(--fw-med);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.know-sugg__chip:hover {
  background: #fff;
  border-color: var(--ai);
  color: var(--ai);
}
.mf-hero--c .know-sugg { justify-content: center; }
.mf-hero--c .mf-whisper { text-align: left; }

/* ---------- JAUGE « GERMAINE TE CONNAÎT » ---------- */
.know { height: 12px; border-radius: var(--r-pill); background: var(--cream-deep); overflow: hidden; }
.know__fill { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--sage), var(--ai)); transition: width var(--t-slow) var(--ease); }

/* ---------- FICHE MEMBRE V3 (hero chaleureux) ---------- */
.mf-hero { position: relative; border-radius: 22px; padding: 20px 18px; overflow: hidden; margin-bottom: var(--sp-4); background: radial-gradient(120% 120% at 80% -10%, #E7DEFB 0%, #F3EEFB 38%, #FBF8F2 100%); box-shadow: var(--shadow-md); }
.mf-hero__top { display: flex; align-items: center; gap: 14px; }
.mf-hero__name { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.08; }
.mf-hero__sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.mf-hero__badge { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.mf-edit { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.7); border: none; border-radius: 11px; padding: 8px 11px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mf-whisper { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; background: rgba(255,255,255,.6); border-radius: 14px; padding: 11px 13px; font-size: 13px; line-height: 1.5; color: var(--night-soft); }
.mf-whisper b { color: var(--ai); font-weight: 600; }
.mf-bday { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 12.5px; color: var(--night-soft); background: rgba(255,255,255,.55); border-radius: 12px; padding: 9px 12px; }

/* ---------- FICHE HÉROS v2 : présence (avatar centré + phrase humaine) ---------- */
.mf-hero--c { text-align: center; padding: 24px 18px 20px; }
.mf-hero--c .mf-hero__top { flex-direction: column; align-items: center; gap: 0; }
.mf-hero--c .mf-hero__name { font-size: 29px; }
.mf-hero--c .mf-hero__sub { font-size: 13px; }
.mf-hero--c .mf-hero__badge { margin-top: 8px; }
.mf-hero--c .mf-bday { justify-content: center; margin-top: 12px; text-align: left; }
.mf-photo { width: 100%; height: 100%; object-fit: cover; }
.mf-ava-wrap { position: relative; display: inline-flex; width: 118px; height: 118px; margin-bottom: 13px; flex: 0 0 auto; }
.mf-ava { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg, #F6DAC5, #E6AC84); overflow: hidden; border-radius: 50%; }
.mf-ava--photo { background: transparent; }
.mf-ava span { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: #fff; text-shadow: 0 2px 8px rgba(150,90,50,.3); line-height: 1; }
.mf-cam { position: absolute; bottom: 1px; right: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--ai); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2.5px solid var(--cream); box-shadow: 0 2px 6px rgba(43,30,63,.25); cursor: pointer; }
.mf-cam:disabled { opacity: .6; cursor: wait; }
.mf-photo-clear {
  display: block;
  margin: -4px auto 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted, #7a6f86);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.mf-photo-clear:disabled { opacity: .55; cursor: wait; }
.mf-know { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: rgba(255,255,255,.72); border: 1px solid rgba(167,139,250,.28); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--ai); }

.mf-edit { display: inline-flex; align-items: center; gap: 6px; }
.mf-hero__badge--warm {
  background: linear-gradient(135deg, #FBE6C8, #F6D9A8);
  color: var(--ink);
}
.mf-cam { color: #fff; }

.mf-idea {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--lavender-soft); border: 1px solid rgba(167,139,250,.22);
  border-radius: var(--r-lg); padding: 12px 14px;
  margin-top: 18px; margin-bottom: var(--sp-5);
  cursor: pointer; font: inherit; color: inherit;
}
.mf-idea__ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: var(--ai); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.mf-idea__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mf-idea__txt strong { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ink); }
.mf-idea__txt small { font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.35; }
.mf-idea__go { flex: 0 0 auto; font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ai); }

.mf-infos {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.mf-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px; border-top: 1px solid var(--line-soft);
}
.mf-row:first-child { border-top: none; }
.mf-row--stack { align-items: flex-start; }
.mf-ic {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: var(--ink);
}
.mf-ic--peach { background: #FBE6D8; color: #C46B4A; }
.mf-ic--sage { background: var(--sage-soft); color: #5A7550; }
.mf-ic--lavender { background: var(--lavender-soft); color: var(--ai); }
.mf-ic--pink { background: #FBE6EE; color: #B85A7A; }
.mf-ic--cream { background: var(--cream-deep); color: var(--ink-soft); }
.mf-row__body { flex: 1; min-width: 0; }
.mf-row__k {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin-bottom: 3px;
}
.mf-row__v { font-size: var(--fs-sm); color: var(--ink); font-weight: var(--fw-med); }
.mf-row__v.is-empty { color: var(--ink-faint); font-style: italic; font-weight: var(--fw-reg); }
.mf-row__edit {
  flex: 0 0 auto; width: 32px; height: 32px; border: none; background: transparent;
  color: var(--ink-faint); border-radius: 10px; display: grid; place-items: center; cursor: pointer;
}
.mf-row__edit:hover { color: var(--ai); background: var(--lavender-soft); }
.mf-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.mf-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--sage-soft); color: var(--ink); border-radius: 999px;
  padding: 5px 10px; font-size: var(--fs-xs); font-weight: var(--fw-med);
  border: none; font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-med);
  cursor: pointer; text-align: left;
}
.mf-tag--empty {
  background: transparent;
  border: 1.5px dashed var(--line);
  color: var(--ink-soft);
  font-weight: var(--fw-semi);
}
.mf-tag--empty:hover {
  border-color: var(--ai);
  color: var(--ai);
}
.mf-tag button {
  border: none; background: none; color: var(--ink-faint); font-size: 14px;
  line-height: 1; padding: 0 0 0 2px; cursor: pointer;
}
.mf-tag-add {
  border: 1.5px dashed var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: var(--fs-xs);
  font-weight: var(--fw-semi); cursor: pointer;
}
.mf-tag-add:hover { border-color: var(--ai); color: var(--ai); }

.mf-passions { padding: 13px 15px; margin-bottom: var(--sp-2); }
.mf-passions__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mf-passions__empty { font-size: 13px; color: var(--ink-faint); }
.mf-passion {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--sage-soft); color: var(--night);
  border-radius: 999px; padding: 7px 10px 7px 14px;
  font-size: 13.5px; font-weight: 500;
}
.mf-passion button {
  border: none; background: none; color: var(--ink-faint);
  font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer;
}
.mf-passion button:hover { color: var(--ink); }
.mf-passion-add {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px dashed var(--lavender);
  color: var(--ai); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.mf-passion-add:hover { background: var(--lavender-soft); }

/* ---------- FIL VIVANT DE GERMAINE (fiche) : elle parle, elle ne liste pas ---------- */
.mf-fil { position: relative; padding-left: 26px; margin-top: 4px; margin-bottom: 18px; }
.mf-fil::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 10px; width: 2px; background: linear-gradient(var(--lavender), var(--sage-soft) 60%, var(--attention-bg)); }
.mf-beat { position: relative; margin-bottom: 14px; }
.mf-beat:last-child { margin-bottom: 0; }
.mf-beat__pin { position: absolute; left: -26px; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--cream); }
.mf-beat__k { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.mf-say { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 11px 13px; font-size: 13.5px; line-height: 1.5; color: var(--night); }
.mf-say--ai { background: var(--lavender-soft); border-color: transparent; }
.mf-say b { font-weight: 600; }
.mf-say .g { color: var(--ai); font-weight: 600; }
.mf-act { display: inline-block; margin-top: 9px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ai); background: #fff; border: 1px solid var(--lavender); border-radius: 999px; padding: 6px 13px; cursor: pointer; }

/* ---------- MOT DU MATIN ---------- */
.brief {
  background: linear-gradient(135deg, #FBF1DD 0%, var(--cream) 60%, var(--lavender-soft) 100%);
  border: 1px solid var(--lavender); border-radius: var(--r-lg);
  padding: var(--sp-5); margin-bottom: var(--sp-5);
}
.brief__row { display: flex; gap: var(--sp-3); align-items: flex-start; }
.brief__star {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-pill);
  background: radial-gradient(circle at 30% 30%, #B7AEE6, var(--ai));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 0 0 4px #fff inset; animation: breathe 5s var(--ease-soft) infinite;
}
.brief__text { flex: 1; font-size: var(--fs-base); color: var(--ink); line-height: var(--lh-snug); }
.brief__say { margin-top: var(--sp-3); color: var(--ai); font-weight: var(--fw-semi); font-size: var(--fs-sm); }

/* ---------- ACCUEIL · HERO DU MATIN (fusion bonjour + mot du matin) ---------- */
.mhero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-5);
  background: radial-gradient(130% 130% at 15% -20%, #FBEEDA 0%, #F3EEFB 45%, #FBF8F2 100%);
  box-shadow: 0 12px 30px -16px rgba(43, 30, 63, .3);
}
.mhero__date { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); font-weight: var(--fw-semi); }
.mhero__hi { font-family: var(--font-display); font-size: 27px; font-weight: var(--fw-semi); line-height: 1.08; margin-top: 4px; letter-spacing: -.01em; }
.mhero__sun { color: var(--attention); font-style: normal; }
.mhero__say { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-3); }
.mhero__star { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 1px; display: grid; place-items: center;
  font-size: 14px; color: #fff; line-height: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #EFE8FB 0%, #B79BE6 44%, #8A57A6 100%);
  box-shadow: 0 3px 10px rgba(138,87,166,.34); animation: orbBreathe 5.5s var(--ease-soft) infinite; }
.mhero .brief__text b { color: var(--ai); font-weight: var(--fw-semi); }
.mhero__listen {
  margin-top: var(--sp-4); display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(167, 139, 250, .28);
  border-radius: var(--r-pill); padding: 7px 14px;
  font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ai);
}

/* ---------- ACCUEIL · étiquettes douces + rangée « Ta famille » ---------- */
.homelbl { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); font-weight: var(--fw-semi); margin: var(--sp-5) 4px var(--sp-2); display: flex; align-items: center; gap: 8px; }
.homelbl::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.home-week {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--sp-2);
}
.home-week--empty {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: var(--sp-5);
}
.home-week__day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-week__day-lbl {
  font-size: 12.5px;
  font-weight: var(--fw-semi);
  color: var(--ink-soft);
  padding: 0 2px;
}
.home-week__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.home-week__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line-soft);
}
.home-week__list > li:first-child .home-week__row {
  border-top: none;
}
.home-week__row:active {
  background: rgba(0, 0, 0, 0.02);
}
.home-week__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--ai);
}
.home-week__dot--attention { background: var(--attention); }
.home-week__dot--sage { background: #86A079; }
.home-week__dot--ai { background: var(--ai); }
.home-week__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-week__title {
  font-size: 14.5px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.home-week__title {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}
button.home-week__title:hover,
button.home-week__title:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
button.home-week__title:disabled {
  cursor: wait;
  opacity: 0.7;
}
.home-week__who {
  font-size: 12px;
  color: var(--ink-faint);
}
.home-week__when {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: var(--fw-semi);
  color: var(--ink-soft);
  white-space: nowrap;
}
.home-week__more {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--ai);
  text-decoration: none;
  padding: 4px 0 2px;
}

.home-overdue__hint {
  margin: -4px 4px 10px;
  font-size: 12.5px;
  color: #B85A5A;
  font-weight: var(--fw-semi);
}
.homelbl--overdue { color: #B85A5A; }
.homelbl--overdue::after { background: rgba(184, 90, 90, 0.25); }

.home-week__list.is-overdue {
  border-color: rgba(184, 90, 90, 0.35);
  background: #FFF7F7;
}
.home-week__row.is-overdue .home-week__title { color: #9B3030; }
.home-week__row.is-overdue .home-week__when,
.home-week__row.is-overdue .home-week__who { color: #C45C5C; }
.home-week__day-lbl.is-overdue { color: #B85A5A; }
.home-week__dot.is-overdue,
.home-week__list.is-overdue .home-week__dot { background: #C45C5C; }

.home-week__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px 32px;
  border-top: none;
}
.home-week__acts.is-overdue { background: #FFF7F7; }
.home-week__list > li + li .home-week__row { border-top: 1px solid var(--line-soft); }
.home-week__list.is-overdue > li + li .home-week__row {
  border-top-color: rgba(184, 90, 90, 0.18);
}
.home-week__act {
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--fw-semi);
  color: var(--ink-soft);
  cursor: pointer;
}
.home-week__acts.is-overdue .home-week__act {
  border-color: rgba(184, 90, 90, 0.3);
  color: #9B3030;
}
.home-week__act:disabled { opacity: 0.55; cursor: wait; }
.home-week__act--danger {
  color: #8a4545;
}
.home-week__act--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.home-week__delegate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px 32px;
}
.home-week__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  cursor: pointer;
}
.home-week__chip.is-on {
  border-color: var(--ai);
  background: var(--lavender-soft);
}
.home-week__chip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.famstrip { display: flex; align-items: flex-start; gap: 13px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: var(--sp-2); -webkit-overflow-scrolling: touch; }
.famstrip::-webkit-scrollbar { height: 0; }
.fs-person { flex: 0 0 auto; width: 68px; text-align: center; background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.fs-avwrap { position: relative; width: 56px; height: 56px; margin: 0 auto 6px; flex: none; }
.fs-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sage-soft); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--cream-deep); font-size: 23px; flex: none; }
.fs-av--grad { background: linear-gradient(150deg, #F6DAC5, #E6AC84); }
.fs-av--icon {
  background: var(--lavender-soft, #ebe4f5);
  color: var(--night-soft, #2b1e3f);
}
.fs-av--add { background: #fff; color: var(--ink-faint); font-size: 22px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-soft); }
.fs-img { width: 56px; height: 56px; object-fit: cover; object-position: center; display: block; }
.fs-ini { font-family: var(--font-display); font-size: 22px; font-weight: var(--fw-semi); color: #fff; }
.fs-dot { position: absolute; bottom: -1px; right: -1px; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--cream); }
.fs-nm { display: block; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-tg { display: block; font-size: 10px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 13px; }

/* ---------- SUGGESTIONS DU CHAT ---------- */
.chat__sugg { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--sp-5); -webkit-overflow-scrolling: touch; }
.chat__sugg .sugg {
  flex: 0 0 auto; background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 15px; font-size: var(--fs-sm); font-weight: 500; color: var(--night-soft); white-space: nowrap;
  transition: transform var(--t-fast) var(--ease);
}
.chat__sugg .sugg:active { transform: scale(.95); background: var(--sage-soft); }

.geree__share { margin-top: var(--sp-4); width: 100%; background: var(--surface); border: 1px solid var(--lavender); color: var(--ai); font-weight: var(--fw-semi); border-radius: var(--r-md); padding: 10px; font-size: var(--fs-sm); }

/* ---------- BLOC « CE QUE GERMAINE A GÉRÉ POUR VOUS » ---------- */
.geree {
  background: linear-gradient(135deg, var(--sage-soft) 0%, #FBF6EC 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.geree__head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.geree__heart { font-size: 15px; line-height: 1; }
.geree__title { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); font-weight: var(--fw-semi); }
.geree__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.geree__list li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-snug); }
.geree__list li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.geree__list b { color: var(--ink); font-weight: var(--fw-semi); }
.geree__sub { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-snug); }

.assistant {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: linear-gradient(135deg, var(--ai-bg), #F4F1FB);
  border: 1px solid var(--lavender);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.assistant__avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-pill);
  background: radial-gradient(circle at 30% 30%, #B7AEE6, var(--ai));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 0 0 4px #fff inset;
  animation: breathe 5s var(--ease-soft) infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes orbBreathe {
  0%,100% { transform: scale(1); box-shadow: 0 3px 10px rgba(138,87,166,.34), 0 0 0 0 rgba(167,139,250,.32); }
  50% { transform: scale(1.09); box-shadow: 0 4px 14px rgba(138,87,166,.42), 0 0 0 8px rgba(167,139,250,0); }
}

.sealstamp { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: sealscrim 2.8s var(--ease) forwards; }
.sealstamp img { width: min(58vw, 244px); height: auto; filter: drop-shadow(0 18px 36px rgba(43,30,63,.42)); animation: sealstamp .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes sealstamp { 0% { opacity: 0; transform: scale(1.9) rotate(-7deg); } 55% { opacity: 1; transform: scale(.93) rotate(-2deg); } 76% { transform: scale(1.05) rotate(-1deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes sealscrim { 0% { background: rgba(43,30,63,0); } 7% { background: rgba(43,30,63,.14); } 82% { background: rgba(43,30,63,.14); } 100% { background: rgba(43,30,63,0); opacity: 0; } }
.assistant__text { font-size: var(--fs-sm); color: var(--ink); line-height: var(--lh-snug); }
.assistant__text b { font-weight: var(--fw-semi); }
.assistant__cta {
  margin-top: var(--sp-2); display: inline-flex; gap: var(--sp-2); align-items: center;
  font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ai);
}

/* ---------- SECTIONS ---------- */
.section { margin-bottom: var(--sp-7); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.section__title {
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-semi);
}
.section__count {
  font-size: var(--fs-xs); color: var(--ink-faint);
  background: var(--cream-deep); padding: 2px 10px; border-radius: var(--r-pill);
}

.section__toggle {
  width: 100%; display: flex; align-items: center; gap: var(--sp-3); text-align: left;
  background: var(--ai-bg); border: 1px solid var(--lavender); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--t-base) var(--ease);
}
.section__toggle:active { transform: scale(.985); }
.section__toggle .section__title { margin-right: auto; color: var(--ai); }
.section__toggle .section__count { background: var(--ai); color: #fff; }
.section__chev { color: var(--ai); font-size: 18px; line-height: 1; transition: transform var(--t-base) var(--ease); }
.section__toggle.is-open .section__chev { transform: rotate(180deg); }
.section__toggle--plain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: var(--sp-3);
  border-radius: 0;
}
.section__toggle--plain .section__title {
  color: var(--ink);
  font-size: var(--fs-h2);
}
.section__toggle--plain .section__count {
  background: var(--cream-deep);
  color: var(--ink-faint);
}
.section__toggle--plain .section__chev {
  color: var(--ink-faint);
}
.section__body { animation: sectionReveal var(--t-base) var(--ease); }
@keyframes sectionReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.parcolor__lbl { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: var(--fw-med); margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.parcolor { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cswatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-soft) inset; cursor: pointer; transition: transform var(--t-base) var(--ease); }
.cswatch:active { transform: scale(.9); }
.cswatch.is-sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; transform: scale(1.08); }

.item__owner { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: var(--fw-med); padding: 2px 8px; border-radius: var(--r-pill); background: var(--cream-deep); color: var(--ink-soft); white-space: nowrap; }

.relance { background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--cream) 72%); border: 1px solid rgba(167,139,250,.24); border-left: 3px solid var(--ai); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); box-shadow: 0 8px 22px -14px rgba(122,107,168,.35); }
.relance__head { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ai); font-weight: var(--fw-semi); }
.relance__intro { font-size: var(--fs-sm); color: var(--ink-soft); margin: 2px 0 var(--sp-3); }
.relance__item { padding: var(--sp-3) 0; }
.relance__item + .relance__item { border-top: 1px solid var(--line-soft); }
.relance__t { font-size: var(--fs-base); color: var(--ink); }
.relance__when { font-size: var(--fs-xs); color: var(--ink-soft); }
.relance__when.is-late { color: var(--urgent); font-weight: var(--fw-med); }
.relance__acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.rl { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-med); cursor: pointer; transition: transform var(--t-base) var(--ease); }
.rl:active { transform: scale(.95); }

.rl--done { background: var(--surface); border-color: var(--ok); color: var(--ok); }
.rl--done:active { background: var(--ok-bg); }
.rl:disabled { opacity: .5; }

.nodate-plan { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.nodate-date { width: 100%; padding: 8px 12px; }
.nodate-ok { width: 100%; white-space: nowrap; }

.remind { margin-top: var(--sp-4); }
.remind__lbl { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: var(--fw-med); margin-bottom: var(--sp-2); }
.remind__chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.rchip { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-med); cursor: pointer; transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.rchip.is-on { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.rchip:active { transform: scale(.95); }

/* ---------- CARTES ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card + .card { margin-top: var(--sp-3); }
.card:active { transform: scale(.99); }
.card--static { transition: none; }
.card--static:active { transform: none; }

.item {
  display: flex; align-items: center; gap: var(--sp-4);
}
.item__dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: var(--r-pill);
  
  background: var(--lavender);
}
.item__dot--attention { background: var(--attention); }
.item__dot--urgent    { background: var(--urgent); }

.item__dot--ok        { background: var(--ok); }
.item__dot--ai        { background: var(--ai); }
.item__dot--sage      { background: #86A079; }
.item__rep { flex: 0 0 auto; font-size: 14px; line-height: 1; width: 16px; text-align: center; }
.item__body { flex: 1; min-width: 0; }
.item__title { font-weight: var(--fw-med); font-size: var(--fs-body); color: var(--ink);
  overflow-wrap: anywhere; word-break: break-word; }
.item__meta { font-size: var(--fs-sm); color: var(--ink-faint); margin-top: 2px; }
.item__chip {
  flex: 0 0 auto; font-size: var(--fs-xs); font-weight: var(--fw-semi);
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--ok-bg); color: var(--ok);
}
.item__chip--ai        { background: var(--ai-bg); color: var(--ai); }
.item__chip--attention { background: var(--attention-bg); color: #B5712F; }
.item__chip--sage      { background: var(--sage-soft); color: #3F5A34; }
.item__chip--urgent    { background: var(--urgent-bg); color: var(--urgent); }
.item__chip--ok        { background: var(--ok-bg); color: var(--ok); }

/* Tags calendrier - alignés sur la légende */
.cal-tag {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.cal-tag--ai {
  background: #EDE4F6;
  color: #8A57A6;
}
.cal-tag--attention {
  background: #FBEADD;
  color: #B5712F;
}
.cal-tag--sage {
  background: #E2EBDD;
  color: #3F5A34;
}

.calm {
  text-align: center; padding: var(--sp-7) var(--sp-5);
  color: var(--ink-soft);
}
.calm__icon { font-size: 30px; margin-bottom: var(--sp-2); }
.calm__title { font-family: var(--font-display); font-size: var(--fs-h3);
  color: var(--ink); margin-bottom: var(--sp-1); }

/* ---------- CHARGE MENTALE ---------- */
.load { display: flex; align-items: center; gap: var(--sp-5); }
.load__gauge {
  --pct: 38;
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: var(--r-pill);
  background:
    conic-gradient(var(--ok) calc(var(--pct) * 1%), var(--cream-deep) 0);
  display: grid; place-items: center;
  position: relative;
}
.load__gauge::after {
  content: ""; position: absolute; inset: 10px; border-radius: var(--r-pill);
  background: var(--surface);
}
.load__gauge span { position: relative; font-family: var(--font-display);
  font-weight: var(--fw-semi); font-size: var(--fs-sm); color: var(--ink); }
.load__txt { flex: 1; }
.load__level { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-semi); }
.load__hint { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }
.bilan { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-soft); }
.bilan b { color: var(--ai); font-weight: var(--fw-semi); }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: var(--fw-semi); font-size: var(--fs-body);
  padding: 14px var(--sp-6); border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: rgba(96, 120, 86, .16); color: #3F5A34; border: 1px solid rgba(96, 120, 86, .34); box-shadow: none; }
.btn--primary:hover { background: rgba(96, 120, 86, .26); }
.btn--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--block { width: 100%; }

/* ---------- BOÎTE DE DÉPÔT ---------- */
.drop {
  border: 1.5px dashed var(--sage);
  background: linear-gradient(180deg, #fff, var(--sage-soft));
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base) var(--ease);
}
.drop.is-over { border-color: var(--ai); background: var(--ai-bg); transform: scale(1.01); }
.drop__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4);
  border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 28px;
}
.drop__title { font-family: var(--font-display); font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.drop__hint { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.drop__formats { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap;
  margin-top: var(--sp-5); }
.drop__format { font-size: var(--fs-xs); color: var(--ink-faint);
  background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- CARTE DE PROPOSITION (le WOW) ---------- */
.propose__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semi);
  color: var(--ai); background: var(--ai-bg); padding: 4px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--sp-3); letter-spacing: .02em;
}
.propose { padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.propose:first-of-type { border-top: none; }
.propose__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.propose__action {
  width: 100%; padding: 11px var(--sp-5); font-size: var(--fs-sm);
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast) var(--ease);
}

.dots i { animation: blink 1.4s infinite both; font-style: normal; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

/* ---------- ONBOARDING (rencontre de découverte) ---------- */
.onb {
  position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 60;
  background: radial-gradient(120% 80% at 50% -10%, #FBF8F2 0%, var(--cream) 55%, #F3EEE4 100%);
  display: flex; flex-direction: column;
  padding: calc(var(--sp-7) + env(safe-area-inset-top, 0px)) var(--sp-5) calc(var(--sp-6) + var(--safe-bottom));
  animation: fade-up var(--t-slow) var(--ease) both;
}
.onb[hidden] { display: none; }
.onb__dots { display: flex; gap: 6px; justify-content: center; }
.onb__dots span { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--line); transition: background var(--t-base); }
.onb__dots span.on { background: var(--sage); }
.onb__main { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-start; padding: var(--sp-5) 0; -webkit-overflow-scrolling: touch; }
.onb__avatar {
  width: 56px; height: 56px; border-radius: var(--r-pill); margin-bottom: var(--sp-5);
  background: radial-gradient(circle at 30% 30%, #B7AEE6, var(--ai));
  display: grid; place-items: center; color: #fff; font-size: 26px;
  box-shadow: 0 0 0 5px #fff inset; animation: breathe 5s var(--ease-soft) infinite;
}
.onb__avatar--sm { width: 40px; height: 40px; font-size: 20px; margin-bottom: var(--sp-4); box-shadow: 0 0 0 4px #fff inset; }
.onb__hello { font-size: var(--fs-hero); line-height: var(--lh-tight); margin-bottom: var(--sp-4); }
.onb__lead { color: var(--ink-soft); font-size: var(--fs-body); line-height: var(--lh-body); }
.onb__question { font-size: var(--fs-h1); line-height: var(--lh-snug); margin-bottom: var(--sp-2); }
.onb__sub { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.onb__input {
  width: 100%; font-family: inherit; font-size: var(--fs-h3); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; transition: border-color var(--t-base), box-shadow var(--t-base);
}
.onb__input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--ok-bg); }

input[type="date"], input[type="time"] { font-size: var(--fs-body); -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-datetime-edit, input[type="time"]::-webkit-datetime-edit { color: var(--ink); }
input[type="date"]:invalid::-webkit-datetime-edit, input[type="time"]:invalid::-webkit-datetime-edit { color: var(--ink-soft); }

.dpick { flex: 1 1 auto; min-width: 0; } 
.dpick__btn {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 16px; font: inherit; font-size: var(--fs-body); color: var(--ink); cursor: pointer;
}
.dpick__btn:active { border-color: var(--sage); }
.dpick__lbl[data-empty] { color: var(--ink-faint); }
.dpick__native { display: none; }

.dpk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: var(--sp-2); }
.dpk-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-faint); padding: 4px 0; }
.dpk-day { aspect-ratio: 1; border: none; background: transparent; border-radius: 50%; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dpk-day:active { background: var(--cream-deep); }
.dpk-day--today { color: var(--ai); font-weight: 700; }
.dpk-day--sel { background: var(--ai); color: #fff; font-weight: 700; }
.dpk-day--empty { visibility: hidden; }
.dpk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-1); }
.dpk-nav { width: 40px; height: 40px; border: none; background: var(--cream-deep); border-radius: 50%; font-size: 20px; color: var(--ink); cursor: pointer; }
.dpk-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.onb__input--err { border-color: var(--urgent); box-shadow: 0 0 0 4px var(--urgent-bg); }
.onb__area { resize: none; line-height: var(--lh-body); font-size: var(--fs-body); }
.onb__choices { display: flex; flex-direction: column; gap: var(--sp-2); }
.onb__choice {
  display: flex; align-items: center; gap: var(--sp-3); text-align: left;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-fast) var(--ease);
}
.onb__choice:active { transform: scale(.99); }
.onb__choice.is-sel { border-color: var(--ai); background: var(--ai-bg); }
.onb__choice-ic { font-size: 22px; line-height: 1; }
.onb__choice-l { font-weight: var(--fw-med); display: flex; flex-direction: column; }
.onb__choice-l small { font-weight: var(--fw-reg); color: var(--ink-faint); font-size: var(--fs-xs); margin-top: 2px; }

.onb__choice.is-soon { opacity: .55; cursor: default; }
.onb__choice.is-soon:active { transform: none; }
.onb__soon { margin-left: auto; font-size: var(--fs-xs); font-weight: var(--fw-med); color: var(--ink-faint); background: var(--line); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.onb__kids { display: flex; flex-direction: column; gap: var(--sp-2); }
.onb__kid { display: flex; gap: var(--sp-2); align-items: center; }
.onb__kid .onb__input { font-size: var(--fs-body); }
.onb__kid-del { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r-pill); background: var(--cream-deep); color: var(--ink-soft); font-size: 20px; }
.onb__addkid { align-self: flex-start; color: var(--ai); font-weight: var(--fw-semi); font-size: var(--fs-sm); padding: 8px 0; }
.onb__recap { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.onb__recap li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px 16px; font-size: var(--fs-sm); }
.onb__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-4); }
.onb__foot .btn--primary { flex: 1; }

.billing-picker__badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: 0.02em;
  color: var(--sage);
  background: var(--ok-bg);
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}
.billing-picker__price {
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  color: var(--ink);
  margin-top: 4px;
  margin-bottom: 2px;
}
.billing-picker__save {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--sage);
  white-space: nowrap;
}

/* ---------- FAMILLE ---------- */
.famav { width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--r-pill); background: var(--sage-soft); display: grid; place-items: center; font-size: 18px; overflow: hidden; }
.famav-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.famedit { flex: 0 0 auto; font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ai); padding: 4px 8px; }

/* ---------- POLITIQUE (LÉGAL) ---------- */
.legal { text-align: left; margin-top: var(--sp-4); }
.legal p { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--ink-soft); margin-bottom: var(--sp-3); }
.legal b { color: var(--ink); font-weight: var(--fw-semi); }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: var(--sp-6); padding-bottom: var(--sp-4); }
.legal-links button,
.legal-links a { font-size: var(--fs-xs); color: var(--ink-faint); text-decoration: underline; }
.legal-links span { color: var(--line); font-size: var(--fs-xs); }
.legal-links__danger { color: var(--urgent); }

/* ---------- ÉPICERIE ---------- */
.groc-row { cursor: pointer; }
.groc-check { width: 26px; height: 26px; flex: 0 0 auto; border-radius: var(--r-pill); border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: var(--fw-semi); transition: background var(--t-fast), border-color var(--t-fast); }
.groc-check.is-on { background: var(--ok); border-color: var(--ok); }
.groc-del { width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--r-pill); background: var(--cream-deep); color: var(--ink-faint); font-size: 18px; }

/* ---------- CALENDRIER (maquette) ---------- */
.cal { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.cal__nav { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--cream-deep); font-size: 20px; color: var(--ink); }
.cal__nav:active { transform: scale(.92); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__wd { margin-bottom: 6px; }
.cal__wdc { text-align: center; font-size: 10px; color: var(--ink-faint); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .04em; }
.cal__dot { width: 6px; height: 6px; border-radius: var(--r-pill); display: inline-block; }
.cal__dot--ok { background: var(--ok); }
.cal__dot--attention { background: var(--attention); }
.cal__dot--ai { background: var(--ai); }
.cal__dot--sage { background: #86A079; }

.calseg { display: flex; background: var(--cream-deep); border-radius: 999px; padding: 3px; }
.calseg .cal-view { flex: 1; border: none; background: none; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: var(--fw-semi); color: var(--ink-faint); cursor: pointer; }
.calseg .cal-view.on { background: #fff; color: var(--night); box-shadow: 0 1px 4px rgba(43,30,63,.1); }

.calx-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-4);
}
.calx-top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.calx-seg { margin: 0; min-width: 240px; }
.calx-btn { white-space: nowrap; }

.calx-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.calx-period { display: flex; align-items: center; gap: 10px; }
.calx-period__label {
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: var(--fs-h3); text-transform: capitalize; min-width: 10ch; text-align: center;
}
.calx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.calx-people { display: flex; flex-wrap: wrap; gap: 6px; }
.calx-people__btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; background: transparent;
  border-radius: 999px; padding: 3px 8px 3px 3px; cursor: pointer; opacity: .45;
}
.calx-people__btn.is-on { opacity: 1; background: #fff; border-color: var(--line-soft); }
.calx-people__name { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.calx-av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 0; margin: 0; text-align: center; box-sizing: border-box;
  letter-spacing: 0;
  color: inherit;
}
.calx-av__txt {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}
.calx-av--wide {
  font-size: 8px;
  letter-spacing: -0.04em;
  padding: 0;
}
.calx-av--wide .calx-av__txt { letter-spacing: -0.04em; }

.calx-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.calx-kind {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; font-size: 12px; font-weight: 600;
  color: var(--ink-faint); cursor: pointer; opacity: .4; padding: 4px 0;
}
.calx-kind.is-on { opacity: 1; color: var(--ink-soft); }

.calx-month { display: flex; flex-direction: column; gap: var(--sp-5); }
.calx-month__grid-wrap { padding: 14px; }
.calx-month__grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px; min-height: 420px;
}
.calx-mcell {
  min-height: 110px; text-align: left; padding: 8px;
  border: 1px solid var(--line-soft); border-radius: 12px;
  background: #fff; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; align-items: stretch;
}
.calx-mcell.is-out { opacity: .35; cursor: default; background: var(--cream-deep); }
.calx-mcell.is-today { box-shadow: inset 0 -3px 0 #86A079; }
.calx-mcell.is-sel { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.calx-mcell__num {
  font-size: 12px; font-weight: 600; color: var(--ink-faint); width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%;
}
.calx-mcell__num.is-sel { background: var(--night); color: #fff; }
.calx-mcell__pills { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calx-pill {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  border-radius: 999px; padding: 2px 6px 2px 2px; border: 1px solid transparent;
  font-size: 10.5px; font-weight: 600; color: var(--night);
}
.calx-pill .calx-av { width: 18px; height: 18px; font-size: 8px; }
.calx-pill__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.calx-mcell__more { font-size: 10.5px; color: var(--ink-faint); font-weight: 600; padding-left: 2px; }

.calx-agenda {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.calx-agenda__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.calx-agenda__date {
  display: inline-flex; background: var(--night); color: #fff;
  font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.calx-agenda__wx { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.calx-agenda__empty { color: var(--ink-faint); font-size: 14px; padding: 8px 0; }
.calx-agenda__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.calx-agenda__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line-soft);
}
.calx-agenda__row:first-child { border-top: none; padding-top: 0; }
.calx-agenda__main {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 56px 3px minmax(0, 1fr); gap: 12px; align-items: center;
  border: none; background: transparent; padding: 0; margin: 0;
  text-align: left; cursor: pointer; color: inherit; font: inherit;
  border-radius: 10px;
}
.calx-agenda__main:hover .calx-agenda__title { text-decoration: underline; text-underline-offset: 2px; }
.calx-agenda__main:disabled { cursor: default; }
.calx-agenda__main:disabled:hover .calx-agenda__title { text-decoration: none; }
.calx-agenda__time { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.calx-agenda__bar { width: 3px; height: 34px; border-radius: 3px; }
.calx-agenda__body { min-width: 0; }
.calx-agenda__title { font-weight: 600; font-size: 15px; color: var(--ink); }
.calx-agenda__meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.calx-agenda__trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 8px;
  height: 44px;
}
.calx-agenda__trail .calx-av {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.calx-agenda__del {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex: 0 0 44px;
  align-self: center;
  background: rgba(43, 30, 63, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background .15s ease, color .15s ease;
}
.calx-agenda__del svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.calx-agenda__del:hover,
.calx-agenda__del:focus-visible {
  background: rgba(138, 69, 69, 0.14);
  color: #8a4545;
  opacity: 1;
}
.calx-agenda__doc {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex: 0 0 44px;
  align-self: center;
  background: rgba(43, 30, 63, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background .15s ease, color .15s ease;
}
.calx-agenda__doc:hover,
.calx-agenda__doc:focus-visible {
  background: rgba(107, 74, 122, 0.16);
  color: #6B4A7A;
  opacity: 1;
}
.calx-agenda__doc:disabled {
  cursor: wait;
  opacity: 0.55;
}
.calx-agenda__doc svg {
  display: block;
}
.calx-agenda__done {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex: 0 0 44px;
  align-self: center;
  background: rgba(43, 30, 63, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background .15s ease, color .15s ease;
}
.calx-agenda__done:hover,
.calx-agenda__done:focus-visible {
  background: rgba(134, 160, 121, 0.18);
  color: #5f7a56;
  opacity: 1;
}
.calx-agenda__done:disabled {
  cursor: wait;
  opacity: 0.55;
}
.calx-agenda__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid currentColor;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}
.calx-agenda__check.is-on {
  background: #86A079;
  border-color: #86A079;
}
.calx-agenda__check.is-on::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.calx-banner {
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 12px;
  background: var(--night); color: #F7F4EE; border-radius: 16px;
  padding: 14px 16px; margin-bottom: var(--sp-4);
}
.calx-banner__mark {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 14px; color: #E8C86A;
  background: rgba(255,255,255,.1);
}
.calx-banner__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.calx-banner__text { font-size: 14px; line-height: 1.45; }
.calx-banner__text p { margin: 0; }
.calx-banner__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calx-banner__chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
}

.calx-week__scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; }
.calx-week__head, .calx-week__allday {
  display: grid; grid-template-columns: 72px repeat(7, minmax(110px, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.calx-week__gutter { border-right: 1px solid var(--line-soft); }
.calx-week__gutter--lbl {
  font-size: 10px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: .04em; padding: 10px 6px; display: flex; align-items: center;
}
.calx-week__hday {
  padding: 10px 8px; text-align: left; border: none; background: transparent;
  border-right: 1px solid var(--line-soft); cursor: pointer;
}
.calx-week__hday:last-child, .calx-week__allday-col:last-child, .calx-week__col:last-child { border-right: none; }
.calx-week__hday.is-sel { background: var(--lavender-soft); }
.calx-week__hlbl { display: block; font-weight: 700; font-size: 12px; color: var(--ink); }
.calx-week__hwx { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-faint); }
.calx-week__allday-col {
  min-height: 44px; padding: 6px; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.calx-week__body { display: grid; grid-template-columns: 72px 1fr; position: relative; }
.calx-week__hours { border-right: 1px solid var(--line-soft); }
.calx-week__hour {
  height: var(--calx-hour, 52px); font-size: 11px; color: var(--ink-faint); font-weight: 600;
  padding: 0 8px 0 4px; box-sizing: border-box;
  display: flex; align-items: flex-start; justify-content: flex-end;
  line-height: 1; transform: translateY(-0.55em);
}
.calx-week__cols { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); position: relative; }
.calx-week__col {
  position: relative;
  border-right: 1px solid var(--line-soft);
  min-height: calc(var(--calx-hours, 24) * var(--calx-hour, 44px));
  overflow: hidden;
}
.calx-week__slot {
  height: var(--calx-hour, 52px); border-bottom: 1px solid var(--line-soft);
  box-sizing: border-box; background: transparent;
}
.calx-week__now {
  position: absolute; left: 0; right: 0; height: 2px; background: #E0A878; z-index: 3;
}
.calx-week__now::before {
  content: ""; position: absolute; left: -4px; top: -4px;
  width: 10px; height: 10px; border-radius: 50%; background: #E0A878;
}
.calx-wblock {
  position: absolute; left: 4px; right: 4px; z-index: 2;
  border-radius: 10px; border: 1px solid; padding: 6px 8px;
  overflow: hidden; box-sizing: border-box;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
button.calx-wblock {
  appearance: none; -webkit-appearance: none;
}
button.calx-wblock:hover {
  filter: brightness(0.97);
}
.calx-wblock--all {
  position: relative; font-size: 12px; font-weight: 600; padding: 8px 36px 8px 10px;
  display: flex; align-items: center; min-height: 34px;
}
.calx-wblock__title { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--night); padding-right: 22px; }
.calx-wblock__meta { font-size: 10.5px; color: var(--ink-soft); margin-top: 2px; padding-right: 22px; }
.calx-wblock__av { position: absolute; top: 6px; right: 6px; }
.calx-wblock__av .calx-av { width: 20px; height: 20px; font-size: 8px; }
.calx-wblock--all .calx-wblock__av { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); }
.calx-day__schedule { display: flex; flex-direction: column; gap: 0; }
.calx-day__allday {
  display: grid; grid-template-columns: 56px 1fr;
  background: #fff; border: 1px solid var(--line-soft); border-bottom: none;
  border-radius: 18px 18px 0 0; overflow: hidden;
}
.calx-day__allday-lbl {
  font-size: 10px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 12px 6px; border-right: 1px solid var(--line-soft);
  display: flex; align-items: center;
}
.calx-day__allday-items {
  display: flex; flex-direction: column; gap: 6px; padding: 10px;
}
.calx-day__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: var(--sp-4); align-items: start;
}
.calx-day__timeline {
  --calx-hour: 44px;
  display: grid; grid-template-columns: 56px 1fr;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 18px;
  overflow: hidden; padding-top: 10px;
}
.calx-day__schedule .calx-day__allday + .calx-day__timeline {
  border-radius: 0 0 18px 18px; border-top: none;
}
.calx-day__hours { border-right: 1px solid var(--line-soft); }
.calx-day__track {
  position: relative;
  height: calc(var(--calx-hour) * var(--calx-hours, 24));
  min-height: 0;
  background: none;
  overflow: hidden;
}
.calx-day__side { display: flex; flex-direction: column; gap: 12px; }
.calx-side-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-sm);
}
.calx-side-card__title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  margin-bottom: 10px; color: var(--night);
}
.calx-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.calx-side-list li {
  display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center;
}
.calx-side-list__bar { width: 4px; height: 28px; border-radius: 4px; }
.calx-side-list strong { display: block; font-size: 13px; }
.calx-side-list__meta { display: block; font-size: 11.5px; color: var(--ink-faint); }
.calx-untimed {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid; border-radius: 12px; padding: 8px 8px 8px 12px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.calx-untimed__t {
  min-width: 0; flex: 1;
  border: none; background: transparent; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer;
}
.calx-untimed__t:hover { text-decoration: underline; text-underline-offset: 2px; }
.calx-watch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.calx-watch li { display: flex; gap: 10px; align-items: flex-start; }
.calx-watch strong { display: block; font-size: 13px; }
.calx-watch__meta { display: block; font-size: 11.5px; color: var(--ink-faint); }

.calx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.calx-mcell__dots {
  display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
  min-height: 8px; margin-top: auto;
}
.calx-mcell--compact {
  min-height: 0;
  aspect-ratio: 1;
  padding: 4px 2px;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.calx-mcell--compact .calx-mcell__num {
  width: 22px; height: 22px; font-size: 12px;
}

.calx-week__track { min-width: 820px; }

.calx-week-list { display: flex; flex-direction: column; gap: 12px; }
.calx-week-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 12px 14px 10px;
  box-shadow: var(--shadow-sm);
}
.calx-week-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; border: none; background: transparent;
  padding: 0 0 8px; cursor: pointer; text-align: left;
}
.calx-week-card__date {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 5px 10px; border-radius: 999px;
}
.calx-week-card__date.is-sel {
  background: var(--night); color: #fff;
}
.calx-week-card__wx {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-faint); white-space: nowrap;
}
.calx-week-card__empty {
  margin: 4px 0 6px; font-size: 14px; color: var(--ink-faint);
}
.calx-week-card .calx-agenda__row:first-child { padding-top: 4px; }
.calx-week-card .calx-agenda__list { gap: 6px; }

.calx-day--compact { display: flex; flex-direction: column; gap: var(--sp-3); }
.calx-day--compact .calx-day__timeline {
  --calx-hour: 40px;
  background: #fff;
}
.calx-day--compact .calx-day__allday {
  border-radius: 16px 16px 0 0;
}
.calx-day--compact .calx-wblock {
  padding-right: 32px;
}
.calx-day--compact .calx-wblock__av { display: grid; }
.calx-day--compact .calx-wblock__av .calx-av {
  width: 20px; height: 20px; font-size: 7px;
}

.calx-footnote {
  text-align: center; font-size: 11.5px; color: var(--ink-faint);
  margin: var(--sp-5) 0 var(--sp-2);
}

/* Mode compact (téléphone / viewport phone) */
.calx--compact .calx-top {
  flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px;
}
.calx--compact .calx-top__right {
  width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
}
.calx--compact .calx-seg { min-width: 0; flex: 1 1 200px; }
.calx--compact .calx-actions { flex: 0 0 auto; gap: 8px; }
.calx--compact .calx-btn { padding-left: 12px; padding-right: 12px; }
.calx--compact .calx-toolbar {
  flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px;
}
.calx--compact .calx-period { justify-content: space-between; }
.calx--compact .calx-period__label {
  font-size: 15px; min-width: 0; flex: 1; text-align: center;
}
.calx--compact .calx-filters { gap: 10px; }
.calx--compact .calx-people { gap: 4px; }
.calx--compact .calx-people__name { font-size: 11px; max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calx--compact .calx-kind__label { font-size: 11.5px; }
.calx--compact .calx-month__grid-wrap { padding: 10px; }
.calx--compact .calx-month__grid { min-height: 0; gap: 4px; }
.calx--compact .calx-agenda {
  padding: 14px; border-radius: 16px;
}
.calx--compact .calx-agenda__row {
  gap: 8px;
}
.calx--compact .calx-agenda__main {
  grid-template-columns: 52px 3px minmax(0, 1fr);
  gap: 8px;
}
.calx--compact .calx-agenda__time { font-size: 12px; }
.calx--compact .calx-agenda__title { font-size: 14px; }
.calx--compact .calx-agenda__meta {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calx--compact .calx-banner { padding: 12px 14px; border-radius: 14px; }
.calx--compact .calx-banner__text { font-size: 13px; }

@media (max-width: 900px) {
  .calx-day__grid { grid-template-columns: 1fr; }
  .calx-top__right { width: 100%; }
  .calx-seg { flex: 1; min-width: 0; }
}

.week { background: linear-gradient(165deg, #F3EEFA, #FBF8F2); border: 1px solid #E7E0EF; border-radius: 20px; padding: 15px 16px; box-shadow: 0 6px 20px -12px rgba(122,107,168,.3); margin-bottom: var(--sp-4); }
.week__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.week__star { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 13px; background: radial-gradient(circle at 35% 30%, #CDBDF2, #A78BFA); }
.week__t { font-family: var(--fd); font-size: 16px; font-weight: var(--fw-semi); line-height: 1.15; }
.week__t small { display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: var(--fw-semi); color: var(--ai); letter-spacing: .02em; }
.week .wk { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13.5px; border-top: 1px solid rgba(122,107,168,.13); }
.week .wk:first-of-type { border-top: none; }
.week .wk .e { width: 22px; text-align: center; flex: 0 0 auto; }
.week .wk b { font-weight: var(--fw-semi); }

/* ---------- GERMAINE - CHAT ---------- */
.screen--chat { padding: calc(var(--apphead-h) + var(--safe-top)) 0 0; }
.chat {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h) - var(--safe-bottom) - var(--apphead-h) - var(--safe-top));
  height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - var(--apphead-h) - var(--safe-top));
}
.chat__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(167,139,250,.12), rgba(255,255,255,.72)); backdrop-filter: blur(12px);
}
.chat__banner {
  margin: 0; padding: 8px var(--sp-5);
  font-size: 12px; line-height: 1.35; text-align: center;
  color: var(--ink-soft); background: rgba(96,120,86,.08);
  border-bottom: 1px solid var(--line-soft);
}
.ai-disclaimer {
  margin: 0; padding: 8px 12px;
  font-size: 12px; line-height: 1.4; text-align: center;
  font-weight: var(--fw-semi);
  color: var(--night);
  background: rgba(96,120,86,.1);
  border: 1px solid rgba(96,120,86,.18);
  border-radius: 12px;
}
.ai-disclaimer--flush {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.chat__mode {
  display: flex; gap: 4px; margin: 10px var(--sp-5) 0;
  padding: 3px; background: var(--cream-deep); border-radius: 999px;
}
.chat__mode-btn {
  flex: 1; border: none; background: transparent; border-radius: 999px;
  padding: 8px 12px; font-size: 13px; font-weight: var(--fw-semi);
  color: var(--ink-faint); cursor: pointer;
}
.chat__mode-btn.is-on {
  background: #fff; color: var(--night);
  box-shadow: 0 1px 4px rgba(43,30,63,.1);
}
.chat__err {
  align-self: stretch; margin: 0; padding: 10px 12px;
  border-radius: 12px; background: var(--urgent-bg); color: var(--urgent);
  font-size: var(--fs-sm); line-height: 1.4;
}
.chat__id { flex: 1; }
.chat__name { font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-h3); }
.chat__status { font-size: var(--fs-xs); color: var(--ink-faint); }
.chat__tts { width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r-pill); background: var(--cream-deep); color: var(--ink-soft); display: grid; place-items: center; opacity: .6; transition: opacity var(--t-base), background var(--t-base), color var(--t-base); }
.chat__tts.is-on { opacity: 1; background: var(--sage-soft); color: #3F5A34; }
.chat__msgs { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
/* Empêche les cartes (overflow:hidden) de se compresser à une ligne dans le flex */
.chat__msgs > * { flex-shrink: 0; }
.chat__msgs .act-card { width: min(100%, 392px); max-width: 100%; }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 18px;
  font-size: var(--fs-body); line-height: var(--lh-snug);
  animation: fade-up var(--t-base) var(--ease) both;
}
.bubble--g { align-self: flex-start; background: #fff; border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; color: var(--ink); box-shadow: 0 2px 12px rgba(43,30,63,.05); }
.bubble--me { align-self: flex-end; background: rgba(96,120,86,.15); color: #3A5230; border: 1px solid rgba(96,120,86,.28); border-bottom-right-radius: 6px; box-shadow: 0 2px 10px rgba(43,30,63,.05); }
.bubble--rich { display: flex; flex-direction: column; gap: 10px; white-space: pre-wrap; }
.bubble__p { margin: 0; line-height: 1.5; }
.bubble__list {
  margin: 2px 0 0;
  padding: 0 0 0 1.35em;
  display: flex; flex-direction: column; gap: 6px;
  line-height: 1.45;
}
.bubble__list li { padding-left: 2px; }
.bubble__list li::marker { color: var(--ai); }
.chat__bar {
  display: flex; flex-direction: column; gap: 7px;
  flex-shrink: 0;
  padding: 10px var(--sp-4) 14px; border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
}
.composer { display: flex; align-items: flex-end; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 5px 5px 5px 4px; box-shadow: 0 2px 10px rgba(43,30,63,.05); }
.composer:focus-within { border-color: #7C9270; box-shadow: 0 0 0 3px rgba(96,120,86,.13); }
.chat__input {
  flex: 1; font-family: inherit; font-size: var(--fs-body); color: var(--ink);
  border: none; background: none; padding: 10px 4px 10px 14px;
  resize: none; line-height: 1.4; max-height: 150px; overflow-y: auto;
}
.chat__input:focus { outline: none; }
.chat__mic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; background: radial-gradient(circle at 35% 30%, #CDBDF2, #A78BFA); box-shadow: 0 3px 12px rgba(122,107,168,.32); transition: transform var(--t-fast) var(--ease); }
.chat__mic:active { transform: scale(.94); }
.chat__mic.is-send { background: #6E8356; box-shadow: 0 3px 10px rgba(78,99,66,.28); }
.chat__mic.is-rec { background: #C25B4E; color: #fff; animation: pulse 1.2s infinite; }
.chat__hint { text-align: center; font-size: 11.5px; color: var(--ink-faint); }
.chat__send { width: 44px; height: 44px; flex: 0 0 auto; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 18px; background: #6E8356; color: #fff; box-shadow: 0 3px 10px rgba(78,99,66,.28); transition: transform var(--t-fast) var(--ease); }
.chat__send:active { transform: scale(.94); }

/* ---------- CHAT · orbe vivante + cartes que Germaine fabrique ---------- */
.chat__orb { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; position: relative; display: flex; align-items: center; justify-content: center; margin-right: 2px; }
.chat__orb::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(199,184,240,.7), rgba(167,139,250,.22) 60%, transparent 72%); animation: breathe 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .chat__orb::before { animation: none; } }
.chat__orb-core { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 33% 30%, #CDBDF2, #A78BFA 78%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 4px 14px rgba(122,107,168,.38), inset 0 0 0 3px #fff; position: relative; z-index: 1; }
.chat__status { display: flex; align-items: center; color: var(--sage-deep, #566E4E); font-weight: 500; }
.chat__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep, #566E4E); display: inline-block; margin-right: 5px; flex: 0 0 auto; }

.act-card { align-self: flex-start; max-width: 88%; background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; border-bottom-left-radius: 7px; box-shadow: 0 4px 18px rgba(43,30,63,.07); overflow: hidden; }
.ac__top { display: flex; align-items: center; gap: 10px; padding: 14px 22px 12px; }
.ac__ic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ac__t { font-family: var(--font-display); font-size: 15.5px; font-weight: var(--fw-semi); line-height: 1.15; color: var(--night); }
.ac__s { font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.ac__rows { padding: 0 22px 8px; }
.ac__row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--night); }
.ac__row:first-child { border-top: none; }
.ac__row--more { color: var(--ink-faint); }
.ac__ck { width: 19px; height: 19px; border-radius: 6px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(96,120,86,.16); color: #3F5A34; font-size: 12px; font-weight: 700; }
.ac__act { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; background: #FBF8F2; border-top: 1px solid var(--line-soft); }
.ac__ok { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: var(--fw-semi); color: var(--night); }
.ac__seal { width: 18px; height: 18px; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(43,30,63,.22)); }
.act-card .chat-action__see { color: #3F5A34; font-weight: var(--fw-semi); font-size: 13px; text-decoration: none; background: none; border: none; cursor: pointer; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(167,139,250,.5); } 50% { box-shadow: 0 0 0 9px rgba(167,139,250,0); } }

/* ---------- CATÉGORIES BOÎTE À POUX ---------- */
.cat { margin-bottom: var(--sp-5); }
.cat__title {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-semi);
  display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--ink);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-base), background var(--t-base);
}
.chip span { font-size: 15px; line-height: 1; }
.chip:hover { border-color: var(--sage); }
.chip:active { transform: scale(.95); }
.chip--pop { background: var(--sage-soft); border-color: var(--sage); }
.chip.is-sel { background: var(--ai-bg); border-color: var(--ai); color: var(--ink); }
.onb__multi { margin-bottom: var(--sp-2); }

/* ---------- ÉLÉMENT TAPPABLE + FEUILLE D'ACTION ---------- */
.card--act { cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(43,30,63,.30); opacity: 0; transition: opacity var(--t-base); }
.sheet__panel {
  position: relative; width: 100%; max-width: var(--app-max);
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + var(--safe-bottom));
  box-shadow: var(--shadow-lg); transform: translateY(100%);
  transition: transform var(--t-base) var(--ease);
  max-height: 86vh; overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sheet__panel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(0); }

/* Bureau : modal centré (pas feuille du bas) */
.viewport--desktop .sheet {
  align-items: center;
  padding: 24px 16px;
}
.viewport--desktop .sheet__panel {
  width: min(100%, 420px);
  max-width: 420px;
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
  max-height: min(86vh, 720px);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform var(--t-base) var(--ease),
    opacity var(--t-base) var(--ease);
  box-shadow: 0 24px 60px rgba(43, 30, 63, 0.28);
}
.viewport--desktop .sheet.is-open .sheet__panel {
  transform: none;
  opacity: 1;
}

.sheet__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-semi); margin-bottom: var(--sp-2); text-align: center; }
.sheet__meta { text-align: center; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--sp-4); }

/* Feuille Infos (bouton Modifier fiche enfant) */
.infos-sheet__lbl {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 10px 4px;
}
.infos-sheet__card { padding: 4px; margin-bottom: var(--sp-4); }
.infos-sheet__row {
  display: flex; align-items: center; gap: 13px; padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft); border-radius: 12px; cursor: pointer;
}
.infos-sheet__row.is-last,
.infos-sheet__row--multi.is-last { border-bottom: none; }
.infos-sheet__row--multi { align-items: flex-start; cursor: default; }
.infos-sheet__emoji {
  width: 38px; height: 38px; border-radius: 11px; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto;
}
.infos-sheet__body { flex: 1; min-width: 0; }
.infos-sheet__k {
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.infos-sheet__v { font-size: 15.5px; margin-top: 1px; color: var(--ink); }
.infos-sheet__v.is-empty { color: var(--ink-faint); font-style: italic; }
.infos-sheet__pen { color: var(--ink-faint); font-size: 15px; flex: 0 0 auto; opacity: .65; }
.infos-sheet__edit { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.ie-input {
  flex: 1; font: inherit; font-size: 15px; border: 1px solid var(--lavender);
  border-radius: 9px; padding: 7px 9px; background: #fff; color: var(--ink); outline: none;
}
.ie-ok, .ie-no {
  width: 32px; height: 32px; border: none; border-radius: 9px; font-size: 14px;
  cursor: pointer; flex: 0 0 auto;
}
.ie-ok { background: var(--ai); color: #fff; }
.ie-no { background: var(--cream-deep); color: var(--ink-soft); }
.infos-sheet__chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 7px; }
.chip2 {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-soft); color: var(--night); border-radius: 999px;
  padding: 5px 6px 5px 13px; font-size: 13.5px; font-weight: 500;
}
.chip2-x {
  border: none; background: rgba(0,0,0,.10); color: var(--night);
  width: 18px; height: 18px; border-radius: 50%; font-size: 12px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.chip2-add {
  display: inline-flex; align-items: center; background: transparent;
  border: 1px dashed var(--lavender); color: var(--ai); border-radius: 999px;
  padding: 5px 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; font: inherit;
}
.chip2-edit { display: inline-flex; align-items: center; gap: 6px; }
.chip2-input {
  font: inherit; font-size: 13.5px; border: 1px solid var(--lavender); border-radius: 999px;
  padding: 5px 12px; background: #fff; color: var(--ink); outline: none; width: 140px;
}
.chip2-ok {
  border: none; background: var(--ai); color: #fff; width: 26px; height: 26px;
  border-radius: 50%; font-size: 13px; cursor: pointer; flex: 0 0 auto;
}
.sexe-pick .chip {
  border: 1px solid var(--line-soft); background: #fff; border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
}
.sexe-pick .chip.is-sel {
  border-color: var(--ai); background: var(--lavender-soft); color: var(--ai); font-weight: 600;
}

/* Univers - feuille dans le portail modal (au-dessus de la nav) */
.app-modal-root .univ-sheet {
  position: absolute;
  z-index: 220;
  pointer-events: auto;
}
.viewport--desktop .app-modal-root .univ-sheet {
  position: fixed;
}
.univ-field { display: block; margin-bottom: var(--sp-3); }
.univ-field__label {
  display: block; font-size: var(--fs-xs); font-weight: var(--fw-semi);
  color: var(--ink-soft); margin-bottom: 6px;
}
.univ-field__area { resize: vertical; min-height: 72px; }

.depo-event-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding: 4px 22px 10px;
}
.depo-event-edit .univ-field { margin-bottom: 0; }
.depo-event-edit__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.depo-event-edit__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.depo-event-edit__check.is-disabled {
  cursor: default;
  opacity: 0.65;
}
.depo-event-edit__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ok, #607856);
}

.cal-event-form__kinds,
.cal-event-form__people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.staged-kind-picker__kinds {
  padding: 4px;
  background: var(--cream-deep, #f0ebe1);
  border-radius: 14px;
}
.cal-event-form__kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  opacity: 0.55;
  color: var(--ink-soft);
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.cal-event-form__kind.is-on {
  opacity: 1;
  background: #fff;
  border-color: var(--line-soft);
  box-shadow: 0 1px 4px rgba(43, 30, 63, 0.06);
}
.cal-event-form__kind:disabled {
  cursor: not-allowed;
}
.cal-event-form__kind-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--night, var(--ink-soft));
  white-space: nowrap;
}
.cal-event-form__people .calx-people__btn {
  opacity: 0.45;
  background: transparent;
  border-color: transparent;
}
.cal-event-form__people .calx-people__btn.is-on {
  opacity: 1;
  background: #fff;
  border-color: var(--line-soft);
  box-shadow: 0 1px 4px rgba(43, 30, 63, 0.06);
}
.cal-event-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.cal-event-form__remove {
  color: #8a4545 !important;
}
.souv-page__filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 var(--sp-4);
}
.souv-page__chip {
  border: 1px solid var(--line-soft);
  background: var(--cream);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.souv-page__chip.is-on {
  background: var(--lavender-soft);
  border-color: rgba(167,139,250,.4);
  color: var(--night);
}
.souv-page__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.souv-page__who {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ai);
  text-decoration: none;
  margin-bottom: 2px;
}
.souv-page__who:hover { text-decoration: underline; }
.souv-page__ph {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 10px;
  background: var(--lavender-soft);
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.univ-souv { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: 8px; }
.univ-souv__item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 10px 12px;
}
.univ-souv__img {
  display: block; width: 64px; height: 64px; border-radius: 10px;
  object-fit: cover; background: var(--lavender-soft);
}
.univ-souv__img-btn {
  flex: 0 0 auto; padding: 0; border: none; background: none;
  border-radius: 10px; cursor: zoom-in; line-height: 0;
}
.univ-souv-compose__preview-btn {
  display: block; width: 100%; padding: 0; border: none; background: none;
  cursor: zoom-in; line-height: 0; margin-bottom: 8px;
}
.univ-souv-compose__preview {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--lavender-soft);
}
.souv-lightbox {
  position: absolute; inset: 0; z-index: 240; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px 16px calc(28px + var(--safe-bottom));
  background: rgba(20, 12, 32, .86);
}
.viewport--desktop .souv-lightbox {
  position: fixed;
}
.souv-lightbox__img {
  max-width: 100%; max-height: min(78vh, 100%);
  object-fit: contain; border-radius: 16px;
  box-shadow: var(--shadow-lg); background: var(--night);
}
.souv-lightbox__cap {
  margin: 0; max-width: 36rem; text-align: center;
  font-size: var(--fs-sm); color: #fff; line-height: 1.4;
}
.souv-lightbox__close {
  position: absolute; top: calc(12px + var(--safe-top, 0px)); right: 16px;
  width: 40px; height: 40px; border: none; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.univ-souv__body { flex: 1; min-width: 0; }
.univ-souv__text { font-size: var(--fs-sm); color: var(--ink); line-height: 1.4; }
.univ-souv__date { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 4px; }
.univ-souv-prompt {
  margin-top: var(--sp-3);
  padding: 14px;
  border-radius: 16px;
  background: var(--lavender-soft);
  border: 1px solid rgba(167,139,250,.28);
}
.univ-souv-prompt__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--night);
  margin: 0 0 4px;
}
.univ-souv-compose { margin-top: 12px; }

.univ-growth__summary { margin-bottom: var(--sp-3); }
.univ-growth__cols { display: flex; gap: 12px; }
.univ-growth__cols > div { flex: 1; min-width: 0; }
.univ-growth__val {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  line-height: 1.15; margin-top: 2px;
}
.univ-growth__delta {
  display: inline-block; margin-top: 6px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px;
  background: var(--ok-bg); color: var(--ok);
}
.univ-growth__form { margin-bottom: var(--sp-3); }
.univ-growth__inputs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.univ-growth__inputs .onb__input { flex: 1; min-width: 0; margin: 0; }
.univ-growth__hist-lbl {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  margin: var(--sp-2) 0 6px;
}
.univ-growth__hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.univ-growth__del {
  flex: 0 0 auto; border: none; background: transparent;
  color: var(--ink-faint); font-size: 20px; line-height: 1;
  padding: 0 6px; cursor: pointer;
}

.univ-baby__summary { margin-bottom: var(--sp-2); }
.univ-baby__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.univ-baby__qty {
  display: flex; gap: 8px; align-items: center; margin-bottom: var(--sp-3);
}
.univ-baby__qty .onb__input { flex: 1; min-width: 0; margin: 0; }
.univ-baby__unit { flex: 0 0 auto; min-width: 56px; }
.univ-baby__row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.univ-baby__emo { flex: 0 0 auto; width: 26px; text-align: center; font-size: 17px; line-height: 1.3; }

.sheet__weather {
  background: linear-gradient(135deg, #FBF1DD, var(--yellow));
  color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-med);
  border-radius: var(--r-md); padding: 10px var(--sp-4); margin-bottom: var(--sp-4); text-align: center;
}
.sheet__planhead { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--ink); margin-bottom: var(--sp-3); }
.checklist { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; align-items: center; gap: var(--sp-3); cursor: pointer;
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 12px var(--sp-4); font-size: var(--fs-sm); color: var(--ink);
  transition: background var(--t-base), opacity var(--t-base);
}
.check__box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--lavender); background: #fff;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
  transition: background var(--t-base), border-color var(--t-base);
}
.check.is-done { opacity: .6; }
.check.is-done .check__box { background: var(--ai); border-color: var(--ai); }
.check.is-done > span:last-child { text-decoration: line-through; color: var(--ink-faint); }

/* ---------- NAVIGATION (barre basse, app-like) ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--app-max);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  
  background: #FBF9F5;
  border-top: 1px solid var(--line-soft);
  box-shadow: var(--shadow-up);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 40;
}
.nav__btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: var(--fw-med); color: var(--ink-faint);
  padding: 6px 10px; border-radius: var(--r-md);
  transition: color var(--t-base);
}
.nav__btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__btn.is-active { color: var(--night); }
.nav__btn--deposit {
  position: relative; top: -12px;
  background: transparent; color: #fff; width: 50px; height: 50px;
  border-radius: var(--r-pill); justify-content: center;
  box-shadow: none; gap: 0;
  padding: 0;
}
.nav__btn--deposit svg { width: 24px; height: 24px; stroke-width: 2; }
.nav__btn--deposit .nav__btn-seal {
  width: 50px; height: 50px; object-fit: contain; display: block;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.nav__btn--deposit span { display: none; }

/* ---------- DIVERS ---------- */
.placeholder {
  text-align: center; color: var(--ink-soft); padding: var(--sp-9) var(--sp-4);
}
.placeholder__icon { font-size: 34px; margin-bottom: var(--sp-3); opacity: .85; display: inline-block; animation: breathe 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .placeholder__icon { animation: none; } }

/* --- Chargement : 3 points de marque qui rebondissent (mauve · abricot · vert) --- */
.dots3 { display: inline-flex; gap: 10px; margin-bottom: var(--sp-3); }
.dots3 span { width: 13px; height: 13px; border-radius: 50%; display: inline-block; animation: dot3 1.1s ease-in-out infinite; }
.dots3 span:nth-child(1) { background: #8A57A6; animation-delay: 0s; }
.dots3 span:nth-child(2) { background: #E58B62; animation-delay: .16s; }
.dots3 span:nth-child(3) { background: #7FB069; animation-delay: .32s; }
@keyframes dot3 { 0%, 75%, 100% { transform: translateY(0); opacity: .5; } 38% { transform: translateY(-10px); opacity: 1; } }

/* --- Chargement Famille : bulles-photos qui flottent --- */
.fambubbles { display: flex; justify-content: center; align-items: center; gap: 12px; height: 84px; margin-bottom: var(--sp-3); }
.fambubble { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid #fff;
  box-shadow: 0 8px 16px -7px rgba(44,20,40,.55); background: var(--lavender-soft); color: var(--ai);
  display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 600;
  animation: floatb 2.6s ease-in-out infinite; }
.fambubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fambubble:nth-child(2) { animation-delay: .35s; } .fambubble:nth-child(3) { animation-delay: .7s; }
.fambubble:nth-child(4) { animation-delay: 1.05s; } .fambubble:nth-child(5) { animation-delay: 1.4s; }
@keyframes floatb { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .dots3 span, .fambubble { animation: none; } }
.placeholder__title { font-family: var(--font-display); font-size: var(--fs-h2);
  color: var(--ink); margin-bottom: var(--sp-2); }
.placeholder__soon { display: inline-block; margin-top: var(--sp-4); font-size: var(--fs-xs);
  font-weight: var(--fw-semi); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ai); background: var(--ai-bg); padding: 6px 14px; border-radius: var(--r-pill); }

#paywall[hidden] { display: none; }
.pw { position: fixed; inset: 0; z-index: 1200; background: var(--cream);
  overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex;
  align-items: flex-start; justify-content: center; padding: max(28px, env(safe-area-inset-top)) 18px 40px; }
.pw__card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: var(--sp-5) var(--sp-4) var(--sp-4); text-align: center; }
.pw__logo { font-size: 40px; line-height: 1; margin-bottom: var(--sp-3); }
.pw__title { font-family: var(--font-display); font-size: var(--fs-h1, 1.55rem); font-weight: var(--fw-semi);
  color: var(--ink); line-height: var(--lh-snug); margin: 0 0 var(--sp-2); }
.pw__sub { font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-snug); margin: 0 0 var(--sp-4); }
.pw__list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); text-align: left; display: grid; gap: 10px; }
.pw__list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--ink); line-height: var(--lh-snug); }
.pw__check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--lavender-soft);
  color: var(--ai); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.pw__plan { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; background: var(--surface); border: 1.5px solid var(--cream-deep);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base); }
.pw__plan:active { background: var(--lavender-soft); }
.pw__plan--best { border-color: var(--ai); background: var(--lavender-soft); }
.pw__plan-name { font-weight: var(--fw-semi); color: var(--ink); font-size: var(--fs-md, 1rem); }
.pw__plan-meta { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 2px; }
.pw__badge { flex: 0 0 auto; background: var(--night); color: var(--on-night); font-size: var(--fs-xs);
  font-weight: var(--fw-semi); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.pw__link { display: block; width: 100%; margin: var(--sp-3) 0 var(--sp-2); background: none; border: none;
  color: var(--ink-faint); font-size: var(--fs-sm); text-decoration: underline; cursor: pointer; padding: 6px; }
.pw__fine { font-size: var(--fs-xs); color: var(--ink-faint); line-height: var(--lh-snug); margin: var(--sp-2) 0 0; }

.trialbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--lavender-soft); border: 1px solid var(--lavender); border-radius: var(--r-md);
  padding: 10px 14px; margin-bottom: var(--sp-3); font-size: var(--fs-sm); color: var(--ink); }
.trialbar__cta { flex: 0 0 auto; background: var(--night); color: var(--on-night); border: none;
  border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--fs-xs); font-weight: var(--fw-semi); cursor: pointer; }

.auth-boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.auth-page {
  position: relative;
  inset: auto;
  max-width: none;
  margin: 0;
  z-index: 0;
  min-height: 100%;
}
.auth-page__brand { display: flex; justify-content: center; padding-top: var(--sp-2); }
.auth-page__logo { width: min(220px, 72vw); height: auto; display: block; }
.auth-page__form { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.auth-page__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--ink-soft);
  margin-bottom: -4px;
}
.auth-page__pw {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-page__pw .onb__input {
  width: 100%;
  padding-right: 72px;
}
.auth-page__pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--ai);
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--fw-semi);
  padding: 6px 8px;
  cursor: pointer;
}
.auth-page__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-page__terms input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--ok, #607856);
}
.auth-page__terms a {
  color: var(--ai);
  font-weight: var(--fw-semi);
  text-decoration: underline;
}
.auth-page__msg { font-size: var(--fs-sm); line-height: var(--lh-snug); margin: 0; }
.auth-page__msg--err { color: var(--urgent); }
.auth-page__msg--ok { color: var(--ok); }
.auth-page__foot { justify-content: center; padding-top: var(--sp-2); }
.auth-page__switch {
  background: none;
  border: none;
  color: var(--ai);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  cursor: pointer;
  padding: 8px;
}
.auth-page__switch:hover { text-decoration: underline; }

.auth-desktop {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 48px) 24px;
  box-sizing: border-box;
  background:
    radial-gradient(90% 70% at 50% -20%, #FDFBF7 0%, var(--cream) 50%, #EFE9DE 100%);
}
.auth-desktop__panel {
  width: min(420px, 100%);
}
.auth-desktop .onb.auth-page {
  position: static;
  inset: auto;
  z-index: auto;
  max-width: none;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fade-up var(--t-slow) var(--ease) both;
}
.auth-desktop .auth-page__brand {
  padding-top: 0;
}
.auth-desktop .auth-page__logo {
  width: min(260px, 100%);
  margin-inline: auto;
}
.auth-desktop .onb__hello {
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}
.auth-desktop .onb__lead {
  text-align: center;
  max-width: 34ch;
  margin-inline: auto;
}
.auth-desktop .onb__main {
  flex: none;
  overflow: visible;
  padding: var(--sp-6) 0 var(--sp-4);
}
.auth-desktop .auth-page__foot {
  padding-top: var(--sp-5);
  flex: none;
}

/* ---------- Recettes (épicerie) ---------- */
.card.recipe,
.recipe {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
}
.card.recipe + .card.recipe,
.recipe + .recipe { margin-top: 10px; }
.card.recipe:active,
.recipe:active { transform: none; }

.recipe__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.recipe__titles { flex: 1; min-width: 0; }
.recipe__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--fw-semi);
  color: var(--night);
  line-height: 1.25;
}
.recipe__meta {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
}

.recipe__block { margin-bottom: 10px; }
.recipe__cols .recipe__block:last-child { margin-bottom: 10px; }
.recipe__cols {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.recipe__lbl {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.recipe__ings,
.recipe__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recipe__ing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--night);
  padding: 3px 0;
}
.recipe__ing-name { flex: 1; min-width: 0; }
.recipe__ing-qty {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
  margin-left: 8px;
}

.recipe__step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--night);
  padding: 2px 0;
}
.recipe__step-n {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 1px;
}
.recipe__step-txt { flex: 1; min-width: 0; }

.recipe__acts {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.recipe__act {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-soft);
  background: var(--cream-deep);
  color: var(--night);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
}
.recipe__act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.recipe__act--primary {
  background: rgba(96, 120, 86, 0.14);
  border-color: rgba(96, 120, 86, 0.28);
  color: #3F5A34;
}
.recipe__act:active,
.recipe__act--primary:active {
  transform: none;
}

.recipe-edit { gap: 10px; }
.recipe-edit .univ-field { margin-bottom: 0; }
.recipe-edit__cols {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recipe-edit__stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 3px;
}
.recipe-edit__step-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(43, 30, 63, 0.08);
}
.recipe-edit__step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.recipe-edit__step-btn:active { transform: none; }
.recipe-edit__step-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--night);
}

.recipe-edit__section { margin-top: 2px; }
.recipe-edit__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.recipe-edit__add {
  border: none;
  background: none;
  color: #3F5A34;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px;
}
.recipe-edit__add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.recipe-edit__add:active { transform: none; }

.recipe-edit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recipe-edit__ing {
  display: grid;
  grid-template-columns: 52px 54px 1fr auto;
  gap: 6px;
  align-items: center;
}
.recipe-edit__qty,
.recipe-edit__unit {
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center;
  font-size: 13px !important;
}
.recipe-edit__name {
  font-size: 13px !important;
}
.recipe-edit__step {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 6px;
  align-items: start;
}
.recipe-edit__n {
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
}
.recipe-edit__step-input {
  resize: none;
  overflow: hidden;
  min-height: 36px;
  line-height: 1.35;
  font-size: 13px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  field-sizing: content;
}
.recipe-edit__rm {
  border: none;
  background: none;
  color: var(--ink-faint);
  padding: 4px;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recipe-edit__rm:hover { color: #8a4545; }
.recipe-edit__rm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.recipe-edit__rm:active { transform: none; }

@media (max-width: 380px) {
  .recipe-edit__ing {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas:
      "qty unit rm"
      "name name name";
  }
  .recipe-edit__qty { grid-area: qty; }
  .recipe-edit__unit { grid-area: unit; }
  .recipe-edit__name { grid-area: name; }
  .recipe-edit__ing .recipe-edit__rm { grid-area: rm; }
}

/* Web / desktop : 2 colonnes */
.viewport--desktop .recipe__cols {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.1fr);
  gap: 18px 28px;
  align-items: start;
  margin-bottom: 4px;
}
.viewport--desktop .recipe__cols .recipe__block {
  margin-bottom: 0;
}
.viewport--desktop .recipe__cols .recipe__block:first-child {
  padding-right: 20px;
  border-right: 1px solid var(--line-soft);
}

.viewport--desktop .modal-sheet.recipe-edit {
  width: min(100%, 760px);
}
.viewport--desktop .recipe-edit__cols {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.05fr);
  gap: 14px 20px;
  align-items: start;
}
.viewport--desktop .recipe-edit__cols .recipe-edit__section:first-child {
  padding-right: 16px;
  border-right: 1px solid var(--line-soft);
}
