/* ==========================================================================
   Wènsa — feuille de style (sans compilation : pas de Tailwind a builder,
   pas de Livewire). Charte : violet nuit, corail, soleil. Sora + Inter.
   ========================================================================== */
:root {
  --violet: #2E1A6E; --violet-700: #24145A; --violet-100: #ECE8F8;
  --corail: #FF5A4E; --corail-100: #FFE3E0;
  --soleil: #FFC23D; --soleil-100: #FFF3D6;
  --encre: #14131A; --ardoise: #5B5670; --brume: #F7F6FB; --lavande: #E4E1EE; --blanc: #fff;
  --ok: #137A50; --ok-bg: #E3F5EC; --live: #1F4FD6; --live-bg: #E6EEFF; --warn: #8A5A00; --warn-bg: #FFF1CC;
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20,19,26,.04), 0 8px 24px rgba(46,26,110,.06);
  --font-title: 'Sora', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--encre); background: var(--brume); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--encre); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Mise en page -------------------------------------------------------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding: 28px 0 64px; }
.layout > .main { flex: 999 1 560px; min-width: 0; }
.layout > .side { flex: 1 1 280px; min-width: 0; }
.muted { color: var(--ardoise); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.mt { margin-top: 16px; }

/* ---- En-tete ------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lavande); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 36px; width: auto; }
.search { display: flex; align-items: center; gap: 8px; background: var(--brume); border: 1px solid var(--lavande); border-radius: 999px; padding: 8px 14px; flex: 1 1 220px; max-width: 380px; }
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 15px; width: 100%; color: var(--encre); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nav a, .nav button.linklike { text-decoration: none; color: var(--ardoise); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a.active { color: var(--violet); background: var(--violet-100); }
.ticker { background: var(--violet); color: #E4E1EE; overflow: hidden; font-size: 14px; font-weight: 500; white-space: nowrap; }
.ticker .track { display: inline-flex; padding: 9px 0; animation: marquee 40s linear infinite; }
.ticker span { padding: 0 20px; }
.ticker a { color: inherit; text-decoration: none; }
.ticker a:hover { color: var(--soleil); }

/* ---- Boutons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1; padding: 13px 20px; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-700); color: #fff; }
.btn-hot { background: var(--corail); color: var(--encre); }
.btn-hot:hover { color: var(--encre); box-shadow: 0 6px 18px rgba(255,90,78,.35); }
.btn-sun { background: var(--soleil); color: var(--encre); }
.btn-ghost { background: var(--blanc); color: var(--violet); border-color: var(--lavande); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-danger { background: #fff; color: #B42318; border-color: #F4C7C3; }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--lavande); background: #fff; color: var(--encre); }
a.pill:hover, .pill.on { border-color: var(--violet); background: var(--violet); color: #fff; }

/* ---- Cartes et publications ---------------------------------------------- */
.card { background: #fff; border: 1px solid var(--lavande); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.post { background: #fff; border: 1px solid var(--lavande); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.post-head img { width: 36px; height: 36px; border-radius: 10px; }
.post-body { padding: 0 22px 22px; }
.post-caption { padding: 14px 22px 20px; font-size: 15px; }
.post-caption .tags { color: var(--violet); font-weight: 500; }
.hero-tile { background: var(--violet); color: #fff; padding: 48px 32px; position: relative; overflow: hidden; }
.hero-tile h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.02em; max-width: 640px; }
.hero-tile p { color: #E4E1EE; font-size: 18px; max-width: 540px; margin-top: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tag-sun { display: inline-block; background: var(--soleil); color: var(--encre); padding: 6px 12px; border-radius: 999px; }

/* Motifs inspires des pagnes wax et des appliques d'Abomey (SVG en ligne,
   jamais derriere du texte courant). */
.wax { background-color: var(--violet); background-image:
  radial-gradient(circle at 25% 25%, rgba(255,194,61,.9) 0 9%, transparent 10%),
  radial-gradient(circle at 75% 75%, rgba(255,90,78,.9) 0 9%, transparent 10%),
  radial-gradient(circle at 75% 25%, transparent 0 18%, rgba(255,255,255,.18) 19% 22%, transparent 23%),
  radial-gradient(circle at 25% 75%, transparent 0 18%, rgba(255,255,255,.18) 19% 22%, transparent 23%);
  background-size: 64px 64px; }
.kente { height: 14px; background: repeating-linear-gradient(90deg, var(--soleil) 0 18px, var(--corail) 18px 30px, var(--violet) 30px 46px, #1F9D6B 46px 54px, var(--violet) 54px 70px); }
.band { height: 120px; border-radius: 24px 24px 0 0; position: relative; overflow: hidden; }
.shape { position: absolute; border-radius: 22px; animation: float 5s ease-in-out infinite; }

/* ---- Avatars facon stories ----------------------------------------------- */
.avatar { position: relative; flex: none; width: var(--s, 56px); height: var(--s, 56px); border-radius: 999px; }
.avatar .ring { position: absolute; inset: 0; border-radius: 999px; background: conic-gradient(var(--corail), var(--soleil), var(--violet), var(--corail)); animation: spin 7s linear infinite; }
.avatar .in { position: absolute; inset: 3px; border-radius: 999px; background: #fff; padding: 2px; }
.avatar .face { width: 100%; height: 100%; border-radius: 999px; background: var(--violet-100); color: var(--violet); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; font-size: calc(var(--s, 56px) * .32); overflow: hidden; }
.avatar .face img { width: 100%; height: 100%; object-fit: cover; }
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 76px; text-decoration: none; color: var(--encre); font-size: 13px; font-weight: 500; text-align: center; transition: transform .2s; }
.story:hover { transform: translateY(-3px); color: var(--violet); }
.story .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }

/* ---- Badges -------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.badge-ok.shine { background: linear-gradient(90deg, #E3F5EC 0, #F4FBF7 50%, #E3F5EC 100%); background-size: 320px 100%; animation: shine 2.6s linear infinite; }
.badge-live { color: var(--live); background: var(--live-bg); }
.badge-warn { color: var(--warn); background: var(--warn-bg); }
.badge-muted { color: var(--ardoise); background: #EEEDF2; }
.badge-hot { color: var(--encre); background: var(--corail); }
.badge-niche { color: #fff; background: var(--niche, var(--violet)); }
.verified-badge { flex: none; color: #0095F6; vertical-align: -3px; }

/* ---- Carte createur ------------------------------------------------------ */
.creator-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lavande); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.creator-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(46,26,110,.12); }
.creator-card .cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; background-color: var(--tint);
  background-image: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--tint) 70%, #fff), var(--tint) 60%, var(--violet-700)); }
.creator-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.creator-card:hover .cover img { transform: scale(1.04); }
.cover-initials { position: absolute; inset: 0 0 18%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; font-size: clamp(56px, 9vw, 88px); letter-spacing: -.02em; opacity: .95; }
.cover-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name-line .verified-badge { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.cover-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(20,19,26,.85), rgba(20,19,26,.45) 55%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cover-caption .tiny { color: #EDEAF5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-card .name { font-family: var(--font-title); font-weight: 700; font-size: 20px; line-height: 1.2; color: #fff; text-decoration: none; }
.creator-card .name:hover { color: #fff; }
.creator-card .name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.creator-card .card-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.creator-card .actions { position: relative; z-index: 2; }
.big-number { font-family: var(--font-title); font-weight: 700; font-size: 26px; line-height: 1; }
.rank { font-family: var(--font-title); font-weight: 700; font-size: 15px; width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--brume); color: var(--violet); flex: none; }
.rank.r1 { background: var(--soleil); color: var(--encre); }
.rank.r2 { background: var(--lavande); }
.rank.r3 { background: var(--corail-100); color: #9E2A20; }
.accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.acc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--brume); border-radius: 999px; padding: 5px 10px 5px 6px; }
.acc svg { width: 18px; height: 18px; }

/* ---- Formulaires --------------------------------------------------------- */
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; }
.hint { font-size: 13px; color: var(--ardoise); margin-top: 4px; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--encre); background: #fff; border: 1px solid var(--lavande); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 46px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(46,26,110,.18); border-color: var(--violet); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; }
.check span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lavande); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.check input:focus-visible + span { outline: 3px solid rgba(46,26,110,.3); }
.inline-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.inline-check input { margin-top: 4px; width: 18px; height: 18px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.error { color: #B42318; font-size: 13.5px; margin-top: 4px; }
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; }
.alert-ok { background: var(--ok-bg); color: #0E5A3B; }
.alert-err { background: #FDECEA; color: #8A1C12; }
.alert-info { background: var(--soleil-100); color: #5B4100; }

/* ---- Tableaux ------------------------------------------------------------ */
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--lavande); vertical-align: middle; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ardoise); font-weight: 600; }
.compare th { position: sticky; left: 0; background: #fff; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ardoise); min-width: 150px; }
.compare td { min-width: 180px; }
.best { background: var(--soleil-100); }

/* ---- Barres de comparaison et graphiques --------------------------------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; border-bottom: 1px solid var(--lavande); padding: 0 6px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .bar { width: min(64px, 80%); border-radius: 12px 12px 4px 4px; background: var(--violet); transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both; }
.bars .bar.top { background: var(--corail); }
.bars .val { font-family: var(--font-title); font-weight: 700; font-size: 14px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.spark i { flex: 1; background: var(--violet); border-radius: 4px 4px 1px 1px; min-height: 2px; transform-origin: bottom; animation: grow .8s ease both; }
.spark i:hover { background: var(--corail); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--lavande); border-radius: 16px; padding: 16px; }
.kpi .n { font-family: var(--font-title); font-weight: 700; font-size: 28px; }
.trend-up { color: var(--ok); font-weight: 600; }
.trend-down { color: #B42318; font-weight: 600; }

/* ---- Barre de comparaison flottante -------------------------------------- */
.compare-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; background: var(--encre); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(20,19,26,.3); max-width: calc(100% - 32px); }
.compare-bar .btn { min-height: 40px; padding: 10px 16px; }

/* ---- Pied de page -------------------------------------------------------- */
.footer { background: var(--encre); color: #C9C6D3; margin-top: 40px; }
.footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer a { color: #E4E1EE; }

/* ---- Pagination ---------------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--lavande); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 12px; }
.pager .cur { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .dis { opacity: .45; }

/* ---- Accueil : verre depoli, aurore, formes en metamorphose -------------- */
.home { position: relative; isolation: isolate; }
.home::before { content: ''; position: absolute; inset: 520px 0 0; z-index: -1; pointer-events: none; background:
  radial-gradient(40% 30% at 10% 10%, var(--violet-100), transparent 70%),
  radial-gradient(35% 25% at 95% 30%, var(--corail-100), transparent 70%),
  radial-gradient(40% 30% at 30% 80%, var(--soleil-100), transparent 70%); }
.hero-glass { position: relative; overflow: hidden; background: var(--violet-700); color: #fff; padding: 56px 0 64px; }
.aurora { position: absolute; inset: 0; z-index: 0; }
.aurora .blob { position: absolute; width: 46vmax; height: 46vmax; max-width: 640px; max-height: 640px; filter: blur(48px); opacity: .8; will-change: transform, border-radius; animation: morph 18s ease-in-out infinite; }
.aurora .b1 { background: var(--corail); top: -22%; left: -10%; }
.aurora .b2 { background: var(--soleil); bottom: -35%; right: -8%; opacity: .6; animation-duration: 22s; animation-delay: -6s; }
.aurora .b3 { background: #6B3FD9; top: 10%; right: 18%; animation-duration: 26s; animation-delay: -12s; }
.aurora .b4 { background: #1F9D6B; bottom: -30%; left: 25%; opacity: .45; animation-duration: 30s; animation-delay: -3s; }
.aurora .veil { position: absolute; inset: 0; opacity: .12; mix-blend-mode: soft-light; }
/* Plateau de tournage anime en fond du bandeau */
.studio { position: absolute; right: 0; bottom: 0; width: min(68%, 820px); height: auto; color: #fff; opacity: .5; }
.studio * { transform-box: fill-box; transform-origin: center; }
.st-halo { animation: st-glow 3.2s ease-in-out infinite; }
.st-beam { animation: st-glow 5s ease-in-out infinite; }
.st-rec { animation: st-blink 1.2s steps(2, jump-none) infinite; }
.st-focus { animation: spin 9s linear infinite; }
.st-flash { opacity: 0; animation: st-flash 5s ease-out infinite; }
.st-heart { opacity: 0; animation: st-heart 4.5s ease-out infinite; }
.st-heart.h2 { animation-delay: 1.5s; } .st-heart.h3 { animation-delay: 3s; }
.st-wave { animation: st-wave 2.4s ease-out infinite; }
.st-wave.w2 { animation-delay: .3s; } .st-wave.w3 { animation-delay: .6s; }
.st-spark { animation: st-twinkle 3s ease-in-out infinite; }
.st-spark.s2 { animation-delay: 1s; } .st-spark.s3 { animation-delay: 2s; }
.st-cam { animation: float 7s ease-in-out infinite; }
@keyframes st-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes st-blink { 0% { opacity: 1; } 100% { opacity: .15; } }
@keyframes st-flash { 0%, 86% { opacity: 0; transform: scale(.6); } 89% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes st-heart { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(18px, -110px) scale(1.15); } }
@keyframes st-wave { 0% { opacity: 0; transform: translateX(-6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(8px); } }
@keyframes st-twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.hero-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.glass { background: rgba(28,14,70,.55); border: 1px solid rgba(255,255,255,.26); border-radius: 28px;
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 50px rgba(20,19,26,.28), inset 0 1px 0 rgba(255,255,255,.3); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(36,20,90,.92); } }
.hero-card { position: relative; overflow: hidden; flex: 999 1 520px; min-width: 0; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.hero-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 60%); }
.hero-card:hover::after { opacity: 1; }
.hero-card h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; letter-spacing: -.02em; max-width: 700px; }
.hero-card p { color: #EAE6F5; font-size: 18px; max-width: 560px; }
.glass-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); }
.glass-chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--soleil); animation: pulse 1.6s ease-out infinite; }
.rotator { display: inline-block; color: var(--soleil); }
.rotator .word { display: inline-block; animation: word-in .5s cubic-bezier(.2,.7,.2,1) both; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 13px; color: #D9D3EC; }
.float-card { flex: 1 1 240px; max-width: 340px; padding: 22px; display: flex; flex-direction: column; gap: 10px; color: #fff; text-decoration: none; animation: rise .7s cubic-bezier(.2,.7,.2,1) both, float 6s ease-in-out .8s infinite; transition: transform .2s; }
.float-card:hover { color: #fff; }
.float-card .block-name { display: block; font-family: var(--font-title); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-card .big-number { font-size: 34px; }
.glass-light { background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.cat-tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-height: 132px; padding: 16px; border-radius: 20px; text-decoration: none; color: var(--encre);
  background-color: #fff; background-image: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, #fff), #fff 70%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--lavande)); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { color: var(--encre); transform: translateY(-4px); border-color: var(--c); box-shadow: 0 16px 30px color-mix(in srgb, var(--c) 28%, transparent); }
.cat-blob { position: absolute; z-index: -1; top: -18px; right: -18px; width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; padding: 16px 16px 0 0;
  background: var(--c); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 24px; opacity: .92;
  animation: morph 14s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.cat-tile:hover .cat-blob { transform: scale(1.18); }
.cat-name { font-family: var(--font-title); font-size: 16px; line-height: 1.2; padding-right: 54px; }
.cat-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ardoise); }
.cat-faces { display: inline-flex; }
.cat-faces .avatar { border: 2px solid #fff; margin-left: -8px; background: #fff; }
.cat-faces .avatar:first-child { margin-left: 0; }
.cat-go { position: absolute; right: 14px; bottom: 12px; font-weight: 700; color: var(--c); transition: transform .2s; }
.cat-tile:hover .cat-go { transform: translateX(4px); }
@media (max-width: 640px) {
  .cats { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .cat-tile { scroll-snap-align: start; }
}
.feed-box { padding: 20px 22px 8px; }
.feed-head { margin-bottom: 6px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--lavande); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.feed-item:first-child { border-top: 0; }
.feed-text { flex: 1; min-width: 0; font-size: 15px; }
.feed-text a { text-decoration: none; }
.feed-text a:hover { text-decoration: underline; }
.feed-item time { flex: none; white-space: nowrap; }

/* ---- Animations ---------------------------------------------------------- */
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate(0, 0) rotate(0); }
  33% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; transform: translate(8%, -6%) rotate(70deg); }
  66% { border-radius: 30% 70% 62% 38% / 55% 62% 38% 45%; transform: translate(-6%, 8%) rotate(-40deg); }
}
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shine { 0% { background-position: -160px 0; } 100% { background-position: 160px 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,78,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,90,78,0); } }
@keyframes beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
.live { animation: pulse 1.6s ease-out infinite; }
.heart:hover svg { animation: beat .6s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .hero-tile { padding: 36px 22px; }
  .hero-glass { padding: 28px 0 36px; }
  .hero-card { padding: 26px 20px; }
  .aurora .blob { filter: blur(32px); }
  .studio { width: 120%; right: -30%; opacity: .28; }
  .float-card { max-width: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* ==========================================================================
   Coups de coeur, mur photo et vibe (accueil plus fun)
   ========================================================================== */
:root { --rose: #E06C9F; }

/* Bouton coeur */
.heart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px 8px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--encre); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.heart-btn .heart-ico { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.heart-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.heart-btn:hover svg { animation: beat .6s ease; }
.heart-btn.on { color: var(--corail); }
.heart-btn.on svg path { fill: var(--corail); stroke: var(--corail); }
.heart-btn.on .heart-ico > svg { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.heart-btn .heart-n { min-width: 1ch; font-variant-numeric: tabular-nums; }
.heart-btn:focus-visible { outline: 3px solid rgba(255,90,78,.45); outline-offset: 2px; }
.heart-overlay { position: relative; z-index: 3; min-height: 38px; padding: 6px 12px 6px 8px; color: #fff; background: rgba(20,19,26,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.heart-overlay.on { color: #fff; background: rgba(255,90,78,.92); }
.heart-overlay.on svg path { fill: #fff; stroke: #fff; }
.spark-heart { position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -6px; pointer-events: none; animation: spark .75s ease-out forwards; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.2); } }

/* Toast */
.like-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 50; background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(20,19,26,.3); max-width: calc(100% - 32px); }

/* Coeurs qui montent dans le hero (decor, facon live) */
.hearts-rise { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hearts-rise .hr { position: absolute; bottom: -40px; width: 26px; height: 26px; opacity: 0; animation: heart-up 7s ease-in infinite; }
.hearts-rise .hr path { fill: currentColor; }
.hearts-rise .hr:nth-child(odd) { width: 18px; height: 18px; animation-duration: 8.5s; }
.hearts-rise .hr:nth-child(3n) { width: 32px; height: 32px; animation-duration: 6.2s; }
.hearts-rise .corail { color: var(--corail); }
.hearts-rise .soleil { color: var(--soleil); }
.hearts-rise .rose { color: var(--rose); }
@keyframes heart-up {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg) scale(.7); }
  10% { opacity: .85; }
  50% { transform: translate(22px, -45vh) rotate(8deg) scale(1); }
  100% { opacity: 0; transform: translate(-14px, -95vh) rotate(-6deg) scale(1.15); }
}

/* Le mur : publications facon reseau social */
.wall { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ig-post { background: #fff; border: 1px solid var(--lavande); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ig-post:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(46,26,110,.13); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-head > div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.ig-head .tiny { flex-basis: 100%; }
.ig-name { font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--encre); text-decoration: none; }
.ig-name:hover { color: var(--violet); }
.ig-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ig-post:hover .ig-photo img { transform: scale(1.04); }
.ig-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: var(--tint); }
.ig-placeholder span { font-family: var(--font-title); font-weight: 700; font-size: 84px; color: #fff; background: rgba(20,19,26,.28); width: 150px; height: 150px; border-radius: 999px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.ig-stat { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(20,19,26,.55); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 15px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ig-stat small { font-family: var(--font-body); font-weight: 500; font-size: 12px; opacity: .9; }
.big-heart { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; opacity: 0; pointer-events: none; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.big-heart path { fill: #fff; }
.big-heart.go { animation: big-heart .9s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes big-heart { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: .95; transform: scale(1.15); } 30% { transform: scale(.95); } 45% { transform: scale(1.02); } 80% { opacity: .95; } 100% { opacity: 0; transform: scale(1.1) translateY(-30px); } }
.ig-actions { display: flex; align-items: center; gap: 2px; padding: 4px 8px 0; }
.ig-act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--encre); border-radius: 999px; cursor: pointer; font: inherit; text-decoration: none; }
.ig-act svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ig-act:hover { color: var(--violet); background: var(--violet-100); }
.ig-act[aria-pressed="true"] { color: var(--violet); }
.ig-caption { padding: 2px 16px 16px; font-size: 14.5px; line-height: 1.5; }
.ig-caption .tags { color: var(--violet); font-weight: 500; }

/* La vibe : mosaique de photos d'ambiance */
.vibes { columns: 3 220px; column-gap: 14px; }
.vibe { position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.vibe img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.vibe:hover img { transform: scale(1.05) rotate(-.6deg); }
.vibe figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(20,19,26,.7)); }
.vibe:nth-child(3n+1) { transform: rotate(-.6deg); }
.vibe:nth-child(3n+2) { transform: rotate(.5deg); }

@media (prefers-reduced-motion: reduce) {
  .hearts-rise { display: none; }
  .vibe { transform: none !important; }
}

/* Bandeau a motif wax : le motif reste sur le cote, jamais derriere le texte. */
.hero-tile.wax { background-image: none; background-color: var(--violet); }
.hero-tile.wax::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 30%; pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,194,61,.9) 0 9%, transparent 10%),
    radial-gradient(circle at 75% 75%, rgba(255,90,78,.9) 0 9%, transparent 10%),
    radial-gradient(circle at 75% 25%, transparent 0 18%, rgba(255,255,255,.18) 19% 22%, transparent 23%),
    radial-gradient(circle at 25% 75%, transparent 0 18%, rgba(255,255,255,.18) 19% 22%, transparent 23%);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.hero-tile.wax > * { position: relative; z-index: 1; max-width: 68%; }
@media (max-width: 640px) {
  .hero-tile.wax { padding-bottom: 46px; }
  .hero-tile.wax::after { top: auto; left: 0; width: auto; height: 22px; -webkit-mask-image: none; mask-image: none; }
  .hero-tile.wax > * { max-width: none; }
}
