/* Antigravity Particles Background - styles */

.ag-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thème sombre (par défaut) */
.ag-section--dark {
  background: radial-gradient(circle at 10% 0%, #111827 0, #020617 55%, #000 100%);
  color: #f9fafb;
}

/* Thème clair (fond blanc) */
.ag-section--light {
  background: #ffffff;
  color: #0f172a;
}

.ag-section--light .ag-content p {
  opacity: 0.9;
}

/* Conteneur de particules du shortcode */
.ag-particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Canvas injecté par le module JS */
.ag-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.ag-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  padding: 3rem 1.5rem;
}

.ag-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.ag-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.ag-buttons {
  margin-top: 0.5rem;
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ag-btn {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.86);
  color: #e5e7eb;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.ag-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.6),
    rgba(99, 102, 241, 0.75),
    rgba(34, 193, 195, 0.65)
  );
  border-color: rgba(191, 219, 254, 0.9);
  color: #f9fafb;
  backdrop-filter: blur(20px);
}

.ag-btn-secondary {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  backdrop-filter: blur(18px);
  opacity: 0.85;
}

.ag-section--light .ag-btn {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.6);
}

.ag-section--light .ag-btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.ag-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.5);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.ag-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 60px rgba(79, 70, 229, 0.45);
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.75),
    rgba(99, 102, 241, 0.85),
    rgba(34, 193, 195, 0.8)
  );
}

.ag-btn-secondary:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.55);
}

.ag-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.9);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .ag-content {
    padding-inline: 1.25rem;
  }
  .ag-buttons {
    flex-direction: column;
  }
  .ag-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Classes CSS pour appliquer le background à une Section / Div --- */

.ag-bg-dark,
.ag-bg-light {
  position: relative;
  overflow: hidden;
}

.ag-bg-dark {
  background: radial-gradient(circle at 10% 0%, #111827 0, #020617 55%, #000 100%);
}

.ag-bg-light {
  background: #ffffff;
}




.ag-bg-dark > .ag-particles-canvas,
.ag-bg-light > .ag-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* tout le reste du contenu passe au-dessus du canvas */
.ag-bg-dark > *:not(.ag-particles-canvas),
.ag-bg-light > *:not(.ag-particles-canvas) {
  position: relative;
  z-index: 1;
}
