/* Galaxy — effets de la page d'accueil, chargés sur cette page seulement,
   après vitrine.css (thème commun). Animations coupées si le visiteur a
   demandé moins de mouvement. */

/* ── Héros ─────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); isolation: isolate; }
.lp-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-sky > span { position: absolute; inset: 0; }
.lp-stars { background-image:
    radial-gradient(1px 1px at 12% 22%, #fff9, transparent), radial-gradient(1px 1px at 28% 68%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #fffb, transparent), radial-gradient(1px 1px at 61% 41%, #fff6, transparent),
    radial-gradient(1px 1px at 73% 79%, #fff8, transparent), radial-gradient(1.5px 1.5px at 86% 24%, #fffa, transparent),
    radial-gradient(1px 1px at 93% 61%, #fff6, transparent), radial-gradient(1px 1px at 6% 84%, #fff7, transparent),
    radial-gradient(1px 1px at 52% 90%, #fff5, transparent), radial-gradient(1px 1px at 36% 38%, #fff5, transparent);
  animation: lp-twinkle 7s ease-in-out infinite alternate; }
.lp-aurora { background:
    radial-gradient(40% 50% at 18% 20%, rgba(109, 124, 255, .35), transparent 70%),
    radial-gradient(35% 45% at 85% 30%, rgba(176, 107, 255, .28), transparent 70%),
    radial-gradient(45% 40% at 60% 95%, rgba(62, 230, 245, .16), transparent 70%);
  filter: blur(20px); animation: lp-drift 18s ease-in-out infinite alternate; }
.lp-grid { background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .55; }

.lp-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; padding: .35rem .9rem .35rem .7rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--lp-text); border-radius: 99px;
  background: var(--lp-glass); border: 1px solid var(--lp-line); backdrop-filter: blur(8px); }
.lp-live { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6);
  animation: lp-ping 2.2s ease-out infinite; }
.lp-hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }

/* Schéma de l'architecture */
.lp-orbit { margin: 0; position: relative; padding: 1.4rem; border-radius: 22px; background: var(--lp-glass);
  border: 1px solid var(--lp-line); backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(40, 50, 160, .7); }
.lp-orbit::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lp-angle, 0deg), transparent 0 70%, var(--lp-cyan), var(--lp-violet), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: lp-spin 6s linear infinite; }
@property --lp-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.lp-tier { display: grid; grid-template-columns: 4.6rem 1fr 1fr; gap: .6rem; align-items: center; }
.lp-tier-name { font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--lp-dim); }
.lp-node { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem .7rem 1.9rem; border-radius: 12px;
  font-size: .86rem; font-weight: 600; background: rgba(8, 10, 28, .75); border: 1px solid var(--lp-line); }
.lp-node small { font: 500 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lp-dim); }
.lp-node i { position: absolute; left: .8rem; top: .95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-ok); box-shadow: 0 0 10px var(--lp-ok); }
.lp-node.is-standby i { background: #8f9bc4; box-shadow: none; }
.lp-node.is-sync i { background: var(--lp-cyan); box-shadow: 0 0 10px var(--lp-cyan); }
.lp-node b { font-weight: 500; grid-area: 1 / 1; }
.lp-blink small { display: grid; }
.lp-link { position: relative; height: 34px; margin-left: 4.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lp-link span { position: relative; }
.lp-link span::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--lp-line), rgba(109, 124, 255, .5), var(--lp-line)); }
.lp-link span::after { content: ""; position: absolute; left: calc(50% - 3px); top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lp-cyan); box-shadow: 0 0 12px 2px var(--lp-cyan); animation: lp-packet 1.6s linear infinite; }
.lp-link span + span::after { animation-delay: .8s; }
/* Le serveur web 1 « redémarre » : son flux s'arrête, le 2 continue */
.lp-blink { animation: lp-maint 12s ease-in-out infinite; }
.lp-blink i { animation: lp-maint-dot 12s ease-in-out infinite; }
.lp-blink .s-on { animation: lp-show-on 12s steps(1) infinite; }
.lp-blink .s-off { opacity: 0; animation: lp-show-off 12s steps(1) infinite; }
.lp-link span:first-child::after { animation: lp-packet 1.6s linear infinite, lp-cut 12s steps(1) infinite; }
.lp-orbit figcaption { margin-top: 1rem; font-size: .78rem; color: var(--lp-dim); }

/* Grille de l'architecture */
.lp-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-cell-wide { grid-column: span 2; background: radial-gradient(120% 140% at 0% 0%, rgba(109, 124, 255, .22), transparent 55%), rgba(255, 255, 255, .02); }
.lp-cell-full { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; align-items: center; }
.lp-cell-full .lp-ico { grid-row: span 2; margin: 0; }

/* Étapes */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.lp-steps li { position: relative; padding: 1.5rem; border-radius: 18px; border: 1px solid var(--lp-line); background: rgba(255, 255, 255, .02); }
.lp-steps span { display: block; margin-bottom: 1.2rem; font: 800 2.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em;
  background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.lp-steps h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.lp-steps p { margin: 0; color: var(--lp-dim); font-size: .95rem; }

/* Développeurs */
.lp-dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.lp-dev h2 { margin-bottom: 1rem; }
.lp-spec { margin: 0; padding: 1.6rem 1.6rem 1.6rem 1.8rem; overflow-x: auto; border-radius: 18px; font: .9rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d6dbff; background: #070918; border: 1px solid var(--lp-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 30px 70px -40px rgba(62, 230, 245, .5); }
.lp-spec code { padding: 0; background: none; color: inherit; font: inherit; border: 0; }
.lp-spec b { color: var(--lp-cyan); font-weight: 600; }
.lp-spec i { color: #6f769a; font-style: normal; }

/* Apparition au défilement : navigateurs qui la gèrent seulement, sans script */
@supports (animation-timeline: view()) {
  .lp-cell, .lp-plan, .lp-steps li, .lp-faq details, .lp-spec, .lp-domain {
    animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@keyframes lp-twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes lp-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
@keyframes lp-spin { to { --lp-angle: 360deg; } }
@keyframes lp-packet { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 7px); opacity: 0; } }
@keyframes lp-maint { 0%, 55%, 85%, 100% { opacity: 1; } 60%, 80% { opacity: .45; } }
@keyframes lp-maint-dot { 0%, 55%, 85%, 100% { background: var(--lp-ok); box-shadow: 0 0 10px var(--lp-ok); }
  60%, 80% { background: #f5b84a; box-shadow: 0 0 10px #f5b84a; } }
@keyframes lp-show-on { 0% { opacity: 1; } 58% { opacity: 0; } 83% { opacity: 1; } }
@keyframes lp-show-off { 0% { opacity: 0; } 58% { opacity: 1; } 83% { opacity: 0; } }
@keyframes lp-cut { 0% { visibility: visible; } 58% { visibility: hidden; } 83% { visibility: visible; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .lp-hero-in, .lp-dev { grid-template-columns: 1fr; }
  .lp-bento { grid-template-columns: 1fr 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-bento { grid-template-columns: 1fr; }
  .lp-cell-wide { grid-column: auto; }
  .lp-tier { grid-template-columns: 1fr 1fr; }
  .lp-tier-name { grid-column: 1 / -1; }
  .lp-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-blink .s-off { visibility: hidden; }
}
