@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

    :root {
      --bg: #0a0e1a;
      --card: #111827;
      --muted: #9ca3af;
      --accent: #06b6d4;
      --glass: rgba(255, 255, 255, 0.05);
      --text: #f8fafc;
      --success: #10b981;
      --danger: #ef4444;
      --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
      --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.4));
      --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
      --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    [data-theme="light"] {
      --bg: #f8fafc;
      --card: #ffffff;
      --muted: #64748b;
      --accent: #0ea5e9;
      --glass: rgba(15, 23, 42, 0.05);
      --text: #0f172a;
      --gradient-primary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
      --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.6));
      --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
      --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

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

    html, body {
      height: 100%;
      font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
    }

    body {
      background: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                  radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                  var(--bg);
      position: relative;
    }

    /* Floating background elements */
    body::before {
      content: '';
      position: fixed;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%2306b6d4" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="0.5" fill="%237c3aed" opacity="0.2"><animate attributeName="opacity" values="0.2;0.4;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="30" cy="70" r="1.5" fill="%2306b6d4" opacity="0.1"><animate attributeName="opacity" values="0.1;0.2;0.1" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
      pointer-events: none;
      z-index: -1;
    }

    a {
      color: var(--accent);
      text-decoration: none;
      transition: all 0.3s ease;
    }

    /* Layout */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
    }

    /* Header */
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem 0;
      position: relative;
      z-index: 100;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .logo {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      background: var(--gradient-accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.2rem;
      color: white;
      box-shadow: var(--shadow-glow);
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .logo::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transform: rotate(45deg);
      animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
      0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
      100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }

    .logo:hover {
      transform: scale(1.05) rotate(5deg);
      box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
    }

    .brand-text h1 {
      font-weight: 800;
      font-size: 1.8rem;
      background: var(--gradient-accent);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .brand-text .subtitle {
      color: var(--muted);
      font-size: 0.75rem;
      font-weight: 500;
      margin-top: 0.2rem;
    }

    nav {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    nav a {
      color: var(--muted);
      font-weight: 500;
      position: relative;
      transition: all 0.3s ease;
    }

    nav a:hover {
      color: var(--accent);
      transform: translateY(-2px);
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--gradient-accent);
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }

    nav a:hover::after {
      width: 100%;
    }

    .btn {
      background: var(--gradient-accent);
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 12px;
      border: none;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    }

    .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%;
    }

    .ghost {
      background: var(--glass);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0.75rem 1rem;
      border-radius: 12px;
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
    }

    .ghost:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    /* Hero Section */
    .hero {
      display: grid;
      grid-template-columns: 1fr 420px;
      gap: 2rem;
      margin-top: 2rem;
      align-items: start;
    }

    .hero-card {
      background: var(--gradient-card);
      backdrop-filter: blur(20px);
      padding: 2.5rem;
      border-radius: 24px;
      box-shadow: var(--shadow-card);
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }

    .hero-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1.5rem;
      background: linear-gradient(135deg, var(--text), var(--muted));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .lead {
      color: var(--muted);
      line-height: 1.6;
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .features {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .chip {
      background: var(--glass);
      backdrop-filter: blur(10px);
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.85rem;
      color: var(--accent);
      border: 1px solid rgba(6, 182, 212, 0.2);
      transition: all 0.3s ease;
    }

    .chip:hover {
      background: rgba(6, 182, 212, 0.1);
      transform: translateY(-2px);
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .pricing {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .price {
      font-weight: 800;
      font-size: 1.3rem;
      color: var(--accent);
    }

    /* Sidebar Cards */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .card {
      background: var(--gradient-card);
      backdrop-filter: blur(20px);
      padding: 1.5rem;
      border-radius: 16px;
      box-shadow: var(--shadow-card);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
    }

    .card-title {
      font-weight: 800;
      font-size: 1.1rem;
    }

    .card-subtitle {
      color: var(--muted);
      font-size: 0.8rem;
      margin-top: 0.25rem;
    }

    .kbd {
      background: rgba(0, 0, 0, 0.3);
      padding: 0.3rem 0.6rem;
      border-radius: 8px;
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 600;
      border: 1px solid rgba(6, 182, 212, 0.2);
    }

    /* Services Grid */
    .services {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .service {
      background: var(--gradient-card);
      backdrop-filter: blur(20px);
      padding: 1.5rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    .service::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 2px;
      background: var(--gradient-accent);
      transition: left 0.5s ease;
    }

    .service:hover::before {
      left: 0;
    }

    .service:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: var(--shadow-card);
    }

    .service h3 {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      color: var(--text);
    }

    .service p {
      color: var(--muted);
      line-height: 1.5;
      font-size: 0.95rem;
    }

    /* About Section */
    .about {
      display: flex;
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .about .card {
      flex: 1;
    }

    .about ul {
      padding-left: 1.5rem;
    }

    .about li {
      margin-bottom: 0.5rem;
      color: var(--muted);
    }

    .about strong {
      color: var(--accent);
    }

    /* Testimonials */
    .testimonials {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .testimonial {
      background: var(--gradient-card);
      backdrop-filter: blur(20px);
      padding: 1.5rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      position: relative;
    }

    .testimonial::before {
      content: '"';
      position: absolute;
      top: -0.5rem;
      left: 1rem;
      font-size: 4rem;
      color: var(--accent);
      opacity: 0.3;
      font-family: serif;
    }

    .testimonial:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-card);
    }

    .testimonial-author {
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .testimonial-text {
      color: var(--muted);
      font-style: italic;
      line-height: 1.5;
    }

    /* Contact Section */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 1.5rem;
      margin-top: 1rem;
    }

    form {
      display: grid;
      gap: 1.5rem;
    }

    .form-group {
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-size: 0.85rem;
      color: var(--accent);
      font-weight: 600;
      margin-bottom: 0.5rem;
      transition: all 0.3s ease;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      background: var(--glass);
      backdrop-filter: blur(20px);
      border: 2px solid rgba(255, 255, 255, 0.1);
      padding: 1rem 1.25rem;
      border-radius: 16px;
      color: var(--text);
      font-size: 0.95rem;
      font-family: inherit;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      z-index: 1;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15),
                  0 8px 32px rgba(6, 182, 212, 0.1);
      background: rgba(6, 182, 212, 0.05);
      transform: translateY(-2px);
    }

    .form-group input:focus + .form-floating-label,
    .form-group textarea:focus + .form-floating-label,
    .form-group select:focus + .form-floating-label {
      color: var(--accent);
      transform: translateY(-8px) scale(0.85);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: var(--muted);
      transition: all 0.3s ease;
    }

    .form-group input:focus::placeholder,
    .form-group textarea:focus::placeholder {
      opacity: 0;
      transform: translateX(10px);
    }

    /* Floating input effect */
    .form-group.floating {
      position: relative;
    }

    .form-floating-label {
      position: absolute;
      left: 1.25rem;
      top: 1rem;
      color: var(--muted);
      font-size: 0.95rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
      background: linear-gradient(to right, var(--card) 0%, var(--card) 100%);
      padding: 0 0.5rem;
      z-index: 2;
    }

    .form-group.floating input:focus + .form-floating-label,
    .form-group.floating input:not(:placeholder-shown) + .form-floating-label,
    .form-group.floating textarea:focus + .form-floating-label,
    .form-group.floating textarea:not(:placeholder-shown) + .form-floating-label {
      transform: translateY(-1.8rem) scale(0.85);
      color: var(--accent);
      font-weight: 600;
    }

    .form-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
      margin-top: 0.5rem;
    }

    .btn-submit {
      background: var(--gradient-accent);
      color: white;
      padding: 1rem 2rem;
      border-radius: 16px;
      border: none;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
      min-width: 180px;
    }

    .btn-submit:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4);
    }

    .btn-submit:active {
      transform: translateY(-1px);
    }

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

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

    .btn-submit.loading {
      pointer-events: none;
      opacity: 0.7;
    }

    .btn-submit.loading::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top: 2px solid white;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .btn-submit.success {
      background: var(--success);
      box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    }

    #formStatus {
      font-size: 0.9rem;
      color: var(--muted);
      font-weight: 500;
      transition: all 0.3s ease;
    }

    #formStatus.success {
      color: var(--success);
    }

    #formStatus.error {
      color: var(--danger);
    }

    /* Footer */
    footer {
      margin-top: 3rem;
      padding: 2rem 0;
      color: var(--muted);
      text-align: center;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Animations et effets avancés */
    @keyframes fadeInUp {
      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%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0px) rotate(0deg);
      }
      25% {
        transform: translateY(-10px) rotate(1deg);
      }
      50% {
        transform: translateY(-5px) rotate(-1deg);
      }
      75% {
        transform: translateY(-15px) rotate(0.5deg);
      }
    }

    @keyframes glow {
      0%, 100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
      }
      50% {
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
      }
    }

    /* Particules flottantes */
    .floating-particles {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: -1;
    }

    .particle {
      position: absolute;
      background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
      border-radius: 50%;
      animation: float 8s ease-in-out infinite;
    }

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

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

    /* Animations spécifiques aux éléments */
    .logo {
      animation: glow 4s ease-in-out infinite;
    }

    .hero-card {
      animation: fadeInUp 1s ease-out 0.2s both;
    }

    .sidebar .card:nth-child(1) {
      animation: fadeInRight 1s ease-out 0.4s both;
    }

    .sidebar .card:nth-child(2) {
      animation: fadeInRight 1s ease-out 0.6s both;
    }

    .service:nth-child(1) { animation: fadeInUp 1s ease-out 0.1s both; }
    .service:nth-child(2) { animation: fadeInUp 1s ease-out 0.2s both; }
    .service:nth-child(3) { animation: fadeInUp 1s ease-out 0.3s both; }
    .service:nth-child(4) { animation: fadeInUp 1s ease-out 0.4s both; }

    .testimonial:nth-child(1) { animation: fadeInLeft 1s ease-out 0.2s both; }
    .testimonial:nth-child(2) { animation: fadeInRight 1s ease-out 0.4s both; }

    /* Hover effects avancés */
    .card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.05) 0%,
        rgba(139, 92, 246, 0.05) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
      border-radius: inherit;
    }

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

    /* Effet de typing pour le titre */
    .typing-effect::after {
      content: '|';
      color: var(--accent);
      animation: blink 1s infinite;
    }

    @keyframes blink {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }

    /* Effet parallax léger */
    .parallax-element {
      transition: transform 0.1s ease-out;
    }

    /* Section Titles */
    .section-title {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 1rem;
      background: var(--gradient-accent);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -0.5rem;
      left: 0;
      width: 60px;
      height: 3px;
      background: var(--gradient-accent);
      border-radius: 2px;
    }

    /* Responsive Design */
    @media (max-width: 920px) {
      .container {
        padding: 1rem;
      }

      .hero {
        grid-template-columns: 1fr;
      }

      .hero h1 {
        font-size: 2rem;
      }

      nav {
        gap: 1rem;
      }

      nav a span {
        display: none;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .about {
        flex-direction: column;
      }
    }

    @media (max-width: 640px) {
      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .features {
        justify-content: center;
      }

      nav {
        display: none;
      }
    }