:root {
  --primary: #6366f1;
  --secondary: #3b82f6;
  --accent: #06b6d4;
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: url('./fonds/giphy.gif');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo {
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.logo:focus,
.logo:active {
  outline: none;
}

.logo::selection {
  background: transparent;
}

.nav {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.hero {
  padding: 6rem 0;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero > p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero > p:first-of-type {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

#contact {
  padding: 3rem 0;
}

#contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#contact > p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  transform: translateX(5px);
}

.contact-form-section {
  margin-top: 4rem;
}

.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.contact-form {
  background: rgba(30, 41, 59, 0.5);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
}

#projets {
  padding: 3rem 0;
}

#projets h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#projets > p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

.project-header {
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tech-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.project-link:hover {
  transform: translateX(5px);
}

footer {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  margin-top: 4rem;
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav {
    gap: 1.5rem;
    font-size: 0.95rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    margin-bottom: 1.5rem;
  }
}
