/* Nassib — styles du site (mobile d'abord). Thèmes : data-theme sur <html>, choisi dans l'admin. */

/*
  Chaque thème règle aussi la FORME (rayons, bordures des cartes) et parfois la typographie des
  titres et quelques détails de décor (voir plus bas, un bloc "Personnalité" par thème) : changer de
  thème doit vraiment changer l'allure du site, pas seulement ses couleurs.
  --radius-card : cartes moyennes (profils, annonces, catégories, étapes)
  --radius-lg   : grands blocs (espaces d'accueil, villes, recherche rapide)
  --radius-pill : boutons, puces, pastilles
  --card-border : bordure des cartes au repos
*/
:root, [data-theme="safran"] {
  --brand: #b4532a; --brand-2: #d9822b; --brand-ink: #fff;
  --accent: #1f6f78;
  --bg: #fbf6ef; --surface: #fff; --tint: #f5ebdf; --ink: #2b1d14; --muted: #7a6a5f; --line: #eadccb;
  --shade: 43, 29, 20;
  --radius-card: 18px; --radius-lg: 22px; --radius-pill: 999px; --card-border: 1px solid var(--line);
}
[data-theme="majorelle"] {
  --brand: #2f45c4; --brand-2: #f2b705; --accent: #c0392b; --bg: #f6f7fb; --tint: #e9ecfa; --ink: #151a33; --muted: #5d6385; --line: #dde1f2; --shade: 21, 26, 51;
  --radius-card: 8px; --radius-lg: 10px; --radius-pill: 10px; --card-border: 2px solid var(--brand);
}
[data-theme="menthe"] {
  --brand: #1f7a5c; --brand-2: #c9a227; --accent: #b4532a; --bg: #f4f8f5; --tint: #e3efe7; --ink: #142a22; --muted: #5a6f66; --line: #d6e5dc; --shade: 20, 42, 34;
  --radius-card: 6px; --radius-lg: 10px; --radius-pill: 999px; --card-border: 0;
}
[data-theme="rose"] {
  --brand: #b5536b; --brand-2: #d9a27e; --accent: #2f6f73; --bg: #fbf5f3; --tint: #f6e6e3; --ink: #2e1a1f; --muted: #7d666b; --line: #eed9d5; --shade: 46, 26, 31;
  --radius-card: 32px; --radius-lg: 36px; --radius-pill: 999px; --card-border: 0;
}
[data-theme="nuit"] {
  --brand: #d9a441; --brand-2: #e07a4f; --brand-ink: #1b1405; --accent: #6fc3c9; --bg: #11152a; --surface: #1a2040; --tint: #161b36; --ink: #f1ead8; --muted: #a8a3b8; --line: #2a3160; --shade: 5, 7, 18; color-scheme: dark;
  --radius-card: 16px; --radius-lg: 18px; --radius-pill: 999px; --card-border: 1px solid var(--brand);
}
[data-theme="reel"] {
  --brand: #ff5a7a; --brand-2: #ffb648; --brand-ink: #fff; --accent: #8a6bff; --bg: #0b0b14; --surface: #16151f; --tint: #1e1c29; --ink: #fff; --muted: #9a97ad; --line: #2a2838; --shade: 5, 5, 10; color-scheme: dark;
  --radius-card: 20px; --radius-lg: 22px; --radius-pill: 999px; --card-border: 0;
}
[data-theme="editorial"] {
  --brand: #1a1a1a; --brand-2: #555; --brand-ink: #fff; --accent: #1a1a1a; --bg: #fff; --surface: #fff; --tint: #f4f4f4; --ink: #1a1a1a; --muted: #999; --line: #e4e4e4; --shade: 20, 20, 20;
  --radius-card: 0px; --radius-lg: 0px; --radius-pill: 2px; --card-border: 0;
}
[data-theme="festif"] {
  --brand: #b4852a; --brand-2: #e8c877; --brand-ink: #fdf6e7; --accent: #4e7e58; --bg: #fdf6e7; --tint: #f8ecc9; --ink: #3a2e18; --muted: #7a6a45; --line: #e8c877; --shade: 58, 46, 24;
  --radius-card: 20px; --radius-lg: 22px; --radius-pill: 999px; --card-border: 2px dashed var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 480px; }
.section { padding-block: 56px; }
.section-sm { padding-block: 28px 56px; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 24px; max-width: 720px; }
.section-head.row-between { max-width: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.f-grow { flex: 1 1 200px; }
.center { text-align: center; }
.right { text-align: end; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-2); margin-bottom: .6em; display: inline-flex; gap: 6px; align-items: center; }

/* Icônes (sprite Lucide) */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ic-xl { width: 56px; height: 56px; color: var(--brand); stroke-width: 1.5; margin: 0 auto 12px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer;
  font-weight: 600; text-decoration: none; line-height: 1.2; letter-spacing: .01em; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .25s, border-color .2s, color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); box-shadow: 0 6px 18px -8px rgba(var(--shade), .55); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(var(--shade), .75); filter: brightness(1.04); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface) 80%, var(--brand) 20%); border-color: var(--brand); color: var(--brand); box-shadow: 0 6px 16px -10px rgba(var(--shade), .4); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; flex: none; transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, color .2s; }
.icon-btn:hover { background: var(--tint); transform: translateY(-1px) scale(1.05); }
.icon-btn:active { transform: scale(.92); transition-duration: .08s; }
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn-primary { background: var(--brand); color: var(--brand-ink); }
.icon-btn-primary:hover { background: var(--brand); filter: brightness(1.08); }
.icon-btn.danger { color: #b3261e; background: var(--surface); }
.badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; background: var(--tint); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.pill.is-active, .pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.is-active { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }

/* Bandeau évènementiel (Ramadan, Aïd…) */
.event-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-weight: 600; font-size: .92rem; text-align: center; color: #fff; background: #3a2a6b; flex-wrap: wrap; }
.event-banner a { color: inherit; font-weight: 700; }
.event-ramadan { background: linear-gradient(90deg, #1d2457, #3a2a6b 50%, #1d2457); }
.event-ramadan .event-icon { color: #ffd479; }
.event-aid { background: linear-gradient(90deg, #0f6b4f, #1f8a63 50%, #0f6b4f); }
.event-aid .event-icon { color: #ffe08a; }
.event-urgent { background: #b3261e; }
.event-official { background: var(--accent); }
.event-custom { background: var(--brand); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { max-height: 40px; width: auto; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.mainnav { display: none; gap: 4px; margin-inline-start: 18px; }
.mainnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mainnav a:hover, .mainnav a[aria-current] { background: var(--tint); color: var(--brand); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang-menu, .user-menu, .thread-menu { position: relative; }
.lang-menu summary, .user-menu summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.lang-menu summary:hover, .user-menu summary:hover { background: var(--tint); }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(var(--shade), .35); padding: 6px; z-index: 60; display: grid; animation: popIn .16s cubic-bezier(.2,.8,.2,1); transform-origin: top; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.menu-pop-up { animation-name: popInUp; transform-origin: bottom; }
@keyframes popInUp { from { opacity: 0; transform: translateY(4px) scale(.97); } }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: start; cursor: pointer; font-weight: 500; transition: background .15s, color .15s; }
.menu-pop a:hover, .menu-pop button:hover, .menu-pop [aria-current] { background: var(--tint); color: var(--brand); }
.avatar-sm, .avatar-md { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); font-weight: 700; flex: none; background-size: cover; background-position: center; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.avatar-md { width: 42px; height: 42px; }
.avatar-sm::after, .avatar-md::after { content: attr(data-initial); }
.avatar-sm[style*="background-image"]::after, .avatar-md[style*="background-image"]::after { content: ""; }
.notice-bar { background: color-mix(in srgb, var(--brand-2) 18%, var(--surface)); padding: 10px 0; font-size: .92rem; }
.notice-bar .wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Héros de l'accueil (diaporama) */
.hero { position: relative; min-height: min(92vh, 760px); display: grid; align-items: end; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; opacity: 0; transition: opacity 1.4s ease, transform 8s ease; transform: scale(1.06); z-index: -2; }
.hero-bg.is-on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 35%, rgba(var(--shade), .88) 100%); }
.hero-in { padding-block: 120px 36px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 4rem); max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(1.02rem, 2.5vw, 1.2rem); max-width: 56ch; opacity: .95; }
.hero .eyebrow { color: #ffd79a; }
.quick-search { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(255,255,255,.96); color: var(--ink); padding: 14px; border-radius: var(--radius-lg); margin-top: 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); max-width: 980px; }
[data-theme="nuit"] .quick-search { background: rgba(26,32,64,.96); }
.quick-search label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.quick-search select, .quick-search input { width: 100%; }
.quick-search .qs-age { grid-column: span 2; }
.quick-search .btn { grid-column: span 2; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-dots { display: flex; gap: 6px; margin-top: 18px; }
.hero-dots span { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background .3s; }
.hero-dots span.is-on { background: #fff; }

.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 22px; }
.trust-in > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; }
.trust-in .ic { width: 28px; height: 28px; color: var(--brand); grid-row: span 2; }
.trust-in strong { font-size: .95rem; }
.trust-in span { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Les trois espaces */
.spaces { display: grid; gap: 16px; }
.space-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 18px 40px -24px rgba(var(--shade), .6); }
.space-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.space-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.75)); }
.space-card:hover img { transform: scale(1.05); }
.space-text { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; }
.space-text h3 { font-size: 1.5rem; margin-bottom: 6px; }
.space-text p { opacity: .92; margin-bottom: 10px; max-width: 46ch; }
.space-text .chip { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); margin-bottom: 10px; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }

/* Profils */
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.person { position: relative; display: block; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--ink); border: var(--card-border); transition: transform .2s, box-shadow .2s; }
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(var(--shade), .5); }
.person-photo { position: relative; aspect-ratio: 4 / 5; background: var(--tint); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.is-teaser .person-photo img, .is-teaser .avatar-letter { filter: blur(10px) saturate(1.1); transform: scale(1.1); }
.avatar-letter { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3rem "Fraunces", serif; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand)); }
.avatar-letter[data-g="homme"] { background: linear-gradient(140deg, #3d7f86, #1f4f6b); }
.avatar-letter[data-g="femme"] { background: linear-gradient(140deg, #e49a6b, #b5536b); }
.dot-online { position: absolute; top: 10px; inset-inline-end: 10px; width: 12px; height: 12px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px #fff; }
.tag-demo { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tag-premium { position: absolute; top: 8px; inset-inline-start: 8px; background: linear-gradient(135deg, #f2c14e, #d98e04); color: #3a2500; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; display: inline-flex; gap: 3px; align-items: center; }
.person-info { padding: 10px 12px 12px; display: grid; gap: 2px; }
.person-info strong { font-size: .98rem; display: inline-flex; gap: 4px; align-items: center; }
.person-info .name-row { display: flex; gap: 4px; align-items: center; }
.person-info .muted { font-size: .82rem; display: flex; gap: 4px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.verified { color: #1d9bf0; display: inline-flex; }
.person-actions { display: flex; gap: 6px; padding: 0 10px 10px; }
.person-actions .icon-btn { width: 36px; height: 36px; background: var(--tint); }
.person-actions .icon-btn.is-on { background: color-mix(in srgb, #e0245e 15%, var(--surface)); color: #e0245e; }

/* Personnalité par thème : au-delà des couleurs et des rayons déjà réglés plus haut, quelques thèmes
   changent aussi la typographie des titres ou la disposition des cartes de profil. */
[data-theme="majorelle"] h1, [data-theme="majorelle"] h2, [data-theme="majorelle"] h3 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.01em; }
[data-theme="majorelle"] .eyebrow { letter-spacing: .14em; }

[data-theme="editorial"] h1, [data-theme="editorial"] h2, [data-theme="editorial"] h3 { font-weight: 300; letter-spacing: -.01em; }
[data-theme="editorial"] .person { border: 0; background: transparent; }
[data-theme="editorial"] .person-photo { aspect-ratio: 1 / 1; border-radius: 50%; width: 64px; margin: 14px auto 0; }
[data-theme="editorial"] .person-info { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
[data-theme="editorial"] .ann-card, [data-theme="editorial"] .steps li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

[data-theme="reel"] .person-photo { aspect-ratio: 3 / 4; }
[data-theme="reel"] .person-info { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,.78), transparent); color: #fff; padding: 16px 12px 12px; }
[data-theme="reel"] .person-info .muted, [data-theme="reel"] .person-info strong { color: #fff; }
[data-theme="reel"] .person-actions { position: relative; z-index: 1; }

[data-theme="menthe"] .people-grid, [data-theme="menthe"] .cat-grid { gap: 6px; }
[data-theme="menthe"] .person-info { padding: 8px 8px 10px; }

[data-theme="rose"] .person { border-radius: 42px 20px 42px 20px; }

[data-theme="nuit"] .person, [data-theme="nuit"] .ann-card { box-shadow: 0 0 22px rgba(217,164,65,.16); }
[data-theme="reel"] .person { box-shadow: 0 10px 30px -14px rgba(255,90,122,.35); }

/* Catégories */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; isolation: isolate; }
.cat-card:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7)); }
.cat-card:hover img { transform: scale(1.06); }
.cat-label { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.cat-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); }

/* Annonces */
.ann-grid { display: grid; gap: 16px; }
.ann-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; border: var(--card-border); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.ann-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(var(--shade), .5); }
.ann-card.is-boosted { border-color: color-mix(in srgb, var(--brand-2) 60%, var(--line)); }
.ann-photo { position: relative; aspect-ratio: 16 / 10; background: var(--tint); }
.ann-photo img { width: 100%; height: 100%; object-fit: cover; }
.ann-photo img.is-fallback { filter: saturate(.85) brightness(.92); }
.chip-cat { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.92); color: #2b1d14; }
.chip-boost { position: absolute; top: 10px; inset-inline-end: 10px; background: linear-gradient(135deg, #f2c14e, #d98e04); color: #3a2500; }
.chip-found { position: absolute; top: 10px; inset-inline-end: 10px; background: linear-gradient(135deg, #4ade80, #16a34a); color: #063817; }
.chip-photos { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.55); color: #fff; }
.chip-new { position: absolute; bottom: 10px; inset-inline-start: 10px; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #0a1f44; }
.era-box .chip-found { position: static; display: inline-flex; margin-bottom: 10px; }
.page-hero-in .chip { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); margin-bottom: 14px; }
.ann-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.ann-body h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; margin: 0; }
.ann-body p { margin: 0; font-size: .9rem; }
.ann-era { display: flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; }
.ann-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.ann-meta span { display: inline-flex; gap: 4px; align-items: center; }
.tr-flag { color: var(--accent); }

/* Villes */
.cities { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.city { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; scroll-snap-align: start; isolation: isolate; background: linear-gradient(140deg, var(--brand-2), var(--brand)); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); }
.city:hover img { transform: scale(1.05); }
.city span { position: absolute; bottom: 14px; inset-inline-start: 16px; display: grid; }
.city strong { font: 700 1.4rem "Fraunces", serif; }
.city small { opacity: .85; }

/* Valeurs */
.values-in { display: grid; gap: 32px; align-items: center; }
.values-photos { position: relative; min-height: 340px; }
.values-photos img { position: absolute; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 50px -24px rgba(var(--shade), .6); }
.vp-1 { width: 66%; height: 78%; top: 0; inset-inline-start: 0; }
.vp-2 { width: 56%; height: 62%; bottom: 0; inset-inline-end: 0; border: 6px solid var(--bg); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--brand); margin-top: .25em; }
.checks.light .ic { color: #ffd79a; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border-radius: var(--radius-card); padding: 26px 22px 22px; border: var(--card-border); }
.steps li > .ic { width: 34px; height: 34px; color: var(--brand); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { position: absolute; top: 18px; inset-inline-end: 20px; font: 700 2.4rem "Fraunces", serif; color: color-mix(in srgb, var(--brand) 18%, transparent); }

/* Mosaïque de photos + chiffres */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 110px; gap: 8px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mosaic img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img:nth-child(6) { grid-row: span 2; }
.mosaic-stats { grid-column: 1 / -1; grid-row: span 1; display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); border-radius: 14px; align-items: center; text-align: center; padding: 8px; }
.mosaic-stats strong { display: block; font: 700 1.7rem "Fraunces", serif; }
.mosaic-stats span { font-size: .78rem; opacity: .92; }

.app-teaser { background: var(--ink); color: var(--bg); }
[data-theme="nuit"] .app-teaser { background: var(--surface); color: var(--ink); }
.app-in { display: grid; gap: 28px; align-items: center; }
.app-in img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; border: 1.5px solid currentColor; font-weight: 600; opacity: .9; }

.family-spotlight { background: color-mix(in srgb, var(--surface) 90%, var(--brand) 10%); border-block: 1px solid var(--line); }
.family-spot-in { display: grid; gap: 24px; align-items: center; }
.family-spot-in h2 { margin: 4px 0 10px; }
.family-spot-in p { color: var(--muted); margin-bottom: 18px; }
.family-spot-art { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
@media (min-width: 760px) {
  .family-spot-in { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .family-spot-art { max-width: 260px; margin: 0; justify-self: center; }
}

.cta-final { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: 90px; overflow: hidden; }
.cta-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(var(--shade), .85), color-mix(in srgb, var(--brand) 70%, transparent)); }
.cta-in p { max-width: 52ch; margin-inline: auto; opacity: .92; }

/* Bandeaux de pages */
.page-hero { position: relative; isolation: isolate; color: #fff; min-height: 300px; display: grid; align-items: end; overflow: hidden; }
.page-hero-sm { min-height: 240px; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(var(--shade), .85)); }
.page-hero-in { padding-block: 70px 28px; }
.page-hero-in p { max-width: 60ch; opacity: .93; }
.page-hero .eyebrow { color: #ffd79a; }

.filters { display: grid; gap: 10px; background: var(--surface); padding: 12px; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 22px; }
.reunion-tips { display: grid; gap: 12px; margin-bottom: 20px; }
.reunion-tips > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.reunion-tips .ic { width: 26px; height: 26px; color: var(--accent); grid-row: span 2; }
.reunion-tips span { color: var(--muted); font-size: .88rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.empty { text-align: center; padding: 50px 16px; }
.empty > .ic { width: 52px; height: 52px; color: var(--brand); stroke-width: 1.5; margin: 0 auto 10px; }
.loader { width: 34px; height: 34px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; grid-column: 1 / -1; }

/* Découvrir : pile de fiches qu'on glisse à droite (j'aime) ou à gauche (je passe), comme sur les
   applications de rencontres. Boutons ❌/❤️ toujours là pour qui ne glisse pas (souris, clavier). */
.discover-area { display: grid; justify-items: center; gap: 18px; margin-top: 10px; }
.discover-stack { position: relative; width: 100%; max-width: 380px; height: min(62vh, 520px); }
.discover-card {
  position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; background: var(--surface);
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); touch-action: none; cursor: grab; user-select: none;
  transition: transform .25s ease;
}
.discover-card.is-dragging { transition: none; cursor: grabbing; }
.discover-card.fly-like { transform: translate(600px, -80px) rotate(24deg) !important; opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.discover-card.fly-pass { transform: translate(-600px, -80px) rotate(-24deg) !important; opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.discover-stack > .discover-card:not(:last-child) { pointer-events: none; }
.discover-stack > .discover-card:nth-last-child(2) { transform: scale(.96) translateY(8px); }
.discover-stack > .discover-card:nth-last-child(3) { transform: scale(.92) translateY(16px); }
.discover-photo { position: relative; background: var(--tint) center/cover; display: grid; place-items: center; }
.discover-info { padding: 14px 18px 18px; }
.discover-info h3 { margin: 0 0 2px; font-size: 1.15rem; }
.discover-bio { margin: 8px 0 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.discover-stamp {
  position: absolute; top: 22px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .04em; opacity: 0; transition: opacity .15s ease;
}
.discover-stamp.is-like { inset-inline-start: 18px; color: #2bb673; border-color: #2bb673; transform: rotate(-12deg); }
.discover-stamp.is-pass { inset-inline-end: 18px; color: #e0445b; border-color: #e0445b; transform: rotate(12deg); }
.discover-card.to-like .discover-stamp.is-like, .discover-card.to-pass .discover-stamp.is-pass { opacity: 1; }
.discover-loading, .discover-area .empty { position: absolute; inset: 0; display: grid; align-content: center; }
.discover-acts { display: flex; gap: 20px; }
.discover-act { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.14); display: grid; place-items: center; cursor: pointer; }
.discover-act .ic { width: 26px; height: 26px; }
.discover-act.is-pass .ic { color: #e0445b; }
.discover-act.is-like .ic { color: #2bb673; }
.discover-act:active { transform: scale(.92); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Formulaires */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 18px; }
.card h2 { font-size: 1.25rem; display: flex; gap: 8px; align-items: center; }
.card h2 .ic { color: var(--brand); }
.form { display: grid; gap: 14px; }
.form h2 { margin-top: 10px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; padding: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
input[type=file] { font-size: .9rem; max-width: 100%; }
.is-invalid { border-color: #b3261e !important; }
.grid-2 { display: grid; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .choice { position: relative; cursor: pointer; }
.seg input, .choice input { position: absolute; opacity: 0; }
.seg span, .choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; text-align: center; }
.seg input:checked + span, .choice input:checked + span { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.seg input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice span { flex-direction: column; min-height: 76px; font-size: .9rem; }
.choice .ic { width: 24px; height: 24px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.pw { position: relative; display: block; }
.pw input { padding-inline-end: 48px; }
.pw .icon-btn { position: absolute; inset-inline-end: 3px; top: 2px; }
.form-error, .alert { padding: 12px 14px; border-radius: 12px; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.form-error, .alert-danger { background: #fdecea; color: #8c1d18; }
.alert-success { background: #e6f4ea; color: #1e5631; }
.alert-info { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }
.alert { margin-bottom: 16px; }
.hint { display: flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 76px; background: linear-gradient(transparent, var(--surface) 30%); padding-top: 14px; }
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; background: var(--tint); transition: border-color .2s; }
.dropzone:hover { border-color: var(--brand); }
.dropzone .ic { width: 30px; height: 30px; color: var(--brand); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.media-grid:empty { display: none; }
.media-grid-lg { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-bottom: 12px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tint); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .icon-btn { position: absolute; top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.media-item .icon-btn .ic { width: 16px; height: 16px; }
.media-type { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); }
.media-badge { position: absolute; bottom: 4px; inset-inline-start: 4px; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.media-badge.is-primary { background: var(--brand); }
.media-item .set-primary { position: absolute; bottom: 4px; inset-inline-end: 4px; font-size: .68rem; padding: 2px 7px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: #2b1d14; cursor: pointer; }
.recorder { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recorder audio { height: 40px; max-width: 100%; }

/* Connexion / inscription */
.auth-split { display: grid; min-height: calc(100vh - 64px); }
.auth-visual { position: relative; min-height: 210px; color: #fff; isolation: isolate; overflow: hidden; }
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(var(--shade), .85)); }
.auth-visual-text { position: absolute; bottom: 0; padding: 22px; }
.auth-visual-text ul { display: none; }
.auth-form-wrap { padding: 26px 16px 60px; display: grid; justify-items: center; }
.auth-form { width: 100%; max-width: 440px; }

/* Recherche */
.search-layout { display: grid; gap: 18px; }
.filters-panel { display: none; }
.filters-panel.is-open { display: grid; position: fixed; inset: 0; z-index: 80; margin: 0; border-radius: 0; overflow-y: auto; gap: 14px; align-content: start; padding-bottom: 100px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-actions { display: grid; gap: 8px; }

/* Fiche profil */
.profile-head { display: grid; gap: 20px; }
.profile-gallery { display: grid; gap: 8px; }
.profile-gallery .main { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.profile-gallery .main img, .profile-gallery .main video { width: 100%; height: 100%; object-fit: cover; }
.profile-gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; }
.profile-gallery .thumbs button { flex: none; width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--tint); }
.profile-gallery .thumbs button.is-on { border-color: var(--brand); }
.profile-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name h1 { margin: 0; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); margin: 8px 0 16px; }
.profile-meta span { display: inline-flex; gap: 5px; align-items: center; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.profile-actions .btn.is-on { background: color-mix(in srgb, #e0245e 12%, var(--surface)); color: #e0245e; border-color: #e0245e; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { background: var(--tint); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.mutual-banner { background: linear-gradient(135deg, #e0245e, #f2994a); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.completion-bar { height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; margin-bottom: 8px; }
.completion-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .6s; }
.completion p { margin: 0; }

/* Annonce détaillée */
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.ann-layout { display: grid; gap: 22px; }
.gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; background: var(--tint); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 76px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery-thumbs button.is-on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ann-head { margin: 18px 0; }
.ann-head h1 { margin: 10px 0 8px; }
.stepper-nav { display: grid; gap: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: 0 14px 34px -26px rgba(var(--shade), .6); position: sticky; top: 80px; z-index: 5; }
.stepper-track { height: 6px; border-radius: var(--radius-pill); background: var(--tint); overflow: hidden; }
.stepper-fill { height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.stepper-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper-count { flex: none; display: inline-flex; align-items: center; padding: 3px 11px; border-radius: var(--radius-pill); background: var(--tint); color: var(--accent); font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.stepper-title { margin: 0; font-size: 1.1rem; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.stepper-buttons { display: flex; gap: 10px; justify-content: space-between; padding-top: 4px; }
.stepper-buttons [data-step-next] { flex: 1; }
@media (max-width: 560px) {
  .stepper-nav { position: static; }
  .stepper-buttons { flex-direction: column-reverse; }
  .stepper-buttons [data-step-back], .stepper-buttons [data-step-next] { width: 100%; }
}
.era-box { display: grid; gap: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-radius: 16px; padding: 16px; margin: 0 0 18px; }
.era-box dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.era-box dd { margin: 0; font-weight: 600; }
.privacy-box { display: grid; gap: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; }
.privacy-box .hint { color: var(--ink); font-weight: 500; }
.recap-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recap-edit { flex: none; background: none; border: 0; padding: 2px 4px; color: var(--accent); font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: underline; }
.prose { font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.prose ul { padding-inline-start: 1.3em; }
.tr-note { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); padding: 8px 12px; border-radius: 10px; margin: 12px 0; }
.ann-video, .ann-audio { width: 100%; margin: 14px 0; border-radius: 14px; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
.ann-side .card { display: grid; gap: 10px; }
.ann-side .card p { margin: 0; }
.author { display: flex; gap: 10px; align-items: center; }
.card-tip { display: flex !important; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.card-tip .ic { color: var(--accent); width: 22px; height: 22px; }

/* Messagerie */
.page-chat .footer { display: none; }
.chat { display: grid; height: calc(100dvh - 64px - 62px); background: var(--surface); }
.chat-list { overflow-y: auto; border-inline-end: 1px solid var(--line); }
.chat.has-thread .chat-list { display: none; }
.chat:not(.has-thread) .chat-thread { display: none; }
.chat-list-head { padding: 16px 16px 6px; }
.chat-list-head h1 { font-size: 1.5rem; margin: 0; }
.conv { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.conv:hover, .conv.is-active { background: var(--tint); }
.conv-photo { position: relative; flex: none; }
.conv-photo .avatar-md { width: 52px; height: 52px; }
.conv-photo .dot-online { top: auto; bottom: 0; inset-inline-end: 0; width: 13px; height: 13px; }
.conv-text { flex: 1; min-width: 0; display: grid; }
.conv-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread small { color: var(--ink); font-weight: 600; }
.conv-count { background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.chat-thread { display: flex; flex-direction: column; min-height: 0; }
.chat-empty { margin: auto; text-align: center; padding: 30px; }
.thread-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.thread-user { flex: 1; display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.thread-user span:last-child { display: grid; }
.thread-menu .menu-pop { top: 46px; }
.thread-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--tint); }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); background: var(--surface); padding: 3px 10px; border-radius: 999px; margin: 8px 0; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; background: var(--surface); align-self: flex-start; border-end-start-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.04); overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-end-start-radius: 18px; border-end-end-radius: 6px; }
.bubble img, .bubble video { border-radius: 12px; max-height: 320px; margin-bottom: 4px; }
.bubble audio { max-width: 240px; height: 40px; }
.bubble-meta { display: flex; gap: 6px; justify-content: flex-end; align-items: center; font-size: .7rem; opacity: .75; margin-top: 2px; }
.bubble .tr-toggle { font-size: .72rem; background: none; border: 0; padding: 0; color: inherit; opacity: .8; cursor: pointer; text-decoration: underline; display: inline-flex; gap: 3px; align-items: center; }
.bubble .ic { width: 14px; height: 14px; }

/* Messages éphémères (façon Snapchat) */
.bubble-ghost { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); font-size: .88rem; font-weight: 600; display: grid; gap: 4px; justify-items: center; padding: 14px 18px; }
.bubble-ghost.mine { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); color: var(--brand-ink); }
.ghost-reveal { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.ghost-tag { display: block; font-size: .72rem; opacity: .8; margin-bottom: 4px; }
.composer-ephemeral { font-size: 1.15rem; }
.composer-ephemeral.is-on { background: var(--brand); filter: grayscale(0); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }
.thread-blocked { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.composer { position: relative; display: flex; gap: 6px; align-items: flex-end; padding: 8px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { min-height: 42px; max-height: 140px; border-radius: 22px; padding: 10px 16px; resize: none; }
.voice-bar { position: absolute; inset: 0; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.voice-bar [data-voice-time] { flex: 1; font-variant-numeric: tabular-nums; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #d93025; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Premium */
.perks { display: grid; gap: 12px; margin-bottom: 26px; }
.perks > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.perks .ic { width: 28px; height: 28px; color: var(--brand); grid-row: span 2; }
.perks span { color: var(--muted); font-size: .9rem; }
.plans { display: grid; gap: 16px; }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.plan.is-best { border-color: var(--brand); box-shadow: 0 20px 44px -26px rgba(var(--shade), .7); }
.plan-flag { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h2 { margin: 0; font-size: 1.3rem; }
.plan-price { font: 700 2.2rem "Fraunces", serif; margin: 0; color: var(--brand); }
.plan .muted { margin: 0; }

.status-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; gap: 8px; align-items: center; }
.status-list .ic { color: var(--muted); }
.list-rows { display: grid; gap: 10px; }
.row-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.row-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--tint); }
.st-approved { background: #e6f4ea; color: #1e5631; }
.st-pending { background: #fff4d6; color: #6b4e00; }
.st-rejected { background: #fdecea; color: #8c1d18; }
.danger-zone { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { color: #b3261e; font-weight: 600; }
.legal h2 { font-size: 1.3rem; }
.error-code { font: 700 5rem "Fraunces", serif; color: var(--brand); margin: 0; line-height: 1; }

/* Pied de page */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 40px; margin-top: 20px; }
.footer-grid { display: grid; gap: 26px; }
.footer h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand):not(.btn) { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; font-size: .95rem; }
.footer-grid a:not(.brand):not(.btn):hover { color: var(--brand); }
.brand-footer { margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px; }
.brand-footer img { border-radius: 10px; }
.socials { display: flex; gap: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-block: 18px 96px; font-size: .85rem; color: var(--muted); }

/* Barre d'onglets mobile (membres) */
.tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a[aria-current] { color: var(--brand); }
.tabbar .badge { top: 3px; inset-inline-end: calc(50% - 22px); }
.is-member main { padding-bottom: 64px; }
.page-chat main { padding-bottom: 0; }

/* Bannière « nouvelle version disponible » (site, PWA installée, application Android) */
.update-bar { position: fixed; z-index: 75; bottom: calc(62px + env(safe-area-inset-bottom)); inset-inline: 0; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; display: flex; gap: 10px; align-items: center; justify-content: center; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.update-bar span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.update-bar .ic { width: 18px; height: 18px; }
body:not(.is-member) .update-bar { bottom: env(safe-area-inset-bottom); }
.cookie-note { position: fixed; z-index: 70; bottom: calc(62px + env(safe-area-inset-bottom)); inset-inline: 0; background: rgba(20,16,12,.94); color: #fff; padding: 8px 12px; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(6px); }
.cookie-note p { margin: 0; flex: 1; font-size: .76rem; line-height: 1.35; }
.cookie-note .btn { flex: 0 0 auto; }
.cookie-note a { color: inherit; }
body:not(.is-member) .cookie-note { bottom: env(safe-area-inset-bottom); }

.toasts { position: fixed; z-index: 90; top: 76px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); animation: toast-in .25s ease; max-width: 520px; display: flex; gap: 10px; align-items: center; }
.toast-error { background: #b3261e; color: #fff; }
.toast-success { background: #1e7a46; color: #fff; }
.toast a { color: inherit; font-weight: 700; }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } }

dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(92vw, 460px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
dialog.modal::backdrop { background: rgba(0,0,0,.45); }
.modal-in { padding: 22px; display: grid; gap: 12px; }
.modal-in h2 { font-size: 1.25rem; margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 10px; }

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

/* ----- Tablette ----- */
@media (min-width: 640px) {
  .wrap { padding-inline: 24px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ann-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-in { grid-template-columns: repeat(4, 1fr); }
  .spaces { grid-template-columns: 1fr 1fr; }
  .space-main { grid-column: span 2; min-height: 380px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card:first-child { grid-column: span 1; grid-row: span 2; aspect-ratio: auto; }
  .cities { grid-auto-columns: 38%; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .mosaic-stats { grid-column: span 2; grid-row: span 1; }
  .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; }
  .filters:has(select[name=sub]) { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
  .reunion-tips, .perks { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-search { grid-template-columns: repeat(2, 1fr) 1.3fr 1.3fr auto; align-items: end; padding: 16px; border-radius: 999px; padding-inline: 26px 10px; }
  .quick-search .qs-age, .quick-search .btn { grid-column: auto; }
  .quick-search select, .quick-search input { border: 0; padding-inline: 0; min-height: 34px; background: transparent; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1.2fr; }
  .cookie-note { inset-inline: auto 20px; bottom: 20px; max-width: 520px; border-radius: 16px; padding: 12px 16px; }
  .cookie-note p { font-size: .85rem; }
}

/* ----- Ordinateur ----- */
@media (min-width: 960px) {
  .mainnav { display: flex; }
  .section { padding-block: 84px; }
  .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ann-grid { grid-template-columns: repeat(3, 1fr); }
  .spaces { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .space-main { grid-column: auto; grid-row: span 2; min-height: 520px; }
  .space-card:not(.space-main) { min-height: 250px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .cat-card { aspect-ratio: auto; }
  .cat-card:first-child { grid-column: span 2; grid-row: span 2; }
  .cities { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; }
  .values-in { grid-template-columns: 1fr 1fr; gap: 60px; }
  .values-photos { min-height: 460px; }
  .app-in { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .mosaic { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 170px; }
  .mosaic img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic-stats { grid-column: span 3; }
  .auth-split { grid-template-columns: 1fr 1fr; }
  .auth-visual { min-height: auto; }
  .auth-visual-text { padding: 40px; }
  .auth-visual-text h2 { font-size: 2.2rem; max-width: 16ch; }
  .auth-visual-text ul { display: grid; }
  .auth-form-wrap { align-content: center; padding: 40px; }
  .search-layout { grid-template-columns: 290px 1fr; align-items: start; }
  .filters-panel { display: grid; gap: 12px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .show-sm { display: none !important; }
  .search-page .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-head { grid-template-columns: 420px 1fr; gap: 36px; align-items: start; }
  .profile-gallery { position: sticky; top: 84px; }
  .ann-layout { grid-template-columns: 1fr 330px; align-items: start; }
  .ann-side { position: sticky; top: 84px; }
  .chat { grid-template-columns: 340px 1fr; height: calc(100dvh - 64px); max-width: 1200px; margin: 0 auto; border-inline: 1px solid var(--line); }
  .chat.has-thread .chat-list, .chat:not(.has-thread) .chat-thread { display: flex; flex-direction: column; }
  .chat.has-thread .chat-list { display: block; }
  [data-back] { display: none !important; }
  .tabbar { display: none; }
  .is-member main { padding-bottom: 0; }
  .footer-bottom { padding-bottom: 18px; }
  .sticky-actions { bottom: 0; }
  .cookie-note, body:not(.is-member) .cookie-note { bottom: 20px; }
  .hero-in { padding-block: 160px 70px; }
}
@media (max-width: 959px) { .hide-sm { display: none !important; } }

/* Petits téléphones : l'en-tête doit tenir sur une ligne */
@media (max-width: 430px) {
  .topbar-in { gap: 6px; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 28px; height: 28px; }
  .top-actions { gap: 0; }
  .top-actions .btn { min-height: 38px; padding: 7px 12px; font-size: .85rem; }
  .top-actions .icon-btn { width: 38px; height: 38px; }
  .top-actions .icon-btn .ic { width: 19px; height: 19px; }
  .lang-menu summary { padding: 6px; }
  .my-space > summary { padding: 3px; }
}

/* Acceptation obligatoire des conditions */
.terms-gate { position: fixed; inset: 0; z-index: 95; background: rgba(var(--shade), .7); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.terms-gate .card { max-width: 520px; width: 100%; margin: 0; }
.blur-note { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); padding: 8px 12px; border-radius: 10px; margin-top: 8px; }

.plan-free { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 0; padding: 12px; border-radius: 999px; background: #e6f4ea; color: #1e5631; font-weight: 700; text-align: center; }
.person.is-locked .avatar-letter { filter: blur(2px); }

/* Le Maghreb, chez vous : un pays = une carte à son drapeau */
.maghreb { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.countries { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .countries { gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .country-card { padding: 14px; }
  .country-card .flag { width: 56px; height: 38px; }
  .country-name { font-size: 1.05rem; }
  .country-card .more { font-size: .82rem; }
  .country-card:last-child:nth-child(odd) { grid-column: span 2; }
}
.country-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.country-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--flag, var(--brand)); }
.country-card:hover { transform: translateY(-3px); border-color: var(--flag, var(--brand)); box-shadow: 0 16px 34px -22px rgba(var(--shade), .55); }
.country-card .flag { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-bottom: 6px; }
.country-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.25rem; }
html[lang="ar"] .country-name { font-family: "Cairo", system-ui, sans-serif; }
.country-count { color: var(--muted); font-size: .9rem; }
.country-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.country-dz { --flag: linear-gradient(90deg, #006233 50%, #d21034 50% 60%, #fff 60%); }
.country-ma { --flag: linear-gradient(90deg, #c1272d 70%, #006233 70%); }
.country-tn { --flag: linear-gradient(90deg, #e70013 80%, #fff 80%); }
.country-ly { --flag: linear-gradient(90deg, #e70013 25%, #000 25% 75%, #239e46 75%); }
.country-mr { --flag: linear-gradient(90deg, #d01c1f 15%, #00a95c 15% 85%, #d01c1f 85%); }

/* Menu principal sur une seule ligne ; cartes lisibles même avant le chargement des photos */
.mainnav a { white-space: nowrap; }
.space-card { background: linear-gradient(135deg, var(--brand), var(--accent)); }
@media (min-width: 960px) and (max-width: 1359px) {
  .mainnav { margin-inline-start: 8px; gap: 0; }
  .mainnav a { padding: 8px 9px; font-size: .86rem; }
  .topbar .btn { padding-inline: 14px; }
}
@media (min-width: 960px) and (max-width: 1199px) { .topbar .btn-ghost.hide-sm { display: none; } }

/* Ventes : prix */
.ann-price { margin: 2px 0 6px; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.ann-price small { font-family: inherit; font-size: .75rem; font-weight: 600; color: var(--muted); }
.ann-price-lg { font-size: 1.8rem; margin: 6px 0 14px; }

/* ===== Accueil maghrébin ===== */
.hero-maghreb h1 { max-width: min(20ch, 100%); overflow-wrap: break-word; }
@media (max-width: 559px) { .hero-maghreb h1 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); } }
.hero-pattern { position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 38%, #fff 39% 41%, transparent 42%),
    conic-gradient(from 45deg at 50% 50%, transparent 0 25%, rgba(255,255,255,.6) 0 26%, transparent 0 50%, rgba(255,255,255,.6) 0 51%, transparent 0 75%, rgba(255,255,255,.6) 0 76%, transparent 0);
  background-size: 56px 56px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-flags { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.hero-flags img { width: 36px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.35); outline: 2px solid rgba(255,255,255,.85); transition: transform .2s; }
.hero-flags a:hover img { transform: translateY(-2px) scale(1.06); }
.hero-ar { display: block; width: fit-content; max-width: 100%; font-family: "Cairo", system-ui, sans-serif; font-size: clamp(1.15rem, 3.4vw, 1.6rem); font-weight: 700; color: #ffd9a8; margin: -4px 0 12px; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-light { background: rgba(255,255,255,.95); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--brand); }
@media (max-width: 559px) { .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; } }
@media (max-width: 759px) { .rubric:last-child:nth-child(odd) { grid-column: span 2; } }

/* Grandes rubriques : icône lisible, couleur propre, compteur */
.rubrics-section { padding-top: 40px; }
.rubrics { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .rubrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.rubric { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 18px; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
  transition: transform .2s, box-shadow .2s; overflow: hidden; }
a.rubric:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--c) 70%, black); }
.rubric-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 10px 22px -10px var(--c); margin-bottom: 6px; }
.rubric-icon .ic { width: 30px; height: 30px; stroke-width: 2.1; }
.rubric-label { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
html[lang="ar"] .rubric-label { font-family: "Cairo", system-ui, sans-serif; }
.rubric-text { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.rubric-foot { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .88rem; color: var(--c); }
.rubric.is-soon { opacity: .78; }
.rubric .soon { background: var(--c); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.rub-meet { --c: #c2410c; } .rub-sell { --c: #15803d; } .rub-help { --c: #1d4ed8; } .rub-reunions { --c: #7c3aed; }
.rub-dating { --c: #db2777; } .rub-debates { --c: #0e7490; } .rub-roots { --c: #a16207; }
@media (min-width: 760px) { .rub-meet { grid-column: span 2; } .rub-meet .rubric-icon { width: 72px; height: 72px; } .rub-meet .rubric-icon .ic { width: 38px; height: 38px; } .rub-meet .rubric-label { font-size: 1.6rem; } .rub-meet .rubric-text { font-size: 1rem; } }

/* Mention « Exemple » discrète */
.tag-demo { position: static !important; background: none !important; color: var(--muted, #8a7a6f) !important; font-size: .68rem !important; font-weight: 500 !important; padding: 0 !important; margin-inline-start: 4px; opacity: .85; white-space: nowrap; }

/* Bandeau unité : « Nassib يجمع ولا يفرّق » */
.unity { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: 56px; isolation: isolate;
  background: radial-gradient(60rem 22rem at 50% -10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%), #1d1410; }
.unity::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background-image: conic-gradient(from 45deg at 50% 50%, transparent 0 25%, #fff 0 26%, transparent 0 50%, #fff 0 51%, transparent 0 75%, #fff 0 76%, transparent 0); background-size: 48px 48px; }
.unity-flags { display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.unity-flags img { width: 54px; height: 36px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.unity-link { color: #f2a65a; } .unity-link .ic { width: 18px; height: 18px; fill: currentColor; }
.unity h2 { font-family: "Cairo", system-ui, sans-serif; font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; color: #ffd9a8; margin-bottom: 10px; }
.unity-ar { font-family: "Cairo", system-ui, sans-serif; font-size: clamp(1.1rem, 3.2vw, 1.45rem); line-height: 1.9; max-width: 46ch; margin: 0 auto 14px; color: #fff; }
.unity-tr { max-width: 62ch; margin: 0 auto; color: rgba(255,255,255,.75); font-size: .98rem; }
@media (max-width: 559px) { .unity-flags img { width: 40px; height: 27px; } .unity-link .ic { width: 14px; height: 14px; } }

/* Souvenirs d'école */
.rub-schools { --c: #9a3412; }
.rubrics .rub-schools { grid-column: 1 / -1; min-height: 150px; color: #fff; background: linear-gradient(90deg, rgba(28,18,12,.9) 0%, rgba(28,18,12,.65) 45%, rgba(28,18,12,.15) 100%), url("/assets/demo/ecoles/souk-el-arbaa-1971.jpg") center 35% / cover; border-color: transparent; }
.rubrics .rub-schools .rubric-text { color: rgba(255,255,255,.88); max-width: 34ch; }
.rubrics .rub-schools .rubric-foot { color: #fff; }
.filters-schools { grid-template-columns: 1fr; }
@media (min-width: 760px) { .filters-schools { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
.school-card .ann-photo { aspect-ratio: 4 / 3; }
.school-card .ann-photo img { filter: sepia(.12); }
.school-year { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(28,18,12,.78); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.school-card .ann-body .muted { display: flex; gap: 4px; align-items: center; font-size: .86rem; }
.school-archive { color: var(--accent); font-weight: 600; }
.school-privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .85rem; margin-top: 28px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.school-privacy .ic { flex: none; margin-top: 2px; }
.school-figure { margin: 0 0 18px; background: #1d1410; border-radius: 20px; overflow: hidden; }
.school-figure img { display: block; width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.school-figure figcaption { color: rgba(255,255,255,.75); font-size: .78rem; padding: 8px 14px; }
.school-figure figcaption a { color: inherit; }
.place-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0 0 14px; }
.place-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
[data-place-photo-form] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
[data-place-photo-form] input[name=credit] { flex: 1; min-width: 160px; border: 1px solid var(--line, #e4ddd6); border-radius: 10px; padding: 8px 12px; }
.school-in h2, .school-comments h2 { display: flex; gap: 8px; align-items: center; font-size: 1.15rem; }
.school-people { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.school-people li { display: flex; gap: 10px; align-items: center; }
.school-people .grow { display: grid; min-width: 0; flex: 1; }
.school-people .icon-btn { width: 36px; height: 36px; background: var(--tint); }
.school-comments { margin-top: 26px; }
.school-comment { border-top: 1px solid var(--line); padding-block: 12px; }
.school-comment p { margin: 0 0 4px; }
.school-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.school-preview img { max-width: 100%; max-height: 320px; border-radius: 14px; }
.share-preview { margin: 16px 0; text-align: center; }
.share-preview img, .share-preview video { max-width: 100%; max-height: 360px; border-radius: 14px; }
.share-choices { display: grid; gap: 10px; margin-top: 18px; }
.school-me, .school-consent { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; margin: 0; }
.school-consent { background: var(--tint); }
.school-consent .muted { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
/* Écrans moyens : le lien Premium passe dans le menu du compte pour garder l'en-tête sur une ligne */
@media (min-width: 960px) and (max-width: 1139px) { .mainnav a[href$="/premium"] { display: none; } }

/* Débats */
.debate-hero { color: #fff; padding: 56px 0 34px; background: radial-gradient(50rem 18rem at 85% -20%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #0e7490, #134e4a); }
.debate-hero.is-islam { background: radial-gradient(50rem 18rem at 85% -20%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #14532d, #0f3d2e); }
.debate-hero h1 { color: #fff; margin: 4px 0 8px; }
.debate-hero p { max-width: 60ch; opacity: .92; }
.debate-hero .eyebrow { color: #fde68a; }
.debate-themes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.debate-themes a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.debate-themes a small { color: var(--muted); font-weight: 500; }
.debate-themes a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.debate-themes a[aria-current] small { color: rgba(255,255,255,.8); }
.debate-themes .ic { width: 18px; height: 18px; }
@media (min-width: 760px) { .filters-debates { grid-template-columns: 2fr 1fr 1fr auto; } }
.debate-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.debate-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.debate-item .grow { flex: 1; min-width: 0; }
.debate-item .muted { margin: 4px 0 6px; font-size: .9rem; }
.debate-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c, #0e7490); color: #fff; }
.debate-ic .ic { width: 22px; height: 22px; }
.th-islam { --c: #15803d; } .th-famille { --c: #db2777; } .th-voitures { --c: #475569; } .th-cuisine { --c: #c2410c; } .th-papiers { --c: #1d4ed8; } .th-retour { --c: #a16207; }
.th-sport { --c: #16a34a; } .th-etudes { --c: #7c3aed; } .th-travail { --c: #0369a1; } .th-diaspora { --c: #0e7490; } .th-culture { --c: #9333ea; } .th-sante { --c: #059669; } .th-societe { --c: #b45309; }
.debate-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.debate-title:hover { color: var(--brand); }
.debate-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); margin: 0; }
.debate-meta > span { display: inline-flex; gap: 4px; align-items: center; }
.chip-sm { padding: 2px 8px; font-size: .74rem; }
.debate-count { flex: none; display: grid; text-align: center; min-width: 56px; padding: 6px; border-radius: 12px; background: var(--tint); color: var(--ink); text-decoration: none; }
.debate-count strong { font-size: 1.2rem; }
.debate-count small { color: var(--muted); font-size: .72rem; }
.debate-rules { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, #15803d 8%, var(--surface)); border: 1px solid color-mix(in srgb, #15803d 25%, transparent); }
.debate-rules > .ic { flex: none; width: 26px; height: 26px; color: #15803d; }
.debate-rules p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.debate-islam-note, .debate-page .alert { display: flex; gap: 8px; align-items: flex-start; }
.debate-op h1 { font-size: 1.6rem; margin: 10px 0; }
.debate-op .chip { background: var(--c); color: #fff; }
.debate-author { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.debate-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.debate-actions .is-on { background: color-mix(in srgb, #15803d 15%, transparent); color: #15803d; border-color: #15803d; }
.debate-replies-title { margin-top: 28px; font-size: 1.2rem; }
.debate-replies { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.debate-reply { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.debate-reply .prose { font-size: .96rem; }

/* Messagerie : la barre d'écriture reste toujours visible en bas de l'écran (ordinateur et téléphone) */
body.page-chat { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
body.page-chat > main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
body.page-chat .chat { flex: 1; min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); width: 100%; }
body.page-chat .chat-thread, body.page-chat .thread-body, body.page-chat .chat-list { min-height: 0; }
@media (min-width: 960px) { body.page-chat > main { padding-bottom: 0; } }
.composer { align-items: center; }
.composer-tool { background: var(--tint); color: var(--brand); width: 40px; height: 40px; }
.composer-tool .ic { width: 21px; height: 21px; }
.composer-mic { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.composer textarea { flex: 1; min-width: 0; }
@media (max-width: 430px) { .composer { gap: 4px; padding: 6px; } .composer-tool { width: 36px; height: 36px; } }
.vid-live { width: 100%; max-height: 52vh; border-radius: 14px; background: #000; display: block; margin: 8px 0; }
.vid-actions { flex-wrap: wrap; }
.reply-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 10px; }
.reply-tools .btn { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.reply-rec { position: static; margin-bottom: 10px; }
.reply-media { display: grid; gap: 6px; margin-bottom: 10px; }
.reply-media video, .debate-video { width: 100%; max-width: 420px; max-height: 360px; border-radius: 14px; background: #000; }
.reply-media audio, .debate-audio { width: 100%; max-width: 420px; }
.debate-reply audio, .debate-reply video { margin-top: 6px; display: block; }
body.page-chat .cookie-note { bottom: auto; top: 72px; }
.th-histoire { --c: #92400e; } .th-politique { --c: #1e3a8a; } .th-actualite { --c: #be123c; } .th-economie { --c: #047857; } .th-immobilier { --c: #9a3412; } .th-technologie { --c: #4338ca; }
.th-sciences { --c: #0891b2; } .th-voyages { --c: #0284c7; } .th-environnement { --c: #4d7c0f; } .th-jeunesse { --c: #c026d3; } .th-humour { --c: #ea580c; } .th-animaux { --c: #a16207; }

.role-badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); margin-inline-start: 4px; }
.role-badge.is-helper { background: color-mix(in srgb, #0e7490 15%, transparent); color: #0e7490; }
.role-badge.is-invited { background: var(--tint); color: var(--ink); }
.role-badge.is-banned { background: #fde8e8; color: #b42318; }
.debate-manage { margin-top: 18px; padding: 14px 16px; }
.debate-manage summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; }
.manage-access { border: 0; padding: 0; margin: 14px 0 8px; display: grid; gap: 6px; }
.manage-access legend { font-weight: 700; margin-bottom: 4px; }
.manage-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.manage-add input, .manage-add select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
.manage-add input { flex: 1 1 180px; }
.manage-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.manage-list li { display: flex; gap: 8px; align-items: center; }
.manage-list li strong { flex: 1; }
.link.danger { color: #b42318; }

/* Connexion Google / Facebook */
.social-login { display: grid; gap: 10px; margin: 14px 0 6px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; }
.btn-facebook { background: #1877f2; color: #fff; border: 1px solid #1877f2; }
.btn-facebook:hover { background: #166fe5; }
.social-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-email { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-weight: 600; }

/* Mon espace */
.tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; color: var(--muted); font-size: .7rem; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabbar button .ic { width: 23px; height: 23px; }
.tabbar button[aria-current], .tabbar button.is-open { color: var(--brand); }
/* Bouton « + » du bas, mis en avant façon TikTok : plus grand, en couleur, légèrement surélevé */
.tab-create { position: relative; }
.tab-create summary { display: grid; justify-items: center; padding: 4px 2px 7px; list-style: none; }
.tab-create summary::-webkit-details-marker { display: none; }
.tab-plus { width: 46px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink, #fff); display: grid; place-items: center; margin-top: -10px; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.tab-create summary:hover .tab-plus { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--brand) 80%, transparent); }
.tab-create summary:active .tab-plus { transform: scale(.94); }
.tab-plus .ic { width: 22px; height: 22px; }
.menu-pop-up { top: auto; bottom: calc(100% + 10px); inset-inline-end: auto; left: 50%; transform: translateX(-50%); min-width: 190px; }
.my-space { position: relative; }
.my-space > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); }
.my-space > summary::-webkit-details-marker { display: none; }
.my-space > summary:hover, .my-space[open] > summary { border-color: var(--brand); color: var(--brand); }
.my-space > summary .avatar-sm { width: 34px; height: 34px; }
.my-space > summary .ic { width: 16px; height: 16px; }
.my-space-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(var(--shade), .45); padding: 16px; z-index: 80; }
.my-space-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.my-space-head .grow { flex: 1; display: grid; gap: 2px; min-width: 0; }
.my-space-head strong { font-size: 1.1rem; }
.avatar-lg { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--brand-2), var(--brand)) center / cover; color: var(--brand-ink); font-weight: 800; font-size: 1.4rem; }
.avatar-lg::after { content: attr(data-initial); }
.avatar-lg[style*="background-image"]::after { content: ""; }
.my-space-progress { height: 7px; border-radius: 99px; background: var(--tint); overflow: hidden; margin-top: 6px; }
.my-space-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 99px; }
.my-space-complete { color: var(--brand); font-weight: 600; }
.my-space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; }
.my-space-grid a { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; }
.my-space-grid a:hover { background: var(--tint); }
.ms-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--c); color: #fff; box-shadow: 0 8px 18px -10px var(--c); }
.ms-ic .ic { width: 22px; height: 22px; }
.ms-ic .badge { position: absolute; top: -4px; inset-inline-end: -4px; }
.t-orange { --c: #ea580c; } .t-pink { --c: #db2777; } .t-blue { --c: #2563eb; } .t-red { --c: #dc2626; } .t-amber { --c: #d97706; } .t-green { --c: #16a34a; }
.t-teal { --c: #0d9488; } .t-cyan { --c: #0e7490; } .t-brown { --c: #9a3412; } .t-gold { --c: #ca8a04; } .t-slate { --c: #475569; } .t-dark { --c: #1f2937; }
.my-space-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.my-space-foot a, .my-space-foot button { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; padding: 6px; border-radius: 10px; }
.my-space-foot a:hover, .my-space-foot button:hover { color: var(--brand); background: var(--tint); }
.my-space-head [data-close-space] { display: none; }
@media (max-width: 959px) {
  .my-space-pop { position: fixed; inset: auto 0 0 0; width: auto; max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 86dvh; overflow-y: auto; animation: sheet-up .22s ease-out; }
  .my-space[open]::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 79; }
  .my-space-grid { grid-template-columns: repeat(4, 1fr); }
  .my-space-head [data-close-space] { display: inline-grid; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 959px) { body.space-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; } body.space-open { overflow: hidden; } }
body.space-open .topbar { z-index: 90; }

.imp-bar { background: #1f2937; color: #fff; font-size: .9rem; position: sticky; top: 0; z-index: 45; }
.imp-bar .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 8px; }
.imp-bar span { flex: 1; }
.imp-bar .btn { background: #fff; color: #1f2937; }

/* Public du site : monde arabe / tout le monde */
.hero-globe { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; letter-spacing: .04em; color: #fde68a; margin: 0 0 14px; }
.unity-globe { margin: 0 0 14px; } .unity-globe .ic { width: 54px; height: 54px; color: #fde68a; }
.origin-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.origin-chip { display: grid; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 140px; }
.origin-chip span { color: var(--muted); font-size: .85rem; }
.origin-chip:hover { border-color: var(--brand); }
.maghreb-highlight .origin-chip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.maghreb-highlight .origin-chip .flag { border-radius: 4px; flex: none; }
.maghreb-roots-link { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); }
.maghreb-roots-link .ic { width: 20px; height: 20px; flex: none; color: var(--brand); }
.maghreb-roots-link a { font-weight: 700; color: var(--ink); }

/* Installer l'application */
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.install-ways { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.install-ways li { display: flex; gap: 12px; align-items: flex-start; }
.install-ways li > .ic { flex: none; width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.install-ways span { display: grid; gap: 2px; color: var(--muted); font-size: .92rem; }
.install-ways strong { color: var(--ink); }
.install-steps { display: grid; gap: 12px; padding-inline-start: 22px; font-size: 1.05rem; line-height: 1.4; }

/* Pages pays */
.country-hero { color: #fff; padding: 64px 0 40px; background: radial-gradient(60rem 22rem at 80% -10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), #1d1410; }
.country-hero h1 { color: #fff; margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); }
.country-hero .lead { max-width: 62ch; opacity: .9; }
.country-hero-flag { border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.4); margin-bottom: 14px; }
.country-hero-stats { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 6px; }
.country-hero-stats strong { font: 800 2.4rem "Fraunces", Georgia, serif; color: #fde68a; }
.country-hero-first { display: flex; gap: 10px; align-items: center; margin: 16px 0 6px; font-size: 1.1rem; font-weight: 700; color: #fde68a; max-width: 48ch; }
.country-hero-first .ic { flex: none; width: 22px; height: 22px; }
.country-page h2 { display: flex; gap: 8px; align-items: center; margin-top: 34px; }
.country-text { max-width: 75ch; font-size: 1.05rem; }

/* Cadeaux */
.gifts-hero { color: #fff; padding: 56px 0 30px; background: radial-gradient(50rem 18rem at 85% -20%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #be185d, #7c2d12); }
.gifts-hero h1 { color: #fff; margin: 4px 0 8px; } .gifts-hero p { max-width: 62ch; opacity: .92; } .gifts-hero .eyebrow { color: #fde68a; }
.wallet-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
.wallet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 4px; }
.wallet-card span { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; }
.wallet-card strong { font: 800 2.2rem "Fraunces", Georgia, serif; }
.w-credits strong { color: #be185d; } .w-earn strong { color: #15803d; }
.gifts-page .card { margin-bottom: 18px; } .gifts-page h2 { display: flex; gap: 8px; align-items: center; }
.packs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 12px 0; }
.pack { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
.pack strong { font: 800 1.8rem "Fraunces", Georgia, serif; color: #be185d; } .pack b { font-size: 1.1rem; }
.gift-catalog { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin: 12px 0; }
.gift-item { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); font-size: .82rem; font-weight: 600; }
.gift-item small { color: var(--muted); font-weight: 500; }
.is-pick .gift-item { cursor: pointer; } .is-pick .gift-item:hover { border-color: #f9a8d4; } .gift-item.is-on { border-color: #be185d; background: #fdf2f8; }
.gift-emoji { font-size: 2rem; line-height: 1.2; }
.gift-how { display: grid; gap: 6px; padding-inline-start: 22px; }
.btn-gift { border-color: #f9a8d4; color: #be185d; }
.my-space-label { white-space: nowrap; }

/* ---------------------------------------------------------------- Vidéos courtes (fil vertical façon TikTok) */
.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rub-videos { --c: #be123c; }
body.page-videos { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; background: #0b0b0f; }
body.page-videos > main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@media (max-width: 959px) { body.page-videos:has(.tabbar) > main { padding-bottom: calc(62px + env(safe-area-inset-bottom)); } }
body.page-videos .footer, body.page-videos .cookie-note { display: none; }
@media (min-width: 960px) { body.page-videos > main { padding-bottom: 0; } }
.vfeed { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; color: #fff; }
.vfeed-top { position: absolute; z-index: 5; top: 0; inset-inline: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px 26px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.vfeed-top > * { pointer-events: auto; }
.vfeed-tabs { display: flex; gap: 14px; flex: none; }
.vfeed-tabs a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.vfeed-tabs a[aria-current] { color: #fff; border-color: #fff; }
.vfeed-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.vfeed-cats::-webkit-scrollbar { display: none; }
.vcat-chip { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.vcat-chip.is-on { background: #fff; color: #111; }
.vsound, .vpublish { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; justify-content: center; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; cursor: pointer; backdrop-filter: blur(6px); }
.vpublish { background: var(--brand); color: var(--brand-ink); }
.vfeed-list { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.vfeed-list::-webkit-scrollbar { display: none; }
.vitem { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; background: #000; overflow: hidden; }
.vstage { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; background: #000; }
.vplayer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; background: #000; }
@media (max-width: 700px) { .vplayer { object-fit: cover; } }
@media (min-width: 701px) {
  .vitem { gap: 16px; padding-block: 12px; }
  .vstage { width: auto; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 110px); border-radius: 16px; }
  .vplayer { object-fit: cover; }
}
.vtap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.vplay-ic { position: absolute; z-index: 2; display: none; width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.4); place-items: center; pointer-events: none; }
.vplay-ic .ic { width: 38px; height: 38px; color: #fff; fill: #fff; margin-inline-start: 4px; }
.vitem.is-paused .vplay-ic { display: grid; }
.vheart { position: absolute; z-index: 3; opacity: 0; pointer-events: none; }
.vheart .ic { width: 110px; height: 110px; color: #ff2d55; fill: #ff2d55; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.vheart.is-pop { animation: vheart .9s ease-out; }
@keyframes vheart { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 60% { opacity: 1; transform: scale(1) translateY(-10px); } 100% { opacity: 0; transform: scale(1.2) translateY(-60px); } }
.vinfo { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding-block: 70px 18px; padding-inline: 14px 84px; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vinfo a, .vinfo p { pointer-events: auto; }
.vchan { color: #fff; font-weight: 800; text-decoration: none; font-size: 1rem; }
.vchan .tag-demo { color: rgba(255,255,255,.75) !important; }
.vtitle { font-family: inherit; font-size: 1rem; font-weight: 600; margin: 4px 0 2px; color: #fff; letter-spacing: 0; }
.vdesc { margin: 0; font-size: .9rem; color: rgba(255,255,255,.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: pre-line; }
.vdesc.is-open { -webkit-line-clamp: unset; max-height: 40vh; overflow-y: auto; }
.vmeta { margin: 6px 0 0; font-size: .8rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vmeta .ic { width: 14px; height: 14px; }
.vcat { color: #fff; font-weight: 700; text-decoration: none; }
.vcredit { margin: 4px 0 0; font-size: .72rem; color: rgba(255,255,255,.7); }
.vcredit a { color: #fff; }
.vstatus { display: inline-block; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px; background: #f59e0b; color: #111; font-size: .78rem; font-weight: 700; text-shadow: none; }
.vrail { position: absolute; z-index: 3; inset-inline-end: 8px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 701px) { .vrail { position: static; align-self: flex-end; margin-bottom: 24px; } .vinfo { padding-inline-end: 14px; } }
.vavatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)) center / cover; display: grid; place-items: center; color: #fff; font-weight: 800; text-decoration: none; }
.vavatar::after { content: attr(data-initial); }
.vavatar[style*="background-image"]::after { content: ""; }
.vsub { margin-top: -24px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ff2d55; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.vsub .ic { width: 15px; height: 15px; stroke-width: 3; }
.vsub.is-on { background: #fff; color: #ff2d55; }
.vbtn { display: grid; justify-items: center; gap: 2px; background: none; border: 0; color: #fff; cursor: pointer; font-size: .74rem; font-weight: 700; padding: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vbtn .ic, .vgift-ic { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.vgift-ic { font-size: 26px; line-height: 30px; text-align: center; }
.vbtn.is-on .ic { color: #ff2d55; fill: #ff2d55; }
.vbtn:active .ic { transform: scale(.85); }
.vprogress { position: absolute; z-index: 4; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.vprogress span { display: block; height: 100%; width: 0; background: #fff; }
.vad-in { width: min(92%, 420px); background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.vad-in img { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 12px; }
.vad-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vad-in h2 { margin: 0; font-size: 1.3rem; }
.vempty { flex: 1; display: grid; place-items: center; padding: 80px 20px 20px; text-align: center; }
.vempty-in { max-width: 420px; display: grid; gap: 12px; justify-items: center; }
.vempty-in h1 { color: #fff; font-size: 1.6rem; }
.vempty-in p { color: rgba(255,255,255,.8); }
.vempty-ic { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.vempty-ic .ic { width: 36px; height: 36px; }
/* Panneau des commentaires (monte du bas sur téléphone) */
dialog.modal.vsheet { width: min(100vw, 560px); max-height: 78dvh; margin-bottom: 0; border-radius: 20px 20px 0 0; }
@media (min-width: 701px) { dialog.modal.vsheet { margin-bottom: auto; border-radius: 20px; } }
dialog.modal.vsheet .modal-in { padding: 0; gap: 0; max-height: 78dvh; display: flex; flex-direction: column; }
.vsheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vsheet-head h2 { font-size: 1.05rem; font-family: inherit; }
.vsheet-list { flex: 1; min-height: 120px; overflow-y: auto; padding: 8px 16px; }
.vsheet-empty { text-align: center; padding: 30px 0; }
.vsheet-form { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.vsheet-row { display: flex; gap: 8px; }
.vsheet-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.vsheet-row .btn { border-radius: 999px; padding-inline: 14px; }
.vsheet-replying { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.vsheet-login { padding: 12px 16px; text-align: center; margin: 0; }
.vsheet .alert { margin: 10px 16px 0; }
.vcom { display: flex; gap: 10px; padding: 10px 0; }
.vcom.is-reply { padding-inline-start: 42px; }
.vcom p { margin: 2px 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.vcom-acts { display: flex; gap: 12px; }
.vmenu { display: grid; padding: 8px; }
.vmenu a, .vmenu button { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: none; border: 0; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; text-align: start; }
.vmenu a:hover, .vmenu button:hover { background: var(--tint); }
.vmenu .danger { color: #c0392b; }
/* Publier une vidéo */
.vpub-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .vpub-grid { grid-template-columns: 300px 1fr; align-items: start; } }
.vpub-pick { border: 2px dashed var(--line); border-radius: 18px; padding: 30px 18px; display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--surface); align-content: center; }
@media (min-width: 800px) { .vpub-pick { aspect-ratio: 9 / 14; } }
.vpub-pick.is-drag { border-color: var(--brand); background: var(--tint); }
.vpub-pick-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.vpub-pick-ic .ic { width: 30px; height: 30px; }
.vpub-pick-btns { display: grid; gap: 8px; width: 100%; }
.vpub-preview video { width: 100%; max-height: 62vh; border-radius: 14px; background: #000; }
.vpub-preview .field { margin-top: 6px; }
.vpub-cover { width: 120px; height: auto; border-radius: 10px; background: #000; }
.vpub-fields { display: grid; gap: 14px; }
.vpub-channel { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vpub-progress { position: relative; height: 26px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.vpub-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--brand); transition: width .2s; }
.vpub-progress small { position: relative; display: block; text-align: center; line-height: 26px; font-weight: 700; mix-blend-mode: difference; color: #fff; }
/* Chaîne façon YouTube */
.channel-banner { height: clamp(110px, 22vw, 230px); background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent)) center / cover; }
.channel-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; padding-top: 16px; }
.channel-avatar { width: 96px; height: 96px; margin-top: -48px; border-radius: 50%; border: 4px solid var(--bg); background: linear-gradient(135deg, var(--brand-2), var(--brand)) center / cover; display: grid; place-items: center; color: #fff; font-size: 2.2rem; font-weight: 800; align-self: start; }
.channel-avatar::after { content: attr(data-initial); }
.channel-avatar[style*="background-image"]::after { content: ""; }
.channel-id h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.channel-id p { margin: 2px 0 0; }
.channel-desc { max-width: 70ch; }
.channel-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 800px) { .channel-head { grid-template-columns: auto 1fr auto; } .channel-actions { grid-column: auto; } .channel-avatar { width: 128px; height: 128px; margin-top: -40px; } }
.channel-tabs { margin-top: 18px; display: flex; gap: 8px; }
.channel-hidden { margin-top: 18px; }
.vgrid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vtile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #111; color: #fff; text-decoration: none; }
.vtile img, .vtile video { width: 100%; height: 100%; object-fit: cover; }
.vtile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.vtile-views, .vtile-dur, .vtile-title, .vtile-status { position: absolute; z-index: 1; font-size: .75rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.vtile-views { bottom: 6px; inset-inline-start: 8px; display: flex; align-items: center; gap: 3px; }
.vtile-views .ic { width: 13px; height: 13px; fill: #fff; }
.vtile-dur { top: 6px; inset-inline-end: 6px; background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 6px; text-shadow: none; }
.vtile-title { bottom: 24px; inset-inline: 8px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.vtile-status { top: 6px; inset-inline-start: 6px; background: #f59e0b; color: #111; padding: 1px 8px; border-radius: 999px; text-shadow: none; }
.vfeed-top { flex-wrap: wrap; row-gap: 8px; }
.vfeed-cats { order: 3; flex: 1 1 100%; }
.vsound { margin-inline-start: auto; }
[dir="rtl"] .vfeed-cats { mask-image: linear-gradient(270deg, #000 85%, transparent); }

/* Accueil : bandeau des vidéos de la communauté */
.home-videos { position: relative; padding: 44px 0 36px; color: #fff; background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--brand) 55%, #0b0b12) 0%, #0b0b12 60%); overflow: hidden; }
.hv-head { display: grid; gap: 16px; align-items: end; margin-bottom: 22px; }
@media (min-width: 860px) { .hv-head { grid-template-columns: 1fr auto; } }
.hv-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hv-eyebrow .ic { width: 16px; height: 16px; }
.hv-new { background: #ff2d55; color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .72rem; animation: hvpulse 2s ease-in-out infinite; }
@keyframes hvpulse { 50% { box-shadow: 0 0 0 6px rgba(255,45,85,.25); } }
.home-videos h2 { color: #fff; margin: 0 0 6px; }
.hv-text { margin: 0; color: rgba(255,255,255,.82); max-width: 62ch; }
.hv-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hv-rail { --hv-pad: max(16px, calc((100vw - 1200px) / 2 + 16px)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--hv-pad) 10px; scroll-padding-inline: var(--hv-pad); scrollbar-width: none; }
.hv-rail::-webkit-scrollbar { display: none; }
.hv-card { position: relative; flex: none; width: clamp(150px, 42vw, 210px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #1b1b24; color: #fff; text-decoration: none; scroll-snap-align: start; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); transition: transform .25s; }
.hv-card:hover { transform: translateY(-4px) scale(1.02); }
.hv-card img, .hv-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hv-card video { opacity: 0; transition: opacity .4s; }
.hv-card.is-playing video { opacity: 1; }
.hv-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hv-play { position: absolute; z-index: 1; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.hv-play .ic { width: 14px; height: 14px; fill: #fff; }
.hv-card.is-playing .hv-play { opacity: 0; }
.hv-cat { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 999px; }
.hv-info { position: absolute; z-index: 1; inset-inline: 10px; bottom: 10px; display: grid; gap: 2px; line-height: 1.25; }
.hv-info strong { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hv-info small { color: rgba(255,255,255,.75); font-size: .75rem; }
.hv-more { display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 16px; background: linear-gradient(160deg, var(--brand), var(--brand-2)); }
.hv-more::after { display: none; }
.hv-more-ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.hv-more-ic .ic { width: 28px; height: 28px; }
.hv-more strong { font-size: 1.15rem; }
.hv-more small { color: rgba(255,255,255,.9); }

/* Accueil : Live, pilier à part — jamais la plaque claire des « rubriques », un fond sombre façon
   régie de diffusion, à sa place dans l'ordre des rubriques (Admin › Page d'accueil), jamais au-dessus
   de la bannière principale. La partie « en ce moment en direct » reste cachée par défaut, le JS ne
   l'affiche que s'il y a vraiment quelqu'un en direct (jamais les salons de groupe, qui restent privés). */
.live-zone { background: linear-gradient(135deg, #1a0b1f, #3b0a2a 55%, #5a0f1f); padding-block: 48px; }
.live-zone-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.live-zone-text { flex: 1 1 340px; color: #fff; }
.live-zone-text h2 { margin: 6px 0 8px; color: #fff; }
.live-zone-text .muted { color: rgba(255,255,255,.78); }
.live-zone-eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #ff5a79; margin: 0 0 8px; }
.live-zone-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; flex: none; animation: hvpulse 2s ease-in-out infinite; }
.btn-live { margin-top: 18px; background: #ff2d55; color: #fff; border: 0; }
.btn-live:hover { background: #ff445f; }
.btn-live .ic { color: #fff; }
.live-zone-rail { flex: 1 1 260px; min-width: 240px; background: rgba(255,255,255,.08); border-radius: 18px; padding: 18px; }
.live-zone-empty { margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; }
.live-zone-rail .hl-eyebrow { color: rgba(255,255,255,.75); }
.live-zone-rail .hl-item { color: #fff; }
@media (max-width: 640px) { .live-zone { padding-block: 32px; } .live-zone-in { gap: 20px; } }
.hl-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.hl-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff2d55; flex: none; animation: hvpulse 2s ease-in-out infinite; }
.hl-rail { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.hl-rail::-webkit-scrollbar { display: none; }
.hl-item { flex: none; width: 72px; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.hl-av { width: 60px; height: 60px; border-radius: 50%; background: var(--brand) center/cover; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: var(--brand-ink, #fff);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ff2d55; }
.hl-av:not([style])::before { content: attr(data-initial); }
.hl-item strong { font-size: .72rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-item.is-top { position: relative; }
.hl-item.is-top .hl-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffb300; }
.hl-crown { position: absolute; top: -4px; right: 2px; font-size: .9rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }

/* Bouton « en direct » dans l'en-tête, visible sur toutes les pages, même à 0 */
.live-dot-ic { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: block; position: relative; }
.live-dot-ic::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.live-menu [data-live-badge] { background: var(--line); color: var(--muted); }
.live-menu [data-live-badge].is-on { background: #ff2d55; color: #fff; animation: hvpulse 2s ease-in-out infinite; }
.live-pop { width: 280px; max-height: 60vh; overflow-y: auto; }
.live-pop-item { align-items: center; }
.live-pop-item strong { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-pop-item small { color: var(--muted); font-size: .74rem; }
.hl-av.sm { width: 36px; height: 36px; font-size: .95rem; box-shadow: none; flex: none; }
.live-empty { padding: 10px 12px; margin: 0; font-size: .85rem; }

/* Pastille « en direct » sur une fiche profil (jamais pour les salons de groupe, privés) */
.profile-live { display: inline-flex; align-items: center; gap: 6px; background: #ff2d55; color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.profile-live .hl-dot { background: #fff; }

/* Accueil : dernière activité, toutes rubriques confondues (l'accueil montre toujours la nouveauté) */
.activity-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.activity-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface, #fff); border: var(--card-border); border-radius: var(--radius-card); text-decoration: none; color: var(--ink); }
.activity-list a:hover { background: var(--tint); }
.act-photo { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, var(--brand-2), var(--brand)); display: grid; place-items: center; }
.act-photo[data-g="homme"] { background: linear-gradient(140deg, #3d7f86, #1f4f6b); }
.act-photo[data-g="femme"] { background: linear-gradient(140deg, #e49a6b, #b5536b); }
.act-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-letter-sm { font: 700 1.1rem "Fraunces", serif; color: #fff; }
.act-type-badge { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface, #fff); }
.act-type-badge .ic { width: 10px; height: 10px; }
.act-text { flex: 1 1 auto; min-width: 0; line-height: 1.45; overflow-wrap: break-word; }
.act-text strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-time { flex: 0 1 auto; font-size: .78rem; text-align: end; }
@media (max-width: 480px) {
  .activity-list a { flex-wrap: wrap; }
  .act-time { flex-basis: 100%; text-align: start; padding-inline-start: 54px; }
}

/* Fil vidéo sur ordinateur : menu rangé dans une colonne à gauche (comme TikTok sur ordinateur) */
@media (min-width: 1000px) {
  .vfeed-top { top: 0; bottom: 0; inset-inline: 0 auto; width: 240px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 18px 12px; background: #0e0e14; border-inline-end: 1px solid rgba(255,255,255,.08); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
  .vpublish { order: -1; height: 44px; font-size: .95rem; margin-bottom: 10px; }
  .vfeed-tabs { flex-direction: column; gap: 2px; margin-bottom: 10px; }
  .vfeed-tabs a { padding: 10px 12px; border: 0; border-radius: 10px; font-size: 1.05rem; }
  .vfeed-tabs a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
  .vfeed-tabs a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .vfeed-cats { order: 0; flex: none; flex-direction: column; gap: 2px; overflow: visible; mask-image: none !important; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
  .vcat-chip { background: none; backdrop-filter: none; padding: 8px 12px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.75); }
  .vcat-chip:hover { background: rgba(255,255,255,.06); color: #fff; }
  .vcat-chip.is-on { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
  .vsound { order: 5; margin: 12px 0 0; height: 40px; justify-content: flex-start; padding-inline: 12px; gap: 10px; }
  .vsound::after { content: attr(data-label); font-weight: 600; }
  .vfeed-list, .vempty { margin-inline-start: 240px; }
}

/* Bouton « Activer le son » bien visible tant que le fil est muet */
.vunmute { display: none; position: absolute; z-index: 4; top: 32%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: hvpulse 2.4s ease-in-out infinite; }
.vfeed.is-muted .vunmute { display: block; }
.vunmute:hover { background: rgba(0,0,0,.8); }

/* ---------------------------------------------------------------- Téléphone : plus compact */
.filters-toggle { display: none; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 600px) {
  .hero-in { padding-block: 84px 28px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { min-width: 0; }
  .hero-ctas .btn-primary { grid-column: 1 / -1; }
  .hero-ctas .btn:not(.btn-primary) { font-size: .86rem; padding: 10px 8px; min-height: 46px; white-space: normal; line-height: 1.2; text-align: center; }
  .hero-ctas .btn:not(.btn-primary):last-child:nth-child(even) { grid-column: 1 / -1; }
  .cookie-note { padding: 10px 12px; gap: 8px; flex-wrap: nowrap; border-radius: 14px; }
  .cookie-note p { flex: 1 1 auto; font-size: .76rem; line-height: 1.35; }
  .cookie-note .btn { padding: 8px 12px; font-size: .82rem; white-space: nowrap; }
  /* Filtres repliés : la recherche reste visible, le reste s'ouvre avec « Filtres » */
  .filters.is-compact { grid-template-columns: 1fr 1fr; }
  .filters.is-compact > :first-child { grid-column: 1 / -1; }
  .filters.is-compact > :not(:first-child):not([type=submit]):not(.filters-toggle) { display: none; }
  .filters-toggle { display: inline-flex; }
}
.filters-toggle .badge-n { background: var(--brand); color: var(--brand-ink); border-radius: 999px; font-size: .72rem; min-width: 20px; padding: 1px 6px; }

.composer-gift { font-size: 1.25rem; line-height: 1; }

/* ---------------------------------------------------------------- Animations des cadeaux (vraies images) */
.gift-fx { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; pointer-events: none; animation: fxIn .35s ease-out; }
.gift-fx.fx-medium, .gift-fx.fx-big { pointer-events: auto; cursor: pointer; }
.gift-fx.is-out { animation: fxOut .6s ease-in forwards; }
@keyframes fxIn { from { opacity: 0; } }
@keyframes fxOut { to { opacity: 0; } }
.fx-bg { position: absolute; inset: 0; }
.fx-medium .fx-bg { background: radial-gradient(ellipse at 50% 45%, rgba(48,24,70,.94), rgba(4,3,10,.97)); }
.fx-big .fx-bg { background: radial-gradient(ellipse at 50% 42%, #2a1640 0%, #0d0716 55%, #000 100%); }
.fx-roar .fx-bg { background: radial-gradient(ellipse at 50% 55%, #3a2410 0%, #120a04 55%, #000 100%); }
.fx-moon .fx-bg { background: radial-gradient(ellipse at 50% 30%, #12254a 0%, #050b1c 60%, #000 100%); }
.fx-rays { position: absolute; width: 200vmax; height: 200vmax; background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.16) 0deg 5deg, transparent 5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); mask-image: radial-gradient(circle, #000 0%, transparent 55%); filter: blur(1.5px); animation: fxSpin 30s linear infinite, fxIn 2s ease-out; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,205,110,.55), rgba(255,170,60,.12) 45%, transparent 70%); filter: blur(10px); animation: fxPulse 2.6s ease-in-out infinite; }
.fx-small .fx-glow { width: 42vmin; height: 42vmin; top: auto; bottom: 8vh; opacity: .7; }
@keyframes fxPulse { 50% { transform: scale(1.12); opacity: .75; } }
.fx-dust i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #ffe39a; box-shadow: 0 0 6px 2px rgba(255,210,110,.7); opacity: 0; animation: fxDust var(--t) var(--d) ease-in-out infinite; }
@keyframes fxDust { 0% { opacity: 0; transform: translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22vh) scale(1); } }
.fx-stage { position: relative; display: grid; place-items: center; }
.fx-obj { position: relative; display: grid; place-items: center; }
.fx-img { display: block; max-width: none; filter: drop-shadow(0 0 28px rgba(255,200,100,.35)) drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.fx-shine { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; animation: fxShine 2.2s 1s ease-in-out 2; }
@keyframes fxShine { to { background-position: 150% 0; } }
/* Tailles */
.fx-img { width: auto; height: auto; }
.fx-small .fx-img { max-width: min(38vmin, 230px); max-height: 32vh; }
.fx-medium .fx-img { max-width: min(52vmin, 360px); max-height: 48vh; }
.fx-big .fx-img { max-width: min(78vmin, 560px); max-height: 50vh; }
.fx-roar .fx-img, .fx-gallop .fx-img, .fx-walk .fx-img { max-width: min(92vw, 820px); max-height: 52vh; }
.fx-medium .fx-stage, .fx-big .fx-stage { margin-bottom: 12vh; }
.fx-words.fx-small .fx-stage { margin-bottom: 0; }
/* Petit cadeau : il monte doucement du bas, avec sa légende */
.fx-small { place-items: end center; padding-bottom: 14vh; }
.fx-small .fx-stage { animation: fxRise 3.2s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes fxRise { 0% { transform: translateY(40vh) scale(.5); opacity: 0; } 22% { transform: translateY(0) scale(1.06); opacity: 1; } 32% { transform: scale(1); } 80% { opacity: 1; transform: translateY(-4vh); } 100% { opacity: 0; transform: translateY(-14vh) scale(.95); } }
.fx-cap { position: absolute; bottom: 7vh; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: rgba(20,10,30,.72); color: #ffe3a3; font-weight: 700; backdrop-filter: blur(6px); animation: fxIn .5s .4s both, fxOut .5s 2.6s forwards; }
.fx-cap small { color: #fff; font-weight: 500; }
/* Cadeau moyen et grand : arrivée de cinéma (flou → net, petit → grand) */
.fx-medium .fx-obj, .fx-object.fx-big .fx-obj { animation: fxZoom 1.1s cubic-bezier(.2,1.2,.35,1) both, fxFloat 3.4s 1.1s ease-in-out infinite; }
@keyframes fxZoom { 0% { transform: scale(.2); filter: blur(14px) brightness(2); opacity: 0; } 60% { filter: blur(0) brightness(1.15); opacity: 1; } 100% { transform: scale(1); filter: none; } }
@keyframes fxFloat { 50% { transform: translateY(-12px); } }
.fx-text { position: absolute; bottom: max(7vh, 40px); left: 0; right: 0; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 0 16px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.8); animation: fxText .8s .7s both; }
.fx-text small { font-size: 1rem; letter-spacing: .04em; opacity: .92; }
.fx-text strong { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 6.5vw, 3.2rem); line-height: 1.05; background: linear-gradient(180deg, #fff6d0, #ffd36b 45%, #c8922b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.fx-text em { font-style: italic; font-size: 1.1rem; max-width: 32ch; color: #ffe9c4; }
@keyframes fxText { from { opacity: 0; transform: translateY(18px); letter-spacing: .2em; } }
.fx-close { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; animation: fxIn .5s 1.2s both; }
.fx-close .ic { width: 16px; height: 16px; }
/* Lion et tigre : sortent de l'ombre, puis rugissent (secousse + ondes de choc) */
.fx-roar .fx-obj { animation: fxDark 1s ease-out both, fxRoar .7s .95s ease-out, fxFloat 4s 2s ease-in-out infinite; }
.fx-k-lion .fx-obj { animation: fxDark 1s ease-out both, fxRoar .7s 1.05s ease-out, fxRoar2 .7s 5.55s ease-out, fxFloat 4s 2s ease-in-out infinite; }
@keyframes fxDark { 0% { transform: scale(.82) translateY(30px); filter: brightness(.05) blur(6px); opacity: 0; } 100% { transform: none; filter: brightness(1); opacity: 1; } }
@keyframes fxRoar { 0% { transform: scale(1); } 15% { transform: scale(1.12) translateX(-10px); } 30% { transform: scale(1.1) translateX(10px); } 45% { transform: scale(1.11) translateX(-8px); } 60% { transform: scale(1.08) translateX(6px); } 100% { transform: scale(1); } }
@keyframes fxRoar2 { 0% { transform: scale(1); } 20% { transform: scale(1.1) translateX(-8px); } 40% { transform: scale(1.09) translateX(8px); } 100% { transform: scale(1); } }
.fx-roar { animation: fxIn .35s ease-out, fxShake .6s 1s ease-out; }
@keyframes fxShake { 15%, 55% { transform: translate(-7px, 3px); } 35%, 75% { transform: translate(7px, -3px); } }
.fx-wave { position: absolute; top: 46%; left: 50%; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,214,140,.8); box-shadow: 0 0 30px rgba(255,190,90,.6); transform: translate(-50%, -50%); opacity: 0; animation: fxWave 1.4s 1s ease-out; }
.fx-w2 { animation-delay: 1.2s; } .fx-w3 { animation-delay: 1.4s; }
.fx-k-lion .fx-wave { animation: fxWave 1.4s 1.1s ease-out, fxWave 1.4s 5.6s ease-out; }
@keyframes fxWave { 0% { width: 20px; height: 20px; opacity: 1; } 100% { width: 150vmax; height: 150vmax; opacity: 0; } }
/* Cheval : traverse l'écran au galop dans un nuage de poussière ; chameau : arrive en marchant */
.fx-gallop .fx-obj { animation: fxGallopIn 1.7s cubic-bezier(.25,.8,.35,1) both, fxBob .42s 1.7s ease-in-out infinite; }
@keyframes fxGallopIn { 0% { transform: translateX(-110vw); filter: blur(8px); } 70% { filter: blur(1px); } 100% { transform: none; filter: none; } }
@keyframes fxBob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.fx-walk .fx-obj { animation: fxWalkIn 2.4s cubic-bezier(.3,.7,.4,1) both, fxSway 1.6s 2.4s ease-in-out infinite; }
@keyframes fxWalkIn { 0% { transform: translateX(80vw) rotate(2deg); } 25% { transform: translateX(60vw) rotate(-2deg); } 50% { transform: translateX(36vw) rotate(2deg); } 75% { transform: translateX(14vw) rotate(-1deg); } 100% { transform: none; } }
@keyframes fxSway { 50% { transform: rotate(1.5deg) translateY(-4px); } }
.fx-cloud { position: absolute; bottom: 22%; left: -10%; width: 120%; height: 18vh; background: radial-gradient(ellipse at 30% 60%, rgba(214,180,130,.55), transparent 60%), radial-gradient(ellipse at 60% 70%, rgba(190,150,100,.45), transparent 55%); filter: blur(18px); animation: fxCloud 2.4s ease-out both; }
@keyframes fxCloud { 0% { transform: translateX(-60%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(10%); opacity: .55; } }
/* Couronne : descend du ciel dans un rayon de lumière */
.fx-beam { position: absolute; top: 0; left: 50%; width: 60vmin; height: 100%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,230,160,.55), rgba(255,210,120,.08) 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); animation: fxIn 1.2s ease-out; }
.fx-crown .fx-obj { animation: fxDescend 2s cubic-bezier(.2,.9,.3,1) both, fxFloat 3.4s 2s ease-in-out infinite; }
@keyframes fxDescend { 0% { transform: translateY(-80vh) scale(.7); } 85% { transform: translateY(8px) scale(1.02); } 100% { transform: none; } }
/* Bague : tourne sur elle-même, éclats de diamant */
.fx-jewel .fx-stage { perspective: 900px; }
.fx-jewel .fx-obj { animation: fxSpinY 2s cubic-bezier(.2,.8,.3,1) both, fxFloat 3.4s 2s ease-in-out infinite; }
@keyframes fxSpinY { 0% { transform: rotateY(-540deg) scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fx-glint { position: absolute; width: 46px; height: 46px; background: radial-gradient(circle, #fff 0 8%, transparent 9%), linear-gradient(90deg, transparent 47%, #fff 50%, transparent 53%), linear-gradient(0deg, transparent 47%, #fff 50%, transparent 53%); opacity: 0; animation: fxGlint 1.4s calc(1.8s + var(--i) * .45s) ease-in-out infinite; }
@keyframes fxGlint { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* Lune : nuit étoilée */
.fx-sky i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; box-shadow: 0 0 6px #fff; animation: fxTwinkle 2.4s var(--d) ease-in-out infinite; }
@keyframes fxTwinkle { 50% { opacity: .15; } }
.fx-moon .fx-obj { animation: fxMoon 2s cubic-bezier(.2,.8,.3,1) both, fxFloat 3.4s 2s ease-in-out infinite; }
@keyframes fxMoon { 0% { transform: translateY(40vh) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fx-moon .fx-glow { background: radial-gradient(circle, rgba(200,220,255,.45), transparent 65%); }
/* Étoile dorée */
.fx-starsvg { width: min(46vmin, 320px); filter: drop-shadow(0 0 30px rgba(255,210,90,.8)); }
.fx-star .fx-obj { animation: fxStarIn 1.4s cubic-bezier(.2,1.3,.35,1) both, fxFloat 3.4s 1.4s ease-in-out infinite; }
@keyframes fxStarIn { 0% { transform: scale(0) rotate(-200deg); } 100% { transform: none; } }
/* Mots doux : le mot en lettres d'or, les autres éclatent tout autour, cœurs et anges */
.fx-word { font-family: "Fraunces", "Cairo", Georgia, serif; font-weight: 800; font-size: clamp(2.6rem, 13vw, 6rem); line-height: 1.1; text-align: center; padding: 0 12px; background: linear-gradient(180deg, #fff3f8 0%, #ffb3cf 40%, #e0457b 75%, #9e1d4f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(255,80,140,.55)); }
.fx-word-sm { position: absolute; bottom: -8%; font-size: clamp(2rem, 9vw, 4rem); }
.fx-words .fx-obj { animation: fxWordIn 1s cubic-bezier(.2,1.5,.35,1) both, fxBeat 1.1s 1s ease-in-out infinite; }
.fx-words.fx-small { place-items: center; padding: 0; }
.fx-words.fx-small .fx-stage { animation: none; }
@keyframes fxWordIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fxBeat { 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }
.fx-burst span { position: absolute; top: 50%; left: 50%; white-space: nowrap; font-family: "Fraunces", "Cairo", Georgia, serif; font-weight: 700; font-size: calc(1.15rem * var(--z)); color: #ffe0ec; text-shadow: 0 0 12px rgba(255,90,150,.8), 0 2px 6px rgba(0,0,0,.6); opacity: 0; animation: fxBurst 3.2s var(--d) cubic-bezier(.15,.8,.3,1) forwards; }
@keyframes fxBurst { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(0) rotate(calc(-1 * var(--a))) scale(.3); } 20% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) scale(1); } }
.fx-hearts i { position: absolute; bottom: -40px; width: var(--s); height: var(--s); opacity: 0; animation: fxHeart var(--t) var(--d) ease-in forwards; }
.fx-hearts svg { width: 100%; height: 100%; fill: hsl(var(--h) 85% 62%); filter: drop-shadow(0 0 8px rgba(255,80,140,.6)); }
@keyframes fxHeart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-105vh) translateX(30px) scale(1.1) rotate(25deg); } }
.fx-angel { position: absolute; width: min(34vmin, 240px); filter: drop-shadow(0 0 24px rgba(255,240,200,.6)); opacity: 0; }
.fx-angel-l { left: 2%; bottom: 10%; animation: fxAngelL 6s .4s ease-in-out forwards; }
.fx-angel-r { right: 2%; bottom: 10%; transform: scaleX(-1); animation: fxAngelR 6s .7s ease-in-out forwards; }
@keyframes fxAngelL { 0% { opacity: 0; transform: translate(-40px, 60px); } 20% { opacity: 1; } 50% { transform: translate(10px, -40px) rotate(-4deg); } 80% { opacity: 1; transform: translate(0, -70px) rotate(2deg); } 100% { opacity: 0; transform: translate(-20px, -140px); } }
@keyframes fxAngelR { 0% { opacity: 0; transform: scaleX(-1) translate(-40px, 60px); } 20% { opacity: 1; } 50% { transform: scaleX(-1) translate(10px, -40px) rotate(-4deg); } 80% { opacity: 1; transform: scaleX(-1) translate(0, -70px) rotate(2deg); } 100% { opacity: 0; transform: scaleX(-1) translate(-20px, -140px); } }
.fx-angels .fx-obj, .fx-love .fx-obj { animation: fxZoom 1.2s cubic-bezier(.2,1.2,.35,1) both, fxFloat 3.4s 1.2s ease-in-out infinite; }
.fx-angels .fx-bg, .fx-love .fx-bg { background: radial-gradient(ellipse at 50% 45%, #5a2346 0%, #1d0b1c 55%, #050208 100%); }
.fx-angels .fx-glow, .fx-love .fx-glow { background: radial-gradient(circle, rgba(255,190,220,.55), rgba(255,120,170,.12) 45%, transparent 70%); }
.gift-fx.is-calm *, .gift-fx.is-calm { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
/* Repère des gros cadeaux dans la boutique */
.gift-item { position: relative; }
.gift-badge { position: absolute; top: 6px; inset-inline-end: 6px; color: #d9a441; }
.gift-badge .ic { width: 16px; height: 16px; }
.gift-t-big { background: linear-gradient(160deg, #fff7e0, #ffe9b8) !important; border-color: #e7c46a !important; }
[data-theme="nuit"] .gift-t-big { background: linear-gradient(160deg, #3a2f12, #2a220c) !important; }
button.gift-item { font: inherit; cursor: pointer; }

/* Lancer une discussion : 3 étapes bien lisibles */
.dn-form { display: grid; gap: 16px; }
.dn-step { display: grid; gap: 14px; }
.dn-title { display: flex; align-items: center; gap: 10px; font-family: inherit; font-size: 1.15rem; margin: 0; }
.dn-num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1rem; }
.dn-themes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 480px) { .dn-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .dn-theme { padding: 10px 4px 8px; gap: 4px; border-radius: 14px; } .dn-emoji { width: 44px; height: 44px; font-size: 24px; } .dn-name { font-size: .78rem; } }
.dn-theme { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 16px; border: 2px solid var(--line); background: color-mix(in srgb, var(--c, var(--brand)) 6%, var(--surface)); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, background .15s; }
.dn-theme:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line)); }
.dn-theme input { position: absolute; opacity: 0; pointer-events: none; }
.dn-emoji { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1; background: color-mix(in srgb, var(--c, var(--brand)) 16%, var(--surface)); }
.dn-name { font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--ink); }
.dn-check { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--brand)); color: #fff; display: none; place-items: center; }
.dn-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.dn-theme:has(input:checked) { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 14%, var(--surface)); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--c, var(--brand)) 60%, transparent); }
.dn-theme:has(input:checked) .dn-check { display: grid; }
.dn-theme:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.dn-desc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.dn-desc-emoji { font-size: 30px; line-height: 1; }
.dn-desc p { margin: 0; }
.dn-step .field > span { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.dn-access { display: grid; gap: 10px; }
@media (min-width: 640px) { .dn-access { grid-template-columns: 1fr 1fr; } }
.dn-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); }
.dn-opt input { margin-top: 4px; accent-color: var(--brand); }
.dn-opt-ic { font-size: 26px; line-height: 1; }
.dn-opt strong { display: block; }
.dn-opt small { color: var(--muted); }
.dn-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }

/* Vignettes des cadeaux dans la boutique et la fenêtre d'envoi */
.gift-thumb { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.gift-thumb-star svg { width: 100%; height: 100%; }
.gift-thumb-word { display: grid; place-items: center; font-family: "Fraunces", "Cairo", Georgia, serif; font-weight: 800; font-size: .95rem; line-height: 1.1; color: #c2185b; text-align: center; background: radial-gradient(circle, #ffe4ef, transparent 70%); }
.gift-catalog { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important; }

/* Mots doux même en petit format : fond rose sombre pour bien lire */
.fx-words .fx-bg { background: radial-gradient(ellipse at 50% 50%, rgba(90,25,60,.95), rgba(20,5,18,.97)); }
.fx-words { pointer-events: auto; cursor: pointer; }
.fx-words .fx-cap { display: none; }

.gift-test { padding: 10px 12px; border-radius: 12px; background: #eef6ff; border: 1px dashed #7aa7e0; }

/* 3D : présentoir qui tourne doucement, arche marocaine dorée pour les vidéos */
.fx-stage-3d { perspective: 1100px; }
.fx-3d { position: relative; display: grid; place-items: center; transform-style: preserve-3d; animation: fx3d 5.5s 1.2s ease-in-out infinite; }
@keyframes fx3d { 0%, 100% { transform: rotateY(-16deg) rotateX(3deg); } 50% { transform: rotateY(16deg) rotateX(-2deg); } }
.fx-roar .fx-3d, .fx-gallop .fx-3d, .fx-walk .fx-3d { animation-name: fx3dAnimal; animation-duration: 7s; }
@keyframes fx3dAnimal { 0%, 100% { transform: rotateY(-8deg) translateZ(0); } 50% { transform: rotateY(8deg) translateZ(40px); } }
.fx-jewel .fx-3d, .fx-crown .fx-3d { animation-name: fxTurn; animation-duration: 6s; }
@keyframes fxTurn { 0%, 100% { transform: rotateY(-28deg); } 50% { transform: rotateY(28deg); } }
.fx-rays { animation: fxSpin 30s linear infinite, fxIn 2s ease-out, fxParallax 7s ease-in-out infinite alternate; }
@keyframes fxParallax { to { translate: 3vmin -2vmin; } }
.fx-arch { position: relative; height: min(64vh, 660px); aspect-ratio: 3 / 4; max-width: 86vw; overflow: hidden; border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; border: 4px solid #e9c46a;
  box-shadow: 0 0 0 7px rgba(233,196,106,.22), 0 0 70px rgba(255,200,100,.55), 0 34px 70px rgba(0,0,0,.7); transform-style: preserve-3d;
  animation: fxPortal 1.3s cubic-bezier(.2,1,.3,1) both, fxTilt 7s 1.3s ease-in-out infinite; }
.fx-arch video { width: 100%; height: 100%; object-fit: cover; max-width: none; display: block; }
.fx-k-lion .fx-arch video { object-position: 38% 45%; }
.fx-k-cheval .fx-arch video { object-position: 50% 62%; }
.fx-arch-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%) -160% 0 / 260% 100% no-repeat; animation: fxShine 3.5s 1.4s ease-in-out infinite; pointer-events: none; }
.fx-arch::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0,0,0,.55); border-radius: inherit; pointer-events: none; }
@keyframes fxPortal { 0% { transform: perspective(900px) rotateY(75deg) scale(.55); opacity: 0; filter: brightness(2); } 100% { transform: perspective(900px) rotateY(0) scale(1); opacity: 1; filter: none; } }
@keyframes fxTilt { 0%, 100% { transform: perspective(900px) rotateY(-9deg) rotateX(3deg); } 50% { transform: perspective(900px) rotateY(9deg) rotateX(-2deg); } }
.fx-has-video .fx-wave, .fx-has-video .fx-cloud { display: none; }
.fx-has-video.fx-roar { animation: fxIn .35s ease-out; }
.fx-has-video .fx-stage { margin-bottom: 9vh; }

/* Écriture animée : le mot s'écrit tout seul, comme à la plume */
.fx-custom .fx-bg { background: radial-gradient(ellipse at 50% 45%, #3b1a3f 0%, #120712 60%, #000 100%); }
.fx-write { position: relative; font-size: clamp(2.6rem, 11vw, 6.4rem); line-height: 1.5; padding: 0 16px; max-width: 94vw; text-align: center; animation: none !important; }
.fx-ink { display: inline-block; background: linear-gradient(180deg, #fff6d6 0%, #ffd36b 40%, #e8a33c 70%, #b77418 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 16px rgba(255,190,90,.55)); clip-path: inset(-20% 100% -20% 0); animation: fxWrite 2.6s .5s cubic-bezier(.45,.05,.4,1) forwards, fxGlowText 2.4s 3.2s ease-in-out infinite; }
.fx-write.is-rtl .fx-ink { clip-path: inset(-20% 0 -20% 100%); animation-name: fxWriteRtl, fxGlowText; }
@keyframes fxWrite { to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes fxWriteRtl { to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes fxGlowText { 50% { filter: drop-shadow(0 4px 26px rgba(255,210,120,.95)); } }
.fx-pen { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 8px rgba(255,220,140,.9), 0 0 40px 16px rgba(255,170,60,.5); transform: translate(-50%, -50%); opacity: 0; animation: fxPen 2.6s .5s cubic-bezier(.45,.05,.4,1) forwards; }
.fx-write.is-rtl .fx-pen { left: auto; right: 0; transform: translate(50%, -50%); animation-name: fxPenRtl; }
@keyframes fxPen { 0% { left: 2%; opacity: 1; } 95% { opacity: 1; } 100% { left: 98%; opacity: 0; } }
@keyframes fxPenRtl { 0% { right: 2%; opacity: 1; } 95% { opacity: 1; } 100% { right: 98%; opacity: 0; } }
.gift-custom { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--tint); }
.gift-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gift-font { display: grid; gap: 2px; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; text-align: center; color: var(--ink); }
.gift-font span { font-size: 1.35rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-font small { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); font-size: .72rem; }
.gift-font.is-on { border-color: #be185d; background: #fdf2f8; }

/* Carte cadeau dans la messagerie */
.gift-bubble { padding: 6px !important; background: linear-gradient(150deg, #2b1640, #120a1d) !important; color: #fff !important; border: 1px solid rgba(233,196,106,.5); box-shadow: 0 8px 24px -10px rgba(120,60,160,.6); max-width: min(320px, 86%); }
.gift-bubble.gift-bt-big { background: linear-gradient(150deg, #3a2410, #120a04) !important; border-color: #e9c46a; box-shadow: 0 0 0 2px rgba(233,196,106,.25), 0 10px 30px -10px rgba(233,160,60,.7); }
.gb-card { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.gb-card .gift-thumb { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 0 10px rgba(255,200,100,.5)); }
.gb-card .gift-thumb-word { color: #ffb3cf; background: none; }
.gb-txt { display: grid; gap: 2px; min-width: 0; }
.gb-txt small { color: #e8d9ff; font-size: .74rem; }
.gb-txt strong { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; color: #ffd76a; }
.gb-txt em { font-style: normal; font-size: .9rem; color: #ffe9c4; overflow-wrap: anywhere; }
.gb-test { color: #9cc8ff !important; }
.gb-play { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .78rem; font-weight: 700; color: #fff; opacity: .85; }
.gb-play .ic { width: 13px; height: 13px; fill: currentColor; }
.gift-bubble .bubble-meta { color: rgba(255,255,255,.6); }

/* Phrase sympa et petit mot animé, mot par mot */
.fx-text strong { font-size: clamp(1.5rem, 5.6vw, 2.8rem); max-width: 22ch; }
.fx-msg { margin: 6px 0 0; max-width: 30ch; font-family: "Fraunces", "Cairo", Georgia, serif; font-size: clamp(1.2rem, 4.6vw, 1.9rem); font-weight: 700; line-height: 1.35; }
.fx-msg span { display: inline-block; background: linear-gradient(180deg, #ffffff, #ffd0e2 55%, #ff7eb0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255,120,170,.65)); opacity: 0; animation: fxMsg .7s calc(1.4s + var(--i) * .22s) cubic-bezier(.2,1.6,.4,1) forwards, fxMsgGlow 2.2s calc(2.4s + var(--i) * .22s) ease-in-out infinite; }
@keyframes fxMsg { 0% { opacity: 0; transform: translateY(26px) scale(.3) rotate(-8deg); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 10px rgba(255,120,170,.65)); } }
@keyframes fxMsgGlow { 50% { transform: translateY(-3px) scale(1.06); } }
.fx-cap em { font-style: normal; color: #ffd0e2; }
.fx-text { padding: 26px 16px 4px; background: linear-gradient(transparent, rgba(0,0,0,.55) 30%, rgba(0,0,0,.65)); bottom: 0; padding-bottom: max(5vh, 28px); }
@media (max-width: 700px) {
  .fx-arch { height: min(46vh, 520px); }
  .fx-medium .fx-stage, .fx-big .fx-stage, .fx-has-video .fx-stage { margin-bottom: 24vh; }
  .fx-big .fx-img, .fx-roar .fx-img, .fx-gallop .fx-img, .fx-walk .fx-img { max-height: 40vh; }
  .fx-k-tigre .fx-img { max-height: 44vh; }
}
.fx-k-feux .fx-arch { aspect-ratio: 4 / 3; height: auto; width: min(86vw, 760px); border-radius: 24px; }
.fx-k-palais .fx-arch { aspect-ratio: 4 / 5; }

/* Vidéo plein écran (lion créé par IA sur fond noir) : se fond dans le décor */
.fx-fullvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 55%, transparent 100%); animation: fxDark 1.2s ease-out both; }
@media (min-width: 701px) { .fx-fullvid { object-fit: contain; } }
.fx-k-lion .fx-rays { opacity: .55; }

/* Arrivée « qui sort de l'écran » : le cadeau fonce vers nous, flash, onde de choc, l'écran tremble */
.gift-fx .fx-fullvid, .gift-fx .fx-arch, .gift-fx.fx-medium .fx-stage, .gift-fx.fx-big .fx-stage { animation-name: fxRush; animation-duration: 1s; animation-timing-function: cubic-bezier(.15,.85,.25,1.15); animation-fill-mode: both; }
.gift-fx .fx-arch { animation: fxRush 1s cubic-bezier(.15,.85,.25,1.15) both, fxTilt 7s 1.3s ease-in-out infinite; }
@keyframes fxRush { 0% { transform: scale(.18) translateZ(0); filter: blur(14px) brightness(2.2); opacity: 0; } 55% { opacity: 1; filter: blur(2px) brightness(1.3); } 78% { transform: scale(1.14); filter: none; } 100% { transform: scale(1); filter: none; } }
.fx-speed { position: absolute; inset: -20%; z-index: 0; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0deg .6deg, transparent .6deg 7deg); -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 60%); mask-image: radial-gradient(circle, transparent 18%, #000 60%); opacity: 0; animation: fxSpeed 1.1s ease-out forwards; pointer-events: none; }
@keyframes fxSpeed { 0% { opacity: 0; transform: scale(1.6) rotate(0); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1) rotate(12deg); } }
.fx-flash { position: absolute; inset: 0; z-index: 6; background: radial-gradient(circle, #fff 0%, rgba(255,240,200,.85) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.fx-shock { position: absolute; z-index: 5; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 50%; border: 6px solid rgba(255,230,160,.95); box-shadow: 0 0 40px rgba(255,200,100,.9), inset 0 0 30px rgba(255,200,100,.6); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.gift-fx.is-impact .fx-flash { animation: fxFlash .55s ease-out; }
.gift-fx.is-impact .fx-shock { animation: fxShockRing .9s ease-out; }
.gift-fx.is-impact { animation: fxShakeHard .7s cubic-bezier(.36,.07,.19,.97) both; }
.gift-fx.fx-big.is-impact { animation-duration: 1s; }
@keyframes fxFlash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
@keyframes fxShockRing { 0% { width: 30px; height: 30px; opacity: 1; } 100% { width: 170vmax; height: 170vmax; opacity: 0; border-width: 1px; } }
@keyframes fxShakeHard { 10%, 90% { transform: translate(-2px, 1px) rotate(-.3deg); } 20%, 80% { transform: translate(5px, -3px) rotate(.5deg); } 30%, 50%, 70% { transform: translate(-9px, 4px) rotate(-.8deg); } 40%, 60% { transform: translate(9px, -4px) rotate(.8deg); } }
body.fx-body-shake > *:not(.gift-fx) { animation: fxShakeHard .7s cubic-bezier(.36,.07,.19,.97) both; }
.gift-fx.is-calm .fx-speed, .gift-fx.is-calm .fx-flash, .gift-fx.is-calm .fx-shock { display: none; }

/* Cadeaux en vidéo plein écran (décor inclus) : pas de cadre, pas de rayons, dégradé en bas pour lire la phrase */
.fx-has-video .fx-fullvid { -webkit-mask-image: none; mask-image: none; }
.fx-has-video .fx-rays, .fx-has-video .fx-glow, .fx-has-video .fx-dust { display: none; }
.fx-has-video .fx-bg { background: #000; }
.fx-has-video .fx-text { background: linear-gradient(transparent, rgba(0,0,0,.45) 25%, rgba(0,0,0,.75)); }

.msg-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.msg-langs > span { font-size: .85rem; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.msg-langs .pill { padding: 5px 12px; font-size: .85rem; }

/* ---------------------------------------------------------------- Appels en direct */
.call-ui { position: fixed; inset: 0; z-index: 9000; background: radial-gradient(ellipse at 50% 30%, #2b1f3a 0%, #0f0b16 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: max(48px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); animation: call-in .25s ease-out; }
@keyframes call-in { from { opacity: 0; transform: scale(1.03); } }
body.in-call { overflow: hidden; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: none; }
.call-local { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; width: 110px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 6px 20px rgba(0,0,0,.4); transform: scaleX(-1); display: none; z-index: 2; background: #222; }
.call-ui.is-video .call-local { display: block; }
.call-ui.is-video.is-live .call-remote { display: block; }
.call-ui.is-video.is-live .call-info { position: relative; z-index: 2; margin-top: 0; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.call-ui.is-video.is-live .call-avatar { display: none; }
.call-ui.is-video:not(.is-live) .call-local { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; opacity: .45; z-index: 0; }
.call-info { margin-bottom: auto; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8vh; text-align: center; }
.call-info strong { font-size: 1.6rem; font-weight: 600; }
.call-status { opacity: .85; font-variant-numeric: tabular-nums; }
.call-avatar { width: 120px; height: 120px; border-radius: 50%; background: #5b3d73 center/cover; display: grid; place-items: center; font-size: 3rem; font-weight: 700; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.call-avatar:not([style])::before { content: attr(data-initial); }
.call-ui.is-ringing .call-avatar { animation: call-pulse 1.4s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 100% { box-shadow: 0 0 0 34px rgba(255,255,255,0); } }
.call-actions { position: relative; z-index: 2; display: flex; gap: 12px 14px; justify-content: center; flex-wrap: wrap; }
.call-b { min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.call-b > .ic, .call-b > .call-emo { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); box-sizing: border-box; font-size: 24px; line-height: 26px; text-align: center; }
.call-b small { font-size: .78rem; opacity: .9; }
.call-b.is-off > .ic { background: #fff; color: #222; }
.call-b.is-on > .call-emo { background: rgba(255,255,255,.4); }
.call-end > .ic { background: #e5333f; transform: rotate(135deg); }
.call-ok > .ic { background: #22b25a; animation: call-shake 1s ease-in-out infinite; }
@keyframes call-shake { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(14deg); } 90% { transform: rotate(-8deg); } }
.call-ui.is-over { opacity: .85; }
.call-ui.fx-loading .call-local { filter: blur(3px); }
.beauty-bar { position: relative; z-index: 3; align-self: stretch; margin: 0 -16px 14px; display: flex; gap: 10px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; justify-content: safe center; }
.beauty-bar button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.beauty-bar span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(0,0,0,.4); border: 2px solid transparent; backdrop-filter: blur(6px); }
.beauty-bar .is-on span { border-color: #ffd36e; background: rgba(255,211,110,.25); }
.beauty-bar small { font-size: .72rem; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; }
.call-btn { color: var(--brand-ink); background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.call-btn:hover { filter: brightness(1.08); }
.call-bubble { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.call-bubble .cb-ico .ic { width: 18px; height: 18px; color: #22b25a; }
.call-bubble.is-missed .cb-ico .ic { color: #e5333f; }
.call-bubble .cb-again { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85em; opacity: .8; padding: 0; }
.call-bubble .bubble-meta { flex-basis: 100%; }
@media (min-width: 900px) { .call-local { width: 180px; } }

/* ---------------------------------------------------------------- Guide en vidéo */
.guide-hero { padding: 48px 0 8px; text-align: center; }
.guide-hero p:last-child { max-width: 640px; margin-inline: auto; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.guide-card { margin: 0; display: grid; gap: 10px; }
.guide-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 18px; background: #071526; box-shadow: 0 10px 30px rgba(var(--shade), .18); }
.guide-card figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.guide-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .9rem; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guide-home .guide-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .guide-home .guide-card { scroll-snap-align: start; } }

/* ---------------------------------------------------------------- Présentation vidéo */
.intro-card { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, var(--tint), var(--bg)); border: 2px solid var(--brand); }
.intro-card.is-done { border-color: var(--line); }
.intro-ic { font-size: 2.6rem; line-height: 1; }
.intro-txt h2 { margin-top: 0; }
.intro-tips { margin: 8px 0 14px; padding-inline-start: 20px; color: var(--muted); }
.vid-stage { position: relative; }
.vid-stage .beauty-bar { position: absolute; inset-inline: 0; bottom: 8px; margin: 0; }
.vid-fx { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 4; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vid-prompt { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--tint); font-weight: 700; text-align: center; }
.pv-name { font-size: 1.15rem; }
.pv-online { color: #4ade80; }
.pfeed .vrail a.vbtn { color: inherit; text-decoration: none; }
@media (max-width: 520px) { .intro-card { flex-direction: column; gap: 6px; } }

/* ---------------------------------------------------------------- Débats en direct */
/* Arbre généalogique */
.ft-intro { padding: 0 16px 10px; margin: 0; }
.ft-toolbar { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ft-tree { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 28px; }
.ft-gen { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.ft-gen:last-child { border-bottom: 0; }
.ft-person { width: 180px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-card); padding: 14px; text-align: center; transition: box-shadow .2s, background .3s; }
.ft-person.is-flash { background: var(--tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }
.ft-av { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)) center/cover; display: grid; place-items: center; color: var(--brand-ink); font-weight: 700; }
.ft-av:not([style])::before { content: attr(data-initial); }
.ft-person strong { display: block; margin-top: 2px; font-size: .95rem; }
.ft-person .muted { font-size: .8rem; }
.ft-rel { margin-top: 8px; display: grid; gap: 3px; font-size: .76rem; color: var(--muted); text-align: start; }
.ft-rel a { color: var(--accent); }
.ft-p-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ft-act {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
  color: var(--ink); font-size: .74rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.ft-act:hover { background: color-mix(in srgb, var(--surface) 80%, var(--brand) 20%); border-color: var(--brand); color: var(--brand); }
.ft-act .ic { width: 12px; height: 12px; }
.ft-act.is-danger { color: #b3261e; border-color: color-mix(in srgb, #b3261e 35%, var(--line)); }
.ft-act.is-danger:hover { background: color-mix(in srgb, #b3261e 12%, var(--surface)); border-color: #b3261e; color: #b3261e; }
.ft-empty { text-align: center; padding: 40px 16px; }
.ft-search { display: flex; align-items: center; gap: 6px; background: var(--tint); border-radius: var(--radius-pill); padding: 0 12px; margin-inline-start: auto; }
.ft-search .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ft-search input { border: 0; background: none; padding: 8px 0; min-width: 0; width: 160px; }
.ft-search input:focus { outline: none; box-shadow: none; }
.ft-zoom { display: flex; gap: 4px; }
.ft-zoom-btn { font-size: 1.1rem; font-weight: 700; }
.ft-theme-pick { display: flex; align-items: center; gap: 6px; background: var(--tint); border-radius: var(--radius-pill); padding: 0 12px; }
.ft-theme-pick .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ft-theme-pick select { border: 0; background: none; padding: 8px 0; min-width: 0; }
.ft-theme-pick select:focus { outline: none; box-shadow: none; }
.ft-tree { position: relative; touch-action: none; cursor: grab; }
.ft-tree.is-dragging { cursor: grabbing; }
.ft-tree-inner { display: flex; flex-direction: column; gap: 28px; transform-origin: top center; transition: transform .15s ease-out; width: max-content; min-width: 100%; position: relative; }
.ft-tree.is-dragging .ft-tree-inner { transition: none; }
.ft-lines { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 0; }
.ft-line { fill: none; stroke: var(--line); stroke-width: 2; }
.ft-line.is-uncertain { stroke-dasharray: 5 4; }
.ft-line.is-adoptive { stroke: var(--accent); stroke-dasharray: 2 3; }
.ft-line-spouse { stroke: var(--brand-2); stroke-width: 3; }
/* Styles d'affichage (« Classique » = rien de plus ; les autres ajoutent un décor derrière les fiches). */
.ft-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; pointer-events: none; }
.ft-line-organic { stroke-width: 2.4; }
.ft-theme-arbre .ft-line-organic { stroke: #8a5a3a; }
.ft-theme-palmier .ft-line-organic { stroke: #3f7d3a; }
.ft-theme-cadre .ft-tree-inner { border: 3px double var(--brand); border-radius: 18px; padding: 30px 20px; background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%); }
.ft-theme-cadre .ft-line { stroke: var(--brand); }
.ft-theme-cadre .ft-line-spouse { stroke: var(--brand-2); }
.ft-gen { position: relative; z-index: 1; }
.ft-person { position: relative; z-index: 1; }
.ft-gallery-count { position: absolute; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 3px; background: rgba(var(--shade), .7); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.ft-gallery-count .ic { width: 11px; height: 11px; }
.ft-variants { display: block; font-style: italic; }
.ft-place { display: flex; align-items: center; gap: 4px; justify-content: center; }
.ft-place .ic { width: 13px; height: 13px; }
.ft-place-current { display: flex; align-items: center; gap: 6px; font-size: .92rem; margin: 4px 0; }
.ft-gallery-manage { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ft-badge { margin-inline-start: 4px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.ft-comments { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ft-relatives { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ft-relatives .form-actions { margin-top: 10px; }
.ft-help-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.ft-help-step { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.ft-help-step strong { display: block; margin-bottom: 4px; }
.ft-help-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.ft-help-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 6px 0 16px; background: #000; }
.ft-help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ft-comments .composer { margin-top: 10px; }
.ft-comment { padding: 10px 0; border-top: 1px solid var(--line); }
.ft-comment:first-child { border-top: 0; }
.ft-comment.is-reply { margin-inline-start: 24px; }
.ft-comment-head { display: flex; align-items: baseline; gap: 8px; }
.ft-comment-head small { font-size: .74rem; }
.ft-comment p { margin: 4px 0; font-size: .92rem; }
.ft-comment audio { width: 100%; margin: 4px 0; }
.ft-comment-acts { display: flex; gap: 10px; }
.ft-suggestion, .ft-history-row { padding: 10px 0; border-top: 1px solid var(--line); }
.ft-suggestion:first-child, .ft-history-row:first-child { border-top: 0; }
.ft-suggestion p, .ft-history-row p { margin: 4px 0; font-size: .92rem; }
@media (max-width: 600px) {
  .ft-toolbar { padding: 8px 12px; gap: 6px; }
  .ft-search { margin-inline-start: 0; flex: 1 1 100%; }
  .ft-search input { width: 100%; }
  .ft-tree { padding: 14px 10px; gap: 20px; }
  .ft-gen { gap: 10px; }
  .ft-person { width: 148px; padding: 10px; }
  .ft-act { padding: 4px 8px; font-size: .68rem; }
}
/* Bouton « Imprimer / PDF » de l'arbre : on garde seulement l'arbre, à plat, sans le reste du site. */
@media print {
  .topbar, .tabbar, .family-page .chat-list, .family-page .thread-head, .family-page .ft-toolbar { display: none !important; }
  body.page-chat { overflow: visible !important; height: auto !important; }
  .family-page, .family-page .ft-main, .family-page .chat-thread { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; }
  .ft-tree { overflow: visible !important; padding: 0 !important; touch-action: auto; }
  .ft-tree-inner { transform: none !important; width: auto !important; }
  .ft-gen { break-inside: avoid; page-break-inside: avoid; }
  .ft-person { break-inside: avoid; box-shadow: none !important; }
  .ft-p-acts, .ft-gallery-count { display: none !important; }
}
.media-caption { position: absolute; bottom: 4px; inset-inline-start: 4px; inset-inline-end: 4px; font-size: .62rem; color: #fff; background: rgba(0,0,0,.55); padding: 2px 5px; border-radius: 6px; line-height: 1.3; }
.live-box { margin: 14px 0; }
.replays-box { margin: 14px 0; }
.replays-box h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 12px; }
.replays-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.replay-item { display: grid; gap: 6px; }
.replay-item a { display: block; text-decoration: none; color: var(--ink); }
.replay-item img, .replay-noposter { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; background: var(--tint); }
.replay-noposter { display: grid; place-items: center; color: var(--muted); }
.replay-title { display: block; margin-top: 6px; font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay-item.is-hidden img, .replay-item.is-hidden .replay-noposter { opacity: .45; }
.replay-hidden-chip { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .68rem; }
.replay-item a { position: relative; }
.replay-actions { display: flex; gap: 6px; margin-top: 4px; }
.live-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #2b1f3a, #0f0b16); color: #fff; }
.live-b-txt { flex: 1; display: grid; }
.live-b-txt small { opacity: .8; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5333f; box-shadow: 0 0 0 0 rgba(229,51,63,.6); animation: live-pulse 1.6s infinite; flex: 0 0 auto; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(229,51,63,0); } 100% { box-shadow: 0 0 0 0 rgba(229,51,63,0); } }
.live-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.live-ui { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at 50% 20%, #2b1f3a 0%, #0f0b16 70%); color: #fff; overflow-y: auto; }
/* Page /live/{id} : même fond que .live-ui, pour que la salle du direct s'ouvre par-dessus sans flash. */
.live-landing { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 20%, #2b1f3a 0%, #0f0b16 70%); color: #fff; }
.live-landing-in { display: grid; justify-items: center; gap: 14px; text-align: center; }
.live-landing-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff2d55; animation: hvpulse 2s ease-in-out infinite; }
.live-landing-in p { margin: 0; color: rgba(255,255,255,.8); font-size: .92rem; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head .icon-btn { margin-inline-start: auto; color: #fff; }
.live-likes { display: flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: #ff5c7a; }
.live-likes .ic { width: 16px; height: 16px; }
.live-rec { font-size: .74rem; font-weight: 700; color: #ff5a6a; letter-spacing: .02em; animation: hvpulse 1.6s ease-in-out infinite; }
.live-stage { position: relative; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; min-height: 200px; align-content: center; cursor: pointer; }
.live-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.live-heart { position: absolute; width: 26px; height: 26px; margin: -13px; color: #ff2d55; opacity: 0; animation: live-heart-up 1.2s ease-out forwards; }
.live-heart .ic { width: 100%; height: 100%; }
@keyframes live-heart-up {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0deg); }
  12% { opacity: 1; transform: translate(0, -10px) scale(1.15) rotate(-6deg); }
  100% { opacity: 0; transform: translate(var(--drift, 0px), -160px) scale(.9) rotate(10deg); }
}
.live-stage[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.live-tile { position: relative; border-radius: 18px; background: rgba(255,255,255,.07); aspect-ratio: 3/4; overflow: hidden; display: grid; place-items: center; }
.live-ui:not(.is-video) .live-tile { aspect-ratio: auto; padding: 18px 8px 12px; }
.live-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.live-tile audio { display: none; }
.live-tile.has-video video { display: block; }
.live-tile.has-video .live-av { display: none; }
.live-tile.is-muted-by-host { outline: 2px solid #ff2d55; }
.live-av { width: 84px; height: 84px; border-radius: 50%; background: #5b3d73 center/cover; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.live-av:not([style])::before { content: attr(data-initial); }
.live-av.sm { width: 42px; height: 42px; font-size: 1rem; }
.live-name { position: absolute; inset-inline: 8px; bottom: 8px; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 3px #000; text-align: center; }
.live-ui:not(.is-video) .live-name { position: static; margin-top: 8px; }
.live-host { font-size: .7rem; background: #d4a93a; color: #111; border-radius: 99px; padding: 1px 7px; text-shadow: none; }
.live-mini { border: 0; border-radius: 99px; padding: 2px 8px; font: inherit; font-size: .72rem; cursor: pointer; }
/* Duel entre deux animateurs (façon TikTok « PK ») */
.battle-bar { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 14px; display: grid; gap: 8px; }
.battle-bar p { margin: 0; font-size: .88rem; }
.battle-actions, .battle-bar > .btn { display: flex; gap: 8px; }
.battle-clock { text-align: center; font-weight: 800; font-size: 1.05rem; color: #ffd36e; }
.battle-ranks { display: grid; gap: 6px; }
.battle-rank { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.battle-rank.is-me { background: rgba(255,255,255,.18); }
.battle-rank-bar { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, #6ea8ff, #a06eff); opacity: .35; transition: width .4s ease; }
.battle-rank b, .battle-rank-name, .battle-rank-score, .battle-rank-av, .battle-rank .battle-watch { position: relative; z-index: 1; }
.battle-rank b { font-size: .78rem; color: #ffd36e; font-weight: 800; }
.battle-rank-av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand) center/cover; flex: none; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
.battle-rank-av:not([style])::before { content: attr(data-initial); }
.battle-rank-name { flex: 1; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-rank-score { font-weight: 800; }
.battle-challenger { display: flex; align-items: center; gap: 10px; }
.battle-challenger .battle-rank-av { width: 36px; height: 36px; font-size: .95rem; }
.battle-challenger p { margin: 0; }
.battle-watch { color: #cbb8ff; font-size: .78rem; background: none; border: 0; padding: 0; }
.battle-check { display: flex; align-items: center; gap: 8px; padding: 8px 4px; }
.battle-pick-dialog { position: fixed; inset: 0; z-index: 9100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.battle-pick-dialog .card { background: var(--surface); color: var(--ink); width: 100%; max-width: 380px; max-height: 80vh; overflow-y: auto; border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.battle-pick-dialog h2 { margin: 0 0 6px; font-size: 1.1rem; }
.live-hands { display: grid; gap: 6px; }
.live-hand { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,211,110,.15); }
.live-hand .btn { margin-inline-start: auto; }
.live-aud > div { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0; }
.live-l { position: relative; display: grid; justify-items: center; gap: 2px; width: 56px; flex: 0 0 auto; }
.live-l small { font-size: .68rem; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.live-l b { position: absolute; top: -4px; inset-inline-end: 0; font-size: 1rem; }
.live-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 14px; }
.live-ui .beauty-bar { margin: 0 -16px; }
.live-chat { display: flex; flex-direction: column; gap: 4px; max-height: 140px; overflow-y: auto; font-size: .85rem; }
.live-chat:empty { display: none; }
.live-chat p { margin: 0; align-self: flex-start; max-width: 90%; background: rgba(255,255,255,.1); border-radius: 12px; padding: 5px 11px; word-break: break-word; }
.live-chat b { color: var(--accent, #ffb86b); margin-inline-end: 4px; }
.live-chat-off { text-align: center; font-size: .78rem; margin: 0; }
.live-chat-form { display: flex; gap: 8px; }
.live-chat-form input { flex: 1; min-width: 0; border: none; border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.12); color: #fff; }
.live-chat-form input::placeholder { color: rgba(255,255,255,.6); }
[data-chat-toggle].is-off { color: #ff8d8d; }

/* ---------------------------------------------------------------- Proposition de notifications */
.push-card { position: fixed; z-index: 8000; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 12px 40px rgba(var(--shade), .28); border: 1px solid var(--line); animation: call-in .3s ease-out; }
.push-card .push-ic { font-size: 1.8rem; }
.push-card strong { display: block; }
.push-card small { color: var(--muted); line-height: 1.35; display: block; }
.push-card .push-acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 960px) { .push-card { bottom: 20px; inset-inline-end: 20px; inset-inline-start: auto; } }
.appdl .card { margin-bottom: 18px; }
.appdl-steps { margin: 16px 0 8px; padding-inline-start: 22px; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- Groupes */
.chat-tabs { display: flex; gap: 6px; padding: 0 16px 10px; }
.chat-tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
.chat-tabs a[aria-current="page"] { background: var(--tint); color: var(--brand); }
.groups .chat-list-head { gap: 8px; }
.group-av { display: grid; place-items: center; font-size: 1.4rem; background: var(--tint); }
.thread-head button.thread-user { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.bubble .b-who { display: block; font-size: .78rem; font-weight: 700; color: var(--brand); text-decoration: none; margin-bottom: 2px; }
.bubble .b-del { background: none; border: 0; color: inherit; opacity: .5; cursor: pointer; padding: 0 0 0 6px; }
.bubble .b-del .ic { width: 14px; height: 14px; }
.day-sep.sys { font-style: italic; }
.group-live-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: linear-gradient(90deg, #2b1f3a, #0f0b16); color: #fff; font-weight: 700; }
.group-live-bar .btn { margin-inline-start: auto; }
.group-members { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.group-members li { display: flex; align-items: center; gap: 10px; }
.group-members li .btn { margin-inline-start: auto; }
.group-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.contact-add { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card, #fff); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; }
.call-audio { display: none; }
.call-unmute { position: absolute; z-index: 5; top: 45%; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 16px 28px; font: inherit; font-weight: 800; font-size: 1.1rem; background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.4); cursor: pointer; }
