/* ============================================================
   link.akaz.fr — Design Dark Navy + Gold Néon + Glassmorphism
   Mobile-first
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0a0e1a;
  --navy-mid:    #0f1525;
  --navy-light:  #151d35;
  --gold:        #D4A843;
  --gold-dim:    #b8882a;
  --gold-pale:   rgba(212, 168, 67, 0.15);
  --gold-glow:   rgba(212, 168, 67, 0.4);
  --white:       #f0f4ff;
  --muted:       rgba(240, 244, 255, 0.5);
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border:rgba(212, 168, 67, 0.18);
  --card-hover:  rgba(212, 168, 67, 0.07);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.22s ease;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --max-w:       520px;
}

/* ── Reset minimal ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Fond animé ────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,168,67,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%,  rgba(212,168,67,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 90%,  rgba(100,120,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout principal ──────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 44px 0 32px;
}

.site-header__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212,168,67,0.15);
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-header__tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}

.site-header__location {
  font-size: 0.8rem;
  color: var(--gold-dim);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Séparateur doré néon */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px var(--gold-glow);
  margin: 18px auto;
  border: none;
}

/* Bouton partage page */
.share-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--gold);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  text-decoration: none;
}
.share-page-btn:hover {
  background: var(--gold-pale);
  box-shadow: 0 0 12px var(--gold-glow);
}
.share-page-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Nav types ──────────────────────────────────────────────── */
.type-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.type-nav__tab {
  padding: 7px 18px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.type-nav__tab:hover {
  color: var(--gold);
  border-color: var(--gold-glow);
  background: var(--gold-pale);
}

.type-nav__tab--active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
  font-weight: 600;
}

/* ── Sections de catégories ─────────────────────────────────── */
.link-section {
  margin-bottom: 28px;
  animation: fadeUp 0.4s ease both;
}
.link-section:nth-child(2) { animation-delay: 0.05s; }
.link-section:nth-child(3) { animation-delay: 0.10s; }
.link-section:nth-child(4) { animation-delay: 0.15s; }
.link-section:nth-child(5) { animation-delay: 0.20s; }

.category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.category-label__text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  text-shadow: 0 0 8px var(--gold-glow);
}

.category-label__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-glow), transparent);
}

/* ── Carte de lien ──────────────────────────────────────────── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,168,67,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}

.link-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 32px rgba(212,168,67,0.12), 0 2px 8px rgba(0,0,0,0.3);
}
.link-card:hover::before { opacity: 1; }

.link-card:active { transform: translateY(-1px); }

/* Icône du lien */
.link-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,168,67,0.1);
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.link-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

/* Texte du lien */
.link-body {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.link-bonus {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* Actions droite */
.link-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Flèche */
.link-arrow {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.link-card:hover .link-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* Bouton partage individuel */
.link-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.link-share-btn:hover {
  color: var(--gold);
  border-color: var(--gold-glow);
  background: var(--gold-pale);
}
.link-share-btn svg { width: 14px; height: 14px; }

/* Sur desktop, cacher le bouton partage sauf hover */
@media (hover: hover) {
  .link-share-btn { opacity: 0; }
  .link-card:hover .link-share-btn { opacity: 1; }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px 0 16px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(212,168,67,0.08);
  margin-top: 16px;
}

.site-footer a {
  color: var(--gold-dim);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }

.site-footer__version {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  opacity: 0.45;
  letter-spacing: 0.05em;
}

.disclaimer {
  max-width: 420px;
  margin: 12px auto 0;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
  line-height: 1.5;
}

/* ── Toast de confirmation copie ────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-light);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.84rem;
  box-shadow: 0 4px 20px rgba(212,168,67,0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  pointer-events: none;
}
.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .page-wrap { padding: 0 24px 60px; }
  .site-header { padding: 60px 0 40px; }
}

/* ── Utilitaires ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
