<script setup lang="ts">
import { Cloud, CheckCircle, ArrowRight, Zap, Shield, Globe, Server } from "lucide-vue-next";
import { Button } from "@/components/ui/button";
import Header from "@/components/layout/Header.vue";
import Footer from "@/components/layout/Footer.vue";
import { RouterLink } from "vue-router";

const features = [
  "Connexion directe AWS, Azure, GCP",
  "Latence minimale garantie",
  "Bande passante dédiée",
  "Sécurité de niveau entreprise",
  "Évolutivité à la demande",
  "Support expert inclus",
  "Monitoring en temps réel",
  "SLA garanti"
];

const advantages = [
  {
    icon: Globe,
    title: "Multi-cloud",
    description: "Connexion directe vers AWS, Microsoft Azure et Google Cloud."
  },
  {
    icon: Zap,
    title: "Performance",
    description: "Latence minimale pour vos applications cloud critiques."
  },
  {
    icon: Shield,
    title: "Sécurité",
    description: "Connexion privée et sécurisée vers vos environnements cloud."
  },
  {
    icon: Server,
    title: "Évolutivité",
    description: "Augmentez votre bande passante à la demande sans délai."
  }
];
</script>

<template>
  <div class="min-h-screen bg-background">
    <Header />

    <!-- Hero Section -->
    <section class="relative pt-24 pb-16 md:pt-32 md:pb-24 bg-gradient-to-br from-primary/10 via-background to-secondary/10">
      <div class="container mx-auto px-4">
        <div class="max-w-4xl mx-auto text-center">
          <RouterLink to="/business" class="inline-flex items-center text-primary hover:underline mb-6">
            ← Retour aux solutions affaires
          </RouterLink>
          <div class="w-20 h-20 bg-primary/10 rounded-2xl flex items-center justify-center mx-auto mb-6">
            <Cloud class="h-10 w-10 text-primary" />
          </div>
          <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6">
            Services <span class="text-primary">Cloud</span>
          </h1>
          <p class="text-lg md:text-xl text-muted-foreground mb-8 max-w-3xl mx-auto">
            L'innovation sans concessions. Connexion directe vers les principaux fournisseurs infonuagiques.
          </p>
        </div>
      </div>
    </section>

    <!-- Advantages -->
    <section class="py-16">
      <div class="container mx-auto px-4">
        <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8 max-w-5xl mx-auto">
          <div v-for="(advantage, index) in advantages" :key="index" class="text-center">
            <div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4">
              <component :is="advantage.icon" class="h-8 w-8 text-primary" />
            </div>
            <h3 class="text-lg font-semibold text-foreground mb-2">{{ advantage.title }}</h3>
            <p class="text-muted-foreground text-sm">{{ advantage.description }}</p>
          </div>
        </div>
      </div>
    </section>

    <!-- Features -->
    <section class="py-16 bg-muted/30">
      <div class="container mx-auto px-4">
        <div class="max-w-3xl mx-auto">
          <h2 class="text-3xl font-bold text-center text-foreground mb-8">
            Ce qui est inclus
          </h2>
          <div class="grid md:grid-cols-2 gap-4">
            <div v-for="(feature, index) in features" :key="index" class="flex items-center gap-3 bg-background p-4 rounded-lg border">
              <CheckCircle class="h-5 w-5 text-primary flex-shrink-0" />
              <span class="text-foreground">{{ feature }}</span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA -->
    <section class="py-16 md:py-24 bg-primary text-primary-foreground">
      <div class="container mx-auto px-4 text-center">
        <h2 class="text-3xl md:text-4xl font-bold mb-4">
          Prêt à optimiser votre cloud?
        </h2>
        <p class="text-lg opacity-90 mb-8 max-w-2xl mx-auto">
          Connectez-vous directement aux clouds publics avec une latence minimale.
        </p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center">
          <Button size="lg" variant="secondary" class="text-lg px-8" as-child>
            <a href="/#contact">
              Demander une soumission
              <ArrowRight class="ml-2 h-5 w-5" />
            </a>
          </Button>
          <Button size="lg" variant="outline" class="text-lg px-8 border-primary-foreground text-primary-foreground hover:bg-primary-foreground hover:text-primary">
            1-855-888-2746
          </Button>
        </div>
      </div>
    </section>

    <Footer />
  </div>
</template>
