:root {
  --bg: #0f0f14;
  --bg-secondary: #1a1a24;
  --fg: #f5f5f7;
  --fg-secondary: #a1a1a6;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --purple: #a855f7;
  --purple-light: #c084fc;
  --orange: #f97316;
  --orange-light: #fb923c;
  --pink: #ec4899;
  --green: #10b981;
  --border: #2d2d3f;
  --card-bg: #1f1f2e;
  --radius: 20px;
  --max-width: 980px;
  --font-main: 'Lexend', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.4);
}

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

body {
  margin: 0;
  padding: 0 1.5rem 2rem;
  background: var(--bg);
  background-image: 
    radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  max-width: var(--max-width);
  margin: auto;
  margin-top: 1rem;
  position: relative;
}

@media (max-width: 768px) {
  header {
    padding: 2rem 1rem 1.5rem;
    margin-top: 0.5rem;
  }
}

h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
  }
}

.subtitle {
  font-size: 1.3rem;
  color: var(--fg-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

.cta {
  display: inline-block;
  background: var(--accent);
  padding: 0.85rem 2rem;
  border-radius: 980px;
  font-size: 1.05rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  letter-spacing: -0.01em;
  position: relative;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.cta:active {
  transform: translateY(0);
}

section {
  max-width: var(--max-width);
  margin: 1rem auto;
  padding: 2rem 1.5rem;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 1.5rem 1rem;
    margin: 0.5rem auto;
  }
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  margin-top: 3rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
  }
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: rgba(31, 31, 46, 0.6);
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: rgba(31, 31, 46, 0.8);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.services .card:nth-child(2) .card-icon {
  background: var(--purple);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.services .card:nth-child(2):hover .card-icon {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.services .card:nth-child(3) .card-icon {
  background: var(--green);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.services .card:nth-child(3):hover .card-icon {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--fg-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
  margin: 0;
}

footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--fg-secondary);
  font-size: 0.95rem;
  background: transparent;
  margin: 2rem auto;
  max-width: var(--max-width);
}

/* Protection anti-spam : masquer le honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.email-protected {
  cursor: pointer;
  transition: color 0.3s ease;
}

.email-protected:hover {
  color: var(--accent-hover);
}

/* Section Réalisations */
.project-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(31, 31, 46, 0.6);
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: rgba(31, 31, 46, 0.8);
}

.project-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 20px;
  margin: 0 0 1.5rem 0;
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.project-info h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-info p {
  color: var(--fg-secondary);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.4rem 0.9rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}




