/* LULENGO GEDEON SARL — design system (stark industrial) */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-dark: #020617;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.08), 0 20px 40px -24px rgb(15 23 42 / 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  transition: opacity 0.45s ease;
}

#preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

#preloader .preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

#preloader .brand-logo-preload {
  max-height: 4.5rem;
  width: auto;
  object-fit: contain;
}

.preloader-mark {
  width: 72px;
  height: 72px;
  border: 3px solid rgb(255 255 255 / 0.12);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: preloader-spin 0.85s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgb(15 23 42 / 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
}

/* Hero slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: brightness(0.45);
}

.hero-slideshow img.is-active {
  opacity: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-grid {
  background-image:
    linear-gradient(rgb(2 6 23 / 0.78), rgb(2 6 23 / 0.88)),
    radial-gradient(circle at 20% 20%, rgb(234 88 12 / 0.12), transparent 45%);
}

/* Cards */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Testimonials */
.testimonial-slide {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.swiper-pagination-bullet-active {
  background: var(--color-accent) !important;
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(234 88 12 / 0.2);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.55);
}

/* Float buttons */
.fab {
  position: fixed;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
  transition: transform 0.2s ease;
}

.fab:hover {
  transform: scale(1.06);
}

.fab--wa {
  bottom: 1.25rem;
  background: #22c55e;
  color: #fff;
}

.fab--top {
  bottom: 5.5rem;
  background: var(--color-accent);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.fab--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Réalisations hero */
.page-hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(2 6 23 / 0.88), rgb(15 23 42 / 0.75));
}

.page-hero-bg > * {
  position: relative;
  z-index: 1;
}

/* Prose article */
.prose-article {
  max-width: 68ch;
}

.prose-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-ink);
}

.prose-article p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: #334155;
}

.prose-article a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-article blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--color-muted);
}
