/* =================================================== */
/* Fichier : accueil.css                               */
/* Description : Styles experts pour la page d'accueil */
/* Auteur : QuantisDigitale                            */
/* =================================================== */
body {
    width:100%;
    overflow-x:hidden;
    box-sizing:border-box;
}

/* ========================= */
/* ==== SECTION HERO ======= */
/* ========================= */

.hero {
  background: linear-gradient(to right, #2361ff, #00e6d8);
  padding: 6vh 2rem 4vh;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  animation: gradientAnimation 15s ease infinite;
  background-size: 400% 400%;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero .contenu {
  max-width: 820px;
  margin: 0 auto;
}

/* === Apparition fluide en cascade === */
.hero h1, .hero h2, .hero p, .hero .cta {
  opacity: 0;
  transform: translateY(20px);
  animation: apparitionFadeUp 0.8s ease forwards;
}
.hero h1 { animation-delay: 0.2s; }
.hero h2 { animation-delay: 0.4s; }
.hero p  { animation-delay: 0.6s; }
.hero .cta { animation-delay: 0.8s; }

@keyframes apparitionFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Titre principal === */
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* === Accent marque (Digitale) avec halo léger === */
.hero .accent {
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.hero .accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
  border-radius: 6px;
  animation: pulseLight 4s ease-in-out infinite;
}

/* === Sous-titre (Expertise Web & Serveur de jeu) === */
.hero h2 {
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--couleur-bg);
  position: relative;
  z-index: 1;
}

.hero h2 .highlight,
.hero h2 .highlight-alt {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 700;
}

/* === Halo subtil sans encadré visible === */
.hero h2 .highlight::after,
.hero h2 .highlight-alt::after {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  filter: blur(5px);
  z-index: -1;
  border-radius: 4px;
  animation: pulseLight 4s ease-in-out infinite;
}

/* === Animation de halo === */
@keyframes pulseLight {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

/* === Petit sous-texte "sur-mesure" === */
.hero h2 .surmesure {
  font-size: 1rem;
  font-weight: 500;
  color: var(--couleur-bg-menu);
  display: block;
  margin-top: 0.4rem;
}

/* === Slogan / texte descriptif === */
.hero .slogan {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--couleur-bg-menu);
  margin-bottom: 2rem;
}
.hero .slogan .rgpd {
  color: #fff;
  font-weight: bold;
}

/* === CTA avec effet halo doux === */
.hero .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--couleur-primaire);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--ombre-globale);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero .cta:hover {
  background: var(--couleur-accent);
  color: #fff;
}

.hero .cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: pulseGlow 4s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}


/* ---------- SECTION SERVICES WEB ---------- */
.services-web {
  padding: 4rem 2rem;
  background: #ffffff;
}
.services-web h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #22305a;
}
.services-web .cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  max-width: 1250px;
  margin: 0 auto;
}
.services-web .carte {
  background: #f7faff;
  padding: 2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.services-web .carte i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2361ff;
}
.services-web .carte h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #22305a;
}
.services-web .carte p {
  font-size: 1rem;
  color: #3e4a67;
}

/* ---------- SECTION SERVICES SERVEURS ---------- */
.services-serveurs {
  padding: 4rem 2rem;
  background: #eef4ff;
}
.services-serveurs h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #22305a;
}
.services-serveurs .cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  max-width: 1250px;
  margin: 0 auto;
}
.services-serveurs .carte {
  background: #ffffff;
  padding: 2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.services-serveurs .carte i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2ec4b6;
}
.services-serveurs .carte h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #22305a;
}
.services-serveurs .carte p {
  font-size: 1rem;
  color: #3e4a67;
}

/* ---------- SECTION CTA PROJET ---------- */
.cta-projet {
  background:linear-gradient(120deg, #2361ff, #00e6d8);
  padding:6vh 2rem 7vh;
  text-align:center;
  position:relative;
  overflow:hidden;
  z-index:1;
}
.cta-projet::before {
  content:"";
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,255,255,0.07)0%, transparent 80%);
  animation:pulselight 12s infinite ease-in-out;
  z-index:0;
}
.cta-projet h2 {
  color:#ffffff;
  font-size:2rem;
  font-weight:800;
  margin-bottom:1.5rem;
  position:relative;
  z-index:2;
  letter-spacing:-0.5px;
}
/* Mise en valeur du "Parlons-en" */
.cta-projet .surbrillance {
  position:relative;
  color:#ffffff;
}
.cta-projet .surbrillance::after {
  content:"";
  position:absolute;
  top:0;
  left:-6px;
  right:-6px;
  bottom:0;
  background:radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter:blur(6px);
  z-index:-1;
  border-radius:8px;
  animation:pulselight 8s infinite ease-in-out;
}
/* CTA bouton */
.cta-projet .cta {
  display:inline-block;
  padding:0.9rem 2rem;
  font-size:1.1rem;
  font-weight:600;
  border-radius:var(--radius);
  background:#fff;
  color:var(--couleur-primaire);
  text-decoration:none;
  box-shadow:var(--ombre-globale);
  transition:all 0.3s ease;
  position:relative;
  z-index:2;
}
.cta-projet .cta:hover {
  background:var(--couleur-accent);
  color:#fff;
}
@keyframes pulseLight {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}