:root {
  --bg: #0b0f17;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --ring: rgba(99, 102, 241, 0.45);
}

* { box-sizing: border-box; }
html { 
  height: 100%; 
  scroll-behavior: smooth;
}
body { 
  height: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(99,102,241,0.16), transparent 50%),
    radial-gradient(900px 600px at 10% 110%, rgba(34,211,238,0.14), transparent 50%),
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.4), transparent 40%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.35), transparent 40%);
  animation: twinkle 6s linear infinite;
}
.stars {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  pointer-events: none;
}

.particles {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 1;
}


@keyframes twinkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.hub {
  width: 100%;
  padding: 32px 16px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(8px);
  opacity: 0;
  animation: card-in 700ms ease forwards;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
  margin: 12px 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 400px;
  text-align: center;
}

.doc {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px 0 24px;
  color: #d1d5db;
}
.doc h2 { margin: 28px 0 8px; font-size: 22px; color: #fff; }
.doc p { margin: 0 0 12px; line-height: 1.75; }
.doc ul { margin: 0 0 12px 18px; line-height: 1.7; }

.toc {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 18px;
}
.toc a { color: #60a5fa; text-decoration: none; font-size: 14px; }
.toc a:hover { text-decoration: underline; }

.profile { text-align: center; }
.ad { width: min(980px, 100%); margin: 10px auto 24px; padding: 0 8px; }
.avatar {
  width: 88px; height: 88px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2);
  display: block; margin: 4px auto 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.links {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(980px, 100%);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(17,24,39,0.75));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
}

.btn-outline {
  background: rgba(17,24,39,0.35);
  border-color: rgba(255,255,255,0.18);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 60px at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.18), transparent 40%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.btn:hover { 
  transform: translateY(-6px) scale(1.02); 
  border-color: rgba(255,255,255,0.3);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    0 0 20px rgba(99,102,241,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn:hover::before { opacity: 1; }

.btn:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

/* Soulignement animé dans le texte */
.label {
  position: relative;
}
.label::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}
.btn:hover .label { text-shadow: 0 0 16px rgba(99,102,241,0.35); }
.btn:hover .label::after { transform: scaleX(1); }

.btn:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Amélioration du contraste pour les liens */
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  padding: 2px 4px;
}

/* Amélioration du contraste pour les textes */
.brand {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.ico { display: inline-flex; opacity: .9; }

/* Ripple element */
.ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.0) 60%);
  width: 8px; height: 8px; opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .links > li { transition: none !important; }
}

.footer {
  display: flex; gap: 18px; justify-content: center; margin: 18px auto 0; width: min(980px, 100%);
}
.footer a { color: #60a5fa; text-decoration: none; font-size: 14px; }
.footer a:hover { text-decoration: underline; }

/* Contact page styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.contact-item {
  padding: 20px;
  background: rgba(17,24,39,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
}

.contact-item h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  color: var(--text);
}

.contact-item a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* 404 page styles */
.error-content {
  margin: 32px 0;
  text-align: center;
}

.error-content h2 {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--text);
}

.error-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 300px;
  margin: 0 auto;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.loading-logo {
  margin-bottom: 32px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  animation: rotate 2s linear infinite;
}

.logo-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  animation: pulse 1.5s ease-in-out infinite;
}

.logo-inner {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 1;
  position: relative;
}

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

.loading-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 16px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

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

/* Une seule colonne sur toutes largeurs */


