/* ═══════════════════════════════════════════════════════════════
   DJfilm · Hub — Linktree premium
   DA : light & airy, menthe vive, glassmorphism — brand djfilm.fr
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────── */
:root {
  --c-bg:            #FDFCF9;
  --c-surface:       rgba(255, 255, 255, .75);
  --c-surface-hov:   rgba(63, 168, 118, .07);
  --c-border:        rgba(30, 30, 50, .09);
  --c-border-hov:    rgba(63, 168, 118, .35);

  --c-accent:        #3FA876;
  --c-accent-lt:     #5DC491;
  --c-accent-dk:     #267550;
  --c-accent-glow:   rgba(63, 168, 118, .18);

  --c-gold:          #3FA876;
  --c-gold-subtle:   rgba(63, 168, 118, .10);
  --c-gold-border:   rgba(63, 168, 118, .24);
  --c-gold-hov:      rgba(63, 168, 118, .45);

  --c-text:          #1C1C1E;
  --c-muted:         #48484E;
  --c-faint:         #8E8E93;

  --font-serif:      'Cormorant Garamond', Georgia, serif;
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;

  --ease:            cubic-bezier(.25, .46, .45, .94);
  --ease-spring:     cubic-bezier(.34, 1.56, .64, 1);

  --radius-card:     18px;
  --radius-icon:     12px;
}

/* ── 2. Reset & base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. Grain texture ───────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .032;
  width: 100%;
  height: 100%;
}

/* ── 4. Animated orbs ───────────────────────────────────────── */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

/* Orbe 1 – Vert menthe vif – haut gauche */
.orb--1 {
  width: 700px; height: 700px;
  top: -250px; left: -180px;
  background: radial-gradient(circle, rgba(63, 168, 118, .48) 0%, transparent 70%);
  animation: orb1 32s ease-in-out infinite;
}

/* Orbe 2 – Bleu pastel – droite milieu */
.orb--2 {
  width: 520px; height: 520px;
  top: 15%; right: -160px;
  background: radial-gradient(circle, rgba(91, 174, 212, .42) 0%, transparent 70%);
  animation: orb2 41s ease-in-out infinite;
}

/* Orbe 3 – Pêche chaude – bas centre */
.orb--3 {
  width: 680px; height: 680px;
  bottom: -220px; left: 25%;
  background: radial-gradient(circle, rgba(232, 132, 90, .32) 0%, transparent 70%);
  animation: orb3 49s ease-in-out infinite;
}

/* Orbe 4 – Lavande – gauche milieu */
.orb--4 {
  width: 420px; height: 420px;
  top: 42%; left: -100px;
  background: radial-gradient(circle, rgba(155, 135, 196, .38) 0%, transparent 70%);
  animation: orb4 36s ease-in-out infinite;
}

/* Orbe 5 – Menthe claire – bas droite */
.orb--5 {
  width: 360px; height: 360px;
  bottom: 8%; right: -80px;
  background: radial-gradient(circle, rgba(93, 196, 145, .40) 0%, transparent 70%);
  animation: orb5 27s ease-in-out infinite;
}

@keyframes orb1 {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  33%       { transform: translate(80px, 60px) scale(1.10); }
  66%       { transform: translate(-40px,80px) scale(.95);  }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0,     0)    scale(1);    }
  40%       { transform: translate(-90px, 50px) scale(1.08); }
  70%       { transform: translate(30px, -60px) scale(.92);  }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0,     0)    scale(1);    }
  25%       { transform: translate(60px, -40px) scale(1.12); }
  75%       { transform: translate(-50px, 30px) scale(.90);  }
}
@keyframes orb4 {
  0%, 100% { transform: translate(0,     0)    scale(1);    }
  50%       { transform: translate(70px, -70px) scale(1.15); }
}
@keyframes orb5 {
  0%, 100% { transform: translate(0,     0)    scale(1);    }
  40%       { transform: translate(-50px, 40px) scale(1.10); }
  80%       { transform: translate(30px, -30px) scale(.90);  }
}

/* ── 5. Hub wrap ────────────────────────────────────────────── */
.hub-wrap {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2.5rem;
}

.hub {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── 6. Profile ─────────────────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Avatar container */
.profile__avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.25rem;
}

/* Rotating gradient ring */
.profile__avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #267550 0%,
    #5DC491 28%,
    #5BAED4 50%,
    #9B87C4 72%,
    #267550 100%
  );
  animation: ring-spin 9s linear infinite;
  z-index: 0;
}

/* Inner mask (same as page bg) */
.profile__avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #FDFCF9;
  z-index: 1;
}

/* Inner circle content */
.profile__inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #111;
  z-index: 2;
  overflow: hidden;
}

.profile__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 8%;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.profile__name {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--c-text);
  margin-bottom: .5rem;
}

.profile__tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--c-muted);
  margin-bottom: 1rem;
  letter-spacing: .01em;
}

.profile__location {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-bottom: 1.25rem;
}
.profile__location svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--c-accent);
  opacity: .75;
}

/* ── 7. Links nav ───────────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: .8rem;
}

/* ── Link card base ─────────────────────────────────────────── */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--c-surface);
  border: 1.5px solid rgba(255, 255, 255, .90);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(30, 30, 50, .06);
  transition:
    background   280ms var(--ease),
    border-color 280ms var(--ease),
    transform    280ms var(--ease-spring),
    box-shadow   280ms var(--ease);
  will-change: transform;
}

/* Shimmer sweep on hover */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transition: left 480ms var(--ease);
  pointer-events: none;
}

.link-card:hover {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(63, 168, 118, .35);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(63, 168, 118, .14),
    0 0 0 1px rgba(63, 168, 118, .10);
}
.link-card:hover::before { left: 130%; }
.link-card:active {
  transform: translateY(0) scale(.99);
  transition-duration: 100ms;
}

/* Featured variant — site principal */
.link-card--featured {
  border-color: rgba(63, 168, 118, .25);
  background: rgba(63, 168, 118, .06);
}
.link-card--featured .link-card__icon {
  background: rgba(63, 168, 118, .15);
  color: var(--c-accent-dk);
}

/* vCard variant */
.link-card--vcard {
  border-style: dashed;
  border-color: var(--c-gold-border);
}
.link-card--vcard .link-card__icon {
  background: var(--c-gold-subtle);
  color: var(--c-gold);
}
.link-card--vcard:hover {
  border-color: var(--c-gold-hov);
  background: rgba(63, 168, 118, .08);
  box-shadow:
    0 8px 32px rgba(63, 168, 118, .14),
    0 0 0 1px rgba(63, 168, 118, .10);
}
.link-card--vcard:hover .link-card__icon {
  background: rgba(63, 168, 118, .20);
}

/* Icon box */
.link-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-icon);
  background: rgba(63, 168, 118, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  transition:
    background 280ms var(--ease),
    transform  280ms var(--ease-spring),
    color      280ms var(--ease);
}
.link-card__icon svg {
  width: 19px;
  height: 19px;
}
.link-card:hover .link-card__icon {
  background: rgba(63, 168, 118, .18);
  transform: scale(1.09);
}

/* Text */
.link-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.link-card__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card__sub {
  font-size: .73rem;
  color: var(--c-muted);
  letter-spacing: .01em;
}

/* Arrow */
.link-card__arrow {
  flex-shrink: 0;
  color: var(--c-faint);
  display: flex;
  transition:
    transform 250ms var(--ease-spring),
    color     250ms var(--ease);
}
.link-card__arrow svg {
  width: 15px;
  height: 15px;
}
.link-card:hover .link-card__arrow {
  transform: translateX(3px);
  color: var(--c-accent);
}

/* vCard badge pill */
.link-card__badge {
  flex-shrink: 0;
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-gold-border);
  border-radius: 5px;
  padding: .22rem .55rem;
}

/* ── 8. Divider ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: .6rem 0;
  color: var(--c-faint);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(30, 30, 50, .08);
}

/* ── 9. Social buttons ──────────────────────────────────────── */
.socials {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

/* Socials intégrés dans le profil */
.profile .socials {
  margin-top: 1.1rem;
}

.social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  transition:
    transform  250ms var(--ease-spring),
    box-shadow 250ms var(--ease),
    filter     250ms var(--ease);
}
.social svg {
  width: 20px;
  height: 20px;
}
.social:hover {
  transform: translateY(-3px) scale(1.10);
  filter: brightness(1.08);
}
.social:active {
  transform: scale(.97);
  transition-duration: 100ms;
}

/* Couleurs officielles des marques */
.social--linkedin {
  background: #0A66C2;
  box-shadow: 0 2px 10px rgba(10, 102, 194, .28);
}
.social--linkedin:hover {
  box-shadow: 0 8px 24px rgba(10, 102, 194, .42);
}

.social--youtube {
  background: #FF0000;
  box-shadow: 0 2px 10px rgba(255, 0, 0, .28);
}
.social--youtube:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 0, .42);
}

.social--facebook {
  background: #1877F2;
  box-shadow: 0 2px 10px rgba(24, 119, 242, .28);
}
.social--facebook:hover {
  box-shadow: 0 8px 24px rgba(24, 119, 242, .42);
}

.social--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 2px 10px rgba(225, 48, 108, .28);
}
.social--instagram:hover {
  box-shadow: 0 8px 24px rgba(225, 48, 108, .42);
}

.social--tiktok {
  background: #010101;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .24);
}
.social--tiktok:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
}

/* ── 10. Footer ─────────────────────────────────────────────── */
.hub-footer {
  text-align: center;
  color: var(--c-faint);
  font-size: .7rem;
  letter-spacing: .05em;
  line-height: 1.7;
}
.hub-footer a {
  color: var(--c-accent);
  opacity: .7;
  transition: opacity 200ms;
}
.hub-footer a:hover { opacity: 1; }

/* ── 11. Reveal animations (load-based) ─────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal].is-visible {
  animation: reveal-in 520ms var(--ease) forwards;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 12. Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .hub-wrap {
    padding: 2rem 1rem 2rem;
  }
  .profile__name {
    font-size: 2.1rem;
  }
  .profile__avatar {
    width: 130px;
    height: 130px;
  }
  .link-card {
    padding: .9rem 1rem;
  }
  .link-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .link-card__icon svg {
    width: 17px;
    height: 17px;
  }
  .link-card__title {
    font-size: .83rem;
  }
  .social {
    width: 44px;
    height: 44px;
  }
  .social svg {
    width: 18px;
    height: 18px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .profile__name {
    font-size: 1.85rem;
  }
  .hub-wrap {
    padding: 1.5rem .75rem 1.5rem;
  }
}
