/* =========================================
   RVSA Consulting - home.css
   Page d'accueil harmonisée + animations
   ========================================= */

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 4.5rem;
  margin: 2rem auto;
  border-radius: 25px;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* --- CALQUE PARTICULES ANIMÉES --- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.12s linear;  /* ← Animation de déplacement */
  will-change: transform;              /* ← Optimisation GPU */
}


/* Position de base : en bas du hero */
.hero-particles span {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.23);
  border-radius: 50%;
  opacity: 0;
  animation: floatingUp linear infinite;
  animation-duration: calc(10s + (var(--i) * 0.5s));   /* durée variable */
  animation-delay: calc(-1s * var(--i));              /* départ aléatoire dans l’espace */
}

@keyframes floatingUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-130vh);
    opacity: 0;
  }
}



/* 40 positions aléatoires + delays aléatoires */
.hero-particles span:nth-child(1)  { left: 2%;  animation-delay: 0s; }
.hero-particles span:nth-child(2)  { left: 5%;  animation-delay: 1.5s; }
.hero-particles span:nth-child(3)  { left: 8%;  animation-delay: 3.8s; }
.hero-particles span:nth-child(4)  { left: 11%; animation-delay: 2s; }
.hero-particles span:nth-child(5)  { left: 14%; animation-delay: 4.4s; }

.hero-particles span:nth-child(6)  { left: 17%; animation-delay: .5s; }
.hero-particles span:nth-child(7)  { left: 20%; animation-delay: 6s; }
.hero-particles span:nth-child(8)  { left: 23%; animation-delay: 2.2s; }
.hero-particles span:nth-child(9)  { left: 26%; animation-delay: 3.1s; }
.hero-particles span:nth-child(10) { left: 29%; animation-delay: 5.7s; }

.hero-particles span:nth-child(11) { left: 32%; animation-delay: .8s; }
.hero-particles span:nth-child(12) { left: 35%; animation-delay: 4.9s; }
.hero-particles span:nth-child(13) { left: 38%; animation-delay: 1.1s; }
.hero-particles span:nth-child(14) { left: 41%; animation-delay: 3.3s; }
.hero-particles span:nth-child(15) { left: 44%; animation-delay: 6.5s; }

.hero-particles span:nth-child(16) { left: 47%; animation-delay: 2.5s; }
.hero-particles span:nth-child(17) { left: 50%; animation-delay: .3s; }
.hero-particles span:nth-child(18) { left: 53%; animation-delay: 5.1s; }
.hero-particles span:nth-child(19) { left: 56%; animation-delay: 3.7s; }
.hero-particles span:nth-child(20) { left: 59%; animation-delay: 6.8s; }

.hero-particles span:nth-child(21) { left: 62%; animation-delay: 1.6s; }
.hero-particles span:nth-child(22) { left: 65%; animation-delay: 4.2s; }
.hero-particles span:nth-child(23) { left: 68%; animation-delay: .9s; }
.hero-particles span:nth-child(24) { left: 71%; animation-delay: 3.4s; }
.hero-particles span:nth-child(25) { left: 74%; animation-delay: 5.9s; }

.hero-particles span:nth-child(26) { left: 77%; animation-delay: 2.7s; }
.hero-particles span:nth-child(27) { left: 80%; animation-delay: .2s; }
.hero-particles span:nth-child(28) { left: 83%; animation-delay: 5.3s; }
.hero-particles span:nth-child(29) { left: 86%; animation-delay: 1.8s; }
.hero-particles span:nth-child(30) { left: 89%; animation-delay: 4.6s; }

.hero-particles span:nth-child(31) { left: 92%; animation-delay: .4s; }
.hero-particles span:nth-child(32) { left: 94%; animation-delay: 6.1s; }
.hero-particles span:nth-child(33) { left: 96%; animation-delay: 3.9s; }
.hero-particles span:nth-child(34) { left: 97%; animation-delay: 2.3s; }
.hero-particles span:nth-child(35) { left: 98%; animation-delay: 6.7s; }

.hero-particles span:nth-child(36) { left: 12%; animation-delay: .6s; }
.hero-particles span:nth-child(37) { left: 27%; animation-delay: 4.1s; }
.hero-particles span:nth-child(38) { left: 52%; animation-delay: 2.8s; }
.hero-particles span:nth-child(39) { left: 73%; animation-delay: 1.3s; }
.hero-particles span:nth-child(40) { left: 88%; animation-delay: 5.4s; }

/* --- TON SLOGAN --- */
.hero-slogan {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-style: italic;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow:
      0px 2px 4px rgba(0,0,0,0.4),
      0px 0px 6px rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
}

.hero-slogan .line-left {
  text-align: left;
}

.hero-slogan .line-right {
  text-align: right;
  margin-top: .3rem;
}

/* grille animée */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 45px 45px;
  animation: moveGrid 23s linear infinite;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Glow */
.hero::after {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at 50% 25%, rgba(37,99,235,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes moveGrid {
  from { background-position: 0 0; }
  to   { background-position: 45px 45px; }
}

/* contenu */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  margin: 0 auto;
}

/* Texte */
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Boutons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  transition: 0.2s ease;
  color: var(--text);
}

.hero-actions .btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.hero-actions .btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
}

/* stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 1rem;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats h4 {
  font-size: 1.6rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .hero-stats {
    flex-wrap: wrap;       /* Autorise 2 lignes */
    gap: 1.5rem;           /* Réduit l'espacement */
    padding: 0 1rem;       /* Ajoute de la marge latérale */
  }

  .hero-stats .stat {
    width: 45%;            /* Deux stats par ligne */
    text-align: center;
  }
}


/* ===== AUDIENCE CARDS ===== */
.audiences {
  text-align: center;
  padding: 5rem 1rem;
  margin: 0 auto;
  max-width: 1300px;
}

.audiences h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 3rem;
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

/* ---- Les cartes principales ---- */
.audience-card {
  background: color-mix(in oklab, var(--card) 96%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  flex: 1 1 380px;
  max-width: 400px;
  min-height: 460px;
}

.audience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

/* ---- Image ---- */
.audience-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: #0b1220;
  padding: 1.4rem;
  border-bottom: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.55));
}

/* ---- Contenu texte ---- */
.audience-card .content {
  padding: 2rem 1.5rem 2.5rem;
}

.audience-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-weight: 700;
}

.audience-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  max-width: 90%;
  margin-inline: auto;
}

.audiences .subtitle {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .audience-grid {
    flex-direction: column;
    align-items: center;
  }

  .audience-card {
    max-width: 95%;
    min-height: unset;
    height: auto;
  }

  .audience-card img {
    height: auto;
    max-height: 200px;
    padding: 1rem;
  }

  .audience-card .content {
    padding: 1.5rem 1.2rem 2rem;
  }

  .audience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .audience-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
  }
}

/* ===== ABOUT ===== */
.about {
  background: color-mix(in oklab, var(--bg-alt) 98%, transparent);
  padding: 4rem 1rem;
  text-align: center;
}

/* ===== CTA ===== */
.cta {
  margin: 3rem auto 3rem;
  text-align: center;
  max-width: 1100px;
  padding: 3.5rem 1rem;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  border-radius: 22px;
  color: white;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}

.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.cta p {
  margin: 1rem auto 2.2rem;
  max-width: 700px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.cta-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cta-actions .btn.primary {
  background: white;
  color: #2563eb;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== MATÉRIEL INFORMATIQUE ===== */
.hardware {
  text-align: center;
  padding: 5rem 1rem;
  margin: 0 auto;
  max-width: 1300px;
}

.hardware h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.hardware .subtitle {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Grille des cartes */
.hardware-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

/* ---- Carte individuelle ---- */
.hardware-card {
  background: color-mix(in oklab, var(--card) 96%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  flex: 1 1 380px;
  max-width: 400px;
  min-height: 460px;
}

/* ---- Effet au survol ---- */
.hardware-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

/* ---- Image ---- */
.hardware-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: #0b1220;
  padding: 1.4rem;
  border-bottom: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.55));
}

/* ---- Contenu ---- */
.hardware-card h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hardware-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 90%;
  margin-bottom: 2rem;
}

/* ---- Bouton ---- */
.hardware-actions {
  margin-top: 3rem;
}

.hardware-actions .btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hardware-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hardware-grid {
    flex-direction: column;
    align-items: center;
  }

  .hardware-card {
    max-width: 95%;
    min-height: unset;
    height: auto;
  }

  .hardware-card img {
    height: auto;
    max-height: 200px;
    padding: 1rem;
  }

  .hardware-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .hardware-card p {
    font-size: 1rem;
    line-height: 1.5;
  }
}


/* ===== Animation d'apparition ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.reveal:nth-child(4) {
  transition-delay: 0.45s;
}

/* ===== SECTION PARTENAIRES ===== */
.partners-section {
  text-align: center;
  padding: 4rem 1rem;
  background: color-mix(in oklab, var(--bg-alt) 96%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.partners-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.partners-section p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo {
  height: 70px;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .partner-logo {
    height: 55px;
  }
}


.bottom-info {
  text-align: center;
  padding: 2rem 1rem;
  background: color-mix(in oklab, var(--bg-alt) 96%, transparent);
}

.bottom-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.bottom-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
  font-size: 1.05rem;
}
