/* Slavic Queens Club — papier crème, encre gris-prune, bordeaux pour l'action, or en filets fins.
   Une seule police, simple et lisible en trois langues : Inter. */
:root {
  color-scheme: light;
  --paper: #FBF8F4;
  --paper-rose: #F6ECEA;
  --paper-sage: #EEF0EA;
  --white: #FFFFFF;
  --ink: #221E1F;
  --ink-soft: #5B5356;
  --muted: #8E8487;
  --line: #E7E0DB;
  --line-strong: #D6CCC6;
  --wine: #4E232A;
  --wine-hover: #3B1A20;
  --wine-tint: #F3E6E7;
  --gold: #B79653;
  --ok: #3F6B55;
  --warn: #9A5B1E;
  --danger: #9B2F2F;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Fond : carte de Paris, discrète, qui s'estompe en descendant ; absente de l'admin */
#bg-map { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; }
#bg-map svg { width: 100%; height: 100%; display: block; }
#bg-map.off { visibility: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  text-decoration: none; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.btn.quiet { background: transparent; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { color: var(--danger); border-color: #E3C4C4; background: transparent; }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); cursor: pointer; }
.link:hover { text-decoration-color: var(--ink); }
.arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; font-size: 15px; cursor: pointer; }
.arrow::after { content: '→'; transition: transform .2s; }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- en-tête ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--wine); }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex: none; }
.lang button { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lang button.on { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; content: ''; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

/* ---------- logo animé ---------- */
.logo { --s: 38px; display: block; position: relative; width: var(--s); height: var(--s); flex: none; }
.logo .disc { position: absolute; inset: 0; border-radius: 50%; background: #fff; overflow: hidden; }
.logo .disc img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo .crown { animation: crown 1.8s ease-in-out .4s both; }
/* Les diamants de la couronne scintillent deux fois, une fois la couronne posée, puis tout s'arrête. */
.logo .gem { position: absolute; left: var(--x); top: var(--y); width: 9%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #fff 0 16%, #F3DC95 38%, #C9A24B 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle .8s ease-in-out calc(1.4s + var(--d)) 2 both; }
.logo .ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); }
@keyframes crown { from { opacity: 0; } } /* la couronne apparaît en fondu, déjà à sa place */
@keyframes twinkle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(90deg); } }
.hdr .logo .gem { display: none; } /* trop petit dans l'en-tête : la couronne suffit */
/* Survol du logo : la couronne s'illumine doucement, les étoiles scintillent (médaillon de l'accueil et logo de l'en-tête) */
.hero-logo .logo, .hdr .logo { cursor: default; }
/* Uniquement avec une souris : sur téléphone, le survol resterait « collé » après un toucher. Au doigt, app.js pose .glow le temps d'un éclat. */
@media (hover: hover) {
  .hero-logo .logo:hover .crown, .hdr a:hover .logo .crown, .hdr .logo:hover .crown { animation: crown 1.8s ease-in-out .4s both, crownshine 2.4s ease-in-out infinite; }
  .hero-logo .logo:hover .gem { animation: twinkle 1.1s ease-in-out calc(var(--d) * .6) infinite both; }
  .hero-logo .logo:hover .ring { box-shadow: 0 0 22px rgba(233,196,106,.35); }
}
.logo.glow .crown { animation: crownshine 2.4s ease-in-out 1; }
.hero-logo .logo .ring { transition: box-shadow .6s ease; }
@keyframes crownshine { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 2px #F3DC95) drop-shadow(0 0 6px rgba(201,162,75,.55)) brightness(1.06); } }
@media (prefers-reduced-motion: reduce) { .logo .crown, .view.on, .live-tag .dot::after, .seal img { animation: none !important; } .logo .gem, .seal .gem { display: none; } }

/* ---------- vues et sections ---------- */
.view { display: none; }
.view.on { display: block; animation: viewin .3s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(4px); } }
section.block { padding: 88px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head { padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; }
.page-head .intro { color: var(--ink-soft); font-size: 17px; margin-top: 16px; max-width: 600px; }

/* ---------- accueil ---------- */
.hero { padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--wine); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 460px; }
.hero .cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-logo { justify-self: center; position: relative; padding-bottom: 30px; }
.hero-logo .logo { --s: min(300px, 64vw); }
.hero-logo .logo .ring { inset: -12px; }
/* Changement de langue : fondu du contenu */
main, .hdr .nav, .footer, .notif { transition: opacity .32s ease; }
body.lang-fading main, body.lang-fading .hdr .nav, body.lang-fading .footer, body.lang-fading .notif { opacity: 0; }

/* Bulle Telegram, en bas à droite */
.chat-bubble { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  animation: bubble-in .6s cubic-bezier(.2,.8,.2,1) 1.8s both; }
.chat-bubble[hidden], body.on-admin .chat-bubble { display: none; }
.chat-bubble-ico { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #37AEE2, #1E96C8);
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 4.5px rgba(183,150,83,.55), 0 14px 30px -10px rgba(30,150,200,.7); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.chat-bubble-ico svg { margin-left: -3px; }
.chat-bubble-ico::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(183,150,83,.6); animation: bubble-ring 2.8s ease-out 2.6s infinite; }
.chat-bubble:hover .chat-bubble-ico, .chat-bubble:focus-visible .chat-bubble-ico { transform: scale(1.08); }
.chat-bubble-label { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(78,35,42,.4); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .25s; }
.chat-bubble:hover .chat-bubble-label, .chat-bubble:focus-visible .chat-bubble-label { opacity: 1; transform: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes bubble-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 600px) { .chat-bubble { right: 14px; bottom: 14px; } .chat-bubble-ico { width: 54px; height: 54px; } .chat-bubble-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-bubble, .chat-bubble-ico::after { animation: none; } }

/* Notification « Prochain événement » */
.notif { position: fixed; z-index: 40; left: 24px; bottom: 24px; width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(78,35,42,.45), 0 0 0 1px rgba(183,150,83,.15); opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
body:not(.on-home) .notif { display: none; }
.notif.show { opacity: 1; transform: none; pointer-events: auto; }
.notif.open { width: 380px; box-shadow: 0 26px 60px -20px rgba(78,35,42,.55), 0 0 0 1px rgba(183,150,83,.3); }
.notif-body { display: flex; gap: 12px; padding: 12px 34px 12px 12px; text-decoration: none; color: inherit; align-items: center; }
.notif.open .notif-body { align-items: flex-start; padding: 16px 38px 16px 16px; gap: 16px; }
.notif-pic { position: relative; width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: width .45s, height .45s; }
.notif.open .notif-pic { width: 84px; height: 84px; }
.notif-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notif-text { min-width: 0; display: flex; flex-direction: column; }
.notif-text small { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(233,196,106,.9); animation: gate-halo 2.4s ease-in-out infinite; }
.notif-text strong { font-weight: 500; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif.open .notif-text strong { white-space: normal; font-size: 17px; }
.notif-when { font-size: 12.5px; color: var(--ink-soft); }
.notif-more, .notif-cta { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s ease .1s, margin .45s; font-size: 13px; color: var(--ink-soft); }
.notif.open .notif-more { max-height: 80px; opacity: 1; margin-top: 6px; }
.notif.open .notif-cta { max-height: 40px; opacity: 1; margin-top: 10px; color: var(--wine); font-weight: 500; font-size: 14px; }
.notif-more em { font-style: normal; }
.notif-x { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; }
.notif-x:hover { background: var(--paper); color: var(--ink); }
@keyframes gate-halo { 50% { transform: scale(1.08); opacity: .7; } }
@media (max-width: 600px) { .notif { left: 12px; right: 80px; bottom: 12px; width: auto; } .notif.open { width: auto; right: 12px; bottom: 80px; } } /* place pour la bulle Telegram */
@media (prefers-reduced-motion: reduce) { .notif, .notif-pic, .notif-more, .notif-cta { transition: none; } .notif-dot { animation: none; } }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); position: relative; }
section.hero { overflow-x: clip; }
/* voile crème derrière les chiffres : la carte de Paris s'estompe pour que les nombres se lisent bien */
.counters::before { content: ''; position: absolute; z-index: -1; left: calc(50% - 50vw); right: calc(50% - 50vw); top: -40px; bottom: -120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(251,248,244,0), rgba(251,248,244,.92) 40px, var(--paper) 100%); }
.counters div { padding: 24px 22px 0; border-left: 1px solid var(--line); }
.counters div:first-child { border-left: 0; padding-left: 0; }
.counters b { display: block; font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.counters span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.counters span span, .counters .live-tag span { display: inline; margin: 0; }
.live-tag { font-style: normal; display: inline-flex !important; align-items: center; gap: 5px; margin-left: 6px; font-size: 12px; color: var(--ok); }
.live-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #2FA36B; position: relative; }
.live-tag .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2FA36B; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.counters b { font-variant-numeric: tabular-nums; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.pillar .num { font-size: 13px; color: var(--gold); font-weight: 500; }
.pillar h3 { font-size: 22px; margin: 10px 0 10px; }
.pillar p { color: var(--ink-soft); }

.story { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.story .label { margin-top: 8px; }
.story .arrow { margin-top: 26px; }
p.big { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.5; font-weight: 400; letter-spacing: -.01em; white-space: pre-line; }
.story-teaser p.big { font-size: clamp(17px, 1.5vw, 19px); }   /* accueil : l'histoire du club, plus discrète */
p.big.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 26px; }
.home-more { display: none; }
.story-page { max-width: 760px; padding-bottom: 60px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps b { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-weight: 500; color: var(--wine); }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 15px; }

.join-band { background: var(--paper-rose); padding: 80px 0; text-align: center; }
.is-member .join-band, .is-member [data-open="join"] { display: none !important; } /* déjà membre : plus d'invitation à rejoindre */
/* Accueil d'une membre : son prochain rendez-vous, avant la présentation du club */
#home-next { padding: 22px 0 0; }
.home-next { background: #fff; border: 1px solid var(--line, #E7E1D8); border-radius: 18px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(78, 35, 42, .06); }
.home-next .hn-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #B08D57); margin: 0 0 6px; }
.home-next .hn-eyebrow b { font-weight: 600; }
.home-next h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.02em; }
.home-next h2 a { color: inherit; text-decoration: none; }
.home-next .hn-when { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 12px; }
.home-next .hn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.home-next .hn-act { display: flex; gap: 8px; flex-wrap: wrap; }
.home-next.none { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.home-next.none .hn-eyebrow, .home-next.none .hn-when { margin: 0; }
/* Événement commencé : plus d'inscription */
.spots.live { color: var(--wine); font-weight: 600; }
/* … avec un petit point qui respire, comme un « direct » (discret ; immobile si l'on a demandé moins d'animations) */
.spots.live::before, .hn-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: .1em; animation: live-dot 2.4s ease-out infinite; }
.notif .spots.live::before, .book-closed .spots.live::before { content: none; } /* là, un point est déjà présent ou redondant */
.hn-live { white-space: nowrap; } /* le point reste collé à « En cours » quand la ligne se coupe */
.hn-live::before { animation-name: live-dot-gold; }
@keyframes live-dot-gold { 0% { box-shadow: 0 0 0 0 rgba(183,150,83,.45); } 70%, 100% { box-shadow: 0 0 0 5px rgba(183,150,83,0); } }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(78,35,42,.4); } 70%, 100% { box-shadow: 0 0 0 5px rgba(78,35,42,0); } }
@media (prefers-reduced-motion: reduce) { .spots.live::before, .hn-live::before { animation: none; } }
.book-closed { margin: 0; line-height: 1.6; }
.bk-late { margin-top: 10px; }
.book-24 { margin: 0 0 12px; }
.refund-card { margin-bottom: 18px; border-color: #E3C4C4; }
.bot-card { margin-bottom: 18px; }
.bot-card .bot-big { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 10px; }
.bot-card .bot-big b { font-size: 24px; letter-spacing: -.03em; color: var(--wine); font-variant-numeric: tabular-nums; }
.bot-card .bot-big span { color: var(--ink-soft); }
.bot-bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.bot-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--wine); }
.join-band h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.join-band h2 em { font-style: normal; color: var(--wine); }
.join-band p { color: var(--ink-soft); margin: 16px auto 30px; max-width: 480px; font-size: 17px; }

/* ---------- cartes d'événement ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-soft); background: var(--white); }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .pic { aspect-ratio: 16 / 10; background: var(--paper-rose); position: relative; }
.card .pic img.cover { width: 100%; height: 100%; object-fit: cover; }
.card .pic .d { position: absolute; left: 14px; top: 14px; background: var(--white); border-radius: 8px; padding: 7px 11px; text-align: center; line-height: 1.1; }
.card .pic .d b { display: block; font-size: 20px; font-weight: 500; }
.card .pic .d span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* Sceau du club sur les cartes : grand au centre sans photo, petit dans le coin avec photo */
.seal { position: absolute; aspect-ratio: 1; border-radius: 50%; background: #fff; overflow: hidden; pointer-events: none; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal.big { left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); box-shadow: 0 0 0 8px rgba(255,255,255,.45), 0 0 0 9px rgba(183,150,83,.35); }
.seal.corner { right: 12px; bottom: 12px; width: 58px; box-shadow: 0 0 0 1.5px var(--gold), 0 4px 14px rgba(34,30,31,.18); }
.seal .gem { position: absolute; left: var(--x); top: var(--y); width: 16%; aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #fff 0 16%, #F3DC95 38%, #C9A24B 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.seal.corner .gem { width: 22%; }
.card:hover .seal .gem, .card:focus-visible .seal .gem { animation: twinkle .8s ease-in-out calc(var(--d) * .5) 2 both; }
.card:hover .seal img + img, .card:focus-visible .seal img + img { animation: crownglow 1.8s ease-in-out 1; }
@keyframes crownglow { 50% { filter: drop-shadow(0 0 2px #F3DC95) drop-shadow(0 0 5px rgba(201,162,75,.8)); } }
.card .pic.past img.cover { filter: grayscale(.5); opacity: .85; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 19px; }
.card .meta { font-size: 14px; color: var(--ink-soft); }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.card .price { font-weight: 600; }
/* Admin : réservations regroupées en cartes */
button.card.admin-card { text-align: left; font: inherit; color: inherit; padding: 0; width: 100%; }
.card.admin-card .pic { aspect-ratio: 16 / 7; }
.card.admin-card .seal.big { width: 30%; }
.card.admin-card.sel { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine-tint); }
.card.admin-card .row { font-size: 14px; flex-wrap: wrap; }
.fill { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; margin-top: 10px; }
.fill span { display: block; height: 100%; background: var(--wine); border-radius: inherit; }
.resa-detail { margin-top: 26px; scroll-margin-top: 90px; }
.resa-detail .table-wrap { border-radius: 8px; }
.ticket-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; background: var(--paper); border-radius: 8px; margin-bottom: 18px; }

/* Billet */
.panel.ticket { text-align: left; }
.ticket-qr { display: grid; place-items: center; margin: 10px 0 12px; }
.ticket-qr img { width: min(260px, 70vw); height: auto; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--gold); }

/* Avis */
.stars { display: flex; gap: 6px; }
.stars button { font-size: 34px; line-height: 1; color: var(--line-strong); transition: color .15s, transform .15s; }
.stars button:hover { transform: scale(1.08); }
.stars button.on { color: var(--gold); }
.stars-read { color: var(--gold); letter-spacing: 2px; }

/* Scanner */
.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.scan-cam { position: relative; aspect-ratio: 4 / 3; background: #1f1a1b; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.scan-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-cam .scan-frame { position: absolute; width: 56%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.scan-cam p { position: relative; color: #eee; text-align: center; padding: 0 30px; }
.scan-result { margin-top: 14px; padding: 16px 18px; border-radius: 10px; font-size: 15px; }
.scan-result b { font-size: 18px; }
.scan-result.ok { background: #E4F1E8; color: #1F5A37; }
.scan-result.warn { background: #F7EDE1; color: var(--warn); }
.scan-result.bad { background: #F7E4E2; color: var(--danger); }
@media (max-width: 860px) { .scan-grid { grid-template-columns: 1fr; } }
.spots { font-size: 13px; color: var(--ok); }
.spots.full { color: var(--warn); }
.spots.past { color: var(--muted); }
.empty { padding: 48px 0; color: var(--muted); font-size: 16px; grid-column: 1 / -1; }

/* ---------- fiche événement ---------- */
.back { display: inline-block; margin: 36px 0 24px; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; cursor: pointer; }
.back + .page-head { padding-top: 4px; }
.back:hover { color: var(--ink); }
.ev-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.ev-pic { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--paper-rose); margin-bottom: 30px; }
.ev-pic img { width: 100%; height: 100%; object-fit: cover; }
.ev-grid h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; letter-spacing: -.035em; }
.ev-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 22px 0 26px; font-size: 15.5px; }
.ev-facts dt { color: var(--muted); }
.ev-facts dd { margin: 0; }
.ev-desc { color: var(--ink-soft); font-size: 17px; white-space: pre-line; }
.book-col { position: sticky; top: 96px; }
.book-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.book-box h2 { font-size: 22px; margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 18px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--wine); width: 16px; height: 16px; flex: none; }
.ref { display: flex; justify-content: space-between; background: var(--paper); border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 18px 0; }

/* ---------- formulaires & modales ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.field > span i { color: var(--wine); font-style: normal; }
/* case refusée (ex. numéro de téléphone à la place du pseudo Telegram) */
.field.invalid input:not([type=file]):not([type=checkbox]), .field.invalid textarea, .field.invalid input:not([type=file]):not([type=checkbox]):focus, .field.invalid textarea:focus { border: 1.5px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--white)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); outline: none; }
.field.invalid > span { color: var(--danger); }
/* Instagram / Telegram : sous la case, la ligne de profil « это ты? » ou un message précis */
.rs-aide { margin-top: 8px; }
.rs-aide:empty { display: none; }
.rs-carte { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; }
.rs-carte:hover { border-color: var(--line-strong); }
/* « oui, c'est moi » : la case passe en vert */
.field.confirme input:not([type=file]):not([type=checkbox]), .field.confirme input:not([type=file]):not([type=checkbox]):focus { border: 1.5px solid var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--white)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 28%, transparent); outline: none; }
.rs-pastille { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; object-fit: cover; }
.rs-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.rs-tg { background: #2AABEE; }
.rs-txt { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1.25; }
.rs-txt b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-txt small { color: var(--muted); font-size: 12.5px; }
.rs-isit { font-family: 'Great Vibes', 'Pinyon Script', cursive; font-size: 19px; line-height: 1; color: var(--wine); }
.rs-lien { justify-self: start; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.rs-err, .rs-warn, .rs-attente, .rs-ligne { margin: 0; font-size: 13px; line-height: 1.45; }
.rs-err { color: var(--danger); } .rs-warn { color: var(--warn); } .rs-attente, .rs-ligne { color: var(--muted); }
.rs-admin { display: block; margin-top: 6px; }
.rs-edit { margin: 8px 0 0; }
.rs-edit-ligne { display: flex; gap: 8px; align-items: center; }
.rs-edit-ligne input { flex: 1; min-width: 0; }
.rs-edit a.off { opacity: .4; pointer-events: none; }
.field > small.field-err, .field-err { display: block; margin-top: 6px; color: var(--danger); font-size: 13px; line-height: 1.4; }
.field > small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.field input:not([type=file]):not([type=checkbox]), .field textarea, .field select { width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; font-size: 16px; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.note { background: var(--paper-sage); padding: 14px 16px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft); }
.note.rose { background: var(--paper-rose); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 18px; background: var(--white); }
.stepper output { font-size: 17px; min-width: 18px; text-align: center; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; color: var(--ink-soft); transition: .15s; }
.pick button:hover { border-color: var(--ink); color: var(--ink); }
.pick button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.pick button.on::before { content: '✓ '; }
.pick.filter button { font-size: 13px; padding: 6px 12px; }
.pick.filter button small { color: inherit; opacity: .6; margin-left: 4px; }
.photo-pick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.photo-pick img { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(34, 30, 31, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 51; left: 50%; top: 50%; width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--paper); border-radius: 14px; padding: 36px 34px 30px; box-shadow: 0 30px 80px rgba(34, 30, 31, .18);
  transform: translate(-50%, -47%); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.modal.wide { width: min(640px, calc(100vw - 24px)); }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: -.03em; }
.modal .sub { color: var(--ink-soft); margin-bottom: 24px; }
.modal .close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; line-height: 1; color: var(--muted); }
.modal .close:hover { color: var(--ink); }
.done { text-align: center; padding: 8px 0; }
.done .mark { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-size: 22px; color: var(--wine); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 999px; font-size: 14.5px; transition: .25s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.has-tabbar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); } /* au-dessus de la barre du bas */
/* Annuler sa réservation : l'événement rappelé, deux boutons clairs */
#m-cancel h2 { font-size: 22px; margin: 0 0 14px; padding-right: 30px; }
.cx-ev { background: var(--paper, #FAF7F2); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; line-height: 1.5; }
.cx-ev span { color: var(--ink-soft); font-size: 14px; }
.cx-btns { display: grid; gap: 10px; margin-top: 20px; }
.bk-cancel { display: block; margin: 12px auto 0; }

/* ---------- contact, compte & admin ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.social-links a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.social-links a:last-child { border-bottom: 0; }
.social-links small { display: block; font-size: 12px; color: var(--muted); }
.social-links strong { font-weight: 500; }
.narrow { max-width: 560px; }
/* Photo de profil qui se retourne comme une pièce vers le logo du club */
.me-head { display: flex; align-items: center; gap: 20px; }
.me-head h1 { margin: 0; }
#me-coin:empty { display: none; }
.coin { width: 84px; height: 84px; perspective: 600px; flex: none; }
.coin-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.45,.05,.25,1); }
.coin.flipped .coin-inner { transform: rotateY(180deg); }
.coin-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--white); box-shadow: 0 0 0 1.5px var(--gold), 0 8px 20px rgba(34,30,31,.12); display: grid; place-items: center; }
.coin-face img { width: 100%; height: 100%; object-fit: cover; }
.coin-face.initials { background: var(--paper-rose); color: var(--wine); font-size: 26px; font-weight: 500; }
.coin-back { transform: rotateY(180deg); }
.coin-back img { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .coin-inner { transition: none; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px; margin-bottom: 20px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.tabs button { padding: 12px 0; margin-bottom: -1px; border-bottom: 1.5px solid transparent; color: var(--muted); font-size: 15px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--wine); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 16px; }
.toolbar h3 { font-size: 22px; }
.toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 13px; }
td select { border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 6px; background: var(--white); font-size: 13.5px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--paper-sage); color: var(--ok); white-space: nowrap; }
.tag.warn { background: #F7EDE1; color: var(--warn); }
.tag.rose { background: var(--wine-tint); color: var(--wine); }
.tag.grey { background: #F0EEEC; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper-rose); display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--wine); flex: none; }
.who { display: flex; gap: 12px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); background: var(--white); border-radius: var(--r); overflow: hidden; }
.stats div { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats b { display: block; font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.stats input { font-size: 30px; border: 0; border-bottom: 1px dashed var(--line-strong); background: none; width: 100%; padding: 0; letter-spacing: -.03em; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { padding: 5px 11px; font-size: 13px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.on.present { background: var(--paper-sage); color: var(--ok); }
.seg button.on.absent { background: #F7E9E6; color: var(--danger); }

.footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a, .footer button { color: var(--ink-soft); text-decoration: none; font-size: 14px; cursor: pointer; }
.footer a:hover, .footer button:hover { color: var(--ink); }

/* ---------- admin : encadré « mise en ligne » ---------- */
.setup { background: #FFF8E6; border: 1px solid #F0E0B5; border-radius: 10px; padding: 12px 18px; margin: 0 0 22px; }
.setup summary { cursor: pointer; font-size: 15px; }
.setup ul { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; gap: 10px; }
.setup li { display: flex; gap: 12px; }
.setup li > span { width: 18px; color: var(--warn); flex: none; }
.setup li.ok > span { color: var(--ok); }
.setup li.ok b { font-weight: 400; color: var(--muted); }
.setup li b { font-weight: 500; }

/* ---------- réservation : connexion obligatoire ---------- */
.book-lock { display: flex; gap: 14px; align-items: flex-start; background: var(--paper-rose); border-radius: 10px; padding: 14px 16px; margin: 6px 0 20px; }
.book-lock p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.lock-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--white); color: var(--wine); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(183,150,83,.45); }
.book-as { font-size: 14px; color: var(--muted); margin: 4px 0 18px; overflow-wrap: anywhere; }
.book-as strong { color: var(--ink); font-weight: 500; }
.book-already { font-size: 16px; color: var(--ink); margin: 6px 0 4px; }
.book-box .bk-actions { flex-direction: column; align-items: stretch; }

/* ---------- espace membre ---------- */
.me-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-name h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; }
.me-foot .danger-link { margin-top: 0; }
.me-edit-btn { min-height: 30px; padding: 0 12px; font-size: 13px; }
.me-handle { color: var(--muted); font-size: 15px; margin-top: 4px; }
/* bouton du chat Telegram du club : logo officiel bleu */
.tg-chat { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(34,158,217,.7); transition: transform .2s, box-shadow .2s; }
.tg-chat:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #9FD3F0, 0 14px 30px -14px rgba(34,158,217,.8); }
.tg-logo { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #37AEE2, #1E96C8); }
.tg-logo svg { margin-left: -2px; }
.tg-chat-text { display: flex; flex-direction: column; line-height: 1.25; }
.tg-chat-text b { font-weight: 500; font-size: 15px; }
.tg-chat-text small { font-size: 12px; color: var(--muted); }
.me-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.prof-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.prof-av { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: var(--paper-rose); color: var(--wine); display: grid; place-items: center; font-size: 26px; font-weight: 500; box-shadow: 0 0 0 1.5px var(--gold); }
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.prof-photo-actions label.btn { cursor: pointer; }

.me-wrap { max-width: 880px; }
.me-page-head { padding-bottom: 28px; }
.me-head { flex-wrap: wrap; }
.me-hi { flex: 1; min-width: 200px; }
.me-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.me-actions:empty { display: none; }
.me-sec { margin-bottom: 44px; }
.me-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.me-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eyebrow.gold { color: var(--gold); font-weight: 600; }
.meta { font-size: 14.5px; color: var(--ink-soft); }
/* image d'événement avec la date, réutilisée en grand, moyen et petit */
.bk-pic { position: relative; background: var(--paper-rose); overflow: hidden; }
.bk-pic img.cover { width: 100%; height: 100%; object-fit: cover; }
.bk-pic .d { position: absolute; left: 12px; top: 12px; background: var(--white); border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.1; box-shadow: 0 2px 8px rgba(34,30,31,.08); }
.bk-pic .d b { display: block; font-size: 19px; font-weight: 500; }
.bk-pic .d span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bk-pic.sm { width: 132px; border-radius: 8px; align-self: stretch; min-height: 110px; }
.bk-pic.sm .d { left: 8px; top: 8px; padding: 4px 8px; } .bk-pic.sm .d b { font-size: 16px; }
.bk-pic.sm .seal.big { top: 58%; }
.bk-pic.sm .seal.big, .bk-pic.xs .seal.big { width: 46%; box-shadow: 0 0 0 4px rgba(255,255,255,.45), 0 0 0 5px rgba(183,150,83,.3); }
.bk-pic.xs { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.bk-pic.xs .d { display: none; }
.bk-pic.past img.cover { filter: grayscale(.4); }
/* prochain rendez-vous, mis en avant */
.next-bk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(78,35,42,.35); }
.next-bk .bk-pic { min-height: 280px; }
.next-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 6px; }
.next-body h3 { font-size: 26px; letter-spacing: -.02em; margin: 2px 0 4px; }
.bk-state { margin: 14px 0 4px; }
.bk-note { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.next-body .bk-actions { margin-top: auto; padding-top: 20px; }
.link.muted { color: var(--muted); } .link.muted:hover { color: var(--ink); }
/* autres réservations */
.bk-list { display: grid; gap: 14px; }
.bk-row { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.bk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-row h3 { font-size: 18px; margin-top: 2px; }
.bk-row .bk-state { margin: 8px 0 0; }
.bk-row .bk-actions { margin-top: 12px; }
/* Telegram */
.tg-strip { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 12px; background: #EEF4F9; border: 1px solid #DCE7F0; }
.tg-strip > div { flex: 1; }
.tg-strip.on { background: var(--paper-sage); border-color: #DFE4DA; }
.tg-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2AABEE; color: #fff; }
/* souvenirs */
.past-list { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.past-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.past-row:last-child { border-bottom: 0; }
.past-row .bk-main span { display: block; }
.past-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
a.tag { text-decoration: none; }
/* fiche annuaire */
.fiche-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; }
.fiche-card.empty { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.fiche-top { display: flex; align-items: center; gap: 18px; }
.fiche-top h3 { font-size: 20px; }
.fiche-av { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; background: var(--paper-rose); color: var(--wine); display: grid; place-items: center; font-size: 22px; font-weight: 500; box-shadow: 0 0 0 1.5px var(--gold); }
.fiche-av img { width: 100%; height: 100%; object-fit: cover; }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.fiche-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-link { color: var(--danger); text-decoration-color: #E3C4C4; margin-top: 10px; }
/* rien de prévu */
.me-empty { text-align: center; padding: 44px 24px 40px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.me-empty .seal.big { position: relative; left: auto; top: auto; transform: none; display: block; width: 76px; margin: 0 auto 20px; }
.me-empty h3 { font-size: 21px; margin-bottom: 8px; }
.me-empty p { max-width: 380px; margin: 0 auto 22px; }
/* connexion */
.login-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.login-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.login-sent { text-align: center; }
.login-sent h3 { font-size: 22px; margin-bottom: 8px; }
.mail-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; font-size: 24px; }
.login-perks { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 22px; }
.login-perks li { display: flex; gap: 14px; }
.login-perks li > span { color: var(--gold); font-size: 14px; line-height: 1.7; }
.login-perks strong { font-weight: 500; }
.nav a.nav-account { color: var(--wine); font-weight: 500; }
@media (max-width: 760px) {
  .next-bk { grid-template-columns: 1fr; }
  .next-bk .bk-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .next-body { padding: 22px 20px 24px; }
  .next-body .bk-actions .btn { flex: 1; }
  .login-box { grid-template-columns: 1fr; gap: 32px; }
  .login-card { padding: 24px 20px; }
  .me-actions { width: 100%; }
}
@media (max-width: 520px) {
  .bk-row { flex-direction: column; gap: 14px; }
  .bk-pic.sm { width: 100%; aspect-ratio: 16 / 7; min-height: 0; }
  .bk-pic.sm .seal.big { width: 24%; }
  .past-row { flex-wrap: wrap; }
  .past-side { width: 100%; justify-content: flex-start; padding-left: 72px; }
  .past-side:empty { display: none; }
}

/* ---------- tablette & mobile ---------- */
@media (max-width: 1120px) and (min-width: 821px) { .nav { gap: 16px; } .brand-name { display: none; } }
@media (max-width: 960px) {
  .hero-grid, .story, .ev-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { order: -1; padding-bottom: 0; }
  .hero-logo .logo { --s: 180px; }
  .hero { padding-top: 40px; }
  .counters { grid-template-columns: 1fr 1fr; margin-top: 52px; }
  .counters div:nth-child(3) { border-left: 0; padding-left: 0; }
  .counters div { padding-bottom: 20px; }
  .pillars, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { gap: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  section.block { padding: 60px 0; }
  .book-col { position: static; }
  .hdr-join { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .lang { margin-left: auto; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.on { border-bottom-color: var(--line); color: var(--wine); }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 32px 20px 22px; }
  .wrap { padding: 0 16px; }
  .brand-name { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero .cta .btn { flex: 1; }
  .cards { grid-template-columns: 1fr; }
}

/* ================= Espace admin, V2 locale : même DA, plus plat, moins décoré ================= */
body.on-admin .footer { display: none; }
body.on-admin { background: var(--paper); --adm-stick: 70px; } /* 70px : hauteur de l'en-tête, les barres collées se posent dessous */
html.in-app body.on-admin { --adm-stick: var(--sqc-top, 0px); } /* dans l'app iPhone, l'en-tête est la barre native */
/* Le menu du site public disparaît ici : la colonne de gauche suffit. Le logo ramène au site, le compte reste. */
body.on-admin .hdr .nav a:not(#nav-account) { display: none; }
body.on-admin .hdr-join { display: none; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 18px 28px 80px; align-items: start; }
.adm-side { position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(78,35,42,.18) transparent; display: flex; flex-direction: column; gap: 8px; }
.adm-side::-webkit-scrollbar { width: 4px; }
.adm-side::-webkit-scrollbar-track { background: transparent; }
.adm-side::-webkit-scrollbar-thumb { background: rgba(78,35,42,.2); border-radius: 4px; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 10px; }
.adm-brand strong { display: block; font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.adm-brand small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; overflow-wrap: break-word; letter-spacing: 0; text-transform: none; }
.adm-seal { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--gold); }
.adm-seal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.adm-nav { display: flex; flex-direction: column; gap: 0; }
.adm-nav button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px 7px 14px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft); text-align: left; transition: background .15s, color .15s; }
.adm-nav button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.adm-nav button:hover { background: rgba(78,35,42,.04); color: var(--ink); }
.adm-nav button.on { background: transparent; color: var(--ink); font-weight: 500; box-shadow: none; }
.adm-nav button.on svg { opacity: 1; }
.adm-nav button.on::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--wine); }
.adm-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.adm-badge:empty { display: none; }
/* Sous-menus : collés sous l'en-tête, défilement uniquement horizontal (pas de barre visible). */
.adm-main { min-width: 0; }
.adm-subtabs { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 2px; position: sticky; top: var(--adm-stick, 70px); z-index: 18;
  margin: 0 0 22px; padding: 0; border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; touch-action: pan-x; overscroll-behavior-x: contain; overscroll-behavior-y: none;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.adm-subtabs::-webkit-scrollbar { display: none; height: 0; }
.adm-subtab { flex: none; scroll-snap-align: start; white-space: nowrap; padding: 10px 16px; font-size: 14px; line-height: 1.2; color: var(--muted);
  border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; transition: color .15s, background .15s; }
.adm-subtab:hover { color: var(--ink); background: rgba(78,35,42,.04); }
.adm-subtab.on { color: var(--wine); font-weight: 500; border-bottom-color: var(--wine); }

/* Lignes d'infos : une ligne courte, qui s'ouvre en carte. */
.fold-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.fold + .fold { border-top: 1px solid var(--line); }
.fold-line { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px 10px 4px 4px; }
.fold-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 6px; border-radius: 8px; }
.fold-sum:hover { background: rgba(78,35,42,.04); }
.fold-chev { width: 7px; height: 7px; flex: none; margin: 0 2px 0 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s ease; }
.fold.open .fold-chev { transform: rotate(45deg); }
.fold-name { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; font-weight: 500; font-size: 15px; }
.fold-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-key { flex: none; max-width: 34%; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-sum .tag { flex: none; }
.fold-act { flex: none; display: flex; gap: 6px; }
.fold-act .btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
/* bouton Telegram (@pseudo) dans la ligne d'une idée : même hauteur que les autres boutons */
.fold-act { align-items: center; }
.fold-act .btn.sm { white-space: nowrap; }
.fold-act .sn-btns { margin: 0; flex-wrap: nowrap; }
.fold-act .sn-btn { min-height: 34px; font-size: 13.5px; max-width: 200px; }
/* téléphone : la ligne qui a un bouton Telegram passe ses boutons en dessous, le @ reste lisible */
@media (max-width: 560px) { .fold-line:has(.sn-btns) { flex-wrap: wrap; } .fold-line:has(.sn-btns) .fold-act { width: 100%; padding: 0 16px 12px 36px; } }
.fold-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .2s ease, opacity .2s ease; }
.fold.open .fold-body { grid-template-rows: 1fr; opacity: 1; }
.fold-in { overflow: hidden; }
.fold-fields { display: grid; gap: 10px; padding: 2px 16px 8px 36px; }
.fold-field { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; }
.fold-field > b { font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fold-field .sub { display: block; color: var(--muted); font-size: 13px; }
.fold-field select { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; background: var(--paper); font-size: 14px; }
.fold-note { padding: 2px 16px 16px 36px; font-size: 14.5px; line-height: 1.5; }
.fold-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 16px 36px; }
@media (max-width: 980px) {
  .fold-field { grid-template-columns: 1fr; gap: 2px; }
  .fold-fields, .fold-actions, .fold-note { padding-left: 16px; }
  .fold-key { display: none; } /* sur le téléphone : le nom, la pastille et l'action tiennent sur une ligne ; la date est dans la carte */
}
@media (prefers-reduced-motion: reduce) {
  .fold-body, .fold-chev { transition: none; }
}

.adm-top { padding: 0 0 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }

/* cartes et listes */
.adm-card, #admin-body .panel, #admin-body .table-wrap, #admin-body .stats div, #admin-body form#content-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
#admin-body form#content-form { padding: 26px; margin-top: 0 !important; }
.adm-card { padding: 20px 20px 10px; }
.adm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.adm-card-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.adm-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.adm-card-head + .adm-row { border-top: 0; }
a.adm-row:hover strong { color: var(--wine); }
.adm-row-main { flex: 1; min-width: 0; }
.adm-row-main strong { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-row-main span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-row-act { display: flex; gap: 6px; flex: none; }
/* « Plus » : liste de pages, un toucher ouvre la page */
.adm-plus + .adm-plus { margin-top: 14px; }
.adm-plus-row { cursor: pointer; }
.adm-plus-row:hover strong { color: var(--wine); }
.adm-plus-go { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.adm-back { display: inline-block; margin: 0 0 14px; color: var(--ink-soft); }
/* Aujourd'hui : un événement se touche pour ouvrir ses réservations */
.adm-ev-row { cursor: pointer; }
.adm-ev-row:hover strong { color: var(--wine); }
/* Événements : liste compacte (heure et état à droite), fiche d'un événement */
.adm-ev-list { padding-top: 6px; padding-bottom: 6px; }
.adm-ev-list > .adm-row:first-child { border-top: 0; }
.adm-ev-etat { flex: none; display: flex; gap: 6px; }
.adm-ev-time { flex: none; font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-ev-row > .nb { flex: none; }
.adm-ev-bar { align-items: center; }
.adm-ev-bar .chips { margin: 0; }
.adm-exports { margin: 12px 2px 0; color: var(--muted); }
.adm-old { margin-top: 26px; }
.adm-old > summary { cursor: pointer; color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }
.adm-ev-head { margin: 0 0 18px; }
.adm-ev-meta { color: var(--ink-soft); margin: 0 0 12px; }
.adm-ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Envoyer un message : deux familles de canaux */
.adm-canaux { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0 0 16px; }
.adm-canal-g .eyebrow { margin: 0 0 8px; font-size: 11px; }
/* Boutons du bot : cartes d'édition, dispositions prêtes, aperçu façon Telegram (couleurs de Telegram) */
.bt-dispos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 12px; }
.bt-dispos .chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; background: var(--white); color: var(--ink-soft); }
.bt-dispos .chip:hover { border-color: var(--ink); color: var(--ink); }
.bt-carte { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 6px; margin-bottom: 10px; }
.bt-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bt-meme { margin: 0 0 10px; }
.bt-choix { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 12px; }
.bt-choix .pick { margin: 0; }
.bt-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: #DDE7F0; border: 1px solid #C5D3E0; }
.bt-pastille.primary { background: #3390EC; border-color: #3390EC; } .bt-pastille.success { background: #4FAE4E; border-color: #4FAE4E; } .bt-pastille.danger { background: #E5484D; border-color: #E5484D; }
.bt-options .check { margin-bottom: 10px; }
.bt-photo-act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.bt-photo-vue { display: block; max-width: 220px; max-height: 160px; border-radius: 10px; margin: 0 0 8px; object-fit: cover; }
.bt-apercu { max-width: 360px; padding: 12px; border-radius: 14px; background: #C9D8C5; }
.bt-ap-bulle { background: #fff; border-radius: 12px; overflow: hidden; font-size: 14px; line-height: 1.45; }
.bt-ap-txt { padding: 8px 12px; white-space: pre-wrap; }
.bt-ap-photo { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.bt-ap-ligne { display: flex; gap: 4px; margin-top: 4px; }
.bt-ap-btn { flex: 1 1 0; min-width: 0; text-align: center; padding: 9px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.7); color: #2A6FB0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-ap-btn.primary { background: #3390EC; color: #fff; } .bt-ap-btn.success { background: #4FAE4E; color: #fff; } .bt-ap-btn.danger { background: #E5484D; color: #fff; }
/* Filtre replié (centres d'intérêt) */
.adm-plie > summary { cursor: pointer; list-style: none; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.adm-plie > summary::-webkit-details-marker { display: none; }
.adm-plie > summary::before { content: '›'; display: inline-block; width: 12px; transition: transform .2s; }
.adm-plie[open] > summary::before { transform: rotate(90deg); }
.adm-plie-n { font-style: normal; color: var(--muted); }
.adm-plie-n::before { content: '· '; }
/* Site uniquement en russe (novembre 2026) : dans l'admin, plus de version française à écrire ni à tester */
.mt-lang, .seg:has(> button[data-lang="fr"]), [data-tgtest="fr"], [data-mctest="fr"], [data-au-test="fr"], [data-test][data-l="fr"],
.jf-lang:has([data-path$=".fr"]), .field:has(> [data-f^="fr."]), .field:has(> [name="fr"]), .field:has(> [data-bf="fr"]),
.push-filter-group:has(input[name="lang"]) { display: none !important; }
.mm-edit { font-size: 13px; font-weight: 400; margin-left: 8px; vertical-align: middle; }
/* Explications repliées derrière un petit « i » (un toucher les affiche) */
.aide-i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 600 10.5px/1 var(--font); vertical-align: 2px; cursor: pointer; }
.aide-i:hover { border-color: var(--ink); color: var(--ink); }
.aide-i.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.adm-canaux > .aide-i { align-self: flex-end; margin: 0 0 11px -28px; }
.aide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; line-height: 1.5; }
small.aide { display: block; margin-top: 6px; }
@media (max-width: 560px) { .adm-ev-time { display: none; } }   /* petit écran : l'état reste, l'heure est dans la fiche */
.ticket-txt { flex: 1 1 260px; display: grid; gap: 2px; }
/* Réglages techniques : l'explication passe à la ligne */
.adm-setup-row { align-items: flex-start; }
.adm-setup-row .adm-row-main p { margin: 4px 0 0; line-height: 1.45; }
/* Statistiques : les cartes de suivi sous le tableau */
.adm-suivi { margin-top: 28px; display: grid; gap: 18px; }
.adm-suivi > .adm-card.visits { margin-top: 0; }
.adm-row-act .btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.adm-date { width: 36px; flex: none; border-radius: 0; background: none; color: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.adm-date b { font-size: 16px; font-weight: 500; }
.adm-date small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; color: var(--muted); }
.adm-fill { display: block; height: 2px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.adm-fill > i { display: block; height: 100%; border-radius: 2px; background: var(--wine); }
.adm-empty { color: var(--muted); font-size: 14.5px; padding: 12px 0 16px; }

/* visites du site */
.adm-card.visits { margin-top: 18px; padding-bottom: 20px; }
.visits-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.visits-nums b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.visits-nums span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.visits-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.visits-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--wine); opacity: .28; min-width: 0; }
.visits-bars i:last-child { background: var(--wine); opacity: 1; }
.visits-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.visits-src { margin-top: 18px; display: grid; gap: 8px; }
.visits-src > div { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.visits-src > div > i { display: block; height: 6px; border-radius: 6px; background: #F1ECE6; overflow: hidden; }
.visits-src > div > i > i { display: block; height: 100%; background: var(--wine); border-radius: 6px; }
.visits-src b { font-weight: 500; text-align: right; color: var(--ink-soft); }
@media (max-width: 980px) { .visits-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 13px; box-shadow: none; }
a.kpi:hover { border-color: var(--line-strong); }
.kpi b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.kpi.accent { background: var(--white); border-color: var(--line); color: inherit; }
.kpi.accent b { color: var(--wine); }
.kpi.accent span { color: var(--muted); }

/* rubriques existantes, rhabillées */
#admin-body > .toolbar:first-child { margin-top: 0; justify-content: flex-end; }
#admin-body > .toolbar:first-child > h3 { display: none; } /* le titre de la rubrique est déjà en haut de page */
@media (max-width: 980px) { #admin-body > .toolbar:first-child { justify-content: flex-start; } }
#admin-body .toolbar h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
#admin-body .table-wrap { overflow: auto; }
#admin-body th { background: #FBF8F4; font-size: 11.5px; padding: 12px 16px; }
#admin-body tbody tr { transition: background .15s; }
#admin-body tbody tr:hover { background: #FCFAF7; }
#admin-body .panel { padding: 22px; }
#admin-body .stats { border: 0; background: none; gap: 14px; overflow: visible; }
#admin-body .stats div { border-right: 1px solid rgba(214,204,198,.6); border-bottom: 1px solid rgba(214,204,198,.6); }
#admin-body .field input:not([type=file]):not([type=checkbox]), #admin-body .field textarea, #admin-body .field select { border-radius: 8px; background: var(--paper); }
#admin-body { font-variant-numeric: tabular-nums; }
#admin-body .field input:focus, #admin-body .field textarea:focus, #admin-body .field select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-tint); }

/* « Mise en ligne » : petite carte avec barre de progression, dans la barre latérale */
.adm-side .setup { margin: 0; background: #fff; border: 1px solid rgba(214,204,198,.6); border-radius: 14px; padding: 12px 14px; }
.adm-side .setup summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.adm-side .setup summary::-webkit-details-marker { display: none; }
.adm-side .setup summary span { font-size: 12.5px; color: var(--muted); }
.setup-bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 4px; background: #F1ECE6; overflow: hidden; }
.setup-bar > i { display: block; height: 100%; background: var(--wine); border-radius: 4px; }
.adm-side .setup summary small { grid-column: 1 / -1; color: var(--warn); font-size: 12px; }
.adm-side .setup ul { margin: 12px 0 6px; gap: 8px; font-size: 13px; }
.adm-side .setup li .muted.small { font-size: 12px; line-height: 1.45; }
.adm-side .setup > p { font-size: 11.5px; line-height: 1.45; }

/* tablette et téléphone : rubriques en pastilles qui défilent, collées sous l'en-tête */
@media (max-width: 980px) {
  .adm { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px 80px; }
  .adm-side { display: contents; } /* ses éléments rejoignent la colonne : la barre de pastilles peut rester collée en haut */
  .adm-brand { display: none; }   /* téléphone : le nom et l'adresse de la personne connectée restent sur ordinateur */
  .adm-nav { position: sticky; top: 70px; z-index: 20; flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px;
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav button { width: auto; flex: none; padding: 10px 12px; border-radius: 0; font-size: 13.5px; background: transparent; box-shadow: none; }
  .adm-nav button svg { width: 15px; height: 15px; }
  .adm-nav button.on { background: transparent; color: var(--ink); box-shadow: none; }
  .adm-nav button.on::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; }
  .adm-badge { margin-left: 2px; }
  .adm-side #admin-setup:not(:empty) { margin-top: 12px; }
  /* cinq entrées : toutes visibles, de même largeur, icône au-dessus du nom (comme une barre d'onglets d'iPhone) */
  .adm-nav { height: 54px; align-items: stretch; overflow-x: visible; padding: 0 4px; }
  .adm-nav button { height: 100%; padding: 0 2px; flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; font-size: 11.5px; text-align: center; }
  .adm-nav button span:not(.nb) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-nav button svg { width: 18px; height: 18px; }
  .adm-nav button > .nb, .adm-nav button > .adm-badge { position: absolute; top: 4px; left: calc(50% + 5px); margin: 0; }
  .adm-subtabs { top: calc(var(--adm-stick, 70px) + 54px); margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .adm-top { padding: 18px 0 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 26px; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- carte de membre (espace membre) : une matière par statut ---------- */
.mcard { position: relative; width: min(100%, 380px); aspect-ratio: 1.586; border-radius: 20px; padding: 20px 22px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--c-ink); background: var(--c-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 22px 40px -24px var(--c-shadow), 0 2px 6px -2px rgba(0,0,0,.12); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mcard:hover { transform: translateY(-3px) rotate(-.5deg); }
.mcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-sheen); mix-blend-mode: soft-light; }
.mcard::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-edge); }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-seal { position: relative; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px var(--c-ring), 0 4px 12px -4px rgba(0,0,0,.35); }
.mc-seal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-club { align-self: center; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; white-space: nowrap; line-height: 1; } /* une ligne, alignée sur le sceau */
.mc-tier { font-family: 'Unbounded', var(--font); font-weight: 300; font-size: clamp(22px, 6vw, 27px); letter-spacing: -.01em; line-height: 1.05; }
.mc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mc-name { font-family: 'Pinyon Script', 'Great Vibes', cursive; font-size: 21px; line-height: 1.15; letter-spacing: 0; color: #6B1E2E; padding: 0 .1em .06em 0; word-break: break-word;
  text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.mc-fondatrice .mc-name, .mc-equipe .mc-name { color: #E9B9C2; text-shadow: 0 1px 1px rgba(0,0,0,.45); } /* bordeaux clair : lisible sur fond sombre */
.mc-since { font-size: 11px; opacity: .7; white-space: nowrap; }
.mc-fondatrice { --c-bg: radial-gradient(120% 140% at 85% 0%, #3A1E25 0%, #140B0E 55%, #0B0708 100%); --c-ink: #F3DFB4; --c-shadow: #2B0F15; --c-edge: rgba(243,223,180,.28); --c-ring: #E3C27F;
  --c-sheen: linear-gradient(115deg, transparent 30%, rgba(243,214,150,.55) 48%, transparent 62%); }
.mc-equipe { --c-bg: linear-gradient(145deg, #5E2A33 0%, #3B1A20 100%); --c-ink: #FBEFF0; --c-shadow: #3B1A20; --c-edge: rgba(255,255,255,.14); --c-ring: rgba(255,255,255,.6);
  --c-sheen: radial-gradient(80% 90% at 0% 100%, rgba(255,255,255,.25), transparent 60%); }
.mc-ambassadrice { --c-bg: linear-gradient(135deg, #F2D3CB 0%, #D99A9F 45%, #B9707F 100%); --c-ink: #3A1820; --c-shadow: #B9707F; --c-edge: rgba(255,255,255,.45); --c-ring: #fff;
  --c-sheen: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.75) 45%, transparent 60%); }
.mc-premium { --c-bg: linear-gradient(135deg, #F6E6BC 0%, #D9B66A 50%, #A98234 100%); --c-ink: #2E220B; --c-shadow: #A98234; --c-edge: rgba(255,255,255,.45); --c-ring: #fff;
  --c-sheen: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.8) 45%, transparent 60%); }
.mc-membre { --c-bg: linear-gradient(150deg, #FFFFFF 0%, #F4EEE8 60%, #E9E2DA 100%); --c-ink: #2A2224; --c-shadow: #B8AA9E; --c-edge: rgba(183,150,83,.45); --c-ring: #C9A24B;
  --c-sheen: radial-gradient(70% 80% at 100% 0%, rgba(201,162,75,.18), transparent 70%); }
.mc-invitee { --c-bg: linear-gradient(150deg, #FFFFFF, #F6F1EE); --c-ink: var(--ink); --c-shadow: rgba(0,0,0,.25); --c-edge: transparent; --c-ring: var(--line); --c-sheen: none; border: 1.5px dashed var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .mcard { transition: none; } .mcard:hover { transform: none; } }

/* annuaire : « membre depuis » ajustable */
.since-cell { white-space: nowrap; }
.since-cell .link { margin-left: 6px; font-size: 12.5px; }
.since-input { border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13.5px; margin-right: 6px; }

/* admin : « Écrire avec Claude » */
.claude-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.claude-form { padding: 20px 20px 6px; }
.claude-out { padding-bottom: 18px; }
.claude-out textarea { width: 100%; min-height: 300px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; font: inherit; font-size: 14px; line-height: 1.55; background: #FDFBF9; resize: vertical; }
.claude-act { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
@media (max-width: 980px) { .claude-grid { grid-template-columns: minmax(0, 1fr); } }

/* bouton « Ajouter à Apple Wallet » : noir, comme le badge officiel d'Apple */
.wallet-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.wallet-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.wallet-btn:hover { background: #1c1c1e; }

.join-section { margin-bottom: 16px; }

/* admin : éditeur du formulaire d'adhésion */
.jf h3 { margin-bottom: 4px; }
.jf > .muted { margin-bottom: 16px; }
.jf-text { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.jf-text b { font-weight: 500; font-size: 14px; padding-top: 9px; }
.jf-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.jf-text .jf-langs { margin-top: 0; }
.jf-lang { display: flex; align-items: flex-start; gap: 6px; }
.jf-lang span { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .08em; padding-top: 10px; width: 20px; }
.jf-lang input, .jf-lang textarea, .jf-custom select, .jf-opts textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font-size: 14px; background: var(--white); }
.jf-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.jf-row.off .jf-body { opacity: .5; }
.jf-row.section { background: linear-gradient(90deg, rgba(183,150,83,.07), transparent); }
.jf-move { display: flex; flex-direction: column; gap: 4px; }
.jf-move button { width: 30px; height: 26px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; color: var(--ink-soft); background: var(--white); }
.jf-move button:disabled { opacity: .3; cursor: default; }
.jf-body b { font-weight: 500; }
.jf-toggles { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.jf-toggles .check { margin: 0; font-size: 13.5px; }
.jf-custom { display: grid; grid-template-columns: 180px 1fr; gap: 10px; margin-top: 8px; }
.jf-custom label > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.jf-add { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.jf-bar { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 20px; box-shadow: 0 12px 30px -16px rgba(34,30,31,.35); }
@media (max-width: 700px) { .jf-text, .jf-langs, .jf-custom { grid-template-columns: 1fr; } .jf-row { grid-template-columns: 34px 1fr; } .jf-toggles { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 14px; } }

.join-consent { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 18px; padding: 16px 16px 16px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(150deg, #FFFFFF, #F7F1E6); box-shadow: inset 0 0 0 1px rgba(183,150,83,.55), 0 10px 24px -18px rgba(183,150,83,.9); transition: box-shadow .25s, background .25s; }
.join-consent:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 12px 28px -16px rgba(183,150,83,.9); }
.join-consent input { position: absolute; opacity: 0; pointer-events: none; }
.jc-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--wine); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(183,150,83,.6); }
.jc-ico svg { width: 22px; height: 22px; }
.jc-text { flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.jc-text b { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.jc-box { width: 24px; height: 24px; flex: none; margin-top: 8px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: all .2s; }
.join-consent input:checked ~ .jc-box { background: var(--wine); border-color: var(--wine); }
.join-consent input:checked ~ .jc-box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.join-consent input:focus-visible ~ .jc-box { outline: 2px solid var(--wine); outline-offset: 2px; }
.join-consent:has(input:checked) { background: linear-gradient(150deg, #FFFDF8, #F3E8D4); box-shadow: inset 0 0 0 1.5px var(--gold), 0 12px 28px -16px rgba(183,150,83,.9); }

/* ---------- annuaire des membres : cartes dans l'esprit de la carte de membre ---------- */
.dir-filters { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: center; }
.dir-search { position: relative; display: block; }
.dir-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dir-search input, .dir-filters select { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 15px; padding: 0 18px; transition: border-color .2s, box-shadow .2s; }
.dir-search input { padding-left: 44px; }
.dir-search input:focus, .dir-filters select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(183,150,83,.15); }
.dir-tags { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.dir-tags::-webkit-scrollbar { display: none; }
.dir-tags button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; color: var(--ink-soft); transition: all .2s; }
.dir-tags button:hover { border-color: var(--gold); color: var(--ink); }
.dir-tags button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.dir-meta { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 14px; font-size: 13.5px; color: var(--muted); }
/* --- liste contacts annuaire --- */
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-row { display: flex; align-items: center; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.dir-row:last-child { border-bottom: 0; }
.dir-row:focus-visible { background: var(--paper-rose); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.dir-row-av { width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden; background: var(--paper-rose); color: var(--wine); font-weight: 600; font-size: 17px; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--gold); }
.dir-row-av img { width: 100%; height: 100%; object-fit: cover; }
.dir-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dir-row-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-row-job { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dir-row-you { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.dir-row-bot { flex: none; font-size: 11px; padding: 2px 8px; }
.dir-row-arr { flex: none; color: var(--line-strong); width: 18px; height: 18px; }
.dir-none { padding: 32px 0; text-align: center; color: var(--muted); list-style: none; }
/* bottom sheet annuaire */
.dir-sh-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 140; opacity: 0; pointer-events: none; transition: opacity .25s; }
.dir-sh-back.open { opacity: 1; pointer-events: all; }
.dir-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--paper); border-radius: 20px 20px 0 0; z-index: 141; padding: 0 22px 48px; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); max-height: 88vh; overflow-y: auto; }
.dir-sheet.open { transform: translateY(0); }
.dir-sh-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 12px auto 20px; }
/* carte retournable dans la sheet */
.dir-card-wrap { display: flex; justify-content: center; }
.dir-card { width: 100%; max-width: 340px; height: 210px; perspective: 1000px; -webkit-perspective: 1000px; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.dir-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); -webkit-transition: -webkit-transform .7s cubic-bezier(.3,.7,.2,1); border-radius: 20px; }
.dir-card.flipped .dir-card-inner { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); }
.dir-card-front, .dir-card-back { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; isolation: isolate; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: var(--c-ink); background: var(--c-bg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 20px 40px -22px var(--c-shadow), 0 2px 8px -2px rgba(0,0,0,.12); }
@media (max-width: 480px) {
  .dir-card { max-width: none; height: calc((100vw - 44px) / 1.586); }
}
.dir-card-front::before, .dir-card-back::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-sheen); mix-blend-mode: soft-light; }
.dir-card-front::after, .dir-card-back::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-edge); }
.dir-card-front { padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.dir-cf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dir-cf-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; box-shadow: 0 0 0 2px var(--c-ring), 0 4px 14px -4px rgba(0,0,0,.4); }
.dir-cf-av img { width: 100%; height: 100%; object-fit: cover; }
.dir-cf-tier { font-family: 'Unbounded', var(--font); font-weight: 300; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; text-align: right; line-height: 1.35; }
.dir-cf-hint { position: absolute; bottom: 8px; left: 10px; font-size: 11px; opacity: .35; }
.dir-cf-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.dir-cf-name { font-family: 'Pinyon Script', 'Great Vibes', cursive; font-size: 30px; line-height: 1.1; color: #6B1E2E; }
.mc-fondatrice .dir-cf-name, .mc-equipe .dir-cf-name { color: #E9B9C2; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.dir-cf-since { font-size: 11px; opacity: .65; white-space: nowrap; }
.dir-card-back { transform: rotateY(180deg); padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; }
.dir-cb-nameSmall { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin: 0; }
.dir-cb-job { font-size: 14px; font-weight: 500; line-height: 1.35; margin: 0; }
.dir-cb-tags { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; overflow-y: auto; scrollbar-width: thin; }
.dir-cb-tags::-webkit-scrollbar { width: 3px; }
.dir-cb-tags::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 2px; }
.dir-cb-tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px var(--c-edge); }
.mc-fondatrice .dir-cb-tags span, .mc-equipe .dir-cb-tags span { background: rgba(255,255,255,.1); }
.dir-cb-links { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.dir-cb-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; color: inherit; text-decoration: none; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px var(--c-edge); transition: background .2s; }
.mc-fondatrice .dir-cb-links a, .mc-equipe .dir-cb-links a { background: rgba(255,255,255,.12); }
.dir-cb-links a:hover { background: rgba(255,255,255,.8); color: var(--wine); }
.dir-cb-links svg { width: 15px; height: 15px; }
@media (hover: none) { .dir-cf-hint { animation: dir-flip-hint 2.4s ease 1.2s 2 both; } @keyframes dir-flip-hint { 0%,100%{opacity:.4} 55%{opacity:1;transform:rotate(20deg) scale(1.3)} } }
.dir-invite { max-width: 520px; margin: 10px auto 0; text-align: center; padding: 44px 28px; border: 1px dashed var(--line-strong); border-radius: 20px; }
.dir-invite .seal.big { position: relative; left: auto; top: auto; transform: none; display: block; width: 76px; margin: 0 auto 18px; }
.dir-invite h3 { font-size: 21px; margin-bottom: 10px; }
.dir-invite p { margin-bottom: 22px; line-height: 1.6; }
.dir-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink); font-size: 15px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(183,150,83,.8); transition: transform .2s; }
.dir-link:hover { transform: translateY(-1px); }
.dir-link-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--wine); background: linear-gradient(150deg, #FFF, #F4EEE8); box-shadow: inset 0 0 0 1.5px rgba(183,150,83,.6); }
.dir-link-ico svg { width: 24px; height: 24px; }
.me-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.me-actions:empty { display: none; }
.prof-annuaire { margin: 4px 0 18px; font-size: 14px; }
@media (max-width: 640px) {
  .dir-filters { grid-template-columns: 1fr; }
}

/* événement : carte, itinéraire, reel */
.ev-geo { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; }
.ev-geo a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--wine); text-decoration: none; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.ev-geo a:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.ev-geo svg { width: 16px; height: 16px; }
.ev-hint { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ev-reel svg { width: 17px; height: 17px; margin-right: 2px; }
/* admin : cadrage de la photo d'événement */
.photo-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; cursor: crosshair; touch-action: none; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.photo-focus { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(201,162,75,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }

/* Admin : textes des e-mails automatiques */
.mt-list { display: grid; gap: 10px; }
.mt-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.mt-item.open { border-color: var(--line-strong); }
.mt-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; }
.mt-head .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mt-chev { font-size: 20px; color: var(--muted); }
.mt-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 4px 18px 18px; }
.mt-edit { display: grid; gap: 12px; align-content: start; }
.mt-lang { justify-self: start; }
.mt-field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.mt-field input, .mt-field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); }
.mt-field textarea { resize: vertical; line-height: 1.5; }
.mt-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mt-vars .chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-family: ui-monospace, Menlo, monospace; color: var(--ink-soft); }
.mt-vars .chip:hover { border-color: var(--ink); color: var(--ink); }
.mt-edit .jf-bar { position: static; }
.mt-prev iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 10px; background: #FAF7F2; }
@media (max-width: 860px) { .mt-body { grid-template-columns: 1fr; } .mt-prev iframe { height: 520px; } }
/* Messages des événements : les étapes, une carte par étape */
.ms-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-pick select { max-width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font: inherit; font-size: 14px; }
.ms-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.ms-steps::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.ms-step { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.ms-n { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-top: 12px; }
.ms-step.mini .ms-n { background: var(--white); color: var(--wine); border: 2px solid var(--wine); }
.ms-card { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 14px 16px; display: grid; gap: 10px; }
.ms-card h4 { margin: 0; font-size: 17px; }
.ms-item { border-top: 1px solid var(--line); padding-top: 10px; }
.ms-item.off .ms-name, .ms-item.off .ms-ch { opacity: .5; }
.ms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ms-name { flex: 1 1 220px; min-width: 0; }
.ms-name .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ms-ch { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); }
.ms-ch.tg { background: #E3F0FA; color: #1F6FA8; }
.ms-tog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ms-item .mt-body { padding: 14px 0 4px; }
.ms-autos { display: grid; gap: 8px; }
.ms-auto { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14px; }
@media (max-width: 600px) { .ms-steps::before { left: 13px; } .ms-n { width: 28px; height: 28px; } .ms-card { padding: 12px; } }
.mt-lang button.on { background: var(--ink); color: var(--white); }

/* Admin : notifications */
.nt-panel { max-width: 680px; display: grid; gap: 18px; }
.nt-state { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nt-state > div { flex: 1; min-width: 200px; }
.nt-state .sub, .nt-opt .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nt-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); flex: none; }
.nt-state.on .nt-dot { background: var(--ok); box-shadow: 0 0 0 5px var(--paper-sage); }
.nt-opts { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.nt-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.nt-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wine); flex: none; }
.nt-help { max-width: 680px; margin-top: 16px; }
.nt-help summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.nt-how { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-top: 10px; }
.nt-how ol { margin: 6px 0 12px 20px; }
/* Diffusion push admin */
.push-diffusion { max-width: 680px; }
.push-total-badge { display: inline-block; background: var(--paper-sage); color: var(--wine); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.push-stat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; min-height: 22px; }
.push-filter-group { margin-top: 14px; }
.push-filter-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.push-filter-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.push-ck { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; }
.push-ck input { width: 16px; height: 16px; accent-color: var(--wine); flex: none; }
.push-ck .sub { color: var(--muted); font-size: 12px; }
.push-apercu { font-size: 13px; color: var(--muted); margin: 16px 0 12px; min-height: 18px; }
.push-mode-tabs { display: flex; gap: 4px; margin: 16px 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.push-mode-tab { padding: 8px 16px; font-size: 13.5px; color: var(--muted); border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; margin-bottom: -1px; }
.push-mode-tab:hover { color: var(--ink); }
.push-mode-tab.on { color: var(--wine); font-weight: 500; border-bottom-color: var(--wine); }
.push-perso { margin-top: 14px; }
.push-perso-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.push-perso-head input[type=text] { flex: 1; min-width: 160px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: var(--paper); color: var(--ink); }
.push-perso-acts { display: flex; gap: 6px; }
.push-perso-acts button { font-size: 12.5px; color: var(--wine); text-decoration: underline; padding: 4px 0; }
.push-perso-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; scrollbar-width: thin; }
.push-perso-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.push-perso-row:last-child { border-bottom: 0; }
.push-perso-row:hover { background: rgba(78,35,42,.04); }
.push-perso-row input { width: 16px; height: 16px; accent-color: var(--wine); flex: none; }
.push-perso-name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-perso-meta { font-size: 12px; color: var(--muted); flex: none; }
.push-perso-count { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.push-who { margin: 12px 0 4px; }
.push-who summary { font-size: 13.5px; color: var(--muted); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.push-who summary::before { content: '▶'; font-size: 9px; transition: transform .2s; }
.push-who[open] summary::before { transform: rotate(90deg); }
.push-who-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow-y: auto; scrollbar-width: thin; }
.push-who-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.push-who-row:last-child { border-bottom: 0; }
.book-join { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.book-join .btn { width: 100%; }
/* Aperçu du reel Instagram sur la page de l'événement */
.ev-reel-embed { margin: 22px 0 6px; max-width: 360px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 34px -26px rgba(0,0,0,.35); }
/* coupé juste sous « Voir plus sur Instagram » (la vidéo d'Instagram fait 1,25 × la largeur) */
.ev-reel-embed { container-type: inline-size; }
.ev-reel-embed iframe { display: block; width: 100%; height: 548px; height: calc(125cqw + 98px); border: 0; }
@media (max-width: 520px) { .ev-reel-embed { max-width: none; } }
/* « Je veux créer un événement » */
.propose-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 14.5px; }
.propose-link:hover { border-color: var(--ink); }
button.dir-link { border: 0; cursor: pointer; font: inherit; }
.prop-list { display: grid; gap: 10px; margin-bottom: 8px; }
.prop-item { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px 18px; }
.prop-item.done { opacity: .55; }
.prop-main .sub { display: block; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.prop-idea { white-space: pre-line; font-size: 14.5px; margin-bottom: 6px; }
.prop-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; }
@media (max-width: 640px) { .prop-item { flex-direction: column; } .prop-act { flex-direction: row; align-items: center; } }
/* Fenêtre « Le club dans ton téléphone » */
.app-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.app-head img { border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); flex: none; }
.app-head h2 { margin: 0 0 4px; }
.app-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.app-sec h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.app-steps { margin: 0 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.app-steps li.warn { list-style: none; margin-left: -20px; padding: 10px 12px; border-radius: 10px; background: #F7E9E6; color: var(--danger); }
.app-on { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ok); margin-bottom: 6px; }
/* Admin : suivi partagé (à faire / en cours / fait) */
.task-new { display: grid; gap: 10px; margin-bottom: 22px; }
.task-new input, .task-new textarea, .task-new select { width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 14.5px; background: var(--white); }
.task-new-row { display: flex; gap: 12px; align-items: end; justify-content: space-between; }
.task-new-row label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.task-new-row select { width: auto; padding: 7px 12px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.kcol h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.k-doing h4 { color: #B08A3E; } .k-done h4 { color: var(--ok); }
.kcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; box-shadow: 0 8px 18px -16px rgba(0,0,0,.4); }
.k-done .kcard { opacity: .7; }
.kcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kcard-top b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.kdet { font-size: 13.5px; color: var(--ink-soft); white-space: pre-line; line-height: 1.5; }
.kfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kbtns { display: flex; gap: 4px; }
.kbtns button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.kbtns button:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 860px) { .kanban { grid-template-columns: 1fr; } }
.app-head h2 { font-size: 22px; line-height: 1.2; }
.app-head .sub { font-size: 14px; line-height: 1.45; }
/* Connexion par Telegram */
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.tg-login { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #2AABEE; color: #fff; border-color: #2AABEE; }
.btn.tg-login:hover { background: #229ED9; border-color: #229ED9; }
/* Rappel « Active le bot du club » (Mon espace, une fois par jour au plus) */
.tgn { text-align: center; padding: 6px 4px 0; }
.tgn-ico { width: 60px; height: 60px; border-radius: 50%; background: #2AABEE; color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(42, 171, 238, .28); }
.tgn h2 { font-size: 24px; margin: 0 0 10px; }
.tgn > p.muted { margin: 0 0 20px; line-height: 1.55; }
.tgn .tgn-how { margin: 10px 0 14px; }
.tgn .link { display: block; margin: 8px auto 0; }
.tg-wait { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.tg-wait-ico { width: 56px; height: 56px; border-radius: 50%; background: #2AABEE; color: #fff; display: grid; place-items: center; animation: tgpulse 1.6s ease-in-out infinite; }
.tg-wait-ico svg { width: 26px; height: 26px; }
@keyframes tgpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,171,238,.45); } 50% { box-shadow: 0 0 0 12px rgba(42,171,238,0); } }
.app-what { list-style: none; display: grid; gap: 6px; margin: 0 0 14px; font-size: 14.5px; }
.app-what li { display: flex; gap: 10px; align-items: baseline; }
.app-what span { width: 20px; text-align: center; flex: none; }
.app-how { font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.app-sec .app-steps { margin-bottom: 14px; }
.app-what { padding: 0; }
/* Paiement par lien et ajout au calendrier */
.cal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pay-note { text-align: center; margin: 2px 0 14px; }
.bk-actions .cal-btn + .btn, .bk-actions .btn + .cal-btn { margin-top: 0; }
/* Réservations (admin) : les trois étapes */
.bk-cell .tag { display: inline-block; margin-bottom: 4px; }
.bk-row-btns { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
/* Mes réservations (membre) */
.bk-where { margin-top: -2px; }
.me-sec-more { margin-top: -10px; }
/* Histoire du club : le texte, et la photo de la créatrice à droite */
.story-page.with-founder { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--paper), 0 0 0 8px rgba(183,150,83,.45); }
@media (max-width: 760px) { .story-page.with-founder { grid-template-columns: 1fr; } .founder-photo { max-width: 260px; margin: 0 auto; } }

/* Page Partenariats — en développement */
.part-wip-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px 5px 10px; border-radius: 20px; border: 1.5px dashed var(--gold); color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.part-wip-badge::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: part-blink 1.6s ease-in-out infinite; }
@keyframes part-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 40px 0; pointer-events: none; }
.part-card { padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.part-blur { filter: blur(4px); opacity: .45; }
.part-logo-ph { height: 48px; border-radius: 8px; background: var(--line-strong, rgba(0,0,0,.12)); }
.part-line { height: 10px; border-radius: 5px; background: var(--line-strong, rgba(0,0,0,.12)); }
.part-line.short { width: 55%; }
.part-cta { text-align: center; padding: 40px 0 0; }
.part-cta-text { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; max-width: 460px; margin-left: auto; margin-right: auto; }
/* Nav mobile : histoire et contact en secondaire */
@media (max-width: 820px) {
  .nav a[data-nav="histoire"], .nav a[data-nav="contact"] { opacity: .65; font-size: 15px; }
}

/* Réservations passées : section repliable */
.past-details { border: none; }
.past-summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 2px 0 14px; }
.past-summary::-webkit-details-marker { display: none; }
.past-summary .me-h { margin: 0; }
.past-summary::after { content: '›'; font-size: 18px; opacity: .4; transition: transform .2s; margin-left: auto; }
details[open] .past-summary::after { transform: rotate(90deg); }
.past-count { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--ink-soft); }
/* Admin V2 : choix de vue (Messages automatiques) et de canal (Envoyer un message), sections « En plus », journal */
.v2-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.v2-views.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-views button { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font: inherit; cursor: pointer; display: grid; gap: 3px; color: inherit; }
.v2-views button b { font-size: 15.5px; font-weight: 600; }
.v2-views button span { font-size: 12.5px; color: var(--muted); }
.v2-views button:hover { border-color: var(--line-strong); }
.v2-views button.on { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); background: var(--wine-tint); }
.v2-views button.on b { color: var(--wine); }
.v2-more { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.v2-more:empty { display: none; }
.v2-jbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.v2-jbar input { flex: 0 1 280px; min-width: 0; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: 14px; background: var(--white); }
@media (max-width: 600px) { .v2-views.three { grid-template-columns: 1fr; } .v2-views button { padding: 12px 14px; } .v2-jbar input { flex: 1 1 100%; } }
[data-au-preset] { white-space: normal; text-align: left; max-width: 100%; height: auto; }

/* V2 : notifications sur le téléphone */
.ms-ch.push { background: #EEE8F7; color: #5B3F8C; }
.ms-phone { background: linear-gradient(160deg, #3a2f4a, #1d1a24); border-radius: 22px; padding: 26px 12px 40px; max-width: 340px; }
.ms-notif { display: grid; gap: 2px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; color: #1d1a24; overflow-wrap: anywhere; }
.ms-notif-app { font-size: 11px; color: #6b6576; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }

/* Éditeur d'événement : état d'HelloAsso et bouton de test */
#ev-ha-note .ha-err { display: block; margin-top: 8px; color: #8E2B3A; }
#ev-ha-note .ha-test { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
#ev-ha-note .ok { color: #2E7D4F; } #ev-ha-note .bad { color: #8E2B3A; }

/* Réservation : où recevoir son billet */
.book-via-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.book-via-note { margin: 8px 0 0; }

/* Barre d'onglets du bas (téléphone, personne connectée), façon « Liquid Glass » d'iOS 26 :
   une pilule de verre qui flotte, floute et sature ce qui passe dessous, avec un reflet sur le bord ;
   une lentille de verre glisse sous l'onglet actif ; la barre se resserre quand on fait défiler vers le bas. */
.tabbar { --n: 5; --i: 0; --pad: 6px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: var(--pad); border-radius: 30px; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04); backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(34,30,31,.06), 0 10px 34px rgba(34,30,31,.16), 0 2px 6px rgba(34,30,31,.06);
  transition: left .35s cubic-bezier(.3,.7,.2,1), right .35s cubic-bezier(.3,.7,.2,1), padding .35s, border-radius .35s;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* reflet : la lumière glisse sur le haut du verre */
.tabbar::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 70% at 50% -20%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%), linear-gradient(100deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 60%); }
.tabbar[hidden], body.on-admin .tabbar { display: none; }
/* la lentille sous l'onglet actif : une goutte de verre transparente, reflet sur le haut, lueur dorée en bas,
   cerclée d'un filet d'or (dégradé clair → foncé, comme du métal poli) ; l'icône active est un peu grossie, comme sous une loupe */
.tab-lens { position: absolute; z-index: -1; top: var(--pad); bottom: var(--pad); left: var(--pad); width: calc((100% - 2 * var(--pad)) / var(--n)); border-radius: 24px;
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s cubic-bezier(.34,1.45,.5,1), opacity .2s;
  background:
    radial-gradient(ellipse 36% 20% at 50% 16%, rgba(255,255,255,.95), rgba(255,255,255,0)),
    radial-gradient(70% 45% at 50% 110%, rgba(183,150,83,.2), rgba(183,150,83,0) 70%),
    radial-gradient(130% 95% at 28% 8%, rgba(255,255,255,.7), rgba(255,255,255,.25) 45%, rgba(255,255,255,.08) 80%);
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.06); backdrop-filter: blur(3px) saturate(180%) brightness(1.06);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.95), inset 0 -3px 7px rgba(143,108,46,.1), 0 7px 18px rgba(78,35,42,.15), 0 1px 3px rgba(78,35,42,.1); }
.tab-lens::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: .6px; pointer-events: none; /* filet doré très fin */
  background: linear-gradient(135deg, #F4E6B8, #C8A55C 28%, #8F6C2E 50%, #D9BD78 72%, #F4E6B8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tabbar.no-lens .tab-lens { opacity: 0; }
/* glissé du doigt : la lentille suit le doigt (sans délai), un peu plus grande, comme une goutte soulevée */
.tabbar.dragging .tab-lens { transform: translateX(var(--x, 0px)) scale(1.06); transition: transform .08s linear; }
.tab.hover { color: var(--wine); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 7px 2px 6px; min-height: 52px; text-decoration: none; color: #6E6468;
  font-size: 10.5px; line-height: 1.15; letter-spacing: -.01em; border-radius: 24px; -webkit-tap-highlight-color: transparent; transition: transform .25s cubic-bezier(.34,1.6,.5,1), color .2s; }
.tab:active { transform: scale(.9); }
.tab, .tab * { -webkit-user-drag: none; }
.tab[hidden] { display: none; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.tab span { transition: opacity .25s, max-height .3s; max-height: 16px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab.on { color: var(--wine); font-weight: 600; }
.tab.on svg { stroke-width: 2.1; transform: translateY(-1px) scale(1.12); }
/* en faisant défiler vers le bas : une pilule plus courte, sans les mots */
.tabbar.compact { left: 18%; right: 18%; --pad: 4px; border-radius: 26px; }
.tabbar.compact .tab { min-height: 42px; padding: 6px 2px; }
.tabbar.compact .tab span { opacity: 0; max-height: 0; }
/* transparence réduite (réglage d'accessibilité) : verre presque opaque */
@media (prefers-reduced-transparency: reduce) { .tabbar { background: rgba(255,255,255,.96); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .tabbar, .tab-lens, .tab { transition: none; } }
/* ordinateur : pas de barre (le menu du haut suffit) ; un téléphone à l'horizontale, plus large que 820 px, la garde */
@media (min-width: 821px) and (min-height: 501px), (min-width: 821px) and (pointer: fine) { .tabbar { display: none; } }
/* tailles d'écran : petits iPhone (SE, mini), grands téléphones et tablettes, téléphone à l'horizontale */
@media (max-width: 359px) { .tabbar { left: 8px; right: 8px; --pad: 4px; } .tab { font-size: 9.5px; min-height: 48px; padding: 6px 1px 5px; } .tab svg { width: 22px; height: 22px; } }
@media (min-width: 560px) and (max-width: 820px) { .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); } .tabbar.compact { left: 50%; right: auto; width: 300px; } }
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .tabbar { left: 50%; right: auto; width: min(420px, 70vw); transform: translateX(-50%); bottom: calc(6px + env(safe-area-inset-bottom)); --pad: 4px; }
  .tab { min-height: 40px; padding: 5px 2px; } .tab span { opacity: 0; max-height: 0; }
  body.has-tabbar:not(.on-admin) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
@media (max-width: 820px) {
  body.has-tabbar:not(.on-admin) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.has-tabbar:not(.on-admin) .chat-bubble, body.has-tabbar:not(.on-admin) .notif { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* « Réglages » de Mon espace : une liste, une icône par ligne */
.me-list { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.me-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.me-row:first-child { border-top: 0; }
.me-row:hover { background: var(--paper); }
.me-row-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; }
.me-row-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-row-lbl { flex: 1; min-width: 0; font-size: 15px; }
.me-row-go { color: var(--muted); font-size: 20px; line-height: 1; }
.me-row.danger { color: var(--danger); } .me-row.danger .me-row-ico { background: #F6E7E7; color: var(--danger); }
/* Téléphone, personne connectée : la barre du bas est le seul menu (plus de ☰ en haut) */
@media (max-width: 820px) { body.has-tabbar .menu-btn, body.has-tabbar #nav { display: none; } }
body.on-compte.has-tabbar .chat-bubble { display: none; }
/* « Je veux créer un événement » en préparation : l'équipe seule le voit, avec un repère */
#events-propose.team-only::after { content: 'équipe'; margin-left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); }
/* Admin : fiche d'une membre (depuis Réservations) */
.mm-open { text-align: left; }
.mm-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.mm-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.mm-ini { display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); font-size: 24px; }
.mm-head h2 { font-size: 22px; margin: 0 0 4px; }
.mm-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.mm-card { max-width: 360px; margin: 0 0 16px; }
.mm-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mm-stats span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.mm-stats b { color: var(--ink); font-weight: 600; }
.mm-info { margin: 0 0 16px; color: var(--ink-soft); }
.mm-h { font-size: 16px; margin: 6px 0 10px; }
/* Admin : avis des participantes */
.kpi b small { font-size: 16px; color: var(--muted); font-weight: 400; }
.av-dist { margin: 18px 0; }
.adm-card h2 { font-size: 17px; margin: 0 0 12px; }
section.adm-card { margin-bottom: 18px; }
.av-bar { display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 10px; margin: 6px 0; font-size: 13.5px; }
.av-bar > i { height: 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.av-bar > i > i { display: block; height: 100%; background: var(--gold); }
.av-quote { border-top: 1px solid var(--line); padding: 12px 0; }
.av-quote:first-of-type { border-top: 0; padding-top: 0; }
.av-q-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 4px; }
.av-quote p { margin: 0; white-space: pre-line; }
/* Admin : relecture des messages d'un nouvel événement */
.mc-list { display: grid; gap: 8px; }
.mc-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); }
.mc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mc-name { flex: 1 1 200px; min-width: 0; font-weight: 500; }
.mc-prev { margin-top: 10px; }
.mc-prev iframe { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 8px; }
.vapid-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.vapid-row input { flex: 1 1 160px; min-width: 0; font: 12px ui-monospace, monospace; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
/* Invitation à activer les notifications (après une réservation, sur l'événement, dans Mon espace) */
.push-invite { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-align: left; }
.pi-ico { font-size: 22px; line-height: 1; margin-top: 2px; }
.pi-main { flex: 1; min-width: 0; }
.pi-main b { display: block; margin-bottom: 2px; }
.pi-act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.me-wrap #push-invite .push-invite { margin: 0 0 24px; }
.bk-paid { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
/* Admin : prévenir les participantes d'un changement */
.pv-changes { margin: 0 0 14px; padding-left: 18px; }
.pv-changes li { margin: 2px 0; }
.pv-changes span { color: var(--ink-soft); }
.pv-ch { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 14px; }
.pv-lang { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin-bottom: 10px; background: var(--white); }
.mc-idea { margin-top: 14px; padding: 12px 14px 4px; border-radius: 12px; border: 1px solid var(--gold); background: #FCF8EF; }
.mc-idea .check { margin-bottom: 10px; }
#ev-idea-when { color: var(--wine); }
/* Champs date et heure (calendrier de l'iPhone, ou du navigateur) : même hauteur que les autres champs, texte à gauche */
/* hauteur = celle d'une case texte (ligne 1.6 × 16px + marges 24px + bords 2px) : sur iPhone, une case date vide était plus basse */
.field input[type=date], .field input[type=time] { min-height: calc(1.6em + 26px); line-height: 1.6; display: block; width: 100%; -webkit-appearance: none; appearance: none; background: var(--white); }
.field input[type=date]::-webkit-date-and-time-value, .field input[type=time]::-webkit-date-and-time-value { text-align: left; }
.prop-when { gap: 12px; }
.prop-when > .field { display: flex; flex-direction: column; } /* cases alignées en bas, même si un libellé passe sur deux lignes */
.prop-when > .field > input { margin-top: auto; }
@media (max-width: 600px) { .prop-when { grid-template-columns: 1.4fr 1fr; gap: 10px; } }
/* Une fenêtre ouverte (formulaire, réservation…) : la barre du bas s'efface pour ne rien cacher */
body.modal-open .tabbar { opacity: 0; pointer-events: none; transform: translateY(20px); }
.tabbar { transition: left .35s cubic-bezier(.3,.7,.2,1), right .35s cubic-bezier(.3,.7,.2,1), padding .35s, border-radius .35s, opacity .2s, transform .25s; }
@media (min-width: 560px) and (max-width: 820px) { body.modal-open .tabbar { transform: translateX(-50%) translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .tabbar { transition: none; } }
/* Adresse : suggestions sous le champ, et lien Google Maps */
.field { position: relative; }
.addr-sug { position: absolute; z-index: 30; left: 0; right: 0; margin-top: 4px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 28px rgba(34,30,31,.14); overflow: hidden; }
.addr-sug button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.addr-sug button:first-child { border-top: 0; }
.addr-sug button:hover, .addr-sug button.on { background: var(--wine-tint); }
.addr-sug button span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.addr-map { display: inline-block; margin-top: 6px; }
/* Idée d'événement : gratuit ou payant */
/* Fiche d'un événement : personnes inscrites par l'équipe */
.ev-people-other { margin-top: 10px; }
.ev-people-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .ev-people-row { grid-template-columns: 1fr 1fr; } .ev-people-row input[type=email] { grid-column: 1 / -1; } }
.ev-people-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ev-people-list:empty { display: none; }
.ev-people-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 14px; }
.ev-people-list small { color: var(--muted); font-size: 12.5px; }
.ev-people-list button { width: 22px; height: 22px; border-radius: 50%; color: var(--muted); font-size: 16px; line-height: 1; }
.ev-people-list button:hover { color: var(--ink); background: var(--paper); }
#ev-people-mail-row { margin-top: 12px; }
.prop-paid { display: flex; gap: 8px; flex: 1; } /* boutons à la hauteur de la case voisine */
.prop-paid label { flex: 1; position: relative; display: flex; }
.prop-paid input { position: absolute; opacity: 0; pointer-events: none; }
.prop-paid span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; text-align: center; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); cursor: pointer; font-size: 14.5px; }
.prop-paid input:checked + span { background: var(--wine); color: #fff; border-color: var(--wine); }
.prop-paid input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.av-test { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; }
/* Journal : filtres par type et par canal, lignes cliquables, lecture du message */
.jr-sel { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.jr-sel select, .jr-sel input { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font: inherit; font-size: 14px; max-width: 100%; }
.jr-sel input { flex: 1 1 200px; min-width: 0; }
.jr-table tr.jr-open { cursor: pointer; }
.jr-table tr.jr-open:hover td { background: var(--paper); }
.jr-see { font-size: 12px; color: var(--wine); text-decoration: underline; margin-left: 4px; white-space: nowrap; }
.jr-body { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; font-size: 14.5px; line-height: 1.55; max-height: 60vh; overflow: auto; }
/* Message du bot dans le groupe : chiffres, rédaction et aperçu façon Telegram */
.v2-views.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-views.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .v2-views.four, .v2-views.five { grid-template-columns: 1fr 1fr; } }
.gp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; }
.gp-count-note { margin: -8px 0 20px; line-height: 1.5; } .gp-count-note p { margin: 0 0 4px; }
.gp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.gp-chat { background: #C9D6DF; border-radius: 16px; padding: 18px 14px; }
.gp-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.gp-bot { display: block; color: #2A7AB0; font-size: 13px; margin-bottom: 4px; }
.gp-button { margin-top: 6px; background: rgba(255,255,255,.7); border-radius: 10px; text-align: center; padding: 9px; color: #1F6FA8; font-weight: 500; font-size: 14px; }
@media (max-width: 760px) { .gp-grid { grid-template-columns: 1fr; } .gp-kpis { grid-template-columns: 1fr 1fr; } }
.gp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
/* Barre de mise en forme (messages Telegram) et aperçu */
.fmt-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.fmt-bar button { min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: 14px; color: var(--ink); }
.fmt-bar button:hover { border-color: var(--wine); color: var(--wine); }
.tg-link { color: #1F6FA8; }
.tg-quote { display: block; border-left: 3px solid #2A7AB0; padding: 2px 0 2px 10px; margin: 4px 0; background: rgba(42,122,176,.06); border-radius: 0 6px 6px 0; }
.tg-spoiler { background: #d6d6d6; color: transparent; border-radius: 4px; }

/* Écran de chargement : invisible si tout arrive en moins de 0,4 s ; sinon le logo apparaît en douceur et le cercle
   doré qui l'entoure se remplit depuis le haut jusqu'à ce que les données soient là (comme dans l'app iPhone). */
#splash { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: var(--paper); opacity: 0; pointer-events: none; animation: sp-in .35s ease .4s forwards; transition: opacity .4s ease; }
#splash .sp-logo { position: relative; width: 112px; height: 112px; opacity: 0; transform: scale(.94); animation: sp-logo .8s cubic-bezier(.2, .7, .2, 1) .45s forwards; }
#splash .sp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#splash .sp-ring { position: absolute; inset: -14px; width: 140px; height: 140px; transform: rotate(-90deg); overflow: visible; }
#splash .sp-ring circle { fill: none; stroke: rgba(183, 150, 83, .2); stroke-width: 2.5; }
#splash .sp-ring circle + circle { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: sp-load 3s cubic-bezier(.15, .65, .3, 1) .45s forwards; }
#splash.full .sp-ring circle + circle { animation: none; stroke-dashoffset: 0; transition: stroke-dashoffset .25s ease; }
#splash.done { opacity: 0 !important; animation: none; }
@keyframes sp-in { to { opacity: 1; } }
@keyframes sp-logo { to { opacity: 1; transform: none; } }
@keyframes sp-load { 0% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 38; } 100% { stroke-dashoffset: 12; } }
@media (prefers-reduced-motion: reduce) { #splash .sp-logo { animation-duration: .01s; } #splash .sp-ring circle + circle { animation: none; stroke-dashoffset: 40; } }

/* Qui a activé le bot (page Groupe du club) */
.gp-who { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--white); }
.gp-who > summary { cursor: pointer; font-weight: 600; color: var(--wine); }
.gp-who-h { font-size: 14px; margin: 14px 0 6px; color: var(--ink-soft); font-weight: 600; }
.gp-who-list { max-height: 420px; overflow-y: auto; }
.gp-who .adm-row-main strong .tag { display: inline-block; width: auto; margin: 0 0 0 6px; padding: 1px 8px; font-size: 11px; vertical-align: middle; }

/* ===== Module Finances (fondatrice et trésorier) : à plat, fond ivoire, texte brun ; bleu Tiffany pour les actions et
   l'état « ouvert » ou positif ; or pour « clôturé » et les alertes douces. Le brun ne sert qu'au texte. ===== */
.fin { --fi-ivory: #FBF8F4; --fi-card: #FFFFFF; --fi-line: #E7DED2; --fi-brown: #3B2A22; --fi-soft: #6B5446;
  --fi-tiffany: #81D8D0; --fi-tiffany-deep: #0B6F69; --fi-tiffany-tint: #E4F6F4; --fi-gold: #D9C08A; --fi-gold-deep: #7A5E22; --fi-gold-tint: #F6EEDC;
  color: var(--fi-brown); font-variant-numeric: tabular-nums; }
.fin h2 { font-size: 28px; margin: 0; letter-spacing: -.02em; color: var(--fi-brown); }
.fin h3, .fin h4 { color: var(--fi-brown); }
.fin-sub, .fin-hint, .fin-period, .fin-op-meta, .fin-op-who, .fin-field small { color: var(--fi-soft); }
.fin-sub { margin: 4px 0 0; font-size: 14px; }
.fin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.fin-ex { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fin-card { background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: 12px; padding: 18px; }
.fin-empty { text-align: center; padding: 34px 20px; }
.fin-empty p { color: var(--fi-soft); max-width: 520px; margin: 8px auto 18px; }
.fin-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 16px; font-size: 14px; }
.fin-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid; }
.fin-badge.ok { background: var(--fi-tiffany-tint); color: var(--fi-tiffany-deep); border-color: var(--fi-tiffany); }
.fin-badge.gold { background: var(--fi-gold-tint); color: var(--fi-gold-deep); border-color: var(--fi-gold); }
/* synthèse */
.fin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fin-kpi { background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fin-kpi span { font-size: 13px; color: var(--fi-soft); }
.fin-kpi b { font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fin-kpi small { font-size: 12.5px; color: var(--fi-soft); }
.fin-kpi.pos { border-top: 3px solid var(--fi-tiffany); }
.fin-kpi.neg { border-top: 3px solid var(--fi-gold); }
.fin-kpi.pos small { color: var(--fi-tiffany-deep); }
.fin-kpi.neg small { color: var(--fi-gold-deep); }
.fin-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--fi-gold-tint); border: 1px solid var(--fi-gold);
  color: var(--fi-gold-deep); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14.5px; }
/* boutons : 44 px de haut au moins (doigt) */
.fin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; color: var(--fi-brown); background: transparent; box-shadow: none; }
.fin-btn.primary { background: var(--fi-tiffany); border-color: var(--fi-tiffany); }
.fin-btn.primary:hover { background: #6CCFC6; border-color: #6CCFC6; }
.fin-btn.ghost { background: var(--fi-card); border-color: var(--fi-line); }
.fin-btn.ghost:hover { border-color: var(--fi-tiffany); }
.fin-btn.gold { background: var(--fi-gold-tint); border-color: var(--fi-gold); }
/* + Recette en vert, + Dépense en rouge (texte blanc : contraste 5,0:1 et 5,7:1) */
.fin-btn.recette { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
.fin-btn.recette:hover { background: #256B42; border-color: #256B42; }
.fin-btn.depense { background: #B83A32; border-color: #B83A32; color: #fff; }
.fin-btn.depense:hover { background: #9E2F28; border-color: #9E2F28; }
.fin-btn.gold:hover { background: #F0E3C4; }
.fin-btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.fin-btn:focus-visible, .fin input:focus-visible, .fin select:focus-visible, .fin textarea:focus-visible, .fin-chips button:focus-visible { outline: 2px solid var(--fi-tiffany-deep); outline-offset: 2px; }
.fin-btn[disabled] { opacity: .55; cursor: default; }
.fin-btn.busy { cursor: progress; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
/* filtres */
.fin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fin-chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fi-line); background: var(--fi-card); color: var(--fi-brown); font: inherit; font-size: 14px; cursor: pointer; }
.fin-chips button.on { background: var(--fi-tiffany-tint); border-color: var(--fi-tiffany); color: var(--fi-tiffany-deep); font-weight: 600; }
.fin input, .fin select, .fin textarea { font: inherit; font-size: 16px; color: var(--fi-brown); background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: 10px; min-height: 44px; padding: 8px 12px; box-sizing: border-box; }
.fin textarea { min-height: 88px; }
.fin-filters input[type=search] { flex: 1; min-width: 200px; }
/* opérations */
.fin-list { display: grid; gap: 8px; }
.fin-op { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amount" "main side"; gap: 6px 16px; background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: 12px; padding: 14px 16px; }
.fin-op-main { grid-area: main; min-width: 0; }
.fin-op-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 2px; font-size: 13px; color: var(--fi-soft); }
.fin-op-n { font-weight: 600; color: var(--fi-brown); }
.fin-op-type { padding: 0 8px; border-radius: 999px; border: 1px solid var(--fi-line); font-size: 12px; }
.fin-op-lib { display: block; font-size: 16px; overflow-wrap: anywhere; }
.fin-op-meta { margin: 2px 0 0; font-size: 14px; }
.fin-op-who { margin: 4px 0 0; font-size: 12.5px; }
.fin-op-link { margin: 4px 0 0; font-size: 13px; color: var(--fi-gold-deep); }
.fin-op-amount { grid-area: amount; text-align: right; font-size: 18px; font-weight: 600; white-space: nowrap; }
.fin-op-amount.in { color: var(--fi-tiffany-deep); }
.fin-op-amount.out { color: var(--fi-brown); }
.fin-op-side { grid-area: side; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; align-self: end; }
.fin-op.is-reversed .fin-op-lib, .fin-op.is-reversed .fin-op-amount { text-decoration: line-through; text-decoration-color: var(--fi-gold); }
.fin-op.is-reversal { background: var(--fi-ivory); }
.fin-none { color: var(--fi-soft); text-align: center; margin: 14px 0; }
/* catégories, journal */
.fin-more { margin-top: 16px; }
.fin-more > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.fin-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-top: 10px; }
.fin-cats h4 { font-size: 14px; margin: 6px 0; color: var(--fi-soft); }
.fin-cat { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--fi-line); margin: 0; font-size: 14.5px; }
.fin-cat small { display: block; color: var(--fi-soft); font-size: 12px; }
/* fenêtres */
.fin-modal { max-width: 560px; }
.fin-mtitle { font-size: 21px; margin: 0 0 14px; padding-right: 34px; }
.fin-form { display: grid; gap: 12px; }
.fin-field { display: grid; gap: 5px; font-size: 14px; font-weight: 600; min-width: 0; }
.fin-field input, .fin-field select, .fin-field textarea { width: 100%; font-weight: 400; }
.fin-field small { font-weight: 400; font-size: 12.5px; }
.fin-field.inline { display: grid; gap: 4px; }
.fin-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fin-hint { font-size: 13.5px; margin: -4px 0 0; }
.fin-error { color: #8A2F2F; background: #FBEDEA; border-radius: 8px; padding: 8px 12px; margin: 0; font-size: 14px; }
.fin-mactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.fin-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; min-height: 44px; }
.fin-check input { min-height: 0; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--fi-tiffany-deep); flex: none; }
.fin-recap { border: 1px solid var(--fi-line); border-radius: 10px; padding: 4px 14px; }
.fin-recap p { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--fi-line); }
.fin-recap p:last-child { border-bottom: 0; }
.fin-files { display: grid; gap: 8px; margin: 10px 0 14px; }
.fin-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--fi-line); border-radius: 10px; padding: 8px 12px; }
.fin-file span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.fin-file small { color: var(--fi-soft); font-size: 12.5px; }
@media (max-width: 900px) { .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* iPhone : tout sur une colonne sous 480 px */
@media (max-width: 480px) {
  .fin-head, .fin-ex { flex-direction: column; align-items: stretch; }
  .fin-kpis, .fin-cats, .fin-row2 { grid-template-columns: 1fr; }
  .fin-op { grid-template-columns: 1fr; grid-template-areas: "main" "amount" "side"; }
  .fin-op-amount { text-align: left; }
  .fin-op-side { justify-content: flex-start; }
  .fin-actions .fin-btn, .fin-mactions .fin-btn, .fin-ex .fin-btn { width: 100%; }
  .fin-filters input[type=search] { min-width: 0; width: 100%; }
}
.modal.fin-modal { box-shadow: none; border: 1px solid #E7DED2; background: #FBF8F4; }
.fin-op-ev { margin: 2px 0 0; font-size: 13.5px; color: var(--fi-tiffany-deep); }
.fin-filters select { min-width: 0; max-width: 100%; }
.fin-table { margin-top: 8px; }
.fin-trow { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--fi-line); font-size: 14.5px; }
.fin-trow > span, .fin-trow > b { text-align: right; white-space: nowrap; }
.fin-trow.head { font-size: 12.5px; color: var(--fi-soft); font-weight: 600; }
.fin-trow.head > span:first-child { text-align: left; }
.fin-trow b.in { color: var(--fi-tiffany-deep); }
.fin-trow b.out { color: #9E2F28; }
.fin-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--fi-brown); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--fi-line); text-underline-offset: 3px; }
.fin-link small { color: var(--fi-soft); font-size: 12.5px; }
@media (max-width: 480px) {
  .fin-trow { grid-template-columns: 1fr 1fr 1fr; }
  .fin-trow > :first-child { grid-column: 1 / -1; }
  .fin-trow.head > :first-child { display: none; }
  .fin-filters select { width: 100%; }
}
.fin-closed-note { flex-basis: 100%; margin: 4px 0 0; }
.fin-danger > summary { color: #9E2F28; }

/* ===== Fluidité façon iPhone ===== */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
a, button, [data-href], label, summary { -webkit-tap-highlight-color: transparent; }
body.modal-open { overflow: hidden; }
.scrim { touch-action: none; }
/* Pages qui glissent sur téléphone (courbe des transitions d'iOS) ; l'en-tête et la barre du bas restent au-dessus */
/* la page qui arrive par le côté ne doit jamais élargir l'écran (sinon le téléphone dézoome et la barre du bas saute) */
main { overflow-x: clip; }
body.sliding { overflow-x: hidden; }
@media (max-width: 640px) {
  .view.vs-in-right, .view.vs-in-left { position: relative; z-index: 21; background: var(--paper); animation: none; }
  .view.vs-in-right { animation: vs-in-right .42s cubic-bezier(.32, .72, 0, 1); box-shadow: -10px 0 28px rgba(34, 30, 31, .08); }
  .view.vs-in-left { animation: vs-in-left .42s cubic-bezier(.32, .72, 0, 1); }
  .view.vs-out-left { z-index: 20; animation: vs-out-left .42s cubic-bezier(.32, .72, 0, 1) forwards; }
  .view.vs-out-right { z-index: 22; background: var(--paper); box-shadow: -10px 0 28px rgba(34, 30, 31, .08); animation: vs-out-right .42s cubic-bezier(.32, .72, 0, 1) forwards; }
}
@keyframes vs-in-right { from { transform: translateX(100%); } }
@keyframes vs-out-left { to { transform: translateX(-28%); opacity: .6; } }
@keyframes vs-in-left { from { transform: translateX(-28%); opacity: .6; } }
@keyframes vs-out-right { to { transform: translateX(100%); } }
/* Fenêtres : « feuilles » qui montent du bas sur téléphone, avec la poignée et la courbe d'iOS */
@media (max-width: 640px) {
  .modal, .modal.wide { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 92dvh; border-radius: 22px 22px 0 0;
    padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); opacity: 1; visibility: hidden; transform: translateY(100%); overscroll-behavior: contain;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s; box-shadow: 0 -8px 30px rgba(34, 30, 31, .10); }
  .modal.on { visibility: visible; transform: translateY(0); transition: transform .42s cubic-bezier(.32, .72, 0, 1); }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(34, 30, 31, .18); }
  .modal, .modal.wide { padding-top: 46px; }
  .modal .close { top: 6px; right: 6px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .view.vs-in-right, .view.vs-in-left, .view.vs-out-left, .view.vs-out-right { animation: none !important; }
  .modal, .modal.on { transition: none !important; }
}

/* Carte de l'annuaire : la feuille respecte la barre d'accueil de l'iPhone, se tire vers le bas, et se centre sur grand écran */
.dir-sheet { padding-bottom: calc(44px + env(safe-area-inset-bottom)); overscroll-behavior: contain; transition: transform .38s cubic-bezier(.32, .72, 0, 1), translate .3s cubic-bezier(.32, .72, 0, 1); }
.dir-sh-back { touch-action: none; }
.dir-sh-handle { margin: 10px auto 18px; width: 38px; height: 5px; border-radius: 3px; }
@media (min-width: 641px) {
  .dir-sheet { left: 50%; right: auto; bottom: 24px; width: min(460px, calc(100vw - 48px)); border-radius: 22px; padding: 0 26px 30px;
    transform: translate(-50%, calc(100% + 40px)); box-shadow: 0 24px 60px rgba(34, 30, 31, .18); }
  .dir-sheet.open { transform: translate(-50%, 0); }
}
@media (orientation: landscape) and (max-height: 500px) { .dir-card { height: min(210px, calc(100vh - 120px)); max-width: min(340px, calc((100vh - 120px) * 1.586)); } }
/* elle ondule pour inviter à la retourner */
/* l'ondulation fait bouger la carte entière, le retournement ce qu'elle contient : un toucher pendant l'ondulation
   retourne la carte tout de suite, en douceur (les deux mouvements s'ajoutent au lieu de se bloquer) */
.dir-card.nudge { animation: dir-nudge .9s cubic-bezier(.36, .07, .19, .97); }
@keyframes dir-nudge { 0% { transform: perspective(1000px) rotateY(0); } 22% { transform: perspective(1000px) rotateY(-18deg); } 48% { transform: perspective(1000px) rotateY(11deg); }
  72% { transform: perspective(1000px) rotateY(-5deg); } 100% { transform: perspective(1000px) rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .dir-card.nudge { animation: none; } }
/* fenêtres tirées vers le bas : retour en place en douceur */
@media (max-width: 640px) { .modal, .modal.on { transition: transform .42s cubic-bezier(.32, .72, 0, 1), translate .3s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s; } .modal.on { transition: transform .42s cubic-bezier(.32, .72, 0, 1), translate .3s cubic-bezier(.32, .72, 0, 1); } }
@media (min-width: 641px) and (hover: hover) { .dir-sh-handle { visibility: hidden; height: 0; margin: 16px auto 8px; } }
/* feuille tirée vers le haut : son fond se prolonge dessous (pas de vide entre la feuille et le bas de l'écran) */
@media (max-width: 640px) {
  .dir-sheet { box-shadow: 0 160px 0 0 var(--paper); }
  .modal, .modal.wide { box-shadow: 0 -8px 30px rgba(34, 30, 31, .10), 0 160px 0 0 var(--paper); }
  .modal.fin-modal { box-shadow: 0 160px 0 0 #FBF8F4; }
}
/* Boutons Instagram et LinkedIn aux couleurs des deux réseaux (texte blanc lisible : 4,3 à 6,5:1) */
.dir-cb-links a.dl-ig, .mc-fondatrice .dir-cb-links a.dl-ig, .mc-equipe .dir-cb-links a.dl-ig {
  color: #fff; background: linear-gradient(90deg, #833AB4 0%, #C13584 45%, #E1306C 78%, #F56040 100%); box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
.dir-cb-links a.dl-li, .mc-fondatrice .dir-cb-links a.dl-li, .mc-equipe .dir-cb-links a.dl-li { color: #fff; background: #0A66C2; box-shadow: none; }
.dir-cb-links a.dl-ig:hover, .dir-cb-links a.dl-li:hover { color: #fff; filter: brightness(1.08); }
.dir-cb-links a.dl-ig svg, .dir-cb-links a.dl-li svg { color: #fff; }

/* ---------------------------------------------------------------- comme une application */
/* Commandes : pas de sélection de texte ni de menu « copier / enregistrer l'image » sur un appui long */
#tabbar, .hdr, .btn, .card, .chips, .me-row, .dir-row, .dir-card, .bk-pic, .home-next, .fin-btn, .back, .dir-link, .tg-chat {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Hors connexion : petite pastille sous l'en-tête */
.offline-pill { position: fixed; z-index: 31; top: 78px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; background: rgba(34, 30, 31, .86); color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: 0 6px 18px rgba(34, 30, 31, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: off-in .35s cubic-bezier(.32, .72, 0, 1); }
.offline-pill[hidden] { display: none; }
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: #E3A548; flex: none; }
@keyframes off-in { from { opacity: 0; transform: translate(-50%, -8px); } }
/* Tirer pour rafraîchir : le logo dans un disque blanc, entouré d'un anneau doré qui se remplit puis tourne */
#ptr { position: fixed; z-index: 29; top: 70px; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 4px 14px rgba(34, 30, 31, .12); transform: translate(-50%, -24px); opacity: 0; }
#ptr .ptr-logo { position: absolute; inset: 6px; }
#ptr .ptr-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#ptr svg { position: absolute; inset: -3px; width: 44px; height: 44px; transform: rotate(-90deg); overflow: visible; }
#ptr circle { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 100; }
#ptr.spin svg { animation: ptr-spin .9s linear infinite; }
#ptr.spin circle { stroke-dasharray: 30 100 !important; }
@keyframes ptr-spin { to { transform: rotate(270deg); } }
/* Grand titre façon iPhone : repris en petit au centre de l'en-tête quand on descend (téléphone, application) */
.hdr-in { position: relative; }
.hdr-title { position: absolute; left: 50%; top: 50%; max-width: calc(100% - 230px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); opacity: 0; pointer-events: none;
  transform: translate(-50%, -20%); transition: opacity .2s ease, transform .3s cubic-bezier(.32, .72, 0, 1); }
.hdr-title.on { opacity: 1; transform: translate(-50%, -50%); }
@media (min-width: 821px) { .hdr-title { display: none; } }
body:not(.has-tabbar) .hdr-title { display: none; }
/* Squelettes : blocs gris qui scintillent doucement le temps du chargement */
.skel { display: grid; gap: 14px; padding: 6px 0 30px; }
.skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, #EFE8E0 25%, #F8F3ED 45%, #EFE8E0 65%) 0 0 / 300% 100%; animation: sk 1.4s ease-in-out infinite; }
.skel .sk-bar { height: 12px; }
.skel .sk-bar.big { height: 22px; }
.skel .w30 { width: 30%; } .skel .w40 { width: 40%; } .skel .w50 { width: 50%; } .skel .w60 { width: 60%; } .skel .w70 { width: 70%; } .skel .w80 { width: 80%; }
.skel .sk-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.skel .sk-pic { height: 150px; border-radius: 12px; }
.skel .sk-sq { width: 200px; height: 200px; margin: 6px auto 0; border-radius: 12px; }
.skel .sk-row { display: flex; align-items: center; gap: 14px; }
.skel .sk-row span { flex: 1; display: grid; gap: 8px; }
.skel .sk-av { width: 46px; height: 46px; border-radius: 50%; flex: none; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel i, #ptr.spin svg { animation: none; } }

/* Petits boutons Instagram et LinkedIn aux couleurs des réseaux (fiche d'une membre dans l'admin, demandes d'adhésion) */
.sn-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.sn-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px 0 12px; border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 500;
  text-decoration: none; max-width: 100%; }
.sn-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-btn svg { width: 18px; height: 18px; flex: none; }
.sn-btn.ig { background: linear-gradient(135deg, #833AB4, #C13584 45%, #E1306C 70%, #F56040); text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.sn-btn.li { background: #0A66C2; }
.sn-btn.tg { background: #229ED9; }
.sn-btn:hover { filter: brightness(1.08); }
.sn-btn.mini { min-height: 28px; padding: 0 10px 0 8px; font-size: 12.5px; gap: 5px; max-width: 170px; }
.sn-btn.mini svg { width: 14px; height: 14px; }
td .sn-btns { margin: 6px 0 0; gap: 6px; }

/* Pastilles dans l'application, là où se trouve ce qui attend (onglets, ligne Admin, billet pas encore ouvert) */
.nb { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 7px; border-radius: 999px; background: #C0283E; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: 1px; animation: nb-in .35s cubic-bezier(.34, 1.56, .64, 1); }
.nb.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; }
#tabbar .tab { position: relative; }
#tabbar .tab > .nb { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; box-shadow: 0 0 0 2px #fff; }
.me-row > .nb { margin: 0; }
.btn > .nb { box-shadow: 0 0 0 2px #fff; }
@keyframes nb-in { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nb { animation: none; } }
.adm-nav button > .nb { margin-left: auto; }
.adm-nav button.on > .nb { background: #fff; color: var(--wine); }
@media (max-width: 820px) { .adm-nav button > .nb { margin-left: 2px; } }
.card h3 > .nb, .past-summary > .nb { vertical-align: 3px; }
.todo-card .adm-row { text-decoration: none; color: inherit; gap: 10px; }
.todo-card .adm-row .nb { margin: 0; }

/* ================= App iPhone : règles de design d'Apple (Human Interface Guidelines) =================
   Seulement dans l'app (classe « in-app » posée par l'app) et hors admin : le site dans un navigateur ne change pas.
   Une seule police (Inter, DA) et une seule échelle de tailles, comme les styles de texte d'iOS :
   grand titre 34 · titre 22 · en-tête 17 semi-gras · texte 16 · secondaire 15 · note 13 (graisses 400 / 500 / 600 seulement,
   celles que charge le site). Groupes blancs aux grands coins, listes à séparateurs décalés et chevron, champs pleins,
   boutons de 50 px, sélecteur segmenté, marges de 16 px, cibles tactiles de 44 px minimum. Couleurs de la DA. */
html.in-app body:not(.on-admin) {
  --ios-r: 26px;                        /* coins des groupes (iOS 26) */
  --ios-fill: rgba(34, 30, 31, .06);    /* fond des champs : encre très légère */
  --ios-sep: rgba(34, 30, 31, .1);      /* séparateurs des listes */
  font-size: 16px; line-height: 1.45;
}
html.in-app body:not(.on-admin) .wrap { padding-left: 16px; padding-right: 16px; }
html.in-app body:not(.on-admin) .footer { display: none; }   /* pied de page web : ses liens sont dans « Mon espace › Le club » */
/* --- textes --- */
html.in-app body:not(.on-admin) :is(h1, h2, h3, h4, strong, b) { font-weight: 600; }
html.in-app body:not(.on-admin) .back,
html.in-app body:not(.on-admin) .page-head > .eyebrow.label { display: none; }
html.in-app body:not(.on-admin) .page-head { padding: 6px 0 18px; }
html.in-app body:not(.on-admin) .page-head h1 { font-size: 34px; letter-spacing: -.025em; line-height: 1.12; }
html.in-app body:not(.on-admin) .page-head .intro { font-size: 15px; line-height: 1.45; margin-top: 8px; color: var(--ink-soft); }
html.in-app body:not(.on-admin) .ev-grid h1 { font-size: 28px; letter-spacing: -.02em; }
html.in-app body:not(.on-admin) .me-name h1 { font-size: 28px; }
html.in-app body:not(.on-admin) :is(.book-box h2, .home-next h2) { font-size: 22px; letter-spacing: -.02em; }
html.in-app body:not(.on-admin) :is(.card h3, .bk-row h3) { font-size: 17px; letter-spacing: -.01em; }
html.in-app body:not(.on-admin) :is(.card .meta, .home-next .hn-when, .me-handle) { font-size: 15px; }
html.in-app body:not(.on-admin) :is(.small, small, .field small) { font-size: 13px; }
/* sur-titres et en-têtes de section : un seul style, petites capitales grises, sans filet */
html.in-app body:not(.on-admin) :is(.eyebrow, .me-h, .home-next .hn-eyebrow) { font-size: 13px; letter-spacing: .03em; font-weight: 500; color: var(--muted); }
html.in-app body:not(.on-admin) .home-next .hn-eyebrow b { font-weight: 500; }
html.in-app body:not(.on-admin) :is(.eyebrow.label, .me-h) { margin-bottom: 8px; padding-left: 16px; }
html.in-app body:not(.on-admin) :is(.eyebrow.label, .me-h)::before,
html.in-app body:not(.on-admin) .me-h::after { display: none; }
html.in-app body:not(.on-admin) .me-sec { margin-bottom: 32px; }
/* --- groupes : cartes blanches sans bordure, grands coins --- */
html.in-app body:not(.on-admin) :is(.card, .book-box, .login-card, .home-next, .bk-row, .fiche-card, .tg-strip, .me-list) { border: 0; border-radius: var(--ios-r); box-shadow: none; }
html.in-app body:not(.on-admin) :is(.book-box, .login-card, .fiche-card) { padding: 20px; }
html.in-app body:not(.on-admin) :is(.home-next, .tg-strip) { padding: 16px 20px; }
html.in-app body:not(.on-admin) .bk-row { padding: 12px; }
html.in-app body:not(.on-admin) .cards { gap: 16px; margin-top: 16px; }
html.in-app body:not(.on-admin) .card .pic { border-radius: var(--ios-r) var(--ios-r) 0 0; }
html.in-app body:not(.on-admin) .card .body { padding: 14px 18px 18px; }
/* fiche événement : « Quand / Où / Prix / Places » en liste groupée */
html.in-app body:not(.on-admin) .ev-facts { background: var(--white); border-radius: var(--ios-r); padding: 4px 16px; gap: 0 16px; margin: 16px 0 20px; font-size: 16px; }
html.in-app body:not(.on-admin) .ev-facts :is(dt, dd) { padding: 12px 0; border-bottom: .5px solid var(--ios-sep); }
html.in-app body:not(.on-admin) .ev-facts :is(dt, dd):nth-last-child(-n+2) { border-bottom: 0; }
html.in-app body:not(.on-admin) .ev-desc { font-size: 16px; }
/* listes « Réglages » de Mon espace : icône dans un carré arrondi, séparateur après l'icône, chevron */
html.in-app body:not(.on-admin) .me-row { min-height: 52px; padding: 8px 16px; gap: 14px; border-top: 0; position: relative; }
html.in-app body:not(.on-admin) .me-row + .me-row::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; border-top: .5px solid var(--ios-sep); }
html.in-app body:not(.on-admin) .me-row-ico { width: 30px; height: 30px; border-radius: 8px; }
html.in-app body:not(.on-admin) .me-row-ico svg { width: 18px; height: 18px; }
html.in-app body:not(.on-admin) .me-row-lbl { font-size: 16px; }
html.in-app body:not(.on-admin) .me-row-go { color: rgba(34, 30, 31, .3); }
html.in-app body:not(.on-admin) .me-row:hover { background: transparent; }
html.in-app body:not(.on-admin) .me-row:active { background: var(--ios-fill); }
/* --- boutons : 50 px, semi-gras ; secondaires teintés (bordeaux léger) au lieu d'être bordés --- */
html.in-app body:not(.on-admin) .btn { min-height: 50px; font-size: 16px; font-weight: 600; }
html.in-app body:not(.on-admin) .btn.sm { min-height: 36px; font-size: 14px; padding: 0 16px; }
html.in-app body:not(.on-admin) .btn:not(.primary):not(.danger):not(.tg-login) { background: var(--wine-tint); border-color: transparent; color: var(--wine); }
html.in-app body:not(.on-admin) .propose-link { min-height: 44px; border: 0; background: var(--wine-tint); color: var(--wine); font-size: 15px; font-weight: 600; }
html.in-app body:not(.on-admin) :is(.btn, .me-row, .card, .dir-row, #filters button):active { opacity: .7; }
/* --- champs : pleins, sans bordure, coins arrondis ; libellés discrets --- */
html.in-app body:not(.on-admin) .field input:not([type=file]):not([type=checkbox]):not([type=radio]),
html.in-app body:not(.on-admin) .field select, html.in-app body:not(.on-admin) .field textarea {
  background: var(--ios-fill); border: 0; border-radius: 12px; min-height: 50px; font-size: 17px; }
html.in-app body:not(.on-admin) .field :is(input, select, textarea):focus { box-shadow: 0 0 0 2px var(--wine); }
html.in-app body:not(.on-admin) .field > span { font-size: 15px; color: var(--ink-soft); }
/* recherche et filtres de l'annuaire : champ de recherche iOS */
html.in-app body:not(.on-admin) :is(.dir-search input, .dir-filters select) { height: 44px; border: 0; background: var(--ios-fill); font-size: 16px; }
html.in-app body:not(.on-admin) .dir-search input:focus { box-shadow: 0 0 0 2px var(--wine); }
html.in-app body:not(.on-admin) .dir-tags button { border: 0; background: var(--ios-fill); color: var(--ink); min-height: 34px; font-size: 14px; }
html.in-app body:not(.on-admin) .dir-tags button.on { background: var(--wine); color: #fff; }
html.in-app body:not(.on-admin) .dir-meta { font-size: 13px; padding-left: 16px; }
/* annuaire : groupe blanc, séparateurs qui commencent après la photo, chevron discret */
html.in-app body:not(.on-admin) .dir-list { background: var(--white); border-radius: var(--ios-r); padding: 0 16px; }
html.in-app body:not(.on-admin) .dir-row { padding: 10px 0; min-height: 64px; border-bottom: 0; position: relative; }
html.in-app body:not(.on-admin) .dir-row + .dir-row::before { content: ''; position: absolute; top: 0; left: 58px; right: 0; border-top: .5px solid var(--ios-sep); }
html.in-app body:not(.on-admin) .dir-row-av { width: 44px; height: 44px; font-size: 15px; }
html.in-app body:not(.on-admin) .dir-row-name { font-size: 16px; font-weight: 600; }
html.in-app body:not(.on-admin) .dir-row-job { font-size: 14px; }
html.in-app body:not(.on-admin) .dir-row-arr { color: rgba(34, 30, 31, .3); width: 16px; }
html.in-app body:not(.on-admin) .dir-none { background: transparent; }
/* « À venir / Passés » : sélecteur segmenté d'iOS */
html.in-app body:not(.on-admin) #filters { display: flex; gap: 0; padding: 3px; border-radius: 999px; background: var(--ios-fill); }
html.in-app body:not(.on-admin) #filters button { flex: 1; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; transition: background .25s, box-shadow .25s; }
html.in-app body:not(.on-admin) #filters button.on { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(34, 30, 31, .12); }
html.in-app body:not(.on-admin) .ev-geo a { border: 0; background: var(--wine-tint); color: var(--wine); font-weight: 500; min-height: 34px; }
html.in-app body:not(.on-admin) :is(.me-empty, .dir-invite, .fiche-card.empty) { border: 0; background: var(--white); border-radius: var(--ios-r); }
html.in-app body:not(.on-admin) .push-invite { border: 0; border-radius: var(--ios-r); padding: 16px 20px; }
/* Une seule échelle de texte, comme le reste de l'app : histoire du club (accueil et page) au corps du texte, titre
   d'accueil en grand titre, chiffres et piliers ramenés à l'échelle */
html.in-app body:not(.on-admin) p.big { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
html.in-app body:not(.on-admin) p.big.clamp { margin-bottom: 12px; }
html.in-app body:not(.on-admin) .story .arrow { margin-top: 0; }
html.in-app body:not(.on-admin) .hero h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; margin: 12px 0 14px; }
html.in-app body:not(.on-admin) .counters b { font-size: 28px; }
html.in-app body:not(.on-admin) .counters span { font-size: 13px; }
html.in-app body:not(.on-admin) .pillar h3 { font-size: 17px; margin: 6px 0; }
html.in-app body:not(.on-admin) .story { gap: 12px; }
/* accueil : un seul événement, puis « Voir les autres rencontres » (la flèche du haut ferait doublon) */
html.in-app body:not(.on-admin) #view-accueil .section-head .arrow { display: none; }
html.in-app body:not(.on-admin) .home-more:not([hidden]) { display: flex; width: 100%; margin-top: 16px; }
/* app iPhone, page de connexion : choix de la langue (plus de bouton en haut) */
.app-lang { display: none; }
html.in-app .app-lang { display: block; margin: 20px auto 0; min-height: 44px; }
