/* ===== Ollimee Linktree replica =====
   Colors/fonts extracted from the live Linktree page (theme "mineral"):
   background #ffeee1, button border/fill #ccbeb4, text #000000,
   Space Mono (headings/buttons) + Inter (secondary text). */

:root{
  --bg: #ffeee1;
  --bg-desktop-frame: color-mix(in srgb, #ffeee1 88%, black 12%);
  --card-bg: rgba(255, 238, 225, 0.93);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-faint: rgba(0, 0, 0, 0.35);
  --button-border: #ccbeb4;
  --button-bg: transparent;
  --button-bg-hover: color-mix(in srgb, transparent 93%, #000000 7%);
  --radius-pill: 28px;
  --radius-card: 24px;
  --gap: 14px;
  --font-primary: 'Space Mono', ui-monospace, monospace;
  --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 580px;
}

*{ box-sizing: border-box; }

html, body{
  background: var(--bg-desktop-frame);
}

body{
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Motif discret visible uniquement dans la zone hors-carte sur desktop
   (sur mobile la carte occupe 100% de la largeur donc rien de ceci ne se voit) :
   grain fin + 2 tons chauds diffus, dans la palette du theme. */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 45% at 12% 8%, color-mix(in srgb, #f6a26b 22%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 50% at 88% 92%, color-mix(in srgb, #c98f6b 20%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
}

/* Poussieres/particules qui dérivent + réagissent au curseur (js/particles.js).
   Reste toujours derrière le contenu (.page), jamais interactif lui-même. */
#particles-canvas{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

img{ max-width: 100%; display: block; }

.page{
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---------- Top bar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: var(--gap);
  pointer-events: none;
}

.chip{
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: color-mix(in srgb, white 50%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chip:active{ transform: scale(0.95); }

/* ---------- Card / desktop frame ---------- */
.card{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap) 32px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px){
  .card{
    margin-top: -56px;
    min-height: 100vh;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    box-shadow: 0 24px 32px 0 rgba(0, 0, 0, 0.15);
    padding-left: calc(var(--gap) * 2);
    padding-right: calc(var(--gap) * 2);
  }

  /* Pages sans topbar (mentions legales, confidentialite) : le -56px du
     .card ci-dessus n'a rien a "empieter" et pousse tout hors ecran. */
  .card.card--plain{
    margin-top: 40px;
  }
}

/* ---------- Profile header ---------- */
.profile{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  text-align: center;
}

.avatar{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  background: #fff;
}

.title{
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.desc{
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  margin: 6px 0 0;
  max-width: 90%;
}

.socials{
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.social{
  padding: 8px;
  color: var(--text);
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.social:hover{ transform: scale(1.075); }

/* ---------- Links ---------- */
.links{
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: 28px;
}

.pill{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 56px 10px 10px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  transition: background-color 0.15s ease;
}
.pill:hover{ background: var(--button-bg-hover); }

.pill__avatar{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.pill__avatar img{ width: 100%; height: 100%; object-fit: cover; }

.pill__text{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-right: -44px; /* recenters text since avatar only sits on the left */
}

.pill__title{
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pill__subtitle{
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- TikTok featured card ---------- */
.tiktok-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-card);
  padding: 20px 16px 16px;
}

.tiktok-fan{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  margin-bottom: 12px;
}

.tiktok-fan__card{
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1 / 1.5;
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.08);
  background: #ddd repeating-linear-gradient(45deg, #e4d9cf, #e4d9cf 10px, #ddccbe 10px, #ddccbe 20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tiktok-fan__card img{ width: 100%; height: 100%; object-fit: cover; }

.tiktok-fan__card[data-pos="center"]{ transform: translate(-50%, 4%) scale(1); z-index: 3; }
.tiktok-fan__card[data-pos="left"]{ transform: translate(-100%, 7%) rotate(-6deg) scale(0.94); z-index: 2; }
.tiktok-fan__card[data-pos="right"]{ transform: translate(0%, 7%) rotate(6deg) scale(0.94); z-index: 2; }
.tiktok-fan__card[data-pos="far-left"]{ transform: translate(-130%, 11%) rotate(-10deg) scale(0.88); z-index: 1; }
.tiktok-fan__card[data-pos="far-right"]{ transform: translate(30%, 11%) rotate(10deg) scale(0.88); z-index: 1; }

.tiktok-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.tiktok-title{
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.tiktok-subtitle{
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.follow-btn{
  margin-top: 12px;
  padding: 6px 16px;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: color-mix(in srgb, transparent 86%, #000000 14%);
  transition: background-color 0.15s ease;
}
.follow-btn:hover{ background: color-mix(in srgb, transparent 80%, #000000 20%); }

/* ---------- SoundCloud embed ---------- */
.sc-embed{
  border: 1px solid var(--button-border);
  border-radius: var(--radius-card);
  padding: 12px;
  overflow: hidden;
}

.sc-embed iframe{
  display: block;
  border-radius: calc(var(--radius-card) - 8px);
}

.sc-embed__credit{
  margin-top: 8px;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 400;
  line-break: anywhere;
  word-break: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-faint);
}
.sc-embed__credit a{
  color: var(--text-muted);
  text-decoration: none;
}
.sc-embed__credit a:hover{ text-decoration: underline; }

/* ---------- Footer ---------- */
.footer{
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer__links{
  margin-top: 6px;
}
.footer__links a{
  color: var(--text-faint);
  text-decoration: none;
}
.footer__links a:hover{ text-decoration: underline; color: var(--text-muted); }

/* ---------- Responsive tweaks ---------- */
@media (min-width: 576px){
  .tiktok-fan{ max-height: 260px; }
}

/* ---------- Legal pages (mentions-legales.html / confidentialite.html) ---------- */
.legal{
  padding-top: 32px;
  padding-bottom: 48px;
}

.legal-home{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.legal-home:hover{ background: var(--button-bg-hover); }
.legal-home:active{ transform: scale(0.97); }

.legal-home__arrow{
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-muted);
}

.legal-home__avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.legal-home__name{
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.legal h1{
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.legal h2{
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  margin: 28px 0 8px;
}

.legal p{
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 10px;
}

.legal ul{
  margin: 0 0 10px;
  padding-left: 20px;
}
.legal li{
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal a{
  color: var(--text);
  text-decoration: underline;
}
