/* Page d'attente helvyca.ch : même charte que le site (fond #04102A, Space Grotesk / Manrope, turquoise). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/Manrope-var.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/SpaceGrotesk-var.woff2") format("woff2"); }

:root {
  --navy: #00338D; --blue: #0A74D6; --aqua: #21D4D8; --teal: #14B8C4;
  --bg: #04102A; --on-dark: #E8EFFA; --muted: #A9BCD8;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--on-dark);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1 { font-family: "Space Grotesk", "Manrope", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 8px; }

.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 720px at 78% 8%, rgba(20,184,196,.20), transparent 62%),
    radial-gradient(900px 640px at 10% 88%, rgba(0,51,141,.42), transparent 60%);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(33,212,216,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(33,212,216,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 6vw, 80px) 0; }
.brand img { width: 84px; height: auto; display: block; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(169,188,216,.22); background: rgba(255,255,255,.04); }
.langbtn {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 12px/1 "Manrope", system-ui, sans-serif; letter-spacing: .06em; padding: 9px 12px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.langbtn:hover { color: #fff; }
.langbtn.on { background: var(--aqua); color: var(--bg); }

.hero {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 clamp(20px, 6vw, 80px) 28px; max-width: 980px; margin: 0 auto; width: 100%;
}
.scene { position: relative; width: min(520px, 100%); height: clamp(180px, 30vh, 320px); display: grid; place-items: center; }
.halo {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,196,.36), transparent 66%); filter: blur(30px);
}
/* Image de secours visible d'emblée (LCP immédiat, page lisible sans JS) ; shield3d.js la fond à 0 quand le rendu 3D est prêt. */
#js-still { position: absolute; inset: 9% 0; width: 100%; height: 82%; object-fit: contain; filter: drop-shadow(0 26px 58px rgba(20,184,196,.34)); opacity: 1; transition: opacity .8s ease; }
#hero3d { position: absolute; top: -8%; bottom: -8%; left: -30%; right: -30%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0;
  border: 1px solid rgba(33,212,216,.3); background: rgba(33,212,216,.07); color: var(--aqua);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 16px 0 0; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #21D4D8 0%, #14B8C4 42%, #0A74D6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--muted); max-width: 560px; margin: 14px 0 0; text-wrap: pretty; }

.soon { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(33,212,216,.6); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .3s, box-shadow .3s, border-color .3s, color .3s, background .3s;
}
.btn-primary { color: var(--bg); background: linear-gradient(100deg, #21D4D8, #14B8C4); box-shadow: 0 16px 44px rgba(20,184,196,.34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(20,184,196,.5); }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(169,188,216,.28); }
.btn-ghost:hover { color: var(--aqua); border-color: rgba(33,212,216,.5); background: rgba(33,212,216,.06); }

.about { max-width: 700px; margin: 26px auto 0; padding: 0 4px; }
.about h2 { font-family: "Space Grotesk", "Manrope", system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--on-dark); margin: 0; }
.about p { font-size: 14px; line-height: 1.65; color: #8FA3C2; margin: 8px 0 0; text-wrap: pretty; }

.foot {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 80px) 24px; font-size: 13px; color: #7A8DAB; border-top: 1px solid rgba(169,188,216,.12);
}
.foot a:hover { color: var(--aqua); }

@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glowPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(33,212,216,.6); } 100% { box-shadow: 0 0 0 12px rgba(33,212,216,0); } }
@media (prefers-reduced-motion: no-preference) {
  .badge, h1, .sub, .soon, .actions { animation: riseIn .9s ease both; }
  h1 { animation-delay: .1s; } .sub { animation-delay: .2s; } .soon { animation-delay: .3s; } .actions { animation-delay: .4s; }
  .halo { animation: glowPulse 6s ease-in-out infinite; }
  #js-still { animation: floatY 6s ease-in-out infinite; }
  .pulse { animation: ping 1.8s ease-out infinite; }
}
@media (max-height: 1000px) and (min-height: 781px) and (min-width: 641px) {
  .top { padding-top: 16px; }
  .brand img { width: 72px; }
  .scene { height: clamp(200px, 27vh, 260px); }
  h1 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 14px; }
  .sub { margin-top: 12px; }
  .soon { margin-top: 14px; }
  .actions { margin-top: 16px; }
  .hero { padding-bottom: 20px; }
  .foot { padding-top: 14px; padding-bottom: 16px; }
}
@media (max-height: 780px) and (min-width: 641px) {
  .top { padding-top: 14px; }
  .brand img { width: 64px; }
  .scene { height: 190px; }
  h1 { font-size: clamp(30px, 4vw, 48px); margin-top: 12px; }
  .sub { margin-top: 10px; font-size: 16px; }
  .soon { margin-top: 12px; }
  .actions { margin-top: 14px; }
  .hero { padding-bottom: 16px; }
  .foot { padding-top: 12px; padding-bottom: 14px; }
  .about { margin-top: 14px; max-width: 760px; }
  .about h2 { font-size: 14px; }
  .about p { font-size: 13px; line-height: 1.55; margin-top: 6px; }
}
@media (max-width: 640px) {
  .brand img { width: 64px; }
  .scene { height: 240px; }
}

/* Le canevas 3D déborde de 30 % de chaque côté de la scène pour laisser respirer la rotation.
   Sur un écran étroit ce débordement sort de la fenêtre : le téléphone élargit alors sa zone
   d'affichage et la page se tire vers la droite (overflow-x: hidden sur body ne l'en empêche pas).
   Sous 860 px on colle donc le canevas à la scène : le bouclier garde sa taille, il perd seulement
   la marge vide sur les côtés. */
@media (max-width: 860px) {
  #hero3d { left: 0; right: 0; }
}
