/* ============================================
   ATHERN — Linktree
   Theme : dark Athern.fr + ciel étoilé + filantes
   ============================================ */

:root {
  /* Palette Athern.fr (dark) */
  --bg:           hsl(0 0% 8%);
  --bg-soft:      hsl(0 0% 11%);
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-hover:rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(6, 182, 212, 0.45);

  --text:        hsl(0 0% 98%);
  --text-soft:   hsl(0 0% 75%);
  --text-muted:  hsl(0 0% 55%);

  --cyan-400:    #06b6d4;
  --teal-400:    #2dd4bf;
  --cyan-glow:   rgba(6, 182, 212, 0.35);

  /* Accents par section (repris d'Athern.fr) */
  --green-400:   #34d399;  /* CTFLab — section Lead. */
  --green-glow:  rgba(52, 211, 153, 0.35);
  --pink-400:    #fd438e;  /* Gomamoru — section Forge. */
  --pink-glow:   rgba(253, 67, 142, 0.35);

  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:   0 20px 48px rgba(0, 0, 0, 0.55);

  --font-sans:   'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:'League Spartan', var(--font-sans);
}

/* ----- Reset minimal ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ============================================
   Fond étoilé + glows Athern (couches empilées)
   ============================================ */

/* Canvas étoiles + filantes (rempli par script.js) */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glows radiaux cyan/teal repris d'Athern.fr — au-dessus du canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(6, 182, 212, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(45, 212, 191, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse 50% 30% at 0% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

/* Vignette douce sur les bords pour profondeur */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
}

/* ----- Page layout ----- */
.page {
  position: relative;
  z-index: 10; /* au-dessus des couches de fond */
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding:
    max(40px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  /* Gap adaptatif : se réduit sur viewports courts pour éviter le scroll */
  --page-gap: clamp(18px, 3.6vh, 32px);
  gap: var(--page-gap);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ----- Hero ----- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.8vh, 14px);
}

.logo-img {
  width: clamp(110px, 28vw, 150px);
  height: auto;
  /* Couleur d'origine du SVG — juste une ombre douce pour le décoller du fond */
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 4px;
}

.brand-text {
  color: var(--text);
}

.welcome {
  font-size: clamp(12px, 2.6vw, 14.5px);
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 2px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 22px; /* arrondi qui accepte 1 ou 2 lignes */
  background: rgba(6, 182, 212, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  line-height: 1.5;
}

/* Tablette+ : sur 1 ligne, la bulle s'étire à la largeur du texte
   et peut dépasser la largeur du conteneur .page sans souci */
@media (min-width: 600px) {
  .welcome {
    white-space: nowrap;
    width: max-content;
    max-width: none;
    border-radius: 999px;
  }
}

.welcome strong, .welcome b { color: var(--cyan-400); font-weight: 700; }

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 320px;
}

/* ----- Liens (glassmorphism dark) ----- */
.links { width: 100%; }

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  /* Variables d'accent — surchargées par .link-card--{cyan,green,pink} */
  --accent: var(--cyan-400);
  --accent-glow: var(--cyan-glow);
  --accent-soft: rgba(6, 182, 212, 0.10);

  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  min-height: 64px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Thèmes par section Athern.fr */
.link-card--cyan {
  --accent: var(--cyan-400);
  --accent-glow: var(--cyan-glow);
  --accent-soft: rgba(6, 182, 212, 0.10);
}
.link-card--green {
  --accent: var(--green-400);
  --accent-glow: var(--green-glow);
  --accent-soft: rgba(52, 211, 153, 0.10);
}
.link-card--pink {
  --accent: var(--pink-400);
  --accent-glow: var(--pink-glow);
  --accent-soft: rgba(253, 67, 142, 0.10);
}

/* Liseré coloré subtil par défaut (gauche) */
.link-card {
  position: relative;
  overflow: hidden;
}
.link-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.55;
  transition: opacity 0.22s ease, width 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    transform: translateY(-2px);
    box-shadow:
      var(--shadow-lg),
      0 0 24px var(--accent-soft);
    border-color: var(--accent);
    background: var(--surface-hover);
  }
  .link-card:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px var(--accent-glow);
  }
  .link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--accent);
  }
  .link-card:hover .link-icon {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .link-card:hover .link-icon img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
  .link-card:hover .link-title {
    color: var(--accent);
  }
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Tap mobile : reproduire l'effet hover pendant l'appui */
@media (hover: none) {
  .link-card:active {
    transform: scale(0.985);
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow:
      var(--shadow-md),
      0 0 24px var(--accent-soft);
  }
  .link-card:active::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px var(--accent-glow);
  }
  .link-card:active .link-arrow {
    transform: translateX(4px);
    color: var(--accent);
  }
  .link-card:active .link-icon {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .link-card:active .link-icon img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
  .link-card:active .link-title { color: var(--accent); }

  .social-link:active {
    transform: scale(0.985);
    border-color: var(--linkedin);
    background: var(--linkedin-soft);
    color: var(--linkedin);
    box-shadow: 0 0 24px var(--linkedin-glow);
  }
  .social-link:active::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px var(--linkedin-glow);
  }
  .social-link:active .social-icon { transform: scale(1.08); }
  .social-link:active .social-arrow {
    color: var(--linkedin);
    transform: translate(2px, -2px);
  }
}

/* Mouse click : conserver juste le press subtil */
@media (hover: hover) {
  .link-card:active {
    transform: scale(0.985);
    background: var(--surface-hover);
  }
}

.link-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Logos en couleurs natives — pas de filtre forcé */
.link-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: filter 0.22s ease, transform 0.22s ease;
}

.link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.link-sub {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
}

/* ----- Social (LinkedIn) ----- */
.social {
  --linkedin: #0A66C2;
  --linkedin-soft: rgba(10, 102, 194, 0.10);
  --linkedin-glow: rgba(10, 102, 194, 0.35);
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  width: 100%;
  max-width: 280px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--linkedin);
  opacity: 0.6;
  transition: opacity 0.22s ease, width 0.22s ease, box-shadow 0.22s ease;
}

.social-icon {
  width: 22px;
  height: 22px;
  color: var(--linkedin);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.social-text { flex: 1; text-align: left; }

.social-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: color 0.22s ease, transform 0.22s ease;
}

.social-arrow svg { width: 100%; height: 100%; }

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    transform: translateY(-2px);
    border-color: var(--linkedin);
    background: var(--linkedin-soft);
    color: var(--linkedin);
    box-shadow: 0 0 24px var(--linkedin-glow);
  }
  .social-link:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px var(--linkedin-glow);
  }
  .social-link:hover .social-icon { transform: scale(1.08); }
  .social-link:hover .social-arrow {
    color: var(--linkedin);
    transform: translate(2px, -2px);
  }
}

.social-link:focus-visible {
  outline: 2px solid var(--linkedin);
  outline-offset: 3px;
}

.social-link:active { transform: scale(0.985); }

/* ----- Contact ----- */
.contact {
  /* Annule le gap du .page puis ajoute 9px → écart constant LinkedIn ↔ Contact
     quel que soit le viewport (mobile, tablette, desktop). */
  margin-top: calc(var(--page-gap) * -1 + 9px);
  display: flex;
  justify-content: center;
}

/* Même gabarit que .social-link, sans icône, accent cyan */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  width: 100%;
  max-width: 280px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Liseré cyan à gauche, comme le bouton LinkedIn */
.contact-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan-400);
  opacity: 0.6;
  transition: opacity 0.22s ease, width 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.10);
    color: var(--cyan-400);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.30);
  }
  .contact-btn:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  }
}

@media (hover: none) {
  .contact-btn:active {
    transform: scale(0.985);
    border-color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.10);
    color: var(--cyan-400);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.30);
  }
  .contact-btn:active::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  }
}

.contact-btn:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

@media (hover: hover) {
  .contact-btn:active { transform: scale(0.985); }
}

/* ============================================
   Modale de contact
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding: max(20px, env(safe-area-inset-top))
           max(20px, env(safe-area-inset-right))
           max(20px, env(safe-area-inset-bottom))
           max(20px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, hsl(0 0% 11%) 0%, hsl(0 0% 9%) 100%);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 20px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(6, 182, 212, 0.10);
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.modal.is-open .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-close svg { width: 16px; height: 16px; }

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  border-color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.08);
  outline: none;
}

.modal-close:active { transform: scale(0.92); }

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-right: 40px; /* laisser la place au close */
}

.modal-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-action {
  --m-accent: var(--cyan-400);
  --m-soft: rgba(6, 182, 212, 0.10);
  --m-glow: rgba(6, 182, 212, 0.30);

  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-action--form {
  --m-accent: var(--teal-400);
  --m-soft: rgba(45, 212, 191, 0.10);
  --m-glow: rgba(45, 212, 191, 0.30);
}

.modal-action-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--m-soft);
  color: var(--m-accent);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.modal-action-icon svg { width: 20px; height: 20px; }

.modal-action-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-action-body strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-action-body span {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-action-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.modal-action-arrow svg { width: 100%; height: 100%; }

@media (hover: hover) and (pointer: fine) {
  .modal-action:hover {
    transform: translateY(-2px);
    border-color: var(--m-accent);
    background: var(--surface-hover);
    box-shadow: 0 0 22px var(--m-glow);
  }
  .modal-action:hover .modal-action-icon {
    background: var(--m-accent);
    color: hsl(0 0% 8%);
    box-shadow: 0 0 14px var(--m-glow);
  }
  .modal-action:hover .modal-action-arrow { color: var(--m-accent); }
  .modal-action--mail:hover .modal-action-arrow { transform: translateX(4px); }
  .modal-action--form:hover .modal-action-arrow { transform: translate(2px, -2px); }
}

@media (hover: none) {
  .modal-action:active {
    transform: scale(0.985);
    border-color: var(--m-accent);
    background: var(--surface-hover);
    box-shadow: 0 0 22px var(--m-glow);
  }
  .modal-action:active .modal-action-icon {
    background: var(--m-accent);
    color: hsl(0 0% 8%);
  }
  .modal-action:active .modal-action-arrow { color: var(--m-accent); }
}

.modal-action:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 3px;
}

/* Empêche le scroll du body quand la modale est ouverte */
body.modal-open { overflow: hidden; }

@media (max-width: 360px) {
  .modal-panel { padding: 22px 18px 18px; }
  .modal-title { font-size: 19px; }
  .modal-action { padding: 12px 14px; gap: 12px; }
  .modal-action-icon { width: 38px; height: 38px; }
}

/* ----- Footer ----- */
.footer {
  /* Pas de margin négatif : on garde le gap naturel du .page (≈ 18-32px)
     comme respiration entre Contactez-nous et le copyright */
  padding-top: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 360px) {
  .page {
    padding-top: max(28px, env(safe-area-inset-top));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    --page-gap: 24px; /* met à jour la variable pour que .contact compense bien */
  }
  .logo-img { width: 96px; }
  .brand { letter-spacing: 0.14em; }
  .welcome { padding: 8px 14px; } /* clamp() gère la taille */
  .tagline { font-size: 13px; }
  .link-card { padding: 14px; gap: 12px; min-height: 60px; }
  .link-icon { width: 44px; height: 44px; border-radius: 10px; }
  .link-icon img { width: 28px; height: 28px; }
  .link-title { font-size: 15px; }
  .link-sub { font-size: 12px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .page {
    max-width: 640px;
    padding-top: 20px;
    padding-bottom: 20px;
    --page-gap: 20px;
  }
  .hero { gap: 6px; }
  .logo-img { width: 80px; }
  .brand { font-size: 22px; margin-top: 0; }
  .welcome { padding: 6px 12px; }
  .tagline { display: none; } /* on coupe le second sous-titre en paysage */
  .links-list { gap: 10px; }
  .link-card { padding: 12px 14px; min-height: 56px; }
}

@media (min-width: 600px) {
  .page {
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 48px;
    --page-gap: 40px; /* met à jour la variable pour que .contact compense bien */
  }
}

@media (min-width: 1024px) {
  .page { --page-gap: 44px; }
  .link-card { padding: 18px 20px; }
}

/* Animations réduites */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #stars-canvas { display: none; } /* le canvas se mettra aussi en pause via JS */
  body { background: var(--bg); }
}

/* Animation d'apparition discrète */
@media (prefers-reduced-motion: no-preference) {
  .hero, .links-list li {
    animation: fadeUp 0.6s ease-out backwards;
  }
  .hero { animation-delay: 0.05s; }
  .links-list li:nth-child(1) { animation-delay: 0.20s; }
  .links-list li:nth-child(2) { animation-delay: 0.30s; }
  .links-list li:nth-child(3) { animation-delay: 0.40s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
