/* data-rain.css — Styles de la pluie de données (voir data-rain.js)
 * Variables du composant d'origine, portées sur .dr-root plutôt que sur :root pour ne rien imposer au reste du site.
 * ============================================================ */

.dr-root {
  --dr-bg-0: #020308;
  --dr-bg-1: #05070d;
  --dr-bg-2: #0a1020;
  --dr-calm: #22e6ff;
  --dr-mid: #8a5cff;
  --dr-hot: #ff3d9a;
  --dr-core: #eafcff;
  --dr-vignette: 0.62;
  --dr-grain: 0.05;
  --dr-bloom-blur: 10px;
  --dr-bloom-opacity: 0.7;

  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 0%, var(--dr-bg-2) 0%, var(--dr-bg-1) 48%, var(--dr-bg-0) 100%);
  animation: dr-fade-in 1.2s ease both;
}
.dr-root--contained { position: absolute; }
.dr-root canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.dr-bloom { filter: blur(var(--dr-bloom-blur)); opacity: var(--dr-bloom-opacity); }
.dr-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 40%, rgba(0, 0, 0, var(--dr-vignette)) 100%);
}
.dr-grain {
  position: absolute; inset: 0; opacity: var(--dr-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes dr-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .dr-root { animation: none; } }
@media print { .dr-root { display: none; } }

/* ── Hero de la page Digitale : fond sombre, palette violette de la marque ── */
.dr-hero { position: relative; }
.dr-hero .dr-host { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

@media (max-width: 760px) {
  .dr-hero [data-mobile-background] {
    overflow: hidden;
    background: radial-gradient(ellipse at 45% 0%, #21154d 0%, #0a0720 55%, #04030d 100%);
  }
  .dr-hero [data-mobile-background] .dr-root { display: none; }
  .dr-hero [data-mobile-background]::before {
    content: "";
    position: absolute;
    inset: -30px 0 0;
    opacity: .24;
    background:
      radial-gradient(ellipse, #a681ff 0 1px, transparent 2px) 0 0 / 37px 59px,
      radial-gradient(ellipse, #72cbea 0 1px, transparent 2px) 13px 21px / 49px 73px;
    animation: dr-mobile-drift 14s linear infinite;
  }
  @keyframes dr-mobile-drift { to { transform: translateY(30px); } }
  @media (prefers-reduced-motion: reduce) {
    .dr-hero [data-mobile-background]::before { animation: none; }
  }
}
.dr-hero .dr-root {
  --dr-bg-0: #04030d;
  --dr-bg-1: #0a0720;
  --dr-bg-2: #170f3a;
  --dr-calm: #8b5cf6;
  --dr-mid: #d07bff;
  --dr-hot: #22e6ff;
  --dr-vignette: 0.55;
}
body.site-unified.im-digital .hero.dr-hero { background: #07051a !important; color: #f4f0ff; border-bottom-color: rgba(255, 255, 255, .08); }
body.site-unified.im-digital .hero.dr-hero > .container { position: relative; z-index: 2; }
body.site-unified.im-digital .dr-hero .hero-title { color: #f6f2ff !important; }
body.site-unified.im-digital .dr-hero .hero-accent { color: #c4b5fd !important; }
body.site-unified.im-digital .dr-hero .hero-subtitle { color: #cdc5e2 !important; }
body.site-unified.im-digital .dr-hero .hero-buttons .btn-secondary { color: #ede9fe !important; border-color: rgba(196, 181, 253, .5) !important; background: rgba(255, 255, 255, .04) !important; }
body.site-unified.im-digital .dr-hero .hero-buttons .btn-secondary:hover { background: rgba(255, 255, 255, .1) !important; }
body.site-unified.im-digital .dr-hero .hero-note { color: #b9afcf; }
body.site-unified.im-digital .dr-hero .fl-hero-link a { color: #ede9fe; }
body.site-unified.im-digital .dr-hero .hero-stats { border-color: rgba(255, 255, 255, .12); }
body.site-unified.im-digital .dr-hero .hero-stat-value { color: #ffffff !important; }
body.site-unified.im-digital .dr-hero .hero-stat-label { color: #b9afcf; }
body.site-unified.im-digital .dr-hero .im-project-frame { border-color: rgba(255, 255, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
body.site-unified.im-digital .dr-hero .im-projects figcaption { color: #d4cbe8; }
body.site-unified.im-digital .dr-hero .im-project-tabs button { color: #a99ec4; }
body.site-unified.im-digital .dr-hero .im-project-tabs button[aria-selected="true"] { color: #ffffff; border-bottom-color: #a78bfa; }
