/* Base */
:root {
  --bg: #0b1320;
  --bg-soft: #111a2b;
  --text: #e6edf3;
  --muted: #9fb3c8;
  --primary: #2dd4bf;
  --primary-600: #14b8a6;
  --accent: #60a5fa;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --gradient: linear-gradient(135deg, #2dd4bf 0%, #60a5fa 100%);
  --gradient-soft: linear-gradient(135deg, rgba(45,212,191,0.1) 0%, rgba(96,165,250,0.1) 100%);
}

* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(45,212,191,.08), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.container { width: min(1100px, 92%); margin: 0 auto; padding-left: 12px; padding-right: 12px; }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap { gap: 1rem; }

/* Navigation */
.main-nav {
  background: rgba(11, 19, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Header styles */
body { padding-top: env(safe-area-inset-top, 24px); }
@supports (padding-top: constant(safe-area-inset-top)) {
  body { padding-top: constant(safe-area-inset-top); }
}

.hero { padding-top: calc(4rem + 1rem); }
.brand { display: inline-flex; gap: .6rem; align-items: center; color: var(--text); text-decoration: none; }
.brand .logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #052e2b; font-weight: 900; }
.brand-name { font-weight: 700; }

/* main-nav removed */
/* mobile menu rules removed */

.nav-toggle { display: none; background: transparent; color: var(--text); border: none; font-size: 1.5rem; }
/* mobile menu rules removed */

/* Hero */
.hero {
  padding: 6rem 0 3rem;
  text-align: center;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin: 0 0 .8rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 1rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s both;
}

.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.8s; }

.stat-counter {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.cta-group {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.9s both;
}

/* Sections */
.section { padding: 3rem 0; }
.section h2 { font-size: 1.8rem; margin: 0 0 1rem; }

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

.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin: 0 0 1rem 0;
  text-align: center;
  font-size: 1.4rem;
  color: var(--text);
}

.card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-soft);
  margin: 0 auto 1rem;
  font-size: 24px;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card p {
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
  line-height: 1.5;
}

.card-features {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-tag {
  background: var(--gradient-soft);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(45, 212, 191, 0.3);
  text-align: center;
}

.card .btn {
  margin-top: auto;
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.pricing .card {
  text-align: center;
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.pricing .card .btn {
  margin-top: auto;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
}

/* FAQ */
.faq-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; }
.faq-item > summary { cursor: pointer; font-weight: 600; }

/* Contact */
.contact-form { margin-top: 1rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 1rem; }
.field { flex: 1 1 280px; min-width: 220px; }
label { display: block; margin-bottom: .35rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #0e192d; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
small.error { color: var(--danger); display: block; min-height: 1.1rem; }
.hint { color: var(--muted); font-size: .9rem; }

/* Contact contrast improvements */
.contact-whatsapp { color: #ffffff; font-weight: 600; }
.contact-email { color: #ffffff; font-weight: 600; }
.contact-phone { color: #fbbf24; font-weight: 700; }
.zone-info { color: var(--muted); font-style: italic; }

.consent, .remember { display: flex; align-items: center; gap: .5rem; max-width: 600px; color: var(--muted); }
.consent input, .remember input { width: auto; }

.consent-fieldset {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.consent-fieldset legend {
  font-weight: 600;
  color: var(--text);
  padding: 0 0.5rem;
}

.required {
  color: var(--danger);
  font-weight: bold;
}

.fieldset { border: none; margin: 0; padding: 0; }

/* Contact quick links removed */

/* Footer */
.site-footer { margin-top: 2rem; background: #0a1120; border-top: 1px solid rgba(255,255,255,.06); position: relative; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; padding: 1.6rem 0; align-items: start; }
.plain { list-style: none; margin: 0; padding: 0; }

/* Lien Mentions légales visible en blanc */
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; padding: .6rem .7rem; border-radius: 999px; background: var(--accent); color: #031223; border: none; box-shadow: var(--shadow); cursor: pointer; display: none; }
.back-to-top.show { display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .06s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #052e2b; }
.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-outline::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-outline:hover::before {
  left: 100%;
}

.btn-outline:hover {
  color: #052e2b;
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.3);
}
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.12); }

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    gap: 0;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(11, 19, 32, 0.98);
    backdrop-filter: blur(20px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .container {
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 0;
  }
  .hero {
    padding: 3rem 0 2rem;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }
  .section { padding: 2rem 0; }
  .section h2 { font-size: 1.5rem; }
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card {
    padding: 1rem;
    min-height: 350px;
  }
  .row { flex-direction: column; }
  .cta-group {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
  }
  .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
  }
  .field { flex: 1 1 100%; min-width: auto; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .back-to-top {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.5rem;
  }

  /* Navigation mobile optimisée */
    .nav-brand {
      flex: 1;
    }
  
    .theme-controls {
      order: 2;
    }
  
    .nav-toggle {
      order: 3;
    }
  
    /* Menu hamburger discret */
    .nav-toggle {
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      transition: opacity 0.3s ease;
    }
  
    .nav-toggle:hover {
      opacity: 0.7;
    }
  
    .hamburger-line {
      display: block;
      width: 20px;
      height: 2px;
      background: currentColor;
      margin: 3px 0;
      transition: all 0.3s ease;
    }
  
    /* Navigation qui disparaît au scroll */
    .main-nav {
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
  
    .main-nav.hidden {
      transform: translateY(-100%);
      opacity: 0;
    }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 1.5rem; }
  .hero h1 { font-size: 1.3rem; line-height: 1.3; }
  .hero p { font-size: 0.95rem; }
  .section h2 { font-size: 1.3rem; }
  .btn { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
  .contact-form { padding: 0.8rem; }
  input, select, textarea { padding: 0.6rem; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --muted: #cccccc;
    --bg: #000000;
    --bg-soft: #111111;
  }
  .card { border-width: 2px; }
  .btn-outline { border-width: 2px; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Theme support */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #1a202c;
  --muted: #4a5568;
  --primary: #2d5a87;
  --primary-600: #2c5282;
  --accent: #3182ce;
  --shadow: 0 10px 30px rgba(0,0,0,.1);
}

[data-theme="light"] .card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 6px rgba(0,0,0,.07);
}

[data-theme="light"] .contact-form {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(0,0,0,.15);
}

[data-theme="light"] .faq-item {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
}

[data-theme="light"] .btn-primary {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="light"] .btn-outline {
  background: rgba(255,255,255,.9);
  color: var(--text);
  border-color: var(--primary);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,.04);
  color: var(--text);
}

[data-theme="light"] .main-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .site-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-top-color: rgba(0,0,0,.08);
}

[data-theme="light"] .hero {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(45,212,191,.03), transparent),
              linear-gradient(180deg, #ffffff, #f8fafc);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #2d5a87 0%, #3182ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .brand .logo {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="light"] .back-to-top {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="light"] .footer-grid {
  color: var(--text);
}

[data-theme="light"] .site-footer a {
  color: var(--text);
}

[data-theme="light"] .copyright {
  color: var(--muted);
}

[data-theme="light"] .service-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
}

[data-theme="light"] .service-details {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
}

/* Dark mode support (already dark by default) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
  }

  :root:not([data-theme]) .card {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.1);
  }

  :root:not([data-theme]) .contact-form {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.1);
  }

  :root:not([data-theme]) input,
  :root:not([data-theme]) select,
  :root:not([data-theme]) textarea {
    background: #ffffff;
    color: var(--text);
    border-color: rgba(0,0,0,.2);
  }

  :root:not([data-theme]) .faq-item {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.1);
  }

  :root:not([data-theme]) .btn-primary {
    color: #ffffff;
  }

  :root:not([data-theme]) .btn-outline {
    background: rgba(255,255,255,.8);
    color: var(--text);
  }

  :root:not([data-theme]) .main-nav {
    background: rgba(248, 250, 252, 0.95);
    border-bottom-color: rgba(0,0,0,.1);
  }

  :root:not([data-theme]) .site-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top-color: rgba(0,0,0,.1);
  }
}

/* Print styles */
@media print {
  .back-to-top, .nav-toggle { display: none !important; }
  .hero { padding: 1rem 0; }
  .section { padding: 1rem 0; }
  body { background: white; color: black; }
  .card { border: 1px solid black; background: white; }
  a { color: black; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Focus improvements for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
  border-radius: 6px;
}

/* Améliorations d'accessibilité pour les cartes de service */
.service-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.service-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* États d'accessibilité pour les éléments interactifs */
.nav-link:focus,
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Réduire le mouvement pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .card,
  .btn,
  .service-details {
    transition: none !important;
    animation: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Selection styles */
::selection { background: var(--primary); color: #052e2b; }
::-moz-selection { background: var(--primary); color: #052e2b; }

/* Scrollbar styling for Webkit browsers */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Animations modernes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
  100% { box-shadow: 0 0 5px var(--primary); }
}

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

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

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-color: transparent; }
  51%, 100% { border-color: var(--primary); }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Effets de glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

/* Animations d'entrée améliorées */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animations de pulse et glow */
.pulse {
  animation: pulse 2s infinite;
}

.glow {
  animation: glow 2s infinite;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.gradient-bg {
  background: var(--gradient);
  background-size: 200% 200%;
  animation: gradient 6s ease infinite;
}

/* Effets de typing pour les titres */
.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Boutons avec effets avancés */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn::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:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient);
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
  position: relative;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
  position: relative;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.btn-outline:hover::after {
  opacity: 1;
}

.btn-outline:hover {
  color: #052e2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.3);
}

/* Cartes avec effets 3D */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

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

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(45, 212, 191, 0.3);
}

.card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Fond avec particules statiques (optimisé) */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  width: 2px;
  height: 2px;
}

/* Effets de texte avancés */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 10px var(--primary);
}

.text-pulse {
  animation: pulse 2s infinite;
}

/* Animations de compteur */
.counter {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  display: inline-block;
}

.counter::after {
  content: '+';
  color: var(--accent);
}

/* Effets de scroll parallax */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Micro-interactions */
.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive:hover {
  transform: scale(1.05);
}

.interactive:active {
  transform: scale(0.95);
}

/* Loader animé */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Progress bars animées */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 2s ease;
  border-radius: 4px;
}

/* Notifications toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

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

.toast-success {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast-error {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-info {
  background: rgba(59, 130, 246, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Effets de vagues animées */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%232dd4bf'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%2360a5fa'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886.31,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%232dd4bf'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(1.1); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* Améliorations des sections */
.section {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Animations de texte */
.hero h1 {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-group {
  animation: fadeInUp 1s ease 0.6s both;
}

/* Effets de survol avancés */
.nav-menu a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Animations de succès */
.success-animation {
  animation: bounce 1s ease;
}

/* Loader de formulaire */
.form-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-left: 2px solid var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  margin: 0 auto;
}

/* Améliorations du footer */
.site-footer {
  background: linear-gradient(135deg, #0a1120 0%, #111a2b 100%);
  position: relative;
  overflow: hidden;
}

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

/* Animations de visibilité */
@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;
  }
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

/* Effets de texte avancés */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-stroke {
  -webkit-text-stroke: 1px var(--primary);
  text-stroke: 1px var(--primary);
}

/* Animations de boutons */
.btn-bounce {
  animation: bounce 2s infinite;
}

.btn-glow:hover {
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

/* Fond animé */
.animated-bg {
  background: linear-gradient(-45deg, #0b1320, #111a2b, #1a2332, #0f1d2e);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* Effets de cartes flottantes */
.floating-card {
  transition: all 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Animations de statistiques */
.stat-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  display: inline-block;
  transition: all 0.3s ease;
}

.stat-counter.animate {
  animation: bounce 0.8s ease;
}

/* Effets de texte machine à écrire */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--primary);
  white-space: nowrap;
  animation: typing 2s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

/* Animations de boutons avec icônes */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon svg {
  transition: transform 0.3s ease;
}

.btn-icon:hover svg {
  transform: scale(1.2);
}

/* Effets de glassmorphism avancés */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: inherit;
  pointer-events: none;
}

/* Animations de succès */
.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--primary);
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--primary);
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Styles pour les éléments interactifs ajoutés */

/* Toggle de thème */
.theme-controls {
  margin-right: 1rem;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.theme-toggle:hover::before {
  opacity: 0.2;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.theme-toggle:hover .theme-icon {
  animation: rotate 0.5s ease;
  transform: scale(1.1);
}

/* Styles pour le thème clair */
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.2);
}

/* Navigation améliorée */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Cartes avec fonctionnalités améliorées */
.card-features {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--gradient-soft);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

/* FAQ améliorée */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item[open] .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  animation: fadeInDown 0.3s ease;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Effets de ripple sur les boutons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Toast notifications */
.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-icon {
  font-size: 1.2rem;
}

/* Responsive pour les nouveaux éléments */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .stat-counter {
    font-size: 2rem;
  }

  .floating-element {
    font-size: 1.5rem;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
  }

  .card-features {
    justify-content: center;
  }

  .hero-decoration {
    display: none;
  }
}

/* Animations de révélation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Corrections de bugs généraux */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Correction des sauts de layout */
img, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Empêcher le zoom sur les inputs mobiles */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Correction des bordures qui disparaissent */
.card, .service-card, .service-details {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Amélioration de la stabilité des animations */
.service-card, .card, .btn {
  will-change: transform;
}

.service-card:not(:hover), .card:not(:hover), .btn:not(:hover) {
  will-change: auto;
}

/* Correction pour les thèmes */
[data-theme] {
  color-scheme: var(--data-theme);
}

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

/* Styles pour les services principaux */
.main-services {
  padding: 3rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(255,255,255,.05);
}

.service-card .service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.service-card .service-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.service-card .service-price {
  margin: 1.5rem 0;
}

.service-card .starting-from {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.service-card .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  display: block;
}

.service-card .service-features {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.service-card .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.service-card .feature-icon {
  color: var(--primary);
  font-size: 1rem;
}

.service-card .service-toggle {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.service-card .toggle-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.service-card .toggle-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Section des détails de service */
.service-details {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  animation: fadeInDown 0.5s ease;
}

.service-details h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Responsive pour les services */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-card {
    padding: 2rem 1.5rem;
    min-height: 380px;
    margin: 0 auto;
    max-width: 400px;
  }

  .service-card .service-icon {
    font-size: 3rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card .price {
    font-size: 1.8rem;
  }

  .service-card .service-features {
    gap: 1rem;
  }

  .service-details {
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 800px;
  }

  .main-services {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
    min-height: 340px;
    max-width: 100%;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card .service-icon {
    font-size: 2.5rem;
  }

  .service-card .price {
    font-size: 1.6rem;
  }

  .service-card .service-description {
    font-size: 0.95rem;
  }

  .service-card .service-features {
    gap: 0.8rem;
  }

  .service-card .feature-item {
    font-size: 0.85rem;
  }
}
