/* =========================================================
   FALOM AI: liquid-glass hero (only applies when js/hero.js turns it on)
   White page, a giant FALOM wordmark in the logo's blue, the FALOM logo as tinted liquid
   glass in the middle (js/hero3d.js), and the tagline, intro and buttons laid out around it.
   ========================================================= */
.hero.hero-glass {
  position: relative; overflow: hidden; display: block; text-align: left;
  min-height: max(100vh, 680px); padding: 0;
  background: #000; color: #fff; /* black, flowing into the black top of the desk section below */
}
.hero3d-canvas { position: absolute; inset: 0; z-index: 0; display: block; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.hero-glass.is-ready .hero3d-canvas { opacity: 1; }

/* The original logo and name are drawn in 3D instead (the name stays for screen readers and search) */
.hero-glass .hero-mark { display: none; }
.hero-glass .brand {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hero-glass .scroll-hint { display: none; }

/* Laid out exactly like the crystal agency template: a small label with a coloured square on the
   left, the intro as a stacked white paragraph at the top right, the FALOM letters (drawn in 3D into
   .hero-word-slot) huge along the bottom left with their feet off the edge, the glass logo centred
   over them, and the buttons at the bottom right */
.hero-glass .container { position: absolute; top: var(--nav-h); bottom: 0; left: 0; right: 0; z-index: 1; max-width: none; padding: 0; }
.hero-word-slot { display: none; }
.hero-glass .hero-word-slot {
  /* sized by height (js/hero3d.js sets the width to fit the word); the whole word stays visible just
     above the bottom edge (the box has room under the letters for descenders, hence the offset) */
  display: block; position: absolute; left: 1.6vw; height: 68vh; width: 60vw; bottom: calc(3vh - 68vh * 0.17);
}
.hero-glass .brand-tagline {
  position: absolute; left: 1.6vw; top: 26%; margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0; color: #fff;
}
.hero-glass .brand-tagline::before { content: ""; width: 12px; height: 12px; background: #1e6bff; flex: none; }
.hero-glass .lead { display: none; } /* (kept in the page for phones and search engines) */
.hero-glass .hero-actions { display: none; } /* (the buttons stay for phones; the top bar has "Demander une démo") */

/* Liquid-glass buttons, tinted with the logo's blue */
.hero-glass .btn {
  position: relative; overflow: hidden; isolation: isolate;
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(4, 67, 200, 0.18), 0 10px 30px rgba(4, 120, 251, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hero-glass .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%);
}
.hero-glass .btn-dark { background: linear-gradient(135deg, rgba(6, 184, 251, 0.92), rgba(4, 120, 251, 0.92) 50%, rgba(5, 67, 200, 0.95)); }
.hero-glass .btn-ghost {
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
}
.hero-glass .btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 40px rgba(4, 120, 251, 0.28); }
/* A shorter rise-in, so the buttons near the bottom edge still fade in on load */
.hero-glass .reveal:not(.in) { transform: translateY(24px); }

/* Intro, like the crystal agency template: a panel in the logo's colours covers the top section while
   the 3D gets ready, then wipes straight up to reveal the black page as the letters shoot up */
.hero-glass::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 20% 30%, rgba(25, 227, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 55% 60% at 85% 80%, rgba(155, 92, 246, 0.6), transparent 70%),
    linear-gradient(135deg, #0478fb, #0543c8);
  transform: translateY(0); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
}
.hero-glass.is-ready::after { transform: translateY(-101%); }
/* The text fades in as the curtain clears (it sits too close to the bottom edge for the scroll reveal) */
.hero-glass.is-ready .reveal { opacity: 1; transform: none; transition-delay: 0.9s; }
