/* WaveLab - Custom CSS Variables and Styles */

:root {
  /* Color Scheme from original Wavelab site */
  --dark-blue-marine: 215 50% 15%; /* hsl(215, 50%, 15%) - Main dark blue */
  --bright-blue: 210 100% 50%; /* hsl(210, 100%, 50%) - Accent blue */
  --light-gray: 220 14% 96%; /* Light background */
  --footer-bg: 215 50% 10%; /* Footer darker blue */
  
  /* Tailwind-compatible HSL format */
  --primary: var(--bright-blue);
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --muted: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  
  /* Custom CSS Variables */
  --container-max-width: 1200px;
  --transition-duration: 300ms;
}

/* Font Family */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Remove Tailwind imports - using CDN version */

/* Custom Tailwind Configuration */
@layer utilities {
  .bg-dark-blue-marine {
    background-color: hsl(var(--dark-blue-marine));
  }
  
  .bg-light-gray {
    background-color: hsl(var(--light-gray));
  }
  
  .bg-footer {
    background-color: hsl(var(--footer-bg));
  }
  
  .text-primary {
    color: hsl(var(--primary));
  }
  
  .border-primary {
    border-color: hsl(var(--primary));
  }
  
  .hover\:text-primary:hover {
    color: hsl(var(--primary));
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: var(--transition-duration);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  outline: 2px solid transparent;
  outline-offset: 2px;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: white;
  padding: 0.5rem 1rem;
  height: 2.5rem;
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-lg {
  height: 2.75rem;
  border-radius: 0.375rem;
  padding: 0.5rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  background-color: transparent;
  color: white;
  padding: 0.5rem;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Card Components */
.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-duration) ease;
  text-align: center; /* Centrer le contenu des cartes */
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card p {
  text-align: left; /* Descriptions alignées à gauche pour la lisibilité */
}

.card-icon {
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  padding: 0.75rem;
  background-color: hsl(var(--primary) / 0.1);
  border-radius: 9999px;
  display: inline-block;
}

/* Service Cards */
.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(var(--primary), 0.1);
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-duration) ease;
  position: relative;
  group: true;
  text-align: center; /* Centrer le contenu des cartes de service */
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.service-icon {
  color: hsl(var(--primary));
  margin: 0 auto 1rem auto;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  transition: background-color var(--transition-duration) ease;
}

.service-card:hover .service-icon {
  background-color: hsl(var(--primary) / 0.3);
}

.service-card p {
  text-align: left; /* Descriptions alignées à gauche pour la lisibilité */
}

/* Step Components */
.step {
  display: flex;
  position: relative;
  margin-bottom: 4rem;
}

.step.last-step {
  margin-bottom: 0;
}

.step-number {
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  z-index: 10;
  flex-shrink: 0;
}

.step-content {
  margin-left: 1.5rem;
  padding-bottom: 4rem;
}

.step::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  width: 0.125rem;
  height: 100%;
  background-color: hsl(214.3 31.8% 91.4%);
  transform: translateX(-50%);
}

.step.last-step::after {
  display: none;
}

/* Pricing Components */
.pricing-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-duration) ease;
  border: 2px solid transparent;
}

.pricing-card.popular {
  border-color: hsl(var(--primary));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(var(--primary));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.pricing-features {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features .feature span {
  color: #374151; /* Couleur plus sombre pour meilleure lisibilité */
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Content Cards */
.content-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #1f2937;
}

.content-card p {
  color: #374151; /* Couleur plus sombre pour les descriptions de contenu */
}

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

.workflow-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #1f2937;
}

.workflow-card p {
  color: #374151; /* Couleur plus sombre pour les descriptions des workflows */
}

.workflow-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Tabs Components */
.tabs-container {
  width: 100%;
  margin-top: 1rem;
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 400px;
  margin: 0 auto 1.5rem;
  background-color: hsl(210 40% 98%);
  padding: 0.25rem;
  border-radius: 0.375rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-duration) ease;
  color: hsl(215.4 16.3% 46.9%);
}

.tab-btn.active {
  background-color: hsl(var(--primary));
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tab-content {
  display: none;
  margin-top: 1rem;
}

.tab-content.active {
  display: block;
}

/* Table Components */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pricing-table thead {
  background-color: hsl(var(--dark-blue-marine));
  color: white;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
}

.pricing-table th {
  font-weight: 600;
  color: white;
}

.pricing-table tbody tr {
  transition: background-color var(--transition-duration) ease;
}

.pricing-table tbody tr:hover {
  background-color: hsl(210 40% 98%);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-discounts {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  margin-top: 1.5rem;
  text-align: center;
}

.custom-pricing {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
  margin-top: 1.5rem;
}

/* Form Components */
.contact-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: white;
  transition: all var(--transition-duration) ease;
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-input:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-color: hsl(var(--primary));
}

.contact-textarea {
  display: flex;
  min-height: 5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: white;
  resize: vertical;
  transition: all var(--transition-duration) ease;
}

.contact-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-textarea:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-color: hsl(var(--primary));
}

/* Social Links */
.social-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-duration) ease;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.social-link:hover {
  color: hsl(var(--primary));
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  background-color: white;
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 1rem;
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform var(--transition-duration) ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

.toast-description {
  font-size: 0.875rem;
  color: #6b7280;
}

.toast-close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  opacity: 0.7;
  transition: opacity var(--transition-duration) ease;
  color: #6b7280;
}

.toast-close:hover {
  opacity: 1;
}

/* Animation Classes */
.animate-fadeIn {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.animation-delay-0 {
  animation-delay: 0s;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-500 {
  animation-delay: 0.5s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

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

/* Intersection Observer Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .tabs-nav {
    width: 100%;
    max-width: 400px;
  }
  
  .pricing-table {
    font-size: 0.75rem;
  }
  
  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .toast {
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
  
  .service-card,
  .pricing-card,
  .content-card,
  .workflow-card {
    margin-bottom: 1.5rem;
  }
}

/* Smooth Scrolling with Offset for Fixed Header */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }
}

/* Loading States */
.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Logo supprimé - header avec texte uniquement */

/* Print Styles */
@media print {
  .no-print,
  header,
  #mobile-menu,
  .toast {
    display: none !important;
  }
}