/* ==========================================
   STYLE.CSS - BubbleWeb Global
   Dark Mode + Bulles flottantes animées
   ========================================== */

/* ===== VARIABLES CSS ===== */
:root {
  /* Couleurs principales - Palette cyan/bleu/violet basée sur le logo */
  --color-primary: #22D3EE;
  --color-primary-dark: #0891B2;
  --color-primary-light: #67E8F9;

  --color-secondary: #A855F7;
  --color-secondary-dark: #7C3AED;

  --color-accent: #C084FC;
  --color-accent-dark: #8B5CF6;

  /* Couleur bleu intermédiaire */
  --color-blue: #3B82F6;
  --color-blue-light: #60A5FA;
  --color-blue-dark: #2563EB;
  --color-blue-glow: rgba(59, 130, 246, 0.4);

  /* Alias pour compatibilité (ancienne palette warm → nouvelle palette) */
  --color-warm: #22D3EE;
  --color-warm-light: #67E8F9;
  --color-warm-dark: #0891B2;
  --color-warm-glow: rgba(34, 211, 238, 0.4);
  --color-amber: #3B82F6;
  
  /* Texte */
  --color-text: #F1F5F9;
  --color-text-light: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-dark: #1E293B;
  
  /* Backgrounds */
  --color-bg: #0F172A;
  --color-bg-light: #1E293B;
  --color-bg-lighter: #334155;
  --color-bg-card: rgba(30, 41, 59, 0.8);
  --color-bg-white: #FFFFFF;
  
  /* Borders */
  --color-border: rgba(148, 163, 184, 0.2);
  --color-border-light: rgba(148, 163, 184, 0.1);
  --color-border-glow: rgba(34, 211, 238, 0.3);
  
  /* Feedback */
  --color-success: #34D399;
  --color-error: #FB7185;
  --color-warning: #FBBF24;
  
  /* Gradients */
  --gradient-bubble: linear-gradient(135deg, #22D3EE 0%, #3B82F6 33%, #8B5CF6 66%, #C084FC 100%);
  --gradient-bubble-soft: linear-gradient(135deg, rgba(34,211,238,0.15) 0%, rgba(59,130,246,0.15) 33%, rgba(139,92,246,0.15) 66%, rgba(192,132,252,0.15) 100%);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Quicksand', var(--font-sans);
  --font-mono: "SF Mono", Monaco, monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 30px rgba(34, 211, 238, 0.3);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-bubble: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(34, 211, 238, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 3rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ===== FOND ANIMÉ - BULLES FLOTTANTES ===== */
.bubbles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -150px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

/* Différentes tailles et couleurs de bulles - Palette cyan/bleu/violet */
.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 5%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.1));
  animation-duration: 20s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 40px;
  height: 40px;
  left: 15%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
  animation-duration: 25s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 120px;
  height: 120px;
  left: 25%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.05));
  animation-duration: 30s;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 60px;
  height: 60px;
  left: 40%;
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.4), rgba(192, 132, 252, 0.1));
  animation-duration: 22s;
  animation-delay: 1s;
}

.bubble:nth-child(5) {
  width: 100px;
  height: 100px;
  left: 55%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.35), rgba(34, 211, 238, 0.08));
  animation-duration: 28s;
  animation-delay: 6s;
}

.bubble:nth-child(6) {
  width: 50px;
  height: 50px;
  left: 65%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.1));
  animation-duration: 18s;
  animation-delay: 3s;
}

.bubble:nth-child(7) {
  width: 90px;
  height: 90px;
  left: 75%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.08));
  animation-duration: 26s;
  animation-delay: 5s;
}

.bubble:nth-child(8) {
  width: 35px;
  height: 35px;
  left: 85%;
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.5), rgba(192, 132, 252, 0.12));
  animation-duration: 20s;
  animation-delay: 7s;
}

.bubble:nth-child(9) {
  width: 70px;
  height: 70px;
  left: 92%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.4), rgba(34, 211, 238, 0.1));
  animation-duration: 24s;
  animation-delay: 2s;
}

.bubble:nth-child(10) {
  width: 55px;
  height: 55px;
  left: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.1));
  animation-duration: 21s;
  animation-delay: 8s;
}

.bubble:nth-child(11) {
  width: 45px;
  height: 45px;
  left: 35%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
  animation-duration: 23s;
  animation-delay: 4s;
}

.bubble:nth-child(12) {
  width: 110px;
  height: 110px;
  left: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.3), rgba(192, 132, 252, 0.05));
  animation-duration: 32s;
  animation-delay: 1s;
}

@keyframes floatUp {
  0% {
    bottom: -150px;
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
  10% {
    opacity: 0.6;
    transform: translateX(10px) scale(1);
  }
  50% {
    transform: translateX(-20px) scale(1.05);
  }
  90% {
    opacity: 0.6;
    transform: translateX(15px) scale(1);
  }
  100% {
    bottom: calc(100% + 150px);
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
}

/* ===== CONTENEUR TRAÎNÉE SOURIS ===== */
.mouse-trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.trail-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ===== CONTENU PRINCIPAL ===== */
main,
.main-content {
  position: relative;
  z-index: 2;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: 0.5em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: 1em;
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: var(--line-height-relaxed);
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ===== SECTION ===== */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 40rem;
  margin: 0 auto;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-md);
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--color-text-light);
  max-width: 42rem;
  margin: 0 auto var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-bubble);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(34, 211, 238, 0.4);
  color: var(--color-text-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  border: 2px solid var(--color-border-glow);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.btn-link {
  background: transparent;
  color: var(--color-primary);
  padding: 0.5rem 0;
  border-radius: 0;
}

.btn-link:hover {
  color: var(--color-primary-light);
}

.btn-link::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform var(--transition-fast);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ===== CARDS ===== */
.cards,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  padding: var(--space-md);
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-bubble);
  border-color: var(--color-border-glow);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-price {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.card-price strong {
  font-size: var(--font-size-lg);
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(15, 23, 42, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--color-primary);
  background: rgba(34, 211, 238, 0.1);
}

/* Menu hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-light);
  color: var(--color-text);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-bubble);
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn var(--transition-base);
}

.modal-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  animation: bubbleIn var(--transition-slow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.modal-title {
  font-size: var(--font-size-3xl);
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.modal-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

/* ===== FORMS ===== */
.contact-form {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  background: var(--color-bg);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--color-text-muted);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15), var(--shadow-glow-blue);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }

.text-gradient {
  background: var(--gradient-bubble);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --space-2xl: 3rem;
    --container-padding: 1rem;
  }
  
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .cards,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  /* Réduire les bulles sur mobile */
  .bubble {
    transform: scale(0.6);
  }
}

/* ===== RÉDUCTION ANIMATIONS SI PRÉFÉRENCE ===== */
@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    opacity: 0.3;
    bottom: 50%;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}