:root {
  --bg-main: #F6F2ED;
  --text: #16223C;
  --text-muted: #57647F;

  --glass-bg: rgba(255, 241, 245, 0.5);
  --glass-bg-strong: rgba(255, 233, 239, 0.76);
  --glass-border: rgba(255, 205, 220, 0.62);
  --glass-highlight: rgba(255, 255, 255, 0.92);
  --glass-shadow: 0 12px 40px rgba(22, 34, 60, 0.13);

  --blur: 30px;
  --sat: 200%;

  --pink: #FF6F92;
  --pink-tint: rgba(255, 111, 146, 0.28);

  --blob-a: rgba(255, 140, 175, 0.62);
  --blob-b: rgba(120, 216, 178, 0.58);
  --blob-c: rgba(168, 178, 250, 0.56);
  --blob-d: rgba(255, 194, 120, 0.46);
  --blob-e: rgba(255, 158, 120, 0.5);
  --blob-f: rgba(130, 202, 232, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
html, body { overflow-x: hidden; }
body { background-color: var(--bg-main); color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif; font-weight: 600; text-wrap: balance; }
a { color: inherit; }

/* ---------- Projecteurs de fond (identiques à loxxy91.fr) ---------- */
.ambient { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(130px); will-change: transform, opacity; }
.blob-a { width: 560px; height: 560px; top: -180px; right: -140px; background: var(--blob-a); animation: driftA 34s ease-in-out infinite alternate; }
.blob-b { width: 520px; height: 520px; bottom: -200px; left: -150px; background: var(--blob-b); animation: driftB 42s ease-in-out infinite alternate; }
.blob-c { width: 460px; height: 460px; top: 36%; left: 48%; background: var(--blob-c); opacity: 0.8; transform: translate(-50%, -50%); animation: driftC 27s ease-in-out infinite alternate; }
.blob-d { width: 420px; height: 420px; top: 8%; left: 62%; background: var(--blob-d); animation: driftD 50s ease-in-out infinite alternate; }
.blob-e { width: 500px; height: 500px; bottom: -170px; right: -130px; background: var(--blob-e); animation: driftE 39s ease-in-out infinite alternate; }
.blob-f { width: 440px; height: 440px; top: -150px; left: -130px; background: var(--blob-f); animation: driftF 46s ease-in-out infinite alternate; }

@keyframes driftA { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(-60px,70px) scale(1.1);} 100% { transform: translate(40px,-30px) scale(0.94);} }
@keyframes driftB { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(50px,-60px) scale(0.92);} 100% { transform: translate(-30px,40px) scale(1.08);} }
@keyframes driftC { 0% { transform: translate(-50%,-50%) scale(1);} 50% { transform: translate(-46%,-56%) scale(1.12);} 100% { transform: translate(-54%,-44%) scale(0.95);} }
@keyframes driftD { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(-70px,50px) scale(1.15);} 100% { transform: translate(30px,-40px) scale(0.9);} }
@keyframes driftE { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(60px,-50px) scale(1.08);} 100% { transform: translate(-40px,30px) scale(0.92);} }
@keyframes driftF { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(-40px,60px) scale(0.9);} 100% { transform: translate(50px,-30px) scale(1.1);} }

@media (prefers-reduced-motion: reduce) { .blob { animation: none !important; } }

/* ---------- Verre commun (identique à loxxy91.fr) ---------- */
.glass-surface {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  transition: backdrop-filter 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-surface::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(128deg, var(--glass-highlight) 0%, transparent 30%, transparent 70%, var(--glass-highlight) 130%);
  opacity: 0.3;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.5s ease;
}
.glass-surface.is-interactive:hover {
  backdrop-filter: blur(42px) saturate(230%);
  -webkit-backdrop-filter: blur(42px) saturate(230%);
  box-shadow: 0 22px 54px rgba(22, 34, 60, 0.16), inset 0 1px 0 var(--glass-highlight);
}
.glass-surface.is-interactive:hover::before { opacity: 0.5; transform: translate(6%, 6%); }

/* ---------- Mise en page ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; position: relative; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 20px;
  margin-bottom: 34px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; display: block; border-radius: 10px; }
.wordmark { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; color: var(--text); }
.wordmark em { font-style: normal; color: var(--pink); }
.top-sub { color: var(--text-muted); font-size: 0.85rem; }

.hero { padding: 6px 4px 30px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.hero p { color: var(--text-muted); max-width: 56ch; font-size: 1.02rem; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.count { color: var(--text-muted); font-size: 0.85rem; }

.sort-group { display: inline-flex; border-radius: 999px; padding: 4px; gap: 4px; }
.sort-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sort-btn:hover { color: var(--text); }
.sort-btn[aria-pressed="true"] {
  color: #fff;
  background: color-mix(in srgb, var(--pink) 88%, transparent);
  box-shadow: 0 6px 16px var(--pink-tint);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card {
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--pink-tint);
  color: var(--pink);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }
.card p.tagline { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 14px; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-hint {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}
.card:hover .card-hint { text-decoration-color: currentColor; }

.empty-slot {
  border-radius: 20px;
  border: 1px dashed var(--glass-border);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

footer { margin-top: 50px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }
footer .wordmark { font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .card, .sort-btn, .card-hint { transition: box-shadow 0.3s ease, transform 0.3s ease, color 0.2s ease; }
}
