/* ============================================
   VARIABLES - COULEURS DU LOGO
   ============================================ */
:root {
  /* Couleurs extraites du logo */
  --primary-purple: #6B46C1;      /* Violet du logo */
  --primary-blue: #4299E1;        /* Bleu ciel du logo */
  --accent-purple: #9F7AEA;       /* Mauve clair */
  --accent-blue: #63B3ED;         /* Bleu clair */
  --dark-purple: #553C9A;         /* Violet foncé */
  
  /* Couleurs de base */
  --white: #ffffff;
  --white-soft: #f8f9ff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #cbd5e1;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-900: #1a202c;
  
  /* Gradients basés sur le logo */
  --gradient-main: linear-gradient(135deg, #6B46C1 0%, #4299E1 100%);
  --gradient-soft: linear-gradient(135deg, #9F7AEA 0%, #63B3ED 100%);
  
  --shadow-glow: 0 0 20px rgba(107, 70, 193, 0.3);
  --shadow-normal: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}

/* ============================================
   CANVAS 3D BACKGROUND
   ============================================ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.content-layer {
  position: relative;
  z-index: 1;
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-glow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(107, 70, 193, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 20px rgba(107, 70, 193, 0.05);
}

.navbar {
  padding: 0.8rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
  transition: all 0.3s ease;
}

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

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-purple);
}

.nav-link:hover::before {
  width: 70%;
}

.btn-contact {
  background: var(--gradient-main);
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  box-shadow: var(--shadow-glow);
}

.btn-contact::before {
  display: none;
}

.btn-contact:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-purple);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 20% 50%, rgba(107, 70, 193, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(66, 153, 225, 0.05) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(107, 70, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 70, 193, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  opacity: 0.3;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.cyber-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-soft);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.holo-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-overview {
  padding: 5rem 0;
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-purple);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-purple);
  box-shadow: 0 12px 40px rgba(107, 70, 193, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-weight: 700;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.service-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.service-link:hover {
  gap: 0.75rem;
  color: var(--dark-purple);
}

/* ============================================
   SERVICES DETAIL - TABS SYSTEM
   ============================================ */
.services-detail {
  padding: 4rem 0;
  background: var(--white);
}

.services-tabs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.service-tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.service-tab-btn:hover {
  color: var(--primary-purple);
  background: rgba(107, 70, 193, 0.05);
}

.service-tab-btn.active {
  color: var(--primary-purple);
  border-bottom-color: var(--primary-purple);
  background: rgba(107, 70, 193, 0.05);
}

.services-tabs-content {
  position: relative;
}

.service-tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.service-tab-panel.active {
  display: block;
}

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

.service-detail-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-normal);
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 16px 16px 0 0;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.service-detail-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.service-detail-header h2 {
  font-size: 1.75rem;
  color: var(--gray-900);
  font-weight: 800;
}

.service-detail-header p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.service-detail-content h3 {
  font-size: 1.1rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.service-list li {
  padding: 0.9rem 1.25rem;
  background: var(--gray-100);
  border-radius: 10px;
  border-left: 3px solid var(--primary-purple);
  transition: all 0.3s ease;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.service-list li::before {
  content: '▸';
  color: var(--primary-purple);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  font-weight: 700;
}

.service-list li:hover {
  transform: translateX(8px);
  background: var(--white);
  box-shadow: var(--shadow-normal);
}

/* ============================================
   FEATURES
   ============================================ */
.why-us {
  padding: 5rem 0;
  background: var(--gradient-main);
  color: white;
  position: relative;
}

.why-us .section-title {
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.feature-item:hover {
  transform: scale(1.03) translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 5rem 0;
  background: var(--gray-100);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta-content p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  background: var(--gradient-main);
  color: white;
  position: relative;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ============================================
   ABOUT - TEAM SECTION
   ============================================ */
.about-content {
  padding: 4rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
}

.stat-item {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 600;
}

.mission-section,
.values-section,
.team-section {
  margin-bottom: 4rem;
}

.mission-section h2,
.values-section h2,
.team-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 800;
}

.mission-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-glow);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-weight: 700;
}

.value-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  text-align: center;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(107, 70, 193, 0.15);
  border-color: var(--primary-purple);
}

.team-member-photo{
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
}

.team-member-info {
  padding: 1.5rem;
}

.team-member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.team-member-role {
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.team-member-bio {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-normal);
}

.contact-icon {
  font-size: 2rem;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
  font-weight: 600;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.contact-form-wrapper {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.alert-success {
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid #48bb78;
  color: #2f855a;
}

.alert-error {
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid #f56565;
  color: #c53030;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-900);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--gray-900);
  color: white;
  padding: 4rem 0 2rem;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-blue);
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: calc(100vh - 65px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .holo-card {
    display: none;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .services-tabs-nav {
    gap: 0.25rem;
  }
  
  .service-tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .service-detail-card {
    padding: 1.5rem;
  }
  
  .team-member-photo {
    height: 220px;
  }
}
