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

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --border: rgba(59, 130, 246, 0.1);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #60a5fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.logo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

.cta-btn {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mobile-menu ul {
  list-style: none;
  padding: 20px 24px;
}

.mobile-menu li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.section {
  padding: 60px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.engagements-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.engagements-section:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.engagements-section h3 {
  font-size: 1.8rem;
  margin: 0 auto 30px;
  text-align: center;
  font-weight: 600;
  max-width: 600px;
}

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.engagement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.engagement-bullet {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.engagement-item span {
  font-size: 1.05rem;
  color: var(--text);
}

.partners-section {
  text-align: center;
}

.partners-section h3 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.partners-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.partner-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

/* Design amélioré du logo partenaire */
.partner-logo {
  width: 118px;
  height: 118px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.partner-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-card:hover .partner-logo::before {
  opacity: 1;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo img {
  transform: scale(1.05);
}

.partner-card:hover .partner-logo {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.partner-info {
  text-align: left;
}

.partner-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.partner-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.partner-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.microsoft-partner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
}

.microsoft-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  display: grid;
  place-items: center;
}

.microsoft-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.microsoft-text {
  text-align: left;
}

.microsoft-text .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.microsoft-text .partner-type {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.microsoft-description {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 560px;
  text-align: left; 
}

.cta-section {
  text-align: center;
  margin-top: 60px;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-logo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .burger {
    display: block;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  /* About page responsive */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .engagements-grid {
    grid-template-columns: 1fr;
  }

  .partner-main {
    flex-direction: column;
    text-align: center;
  }

  .partner-info {
    text-align: center;
  }

  .microsoft-partner {
    flex-direction: column;
  }

  .microsoft-text {
    text-align: center;
  }

  .partner-logo {
    width: 70px;
    height: 70px;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s;
  z-index: 100;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.scroll-top.show {
  display: flex;
}