/* Écran-Dynamique.be — marketing site
   Palette: ink navy, cool paper, acid signal — mobile first */

:root {
  --ink: #14181f;
  --navy: #1b3a4b;
  --navy-deep: #0f2430;
  --paper: #eef1f4;
  --paper-2: #e2e7ec;
  --white: #fbfcfd;
  --muted: #5c6570;
  --signal: #d8f03c;
  --signal-ink: #1a2208;
  --line: rgba(20, 24, 31, 0.12);
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2rem));
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-tld {
  font-weight: 500;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.nav-login {
  padding: 0.4rem 0.85rem;
  background: var(--navy);
  color: var(--white) !important;
  opacity: 1 !important;
  border-radius: var(--radius);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a {
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
}

.nav-drawer a:last-child {
  border-bottom: 0;
  color: var(--navy);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  line-height: 1.2;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.75;
}

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: color-mix(in srgb, var(--signal-ink) 12%, transparent);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 45%, transparent);
}

.hero .btn-ghost:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
}

.btn-xl {
  min-width: min(100%, 16rem);
  padding: 1.1rem 1.4rem;
  font-size: 1.15rem;
}

.contact .btn-ghost {
  color: var(--navy);
  border-color: color-mix(in srgb, var(--navy) 28%, transparent);
  background: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92svh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 36, 48, 0.35) 0%, rgba(15, 36, 48, 0.55) 42%, rgba(15, 36, 48, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 36, 48, 0.55) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 2.75rem;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--signal);
}

.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 28rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Demo screen (animated "video") —— */
.demo-band {
  padding: 3.5rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.demo-layout {
  display: grid;
  gap: 2rem;
}

.demo-copy h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.demo-copy p {
  color: var(--muted);
  max-width: 28rem;
}

.screen-stage {
  justify-self: center;
  width: min(100%, 420px);
}

.screen-bezel {
  background: #1a1d22;
  border-radius: 10px;
  padding: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(15, 36, 48, 0.22);
}

.screen-glass {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.screen-slides {
  position: absolute;
  inset: 0;
}

.screen-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.screen-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.screen-slide.is-active img {
  animation: kenburns 5.5s var(--ease) forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-slide figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 36, 48, 0.72);
  padding: 0.35rem 0.55rem;
}

.screen-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(216, 240, 60, 0.04) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 7s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.55;
}

@keyframes scan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}

.screen-stand {
  width: 28%;
  height: 10px;
  margin: 0 auto;
  background: #2a3038;
  border-radius: 0 0 3px 3px;
}

.screen-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2f9e6b;
  box-shadow: 0 0 0 0 rgba(47, 158, 107, 0.45);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .screen-scan,
  .screen-slide.is-active img,
  .pulse {
    animation: none !important;
  }
}

/* —— Usages —— */
.usages {
  padding: 4rem 0 1rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head-light h2,
.section-head-light p {
  color: var(--white);
}

.section-head-light p {
  opacity: 0.78;
}

.usage {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.25rem;
}

.usage-visual {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  min-height: 12rem;
  aspect-ratio: 4 / 3;
}

.usage-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.usage:hover .usage-visual img {
  transform: scale(1.03);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.usage-text h3 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.usage-text p:not(.eyebrow) {
  color: var(--muted);
  max-width: 28rem;
}

/* —— How —— */
.how {
  background: var(--navy-deep);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.25rem;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 0.55rem;
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 26rem;
}

/* —— Contact —— */
.contact {
  padding: 4.5rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(216, 240, 60, 0.18), transparent 55%),
    var(--paper);
}

.contact-inner {
  display: grid;
  gap: 2rem;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.contact-copy > p {
  color: var(--muted);
  max-width: 28rem;
}

.contact-person {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-display);
}

.footer-phone {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--signal);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— md+ —— */
@media (min-width: 720px) {
  :root {
    --shell: min(1120px, calc(100% - 3.5rem));
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }

  .hero-copy {
    padding: 7rem 0 3.5rem;
    max-width: 40rem;
  }

  .demo-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 3rem;
  }

  .screen-stage {
    width: min(100%, 480px);
    justify-self: end;
  }

  .usage-split {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
  }

  .usage-reverse .usage-visual {
    order: 2;
  }

  .usage-reverse .usage-text {
    order: 1;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .steps li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 0 0 1.25rem;
  }

  .contact-inner {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: end;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hero {
    min-height: min(88svh, 820px);
  }

  .usage-visual img {
    aspect-ratio: 16 / 11;
  }
}
