/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  /* Couleurs */
  --bg-main: #0A0E1A;
  --bg-secondary: #0F1420;
  --panel: #111827;
  --border: #1F2937;
  --text-main: #F3F4F6;
  --text-dim: #9CA3AF;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  
  /* Fonts */
  --font-sans: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 26, 0.75) 0%,
    rgba(10, 14, 26, 0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0;
  padding: 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.hero-content p {
  font-size: clamp(0.9rem, 3vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 0.5rem;
  padding: 0;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    height: 280px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .hero-content p {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 240px;
  }

  .hero-content {
    padding: 0.5rem;
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: -0.5px;
  }

  .hero-content p {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(15, 20, 32, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.content {
  flex: 1;
  padding: 4rem 2rem;
  width: 100%;
}

.intro {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.intro h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   CARTES DE LIENS
   ============================================================ */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  width: 100%;
}

.card {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.card-icon {
  font-size: 3rem;
  line-height: 1;
}

.card h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
  width: fit-content;
}

.card-link:hover {
  color: var(--accent-hover);
  gap: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  background: rgba(15, 20, 32, 0.4);
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    aspect-ratio: 16 / 9;
    min-height: 250px;
  }

  .hero-content h1 {
    font-size: clamp(1.3rem, 7vw, 2.5rem);
  }

  .hero-content p {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  }

  .nav {
    gap: 1rem;
  }

  .content {
    padding: 2rem 1rem;
  }

  .intro h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .intro p {
    font-size: clamp(0.9rem, 2vw, 0.95rem);
  }

  .links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .hero-content {
    width: 95%;
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: -0.5px;
  }

  .hero-content p {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .nav {
    gap: 0.8rem;
    padding: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .intro h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }

  .intro p {
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
  }

  .links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}
