/* IA HOST - CSS Futuriste avec Glassmorphism */

/* Variables CSS pour la palette de couleurs */
:root {
  --navy-deep: #0A0E27;
  --navy-dark: #0F172A;
  --orange-electric: #FF6B35;
  --orange-warm: #F97316;
  --cyan-vibrant: #06B6D4;
  --blue-bright: #3B82F6;
  --violet-neon: #8B5CF6;
  --gray-tech: #1E293B;
  --white: #FFFFFF;
}

/* Animations personnalisées */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  from { box-shadow: 0 0 20px var(--orange-electric); }
  to { box-shadow: 0 0 30px var(--orange-warm), 0 0 40px var(--orange-electric); }
}

@keyframes particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slideInFromLeft {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.4); }
}

/* Reset et base */
* {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 50%, var(--gray-tech) 100%);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  overflow-x: hidden;
}

/* Particules d'arrière-plan */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, var(--cyan-vibrant), var(--violet-neon));
  border-radius: 50%;
  animation: particle 20s linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) {
  animation-delay: -10s;
  animation-duration: 25s;
}

.particle:nth-child(even) {
  animation-delay: -5s;
  animation-duration: 15s;
}

/* Effets Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header avec effet glassmorphism */
.header-glass {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-glass.scrolled {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Boutons avec effets futuristes */
.btn-primary {
  background: linear-gradient(135deg, var(--orange-electric), var(--orange-warm));
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  animation: pulse-glow 2s infinite;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--cyan-vibrant);
  color: var(--cyan-vibrant);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--cyan-vibrant);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--violet-neon);
  color: var(--violet-neon);
  transform: translateY(-1px);
}

/* Cards avec glassmorphism */
.card-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-vibrant), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-glass:hover::before {
  opacity: 1;
}

/* Service cards avec effets spéciaux */
.service-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
  border-color: var(--violet-neon);
}

.service-card:hover::after {
  opacity: 1;
  transform: rotate(-45deg) translate(50%, 50%);
}

/* Testimonial cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 35px;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 107, 53, 0.5);
}

/* FAQ Accordéon */
.faq-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--cyan-vibrant);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px 25px;
  max-height: 200px;
}

/* Progress bars et statistiques */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-electric), var(--cyan-vibrant));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--orange-electric), var(--cyan-vibrant));
  border-radius: 10px;
  width: 0%;
  transition: width 2s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Formes géométriques 3D */
.geometric-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid var(--cyan-vibrant);
}

.shape-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-neon), var(--blue-bright));
}

.shape-square {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange-electric), var(--orange-warm));
  transform: rotate(45deg);
}

/* Timeline process */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-electric), var(--cyan-vibrant));
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, var(--cyan-vibrant), transparent);
}

.timeline-item:last-child::after {
  display: none;
}

/* Modales */
.modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(135deg, var(--navy-dark), var(--gray-tech));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  max-width: 500px;
  width: 90%;
  padding: 40px;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--orange-electric), var(--cyan-vibrant), var(--violet-neon));
  border-radius: 25px;
  z-index: -1;
  opacity: 0.5;
}

/* Formulaires */
.form-group {
  margin-bottom: 25px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan-vibrant);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

/* Badges et étiquettes */
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: var(--white);
}

.badge-warning {
  background: linear-gradient(135deg, var(--orange-electric), var(--orange-warm));
  color: var(--white);
}

.badge-info {
  background: linear-gradient(135deg, var(--cyan-vibrant), var(--blue-bright));
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-glass {
    padding: 20px;
  }
  
  .service-card {
    padding: 25px 20px;
  }
  
  .testimonial-card {
    padding: 25px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .modal-content {
    padding: 25px;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .card-glass {
    padding: 15px;
  }
  
  .service-card {
    padding: 20px 15px;
  }
}

/* Animations d'apparition */
.animate-slide-in-left {
  animation: slideInFromLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.6s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* États de chargement */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--cyan-vibrant);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Effets de survol pour les liens */
.link-glow {
  position: relative;
  color: var(--cyan-vibrant);
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-glow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--orange-electric), var(--cyan-vibrant));
  transition: width 0.3s ease;
}

.link-glow:hover::after {
  width: 100%;
}

.link-glow:hover {
  color: var(--orange-electric);
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}