/* ————— Rimo — tokens ————— */
/* Direction artistique : « ligne claire imprimée ».
   Un seul trait d'encre marine, des aplats de couleur volontairement
   décalés de 2 à 3 px — comme un calage d'impression raté. */
:root {
  --voile: #F1E7D6;      /* papier — fond de l'app */
  --carte: #FDF8EF;      /* papier clair — cartes */
  --encre: #1B2A4A;      /* encre marine — traits et texte */
  --encre-2: #5F6E88;    /* encre atténuée */
  --grenadine: #E8503A;  /* rouge d'imprimerie — action */
  --grenadine-fonce: #C43E2B;
  --menthe: #3D6FD6;     /* bleu — similarité */
  --menthe-pale: #DEE7FB;
  --soleil: #C98A1F;     /* ocre — rendez-vous */
  --soleil-pale: #F6E7C2;
  --nuit: #1B2A4A;       /* panneaux encre */
  --rose-pale: #FADFD8;
  --trait: #BFC7D6;      /* filets fins */
  --fond-page: #16223C;
  --sur-encre: #FDF8EF;  /* texte posé sur un aplat d'encre */
  --lc-op: .72;          /* opacité du corps des oiseaux (calage) */
  --lc-decal: 2.4px;     /* décalage des plaques de couleur */
  --grain: .08;
  /* la plaque fantôme derrière les gros titres */
  --plaque-titre: color-mix(in srgb, var(--grenadine) 34%, var(--voile));
  /* rayons « coupés à la main » — jamais deux coins pareils */
  --wob-l: 26px 19px 28px 17px / 19px 27px 18px 29px;
  --wob-m: 19px 14px 21px 13px / 14px 20px 13px 21px;
  --wob-s: 13px 9px 14px 8px / 9px 13px 8px 14px;
  --venn-blend: multiply;
  --r: 22px;
  --font-display: "Young Serif", "Iowan Old Style", serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --voile: #0E1626;
    --carte: #17223B;
    --encre: #F4EDE0;
    --encre-2: #9CA9C2;
    --grenadine: #FF6A50;
    --grenadine-fonce: #E8503A;
    --menthe: #7FA5F5;
    --menthe-pale: #1F2E4E;
    --soleil: #E8B75C;
    --soleil-pale: #3B2F14;
    --nuit: #060C18;
    --rose-pale: #48231C;
    --trait: #2E3A55;
    --fond-page: #070C16;
    --sur-encre: #101A2E;
    --lc-op: .92;
    --grain: .11;
    --plaque-titre: color-mix(in srgb, #FF6A50 42%, #0E1626);
    --venn-blend: screen;
  }
}
:root[data-theme="dark"] {
  --voile: #0E1626;
  --carte: #17223B;
  --encre: #F4EDE0;
  --encre-2: #9CA9C2;
  --grenadine: #FF6A50;
  --grenadine-fonce: #E8503A;
  --menthe: #7FA5F5;
  --menthe-pale: #1F2E4E;
  --soleil: #E8B75C;
  --soleil-pale: #3B2F14;
  --nuit: #060C18;
  --rose-pale: #48231C;
  --trait: #2E3A55;
  --fond-page: #070C16;
  --sur-encre: #101A2E;
  --lc-op: .92;
  --grain: .11;
  --plaque-titre: color-mix(in srgb, #FF6A50 42%, #0E1626);
  --venn-blend: screen;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--fond-page);
  color: var(--encre);
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

/* cadre "téléphone" */
.phone {
  width: min(430px, 100vw);
  min-height: 100dvh;
  background: var(--voile);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: clip;
}
/* fibre du papier — très légère, par-dessus tout, non cliquable */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .phone::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone::after { mix-blend-mode: screen; }
}

/* ————— les inséparables, en ligne claire —————
   Un trait d'encre unique ; l'aplat de couleur est une plaque
   posée dessous et décalée, comme un calage d'impression raté. */
.lc { color: var(--encre); }
.lc-plaque { transform: translate(var(--lc-decal), calc(var(--lc-decal) + .4px)); }
.lc-t, .lc-fil {
  fill: none;
  stroke: currentColor;
  stroke-width: calc(1.6 * var(--lcw, 1));
  stroke-linecap: round;
}
.lc-t2 { fill: none; stroke: currentColor; stroke-width: calc(1.35 * var(--lcw, 1)); stroke-linecap: round; }
.lc-t3 { fill: none; stroke: currentColor; stroke-width: calc(1.1 * var(--lcw, 1)); stroke-linecap: round; opacity: .85; }
.lc-corps {
  fill: var(--carte);
  fill-opacity: var(--lc-op);
  stroke: currentColor;
  stroke-width: calc(1.6 * var(--lcw, 1));
}
.lc-bec {
  fill: var(--grenadine);
  stroke: currentColor;
  stroke-width: calc(1.1 * var(--lcw, 1));
  stroke-linejoin: round;
}
.lc-coeur { fill: var(--grenadine); }
.lc-fil-plaque {
  fill: none;
  stroke: var(--grenadine);
  stroke-width: calc(3 * var(--lcw, 1));
  stroke-linecap: round;
}
@media (min-width: 500px) {
  body { padding: 24px 0; }
  .phone {
    min-height: calc(100dvh - 48px);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
  }
}

/* ————— entête ————— */
.topbar {
  padding: 20px 22px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--encre);
}
.lc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-oiseaux { width: 52px; height: 37px; --lcw: 1.9; }
.tagline { font-size: .78rem; color: var(--encre-2); text-align: right; }
.theme-btn {
  border: 1.5px solid var(--trait);
  background: var(--carte);
  color: var(--encre-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  transition: transform .2s ease;
}
.theme-btn:active { transform: rotate(180deg); }
.theme-btn svg { width: 17px; height: 17px; display: block; margin: 0 auto; }

/* ————— vue principale ————— */
.view {
  flex: 1;
  overflow-y: auto;
  padding: 6px 18px 96px;
  scrollbar-width: thin;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.screen-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 10px 2px 6px;
  letter-spacing: -.02em;
}
/* filet de calage raté : un trait d'encre, et sa plaque rouge qui a glissé */
.screen-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 7px;
  margin-top: 3px;
  background:
    linear-gradient(var(--grenadine), var(--grenadine)) 3px 4.5px / 56px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 .5px / 56px 2px no-repeat;
}
.screen-sub { color: var(--encre-2); font-size: .92rem; margin: 0 2px 18px; }
.hint-swipe { color: var(--grenadine); font-weight: 600; }

/* ————— onboarding ————— */
.onb { padding-top: 8px; animation: rise .4s ease both; }
.onb-prog { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; }
.pdot { width: 26px; height: 5px; border-radius: 999px; background: var(--trait); transition: background .25s ease; }
.pdot.is-on { background: var(--grenadine); }
.plab { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--encre-2); }
.etape { display: none; }
.etape.is-active { display: block; animation: rise .3s ease both; }
.onb-nav { display: flex; gap: 10px; margin-top: 14px; }
.onb-nav .btn-primary { flex: 1; width: auto; }
.onb-nav [hidden] { display: none; }
.onb .big { font-size: 2rem; font-weight: 600; line-height: 1.1; margin-bottom: 8px; }
.onb .big em { font-style: normal; color: var(--grenadine); }
.field { margin: 18px 0; }
.field > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field small { display: block; color: var(--encre-2); font-weight: 400; margin-top: 2px; }
input[type="text"], input[type="number"], input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--trait);
  border-radius: 14px;
  background: var(--carte);
  font: inherit;
  color: inherit;
}
input:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--grenadine);
  outline-offset: 2px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ville-row { display: flex; gap: 8px; align-items: center; }
.ville-row input { flex: 1; }
.rdv-place a { color: var(--menthe); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--trait);
  background: var(--carte);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s ease;
  color: var(--encre);
}
.chip.is-on { background: var(--encre); border-color: var(--encre); color: var(--voile); }
.chip.is-on.chip-mint { background: var(--menthe); border-color: var(--menthe); color: #fff; }

.duo-q { margin: 14px 0; }
.duo-q p { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.duo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo-opts .chip { text-align: center; padding: 11px 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
/* le principal : contour d'encre + plaque rouge décalée dessous */
.btn-primary {
  background: var(--carte);
  color: var(--encre);
  border: 1.6px solid var(--encre);
  width: 100%;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 2.5px 3px 0 var(--grenadine);
}
.btn-primary:hover { background: var(--menthe-pale); }
.btn-primary:active { transform: translate(1.5px, 2px) scale(.99); box-shadow: 1px 1px 0 var(--grenadine); }
.btn-primary:disabled {
  background: var(--voile);
  color: var(--encre-2);
  border-color: var(--trait);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost { background: transparent; color: var(--encre-2); border: 1.5px solid var(--trait); }
.btn-mint { background: var(--menthe); color: #FDFCF5; }
.btn-mini { padding: 9px 16px; font-size: .86rem; width: auto; box-shadow: none; }
.btn-mini.btn-primary { box-shadow: 2px 2.5px 0 var(--grenadine); }

/* ————— carte profil (découvrir) ————— */
.deck { position: relative; }
.pcard {
  background: var(--carte);
  border-radius: calc(var(--r) + 6px);
  border: 1.6px solid var(--encre);
  overflow: hidden;
  animation: rise .35s ease both;
  box-shadow: 3px 3.5px 0 var(--menthe);
  position: relative;
  touch-action: pan-y;
  user-select: none;
}
/* tampons encreurs, cousins du « coup de cœur » */
.stamp {
  position: absolute;
  top: 20px;
  padding: 7px 14px;
  border: 2.5px dashed;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  background: color-mix(in srgb, var(--carte) 88%, transparent);
}
.stamp-like { right: 14px; color: var(--grenadine); border-color: var(--grenadine); transform: rotate(9deg); }
.stamp-pass { left: 14px; color: var(--encre-2); border-color: var(--encre-2); transform: rotate(-9deg); }

.liked-banner {
  background: var(--rose-pale);
  color: var(--grenadine);
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  padding: 8px 12px;
}
.banner-reel { background: var(--soleil-pale); color: #9A6B14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner-reel { color: #F0C36A; } }
:root[data-theme="dark"] .banner-reel { color: #F0C36A; }

.mentions {
  font-size: .78rem;
  color: var(--encre-2);
  text-align: center;
  margin: 16px 6px 4px;
  line-height: 1.5;
}
.mentions code, code {
  font-family: ui-monospace, monospace;
  background: var(--trait);
  padding: 1px 6px;
  border-radius: 6px;
}

/* zone visuelle immersive de la carte Découvrir */
.pcard-visuel {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
/* aplat d'encre + trame de points, à la place du dégradé */
.pv-encre {
  background-color: color-mix(in srgb, var(--i) 17%, var(--carte));
  background-image: radial-gradient(color-mix(in srgb, var(--i) 32%, transparent) 1.3px, transparent 1.4px);
  background-size: 13px 13px;
}
.pv-emoji {
  font-size: 5.5rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18));
}
.avatar-encre {
  background-color: color-mix(in srgb, var(--i) 22%, var(--carte));
  box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--i) 55%, transparent);
}
.pv-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-badge {
  background: color-mix(in srgb, var(--carte) 94%, transparent);
  color: var(--grenadine-fonce);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.pv-reel { color: var(--soleil); }
.pv-id {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 18px 14px;
  background: linear-gradient(transparent, rgba(16, 26, 46, .86));
  color: #FDF8EF;
}
.pv-nom {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.pv-job { font-size: .88rem; opacity: .92; margin-top: 2px; }
.pv-id .pronoms-tag { background: rgba(255, 255, 255, .22); color: #fff; }

.pcard-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 4px; }
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  flex-shrink: 0;
  position: relative;
}
.avatar-photo {
  background-size: cover;
  background-position: center;
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-wrap .avatar { width: 50px; height: 50px; }
.photo-actions { display: flex; gap: 8px; margin: 4px 0 6px; flex-wrap: wrap; }

/* accueil épuré : le vélo, une phrase, deux boutons */
.accueil {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  animation: rise .4s ease both;
  position: relative;
}
.accueil > :not(.decor) { position: relative; z-index: 1; }

/* fond vivant : halos qui dérivent + anneaux flottants */
.decor {
  position: absolute;
  inset: -20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.decor .trame,
.decor .anneau {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  animation: derive var(--d) ease-in-out infinite alternate;
}
/* aplats en trame de points — un imprimeur ne floute pas */
.decor .trame {
  opacity: var(--o, .25);
  background-image: radial-gradient(var(--c) 1.15px, transparent 1.25px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
}
.decor .anneau {
  border: 1.6px solid var(--c);
  opacity: .55;
}
@keyframes derive {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, -32px) scale(1.12); }
}
.accueil-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
  padding: 30px 0 40px;
}
.accueil-hero .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.12;
}
.accueil-hero .big em { font-style: normal; color: var(--grenadine); }
.hero-oiseaux {
  width: min(258px, 70vw);
  color: var(--encre);
  animation: roule 4.5s ease-in-out infinite;
}
@keyframes roule {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}
/* les deux petits cœurs qui montent au-dessus des becs */
.lc-fl1, .lc-fl2 { transform-box: fill-box; animation: monte 3.4s ease-in-out infinite; }
.lc-fl2 { animation-delay: -1.7s; }
@keyframes monte {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(-4.5px); opacity: 1; }
}

.pcard-id .name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.pcard-id .meta { color: var(--encre-2); font-size: .88rem; }
.pronoms-tag {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  color: var(--menthe);
  background: var(--menthe-pale);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 4px;
}

.pcard-bio { padding: 10px 18px 2px; font-size: .95rem; line-height: 1.5; }

/* le Venn de compatibilité — signature */
.venn-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 18px;
  padding: 12px 14px;
  background: var(--menthe-pale);
  border-radius: 16px;
}
.venn-btn {
  border: 0;
  width: calc(100% - 36px);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.venn { width: 74px; height: 44px; flex-shrink: 0; }
.venn circle, .venn-big circle { mix-blend-mode: var(--venn-blend); }
.venn-a { fill: var(--grenadine); opacity: .82; }
.venn-b { fill: var(--menthe); opacity: .82; }
.venn-label { font-size: .85rem; line-height: 1.35; }
.venn-label b { font-family: var(--font-display); font-size: 1.05rem; color: var(--menthe); }
.venn-label u { text-underline-offset: 2px; }

.commun { padding: 0 18px 6px; }
.commun-t {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--encre-2);
  margin-bottom: 8px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .82rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--voile);
  border: 1px solid var(--trait);
}
.tag.is-shared {
  background: var(--menthe-pale);
  border-color: transparent;
  color: var(--menthe);
  font-weight: 600;
}

/* deux pastilles rondes : passer (croix discrète) et rencontrer (cœur imprimé) */
.pcard-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 10px 18px 18px;
}
.btn-rond {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--carte);
  border: 1.7px solid var(--encre);
  cursor: pointer;
  transition: transform .12s ease;
}
.btn-rond:active { transform: translate(1.5px, 2px); }
.btn-passer {
  width: 54px;
  height: 54px;
  color: var(--encre-2);
  border-color: color-mix(in srgb, var(--encre) 55%, var(--voile));
  box-shadow: 2.5px 3px 0 var(--trait);
}
.btn-passer:hover { color: var(--encre); }
.btn-passer:active { box-shadow: 1px 1px 0 var(--trait); }
.btn-passer svg { width: 22px; height: 22px; }
.btn-coeur {
  width: 62px;
  height: 62px;
  box-shadow: 3px 3.5px 0 var(--grenadine);
  transform: rotate(-2deg);
}
.btn-coeur:hover { background: var(--rose-pale); }
.btn-coeur:active { transform: rotate(-2deg) translate(1.5px, 2px); box-shadow: 1px 1px 0 var(--grenadine); }
.btn-coeur svg { width: 30px; height: 26px; margin-top: 2px; }

.deck-empty { text-align: center; padding: 60px 20px; color: var(--encre-2); }
.deck-empty .glyph { font-size: 2.6rem; margin-bottom: 12px; }

/* deux cercles qui se cherchent — état vide */
.empty-venn { width: 168px; height: 119px; margin: 0 auto 14px; display: block; color: var(--encre); }

/* squelettes de chargement */
.skeleton { pointer-events: none; }
.sk-l {
  height: 14px;
  border-radius: 8px;
  margin: 9px 0;
  background: linear-gradient(90deg, var(--trait) 25%, color-mix(in srgb, var(--trait) 45%, var(--carte)) 50%, var(--trait) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.sk-c { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ————— barres de compatibilité (détail) ————— */
.bar-row { margin: 14px 2px; }
.bar-top {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.bar-top b { color: var(--menthe); font-family: var(--font-display); }
.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--trait);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grenadine), var(--menthe));
  animation: growbar .8s cubic-bezier(.2,.8,.3,1) both;
}
.bar-note { font-size: .8rem; color: var(--encre-2); margin-top: 5px; }
.learn-note {
  font-size: .82rem;
  color: var(--menthe);
  background: var(--menthe-pale);
  border-radius: 12px;
  padding: 10px 13px;
  margin: 14px 0;
}

/* ————— matchs ————— */
.match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--carte);
  border: 1.6px solid var(--encre);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 14px;
  animation: rise .3s ease both;
  box-shadow: 2.5px 3px 0 color-mix(in srgb, var(--menthe) 42%, var(--voile));
}
.match-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.match-item .avatar { width: 50px; height: 50px; font-size: 1.5rem; border-radius: 16px; }
.match-txt { min-width: 0; }
.mi-name { font-weight: 600; }
.mi-pct { color: var(--menthe); font-size: .8rem; font-weight: 600; }
.mi-sub {
  font-size: .84rem;
  color: var(--encre-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spacer { flex: 1; }
.badge-rdv {
  font-size: .78rem;
  font-weight: 700;
  background: var(--soleil-pale);
  color: #8A5E10;
  border: 1.4px solid color-mix(in srgb, var(--soleil) 65%, var(--soleil-pale));
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-rdv { color: #F0C36A; } }
:root[data-theme="dark"] .badge-rdv { color: #F0C36A; }
.badge-todo { background: var(--rose-pale); color: var(--grenadine); }
.unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--grenadine);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ————— rendez-vous ————— */
.rdv-card {
  background: var(--carte);
  border: 1.5px solid var(--trait);
  border-radius: calc(var(--r) + 4px);
  margin-bottom: 14px;
  overflow: hidden;
  animation: rise .3s ease both;
}
.rdv-band {
  background: var(--nuit);
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rdv-band .duo { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.rdv-band .duo em { font-style: normal; color: var(--soleil); padding: 0 4px; }
.rdv-when { font-size: .8rem; color: var(--soleil); font-weight: 600; white-space: nowrap; }
.rdv-body { padding: 14px 18px 16px; }
.rdv-title { font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.rdv-place { color: var(--encre-2); font-size: .88rem; margin-bottom: 8px; }
.rdv-status {
  font-size: .84rem;
  font-weight: 600;
  color: var(--encre-2);
  margin-bottom: 10px;
}
.rdv-status.ok { color: var(--menthe); }
.icebreaker {
  background: var(--rose-pale);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: .88rem;
  line-height: 1.45;
}
.icebreaker b { color: var(--grenadine); }
.rdv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ————— profil ————— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  background: var(--carte);
  border: 1.6px solid var(--encre);
  border-radius: var(--r);
  padding: 12px 8px;
  text-align: center;
  animation: rise .3s ease both;
  box-shadow: 2px 2.5px 0 color-mix(in srgb, var(--grenadine) 40%, var(--voile));
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--grenadine); }
.stat span { font-size: .76rem; color: var(--encre-2); }
.me-card {
  background: var(--carte);
  border: 1.6px solid var(--encre);
  border-radius: calc(var(--r) + 4px);
  padding: 20px;
  animation: rise .3s ease both;
  box-shadow: 3px 3.5px 0 color-mix(in srgb, var(--menthe) 42%, var(--voile));
}
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.me-sec { margin-top: 16px; }

/* ————— modales ————— */
.modal-root[hidden] { display: none; }
.modal-root {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(27, 23, 48, .55);
  backdrop-filter: blur(3px);
  z-index: 50;
  animation: fade .25s ease both;
}
.modal {
  width: min(430px, 100vw);
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--voile);
  border-radius: 28px 28px 0 0;
  padding: 26px 22px 30px;
  animation: slideup .35s cubic-bezier(.2,.9,.3,1) both;
}
@media (min-width: 500px) {
  .modal { border-radius: 28px; margin-bottom: 4vh; }
}

.match-hero { text-align: center; padding: 6px 0 4px; position: relative; }
/* le tampon de l'imprimeur, apposé en coin quand ça matche */
.tampon-coeur {
  position: absolute;
  top: -6px;
  right: 2px;
  width: 74px;
  height: 74px;
  border: 1.6px solid var(--grenadine);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .76rem;
  line-height: 1.15;
  text-align: center;
  color: var(--grenadine);
  transform: rotate(11deg);
  animation: tamponne .45s cubic-bezier(.2, 1.6, .4, 1) both .7s;
}
@keyframes tamponne {
  from { transform: rotate(11deg) scale(2.2); opacity: 0; }
  to { transform: rotate(11deg) scale(1); opacity: 1; }
}
.match-hero .venn-big { width: 150px; height: 92px; }
.venn-big.venn-anim circle {
  animation-duration: 1.15s;
  animation-timing-function: cubic-bezier(.25, 1.4, .35, 1);
}
.duo-names { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 6px 0 2px; }
.duo-names em { font-style: normal; color: var(--grenadine); padding: 0 6px; }
.match-hero .sub, .confirm-hero .sub { color: var(--encre-2); font-size: .92rem; margin-bottom: 8px; }

.props-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 18px 2px 10px;
  text-transform: uppercase;
  letter-spacing: .015em;
}
.prop {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--carte);
  border: 1.5px solid var(--trait);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .12s ease;
}
.prop:hover { border-color: var(--grenadine); }
.prop:active { transform: scale(.985); }
.prop .p-emoji { font-size: 1.3rem; margin-right: 8px; }
.prop .p-title { font-weight: 600; }
.prop .p-why { font-size: .84rem; color: var(--menthe); font-weight: 600; margin-top: 3px; }
.prop .p-slot { font-size: .84rem; color: var(--encre-2); margin-top: 3px; }

.modal .btn-ghost { width: 100%; margin-top: 6px; }
.modal .btn-mini, .modal .chat-input .btn { width: auto; margin-top: 0; }

.confirm-hero { text-align: center; padding: 10px 0; }
.confirm-hero .glyph { font-size: 3rem; }
.debrief-opts { margin-top: 8px; }

/* ————— messagerie ————— */
.chat-head { display: flex; align-items: center; gap: 12px; }
.chat-head .btn-ghost { width: auto; margin: 0; }
.chat-note {
  font-size: .8rem;
  color: var(--encre-2);
  text-align: center;
  margin: 12px 0;
}
.chat-log {
  height: min(44dvh, 380px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.bub {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.4;
  animation: rise .25s ease both;
}
/* mes messages : imprimés à l'encre pleine */
.bub-moi {
  align-self: flex-end;
  background: var(--encre);
  color: var(--sur-encre);
  border-bottom-right-radius: 5px;
  box-shadow: 2px 2.5px 0 color-mix(in srgb, var(--grenadine) 45%, var(--voile));
}
.bub-eux {
  align-self: flex-start;
  background: var(--carte);
  border: 1.5px solid var(--trait);
  border-bottom-left-radius: 5px;
}
.bub-t { display: inline-block; font-size: .68rem; opacity: .65; margin-left: 8px; }
.bub-typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--encre-2);
  animation: typing 1s ease infinite;
}
.bub-typing i:nth-child(2) { animation-delay: .15s; }
.bub-typing i:nth-child(3) { animation-delay: .3s; }
.chat-input { display: flex; gap: 8px; margin-top: 6px; }
.chat-input input { flex: 1; }

/* ————— barre d'onglets ————— */
.tabbar[hidden] { display: none; }
.tabbar {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  background: color-mix(in srgb, var(--nuit) 94%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 2.5px 3px 0 var(--grenadine), 0 10px 30px rgba(0, 0, 0, .22);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom) / 2);
}
.tabbar button {
  flex: 1;
  border: 0;
  background: none;
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  color: #98A6C0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 999px;
  position: relative;
}
.tabbar button.is-active { color: var(--soleil); }
.tabbar .tab-ico { line-height: 0; }
.tabbar .tab-ico svg { width: 21px; height: 21px; display: block; }
.tab-badge {
  position: absolute;
  top: 0;
  right: 22%;
  background: var(--grenadine);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ————— toast ————— */
.toast {
  position: absolute;
  left: 50%;
  /* sous l'entête, jamais sur les pastilles d'action du bas (retour de
     Baptiste : l'étiquette masquait croix / retour / cœur) */
  top: calc(64px + env(safe-area-inset-top));
  transform: translateX(-50%);
  background: var(--nuit);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .88rem;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 60;
  animation: toastin .3s ease both;
}

/* ————— confettis ————— */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  animation: confall var(--d) ease-in var(--delay) forwards;
}

/* ————— animations ————— */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideup { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -8px) rotate(-.6deg); } to { opacity: 1; transform: translate(-50%, 0) rotate(-.6deg); } }
@keyframes growbar { from { width: 0; } }
@keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes confall { to { transform: translateY(105vh) rotate(var(--r, 540deg)); opacity: .85; } }
@keyframes vennmerge { from { transform: translateX(var(--from, 0)); } to { transform: translateX(0); } }
.venn-anim circle { animation: vennmerge .9s cubic-bezier(.2,.8,.3,1) both .15s; }

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

/* ————— passe caractère : rien n'est posé bien droit —————
   Tout ce qui sort d'une presse a un défaut : coins coupés à la main,
   éléments collés légèrement de travers, plaque fantôme derrière les
   titres, repère de calage dans la marge. Les rotations restent < 1,5°
   pour que la lisibilité ne bouge pas. */

/* gros titres : la plaque rouge a glissé, le bloc est collé de travers */
.screen-title {
  display: inline-block;
  font-size: 2.05rem;
  transform: rotate(-1.2deg);
  text-shadow: 3px 2.5px 0 var(--plaque-titre);
}
.accueil-hero .big, .onb .big {
  transform: rotate(-1deg);
  text-shadow: 3px 2.5px 0 var(--plaque-titre);
}

/* coins irréguliers */
.pcard { border-radius: var(--wob-l); }
.rdv-card { border-radius: var(--wob-l); }
.me-card { border-radius: var(--wob-l); transform: rotate(-.3deg); }
.match-item { border-radius: var(--wob-m); }
.stat { border-radius: var(--wob-m); }
.btn { border-radius: var(--wob-m); }
.chip { border-radius: var(--wob-s); }
.icebreaker { border-radius: var(--wob-s); }
.liked-banner { border-radius: var(--wob-s); }
input[type="text"], input[type="number"] { border-radius: var(--wob-s); }
.bub-eux { border-radius: 16px 14px 15px 5px / 13px 16px 12px 6px; }
.bub-moi { border-radius: 15px 16px 5px 14px / 16px 13px 6px 15px; }

/* collé à la main : chaque pièce penche un peu, jamais du même côté */
.btn-primary { transform: rotate(-.5deg); }
.btn-primary:active { transform: rotate(-.5deg) translate(1.5px, 2px) scale(.99); box-shadow: 1px 1px 0 var(--grenadine); }
.accueil .btn-ghost { transform: rotate(.45deg); }
.match-item:nth-of-type(odd) { transform: rotate(.4deg); }
.match-item:nth-of-type(even) { transform: rotate(-.35deg); }
.rdv-card:nth-of-type(odd) { transform: rotate(.35deg); }
.rdv-card:nth-of-type(even) { transform: rotate(-.3deg); }
.stat:nth-child(1) { transform: rotate(-.7deg); }
.stat:nth-child(2) { transform: rotate(.5deg); }
.stat:nth-child(3) { transform: rotate(-.4deg); }
.chips .chip:nth-child(odd), .tags .tag:nth-child(odd) { transform: rotate(.6deg); }
.chips .chip:nth-child(even), .tags .tag:nth-child(even) { transform: rotate(-.6deg); }
.icebreaker { transform: rotate(-.35deg); }

/* le bloc « Vous rimez à X % » devient un autocollant à découper */
.venn-btn {
  border: 1.7px dashed var(--menthe);
  border-radius: 16px 13px 17px 12px / 13px 16px 12px 17px;
  transform: rotate(.5deg);
}

/* ————— l'accueil est une affiche ————— */
.affiche {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 600;
  font-size: clamp(2.35rem, 10.5vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -.02em;
  transform: rotate(-1.3deg);
  text-align: left;
}
.af-l { display: block; }
.affiche .af-l:nth-child(1),
.affiche .af-l:nth-child(3),
.affiche .af-l:nth-child(4) { text-shadow: 3.5px 3px 0 var(--plaque-titre); }
/* la ligne où l'encre n'est pas passée : contour seul */
.af-creux {
  color: transparent;
  -webkit-text-stroke: 2px var(--encre);
}
@supports not (-webkit-text-stroke: 2px black) { .af-creux { color: var(--encre); } }
.affiche em {
  font-style: normal;
  color: var(--grenadine);
  text-shadow: 3.5px 3px 0 color-mix(in srgb, var(--menthe) 30%, var(--voile));
}
.accueil-hero { align-items: flex-start; text-align: left; gap: 10px; padding: 14px 2px 26px; }
.hero-oiseaux { align-self: center; width: min(295px, 80vw); margin-top: 2px; }
.accueil .btn-primary { padding: 17px 26px; font-size: 1.08rem; box-shadow: 4px 4.5px 0 var(--grenadine); }

/* ————— la tabbar est une réglette de casse ————— */
.tabbar {
  border-radius: 15px 11px 16px 10px / 11px 15px 10px 16px;
  transform: rotate(-.35deg);
}
.tabbar button { border-radius: 10px; }
.tabbar button:not(:first-child) {
  border-left: 1px solid color-mix(in srgb, #F4EDE0 14%, transparent);
}
.tabbar button.is-active {
  background: color-mix(in srgb, #F4EDE0 9%, transparent);
  border-radius: 11px 8px 12px 7px / 8px 11px 7px 12px;
  transform: rotate(-.9deg);
}

/* ————— au chargement, la plaque couleur se cale ————— */
@keyframes imprime {
  from { text-shadow: 0 0 0 var(--plaque-titre); }
}
.screen-title,
.onb .big,
.affiche .af-l:nth-child(1),
.affiche .af-l:nth-child(3),
.affiche .af-l:nth-child(4) {
  animation: imprime .55s cubic-bezier(.3, .7, .3, 1) both .1s;
}

/* ————— passe typo « Young Serif + Karla » —————
   Le vieux plomb n'existe qu'en un seul poids : tout ce qui est en
   Young Serif repasse en 400 (pas de gras synthétique), et les tailles
   sont rééquilibrées — le plomb paraît plus gros que la Fredoka.
   Deux voix : le sérif raconte (titres, prénoms, chiffres),
   Karla pilote (boutons, onglets, étiquettes). */
h1, h2, h3 { letter-spacing: -.01em; }
.logo, .screen-title, .onb .big, .affiche,
.pcard-id .name, .venn-label b, .bar-top b, .rdv-band .duo,
.stat b, .duo-names, .m-phrase { font-weight: 400; }

.logo { font-size: 1.3rem; }
.screen-title { font-size: 1.85rem; }
.onb .big { font-size: 1.8rem; }
.affiche {
  font-size: clamp(2.1rem, 9.6vw, 2.5rem);
  line-height: 1.07;
  letter-spacing: -.005em;
  gap: 4px;
}
.af-creux { -webkit-text-stroke-width: 1.6px; }
.pcard-id .name { font-size: 1.28rem; }
.stat b { font-size: 1.35rem; }
.duo-names { font-size: 1.45rem; }

/* le grand bouton parle aussi en plomb, comme sur la planche B */
.btn-primary {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .005em;
}

/* ————— phrase de secours & lien discret ————— */
.phrase-secours {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
  text-align: center;
  color: var(--encre);
  background: var(--carte);
  border: 2px dashed var(--grenadine);
  border-radius: var(--wob-s);
  padding: 16px 12px;
  margin-top: 14px;
  transform: rotate(-.4deg);
  user-select: all;
}
.lien-discret {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien-discret:hover { color: var(--grenadine); }

/* ————— chaque profil est un oiseau ————— */
.pv-oiseau { width: min(76%, 292px); }
.avatar-oiseau { width: 100%; height: 100%; display: block; padding: 3px; box-sizing: border-box; }
.duo-oiseaux { width: min(238px, 72%); display: block; margin: 2px auto 0; }
.duo-oiseaux .lc-fl1, .duo-oiseaux .lc-fl2 { transform-box: fill-box; animation: monte 3.4s ease-in-out infinite; }
.duo-oiseaux .lc-fl2 { animation-delay: -1.7s; }

/* l'étiquette naturaliste : le nom épinglé sur la planche, pas de bandeau sombre */
.pv-id.pv-etiquette {
  left: 14px;
  right: auto;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 15px 10px;
  background: var(--carte);
  border: 1.6px solid var(--encre);
  border-radius: var(--wob-s);
  box-shadow: 2.5px 3px 0 color-mix(in srgb, var(--i) 55%, var(--carte));
  transform: rotate(-1deg);
  color: var(--encre);
}
.pv-etiquette .pv-job { color: var(--encre-2); }
.pv-etiquette .pv-nom { font-size: 1.28rem; font-weight: 400; }
.pv-id.pv-etiquette .pronoms-tag { background: var(--menthe-pale); color: var(--menthe); }

/* ————— passe billetterie & petits oiseaux ————— */

/* l'onboarding avance sur un fil : un oiseau se pose à chaque étape */
.fil-prog { width: 138px; height: 32px; overflow: visible; flex-shrink: 0; }
.fp-fil { fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-linecap: round; opacity: .75; }
.fp-o { opacity: .22; transition: opacity .3s ease; }
.fp-o.is-fait, .fp-o.is-la { opacity: 1; }
.fp-o.is-la { animation: fp-bob 2.6s ease-in-out infinite; }
@keyframes fp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* le rendez-vous est un billet imprimé */
.rdv-card {
  border: 1.6px solid var(--encre);
  box-shadow: 3px 3.5px 0 color-mix(in srgb, var(--soleil) 45%, var(--voile));
}
.rdv-when { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.rdv-title { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; }
.billet-decoupe {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.billet-decoupe::before, .billet-decoupe::after {
  content: "";
  flex: 1;
  border-top: 1.7px dashed var(--trait);
}
/* les encoches perforées du billet, à cheval sur le bord */
.encoche {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--voile);
  border: 1.6px solid var(--encre);
  border-radius: 50%;
  transform: translateY(-50%);
}
.encoche.eg { left: -10px; }
.encoche.ed { right: -10px; }

/* les propositions de la modale match : des mini-billets */
.prop {
  border: 1.5px solid var(--encre);
  border-radius: var(--wob-m);
  box-shadow: 2.5px 3px 0 color-mix(in srgb, var(--menthe) 38%, var(--carte));
}
.prop:nth-child(odd) { transform: rotate(.35deg); }
.prop:nth-child(even) { transform: rotate(-.3deg); }
.p-slot { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }

/* le toast est une étiquette imprimée */
.toast {
  background: var(--carte);
  color: var(--encre);
  border: 1.6px solid var(--encre);
  border-radius: var(--wob-s);
  box-shadow: 2.5px 3px 0 var(--grenadine);
  font-weight: 600;
}

/* ————— Découvrir compact : le score et les goûts en deux lignes fines ————— */
.venn-mini { width: 44px; height: 27px; flex-shrink: 0; }
.rime-ligne {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 4px 18px 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rime-ligne b { font-family: var(--font-display); font-weight: 400; font-size: 1rem; color: var(--menthe); }
.rl-lien {
  font-size: .8rem;
  color: var(--encre-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rime-ligne:hover .rl-lien { color: var(--grenadine); }
/* ses goûts, en une ligne de texte — les points communs ressortent en bleu */
.aime-ligne {
  padding: 5px 18px 14px;
  font-size: .85rem;
  color: var(--encre-2);
  line-height: 1.6;
}
.aime-ligne b { font-weight: 700; color: var(--menthe); }
/* la scène respire un peu moins haut, les boutons remontent au-dessus du pli */
.pcard-visuel { height: 296px; }
.pcard-bio { padding: 10px 18px 0; font-size: .93rem; }

/* ————— la fiche du profil : deux lignes étiquetées, comme un colophon ————— */
.fiche {
  padding: 8px 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fiche-l { display: flex; align-items: flex-start; gap: 11px; }
.fl-cle {
  flex: 0 0 3em;
  padding-top: .3em;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.fl-val { flex: 1; min-width: 0; }
.fl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.fl-btn b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--encre); }
.fl-aime { font-size: .87rem; color: color-mix(in srgb, var(--encre) 78%, var(--voile)); line-height: 1.55; }
.fl-aime b { font-weight: 700; color: var(--menthe); }

/* ————— Découvrir apaisé : la carte est seule en scène ————— */
.deck-legende {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-2);
  text-align: center;
  margin: 12px 0 12px;
}
.pcard-id { padding: 14px 18px 0; }
.pcard-id .name { display: flex; align-items: center; gap: 8px; }
.pcard-visuel { height: 308px; }

/* ————— la photo d'abord : le visuel prend toute la place gagnée ————— */
.pcard-visuel {
  height: clamp(320px, 42dvh, 440px);
  background-position: center 28%; /* les visages vivent dans le tiers haut */
}
.pv-oiseau { width: min(76%, 310px); }
.pcard-id { padding: 12px 18px 0; }
.pcard-id .name { flex-wrap: wrap; row-gap: 2px; }
.meta-inline { font-family: var(--font-body); font-weight: 400; font-size: .87rem; color: var(--encre-2); }
.deck-legende { margin: 8px 0 10px; }
.fiche { padding-bottom: 13px; }

/* ————— encore plus de place au visuel ————— */
.pcard-visuel { height: clamp(340px, 50dvh, 490px); }
/* la bio se replie sur deux lignes — un tap la déplie */
.pcard-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.pcard-bio.is-open { display: block; -webkit-line-clamp: none; }
.fiche { gap: 6px; padding-bottom: 10px; }
.pcard-actions { padding: 6px 18px 14px; }

/* ————— tabbar apaisée : du papier, un filet, rien d'autre ————— */
.tabbar {
  background: color-mix(in srgb, var(--carte) 90%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--encre) 30%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
  transform: none;
}
.tabbar button { color: var(--encre-2); }
.tabbar button:not(:first-child) { border-left: 0; }
.tabbar button.is-active {
  color: var(--encre);
  background: none;
  transform: none;
  border-radius: 0;
}
/* l'onglet actif porte le filet de calage de la maison */
.tabbar button.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 6px;
  background:
    linear-gradient(var(--grenadine), var(--grenadine)) 2px 3.5px / 24px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 .5px / 24px 1.7px no-repeat;
}

/* ————— tabbar écrasée : basse et légère —————
   Remplissage symétrique : la barre est DÉJÀ surélevée au-dessus de la
   barre d'accueil iOS (bottom + inset*.6) — ajouter l'inset dans le
   padding la vidait par le bas et collait les icônes en haut. */
.tabbar { padding: 3px 8px; }
/* icônes remises à l'échelle de la barre (sur téléphone, la zone de
   sécurité iOS l'épaissit — des icônes de 18 px y flottaient, perdues) */
.tabbar button { padding: 5px 0 7px; gap: 2px; font-size: .68rem; }
.tabbar .tab-ico svg { width: 23px; height: 23px; }
.tab-badge { min-width: 16px; height: 16px; font-size: .6rem; top: 0; }
.tabbar button.is-active::after { bottom: 1px; height: 5px; }

/* ————— le score en cœurs : mêmes règles que les anciens cercles ————— */
.venn .venn-a, .venn .venn-b,
.venn-big .venn-a, .venn-big .venn-b { mix-blend-mode: var(--venn-blend); }
.venn-anim .venn-a, .venn-anim .venn-b {
  animation: vennmerge .9s cubic-bezier(.2, .8, .3, 1) both .15s;
}
.venn-big.venn-anim .venn-a, .venn-big.venn-anim .venn-b {
  animation-duration: 1.15s;
  animation-timing-function: cubic-bezier(.25, 1.4, .35, 1);
}

/* ————— Matchs : une seule feuille réglée, une ligne par match ————— */
.registre {
  background: var(--carte);
  border: 1.6px solid var(--encre);
  border-radius: var(--wob-l);
  box-shadow: 3px 3.5px 0 color-mix(in srgb, var(--menthe) 40%, var(--voile));
  overflow: hidden;
  margin-top: 14px;
  animation: rise .3s ease both;
}
/* la ligne perd tout son décor : c'est une entrée, pas une carte */
.registre .match-item {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  margin: 0;
  padding: 11px 14px;
  animation: none;
  gap: 8px;
}
.registre .match-item + .match-item { border-top: 1.4px dashed var(--trait); }
.registre .avatar { width: 44px; height: 44px; border-radius: var(--wob-s); }
.mi-name { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; }
.mi-pct { font-family: var(--font-body); }
/* l'état du rendez-vous : une mention d'imprimeur, pas une pastille */
.mi-etat {
  flex-shrink: 0;
  max-width: 6.5em;
  border: 0;
  background: none;
  padding: 4px 2px 4px 8px;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
}
.et-ok { color: var(--soleil); }
.et-attente { color: var(--encre-2); }
.et-todo { color: var(--grenadine); text-decoration: underline; text-underline-offset: 3px; }
.mi-etat { max-width: none; white-space: nowrap; }

/* ————— Matchs épuré : des lignes sur le papier, rien d'autre ————— */
.registre {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-top: 6px;
}
.registre .match-item { padding: 13px 4px; gap: 13px; }
.registre .match-item + .match-item {
  border-top: 1px solid color-mix(in srgb, var(--encre) 16%, transparent);
}
/* l'oiseau sans sa tuile : il porte déjà son encre */
.registre .avatar-encre { background: none; box-shadow: none; }
.registre .avatar { width: 42px; height: 42px; border-radius: 0; }
.registre .mi-name { font-size: 1.06rem; margin-bottom: 1px; }
.registre .mi-sub { font-size: .85rem; }
.registre .mi-etat { font-size: .6rem; align-self: center; }
/* non-lu : un point d'encre rouge après le prénom, l'aperçu en encre pleine */
.pt-neuf {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grenadine);
  margin-left: 7px;
  vertical-align: middle;
}
.match-item.a-lire .mi-sub { color: var(--encre); font-weight: 600; }

/* ————— entête de conversation : compact, jamais coupé ————— */
.chat-head { gap: 10px; }
.chat-qui { flex: 1; min-width: 0; }
.chat-qui .mi-name, .chat-qui .mi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-tete {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--encre) 45%, transparent);
  background: var(--carte);
  color: var(--encre-2);
  cursor: pointer;
}
.btn-tete:hover { color: var(--encre); border-color: var(--encre); }
.btn-tete:active { transform: translate(1px, 1.5px); }
.btn-tete svg { width: 18px; height: 18px; fill: currentColor; }

/* ————— les matchs sont des oiseaux posés sur un fil ————— */
/* le filet de séparation n'est plus un trait de tableau : c'est le fil */
.registre .match-item + .match-item { border-top: 0; }
.registre .match-item {
  border-bottom: 1.3px solid color-mix(in srgb, var(--encre) 34%, transparent);
  align-items: flex-end;
  padding: 15px 4px 12px;
}
.perchoir {
  flex-shrink: 0;
  width: 48px;
  line-height: 0;
  margin-bottom: -12px; /* les pattes touchent le fil */
}
.oiseau-perche { width: 48px; display: block; overflow: visible; }
.registre .match-txt { padding-bottom: 2px; }
/* la seule action de la ligne porte le filet de calage de la maison */
.registre .mi-etat {
  align-self: center;
  margin-bottom: 4px;
  text-decoration: none;
  padding-bottom: 5px;
  background:
    linear-gradient(var(--grenadine), var(--grenadine)) right 1.5px bottom 0 / 100% 1.6px no-repeat,
    linear-gradient(var(--encre), var(--encre)) left bottom 2px / 100% 1.3px no-repeat;
}
/* le médaillon photo se hisse à hauteur du corps de l'oiseau : centré
   sur le nom et l'aperçu, juste au-dessus du fil (un bloc plein qui
   pendrait sous la ligne paraît décroché — retour de Baptiste) */
.perche-photo {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 12px 2px;
  border: 1.5px solid var(--encre);
  border-radius: 15px 11px 16px 10px / 11px 15px 10px 16px;
  background-size: cover;
  background-position: center 28%;
  box-shadow: 2.4px 2.8px 0 var(--i);
}

/* ————— Rendez-vous épuré : le billet ne dit que l'essentiel ————— */
.rdv-card { margin-top: 14px; margin-bottom: 0; }
.rdv-card + .rdv-card { margin-top: 16px; }
/* le bandeau ne porte plus que la date — c'est elle qu'on cherche */
.rdv-band { padding: 11px 18px; }
.rdv-when { font-size: .78rem; letter-spacing: .09em; }
/* la découpe garde ses perforations, sans légende */
.billet-decoupe { padding: 7px 18px; gap: 0; }
.rdv-body { padding: 12px 18px 14px; }
.rdv-title { margin-bottom: 3px; }
.rdv-place { margin-bottom: 0; font-size: .86rem; }
/* le brise-glace attend qu'on le demande */
.ice-pli { margin-top: 9px; }
.ice-pli summary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-2);
  cursor: pointer;
  list-style: none;
  padding-bottom: 4px;
  background:
    linear-gradient(var(--grenadine), var(--grenadine)) right 1.5px bottom 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom 2px / 100% 1.2px no-repeat;
}
.ice-pli summary::-webkit-details-marker { display: none; }
.ice-pli summary:hover { color: var(--encre); }
.ice-pli p {
  margin-top: 8px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--encre);
  border-left: 2.5px solid var(--grenadine);
  padding-left: 10px;
}
.rdv-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rdv-etat {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.rdv-etat.et-ok { color: var(--soleil); }
.rdv-actions .btn-mini { padding: 8px 14px; font-size: .82rem; }
/* annuler : possible, mais jamais mis en avant */
.lien-annuler {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--encre-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien-annuler:hover { color: var(--grenadine); }
/* note de service dans la conversation */
.bub-sys {
  align-self: center;
  max-width: 88%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.5;
  color: var(--encre-2);
  padding: 6px 0;
}
.bub-sys .bub-t { font-size: .62rem; opacity: .8; }

/* ————— Profil : votre fiche d'imprimeur ————— */
.me-tete {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding: 14px 4px 12px;
  border-bottom: 1.3px solid color-mix(in srgb, var(--encre) 34%, transparent);
}
.me-tete .perchoir { margin-bottom: -12px; }
.me-qui { min-width: 0; padding-bottom: 2px; }
.me-qui .mi-name { font-size: 1.2rem; }
.fiche-moi { padding: 14px 4px 4px; gap: 9px; }
.fiche-moi .fl-cle { flex: 0 0 4.2em; }
.fiche-moi .fl-val { font-size: .89rem; line-height: 1.55; color: color-mix(in srgb, var(--encre) 82%, var(--voile)); }
.chiffre { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; color: var(--encre); }
.appris-plus { color: var(--menthe); font-weight: 700; }
.appris-moins { color: var(--encre-2); }
.fiche-moi + .btn-primary { margin-top: 16px; }
/* les actions secondaires : une colonne de liens, pas cinq boutons */
.me-liens {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 4px 0;
  border-top: 1.3px solid color-mix(in srgb, var(--encre) 22%, transparent);
}
.me-liens .lien-discret { width: auto; margin: 0; font-size: .88rem; }
.pli-demo { margin: 16px 0 0; padding: 0 4px; }
.pli-demo summary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-2);
  cursor: pointer;
  list-style: none;
}
.pli-demo summary::-webkit-details-marker { display: none; }
.pli-demo p { margin-top: 8px; font-size: .82rem; line-height: 1.5; color: var(--encre-2); }
.pli-demo b { font-family: var(--font-mono); font-size: .78rem; color: var(--encre); }
/* l'action irréversible se tient à l'écart, en bas, sans crier */
.lien-danger {
  display: block;
  margin: 26px 4px 8px;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: .84rem;
  color: var(--encre-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien-danger:hover { color: var(--grenadine); }
/* sur sa propre fiche, l'identité est plus grande */
.me-tete .perchoir { width: 64px; }
.me-tete .oiseau-perche { width: 64px; }
.me-tete .perche-photo { width: 60px; height: 60px; border-radius: 19px 14px 20px 13px / 14px 19px 13px 20px; }
/* le pli démo et l'action irréversible ne se touchent pas */
.pli-demo { margin-top: 22px; padding-top: 16px; border-top: 1.3px solid color-mix(in srgb, var(--encre) 14%, transparent); }
.lien-danger { margin-top: 20px; }

/* ————— Profil : un portrait, un bilan, des sections ————— */
.me-portrait {
  text-align: center;
  padding: 10px 4px 0;
  border-bottom: 1.3px solid color-mix(in srgb, var(--encre) 34%, transparent);
}
.me-perchoir { display: flex; justify-content: center; line-height: 0; margin-bottom: -1.3px; }
.me-perchoir .oiseau-perche { width: 128px; }
.me-perchoir .perche-photo {
  width: 108px;
  height: 108px;
  margin: 0 0 6px;
  border-radius: 34px 26px 36px 24px / 26px 34px 24px 36px;
}
.me-portrait .mi-name { font-size: 1.5rem; margin-top: 12px; justify-content: center; }
.me-portrait .mi-sub { font-size: .88rem; margin-bottom: 14px; }

/* le bilan : trois chiffres au plomb, séparés par des filets */
.me-bilan { display: flex; margin: 16px 0 4px; }
.me-bilan > button { flex: 1; text-align: center; padding: 4px 6px; }
.me-bilan > button + button { border-left: 1.3px solid color-mix(in srgb, var(--encre) 20%, transparent); }
.me-bilan b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--encre);
}
.me-bilan span {
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-2);
}

/* les sections : une étiquette au filet de calage, puis le contenu */
.me-bloc { margin-top: 20px; padding: 0 4px; }
.me-cle {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 9px;
  padding-bottom: 4px;
  background:
    linear-gradient(var(--grenadine), var(--grenadine)) right 1.5px bottom 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom 2px / 100% 1.2px no-repeat;
}
.me-bio { font-size: .93rem; line-height: 1.55; }
.me-bloc + .btn-primary, .me-bloc ~ .btn-primary { margin-top: 26px; }
/* le portrait aussi se pose sur un fil — court, sous ses pattes */
.me-perchoir {
  width: fit-content;
  margin: 0 auto;
  padding: 0 26px;
  border-bottom: 1.6px solid var(--encre);
}
/* le médaillon se pose sur le fil sans le toucher : sa plaque décalée
   descend de 2,8 px, il faut la laisser respirer au-dessus du trait */
.me-perchoir .perche-photo { margin-bottom: 7px; }

/* ————— plein écran sur téléphone (encoche et barre d'accueil) —————
   Avec viewport-fit=cover la page s'étend jusqu'aux bords ; on redonne
   leur espace aux zones système, et le fond débordant est papier. */
@media (max-width: 500px) {
  body { background: var(--voile); }
}
.phone { padding-top: env(safe-area-inset-top); }
.tabbar { bottom: calc(10px + env(safe-area-inset-bottom) * .6); }

/* ————— le bilan est cliquable, la liste des vus est une modale ————— */
.me-bilan > button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--wob-s);
}
.me-bilan > button:hover { background: color-mix(in srgb, var(--encre) 6%, transparent); }
.me-bilan > button:active { transform: translateY(1px); }
.vus-liste { max-height: 52dvh; overflow-y: auto; margin-top: 6px; }
.vus-ligne {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
}
.vus-ligne + .vus-ligne { border-top: 1.2px dashed var(--trait); }
.vus-qui { flex: 1; min-width: 0; }
.vus-qui b { font-family: var(--font-display); font-weight: 400; font-size: .98rem; display: block; }
.vus-qui span { font-size: .8rem; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vus-note {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.vus-ligne .vus-note:where(:not(:empty)) { padding-left: 8px; }

/* ————— la liste des vus parle la langue des matchs : perchés sur les fils ————— */
.vus-ligne {
  align-items: flex-end;
  padding: 12px 2px 0;
  border-top: 0 !important;
  border-bottom: 1.3px solid color-mix(in srgb, var(--encre) 34%, transparent);
}
.vus-perchoir {
  flex-shrink: 0;
  width: 38px;
  line-height: 0;
  margin-bottom: -1.3px;
}
.vus-perchoir .oiseau-perche { width: 38px; }
.vus-perchoir .perche-photo {
  width: 32px;
  height: 32px;
  margin: 0 2px 5px;
  border-radius: 11px 8px 12px 7px / 8px 11px 7px 12px;
  box-shadow: 1.8px 2.1px 0 var(--i);
}
.vus-qui { padding-bottom: 8px; }
.vus-note, .vus-coeur { margin-bottom: 10px; }
.vus-coeur { flex-shrink: 0; width: 15px; height: 14px; }

/* ————— la fiche d'une personne (modale profil) ————— */
.fp-visuel {
  height: clamp(210px, 32dvh, 300px);
  border-radius: var(--wob-m);
  border: 1.6px solid var(--encre);
  overflow: hidden;
  background-size: cover;
  background-position: center 28%;
  display: grid;
  place-items: center;
  margin-top: 4px;
}
.fp-visuel .pv-oiseau { width: min(64%, 250px); }
/* boutons nus : le perchoir des matchs, l'avatar du chat, les lignes des vus */
.match-perch, .chat-avatar {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.match-perch:active, .chat-avatar:active, button.vus-ligne:active { transform: translateY(1px); }
button.vus-ligne {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* ————— la page d'une personne : le profil complet, plein écran ————— */
.page-personne { animation: rise .3s ease both; }
.pp-visuel {
  position: relative;
  height: clamp(300px, 46dvh, 460px);
  border: 1.6px solid var(--encre);
  border-radius: var(--wob-l);
  box-shadow: 3px 3.5px 0 color-mix(in srgb, var(--menthe) 40%, var(--voile));
  overflow: hidden;
  background-size: cover;
  background-position: center 28%;
  display: grid;
  place-items: center;
  margin-top: 8px;
}
.pp-visuel .pv-oiseau { width: min(72%, 300px); }
/* la pastille retour flotte sur le visuel, toujours lisible */
.pp-retour {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  color: var(--encre);
  background: color-mix(in srgb, var(--carte) 90%, transparent);
  box-shadow: 2px 2.5px 0 color-mix(in srgb, var(--encre) 30%, transparent);
}
.pp-retour svg { width: 20px; height: 20px; }
.page-personne .pcard-id { padding: 15px 4px 0; }
.page-personne .pcard-bio { padding: 9px 4px 0; font-size: .95rem; }
.page-personne .fiche { padding: 12px 4px 4px; }

/* ————— pages légales : les liens dans l'app ————— */
.accueil-legal {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.accueil-legal a { color: var(--encre-2); text-underline-offset: 3px; }
.accueil-legal a:hover { color: var(--grenadine); }
.onb-legal {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--encre-2);
  text-align: center;
}
.onb-legal a { color: inherit; text-underline-offset: 2px; }
.onb-legal a:hover { color: var(--grenadine); }

/* ————— médias du chat : photos, GIF et stickers oiseaux ————— */
.chat-input .btn-tete { flex: 0 0 auto; width: 38px; height: 38px; align-self: center; }
.chat-input .btn-tete svg { width: 19px; height: 19px; }

.bub-img { padding: 5px 5px 4px; }
.bub-img a { display: block; line-height: 0; }
.bub-img img {
  max-width: min(220px, 56vw);
  max-height: 250px;
  border: 1.5px solid var(--encre);
  border-radius: var(--wob-s);
  background: var(--carte);
}
.bub-img .bub-t { display: block; text-align: right; margin-top: 3px; }

/* le sticker vit sans bulle : l'oiseau se pose à même le papier */
.bub-stk { max-width: 118px; animation: rise .25s ease both; }
.stk-de-moi { margin-left: auto; text-align: right; }
.stk-d-eux { margin-right: auto; }
.bub-stk .bub-t { font-family: var(--font-mono); font-size: .6rem; opacity: .55; }
.stk { display: inline-block; }
.stk svg { width: 104px; height: auto; display: block; overflow: visible; }

/* le tiroir : une planche de vignettes à décoller */
.stk-tiroir[hidden] { display: none; }
.stk-tiroir {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 8px 10px;
  margin-top: 6px;
  background: color-mix(in srgb, var(--carte) 88%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--encre) 45%, transparent);
  border-radius: var(--wob-m);
}
.stk-choix {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  border-radius: var(--wob-s);
}
.stk-choix:hover, .stk-choix:focus-visible { background: color-mix(in srgb, var(--menthe) 16%, transparent); }
.stk-choix .stk svg { width: 44px; }

/* chaque geste a son mouvement — transform-box pour animer dans le SVG */
.stk-coucou svg { animation: stk-balance 1.5s ease-in-out infinite; transform-origin: 50% 92%; }
.stk-onde { animation: stk-pulse 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: left bottom; }
.stk-vole { animation: stk-monte 2.2s ease-in-out infinite; transform-box: fill-box; }
.stk-vole2 { animation-delay: -1.1s; }
.stk-joie svg { animation: stk-saut 1s cubic-bezier(.4, 0, .6, 1) infinite; }
.stk-eclat { animation: stk-pulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.stk-timide svg { transform: rotate(3deg); }
.stk-dodo svg { transform: rotate(5deg); }
.stk-zzz text { animation: stk-zz 2.6s ease-in-out infinite; transform-box: fill-box; }
.stk-zzz .stk-z2 { animation-delay: -1.3s; }
.stk-banco .stk-tampon { animation: stk-tamponne 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes stk-balance { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes stk-pulse { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes stk-monte { 0% { opacity: 0; transform: translateY(3px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes stk-saut { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-4px) rotate(-2deg); } 60% { transform: translateY(0); } }
@keyframes stk-zz { 0% { opacity: 0; transform: translate(0, 2px); } 40%, 65% { opacity: .9; } 100% { opacity: 0; transform: translate(2px, -4px); } }
@keyframes stk-tamponne { 0%, 12%, 100% { transform: rotate(-7deg) scale(1); } 6% { transform: rotate(-7deg) scale(1.14); } }

/* ————— zoom : l'app se manipule, elle ne se zoome pas ————— */
/* pan-x pan-y = défilement autorisé, pincement et double-tap neutralisés
   (complété par gesturestart dans app.js pour iOS Safari) */
html, body { touch-action: pan-x pan-y; }

/* la photo d'une page profil s'ouvre en grand dans son propre onglet —
   lien invisible sous la pastille retour, qui garde la main */
.pp-zoom { position: absolute; inset: 0; }
.pp-retour { z-index: 1; }

/* ————— tête d'affiche ————— */
.pv-badge.pv-affiche { color: var(--soleil); }
.me-note {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .05em;
  opacity: .6;
  margin-top: 4px;
}

/* la commande de photo vit sous le portrait, pas dans les liens du bas */
.me-photo-liens {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: -8px 0 12px;
}
.me-photo-liens .lien-discret { width: auto; margin: 0; font-size: .82rem; }

/* ————— galerie de photos (10 au plus) ————— */
/* les points de feuilletage, posés au bas du visuel */
.ph-points {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.ph-points i {
  width: 7px;
  height: 7px;
  border-radius: 50% 42% 55% 45%;
  border: 1.2px solid var(--encre);
  background: color-mix(in srgb, var(--carte) 80%, transparent);
}
.ph-points i.is-la { background: var(--grenadine); }

/* flèches de la page profil */
.pp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  color: var(--encre);
  background: color-mix(in srgb, var(--carte) 88%, transparent);
  box-shadow: 2px 2.5px 0 color-mix(in srgb, var(--encre) 30%, transparent);
  z-index: 1;
}
.pp-nav svg { width: 18px; height: 18px; }
.pp-prec { left: 10px; }
.pp-suiv { right: 10px; }

/* les vignettes sous le portrait : de petits médaillons d'imprimeur */
.me-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: -2px 0 16px;
}
.me-ph {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1.5px solid var(--encre);
  border-radius: var(--wob-s);
  background-color: var(--carte);
  background-size: cover;
  background-position: center 28%;
  box-shadow: 2px 2.5px 0 color-mix(in srgb, var(--encre) 25%, transparent);
  cursor: pointer;
  position: relative;
}
.me-ph-un {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-mono);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 5px;
  background: var(--encre);
  color: var(--carte);
  border-radius: 6px;
}
.me-ph-add {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--encre-2);
  border-style: dashed;
  background: none;
  box-shadow: none;
}
.ph-apercu {
  height: min(300px, 44dvh);
  background-size: cover;
  background-position: center 28%;
  border: 1.6px solid var(--encre);
  border-radius: var(--wob-m);
  box-shadow: 2.5px 3px 0 color-mix(in srgb, var(--menthe) 45%, transparent);
  margin-bottom: 14px;
}

/* ————— réglages du profil : des lignes à même le papier ————— */
.me-reglages {
  margin: 18px 0 0;
  padding: 4px 4px 0;
  border-top: 1.3px solid color-mix(in srgb, var(--encre) 22%, transparent);
}
.mr-ligne {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.mr-ligne + .mr-ligne { border-top: 1.2px dashed var(--trait); }
.mr-ligne > svg:first-child {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--encre) 78%, var(--voile));
}
.mr-ligne > span { flex: 1; }
.mr-chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .45;
}
.mr-ligne:hover { color: var(--grenadine); }
.mr-ligne:hover > svg:first-child { color: var(--grenadine); }
.mr-ligne:active { transform: translateY(1px); }

/* ————— retour en arrière (entre la croix et le cœur) ————— */
/* plus petit que les deux gestes principaux : c'est un filet de secours,
   pas une invitation — 3 par jour */
.btn-retour-sw {
  width: 44px;
  height: 44px;
  color: var(--soleil);
  align-self: center;
}
.btn-retour-sw svg { width: 19px; height: 19px; }
.btn-retour-sw:disabled {
  opacity: .32;
  cursor: default;
  transform: none;
}

/* ————— Découvrir sans défilement (retour de Baptiste) —————
   La carte remplit exactement l'écran : le visuel est élastique et
   absorbe la hauteur disponible — fiche et pastilles toujours visibles,
   quel que soit le téléphone. Plus de minimum rigide qui pousse les
   boutons sous le pli. */
.view:has(.deck) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 90px;
}
.deck {
  flex: 1;
  display: flex;
  min-height: 0;
}
.pcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.pcard-visuel {
  flex: 1 1 auto;
  height: auto;
  min-height: 180px;
  max-height: 490px;
}
.pcard-actions { margin-top: auto; }

/* ————— la photo d'abord (retour de Baptiste : « photos petites ») —————
   La zone texte se resserre pour rendre sa hauteur au visuel : AIME sur
   une seule ligne (le détail complet vit derrière « détail »), marges
   au cordeau, et un plancher confortable pour la photo. */
.pcard-visuel { min-height: 260px; }
.pcard .pcard-id { padding: 12px 18px 0; }
.pcard .pcard-bio { padding: 7px 18px 0; }
.pcard .fiche { padding: 8px 18px 4px; gap: 4px; }
/* les goûts tiennent sur une ligne — les points communs restent en bleu */
.pcard .fiche .fl-aime {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.pcard .pcard-actions { padding: 6px 18px 14px; }
